Saving initial setup

Various topics about the game, the website, or anything else Freeciv related that doesn't fit elsewhere.
Post Reply
Euroic
Posts: 13
Joined: Mon May 20, 2013 2:48 pm

Saving initial setup

Post by Euroic »

Hi there,

Because I am a creature of habits, I always start a new game with the same options. Selecting them each time is a minor inconvenience, but an inconvenience nonetheless. Is there a way to store them in some .ruleset or other config file, or have a lua script do it ?

Thanks.
User avatar
JTN
Elite
Posts: 473
Joined: Wed Jan 30, 2013 12:15 am

Re: Saving initial setup

Post by JTN »

If you're invoking the server directly, there's the 'write' command.

Code: Select all

> help write
Command: write  -  Write current settings as server commands to file.
Synopsis: write <file-name>
Level: hack
Alternatively, if you always invoke the server from the client, changes you make to server settings through the client's UI (as opposed to typing '/set foo bar' commands in the chat window) can be saved in the client's settings.
User avatar
GriffonSpade
Elite
Posts: 578
Joined: Mon Apr 29, 2013 4:41 pm

Re: Saving initial setup

Post by GriffonSpade »

JTN wrote: Alternatively, if you always invoke the server from the client, changes you make to server settings through the client's UI (as opposed to typing '/set foo bar' commands in the chat window) can be saved in the client's settings.
Actually, now that you mention it, there's a large issue with this. If you change rulesets it goes to that ruleset's default settings.
Result: Any ruleset but default cannot have saved game options. Even default ruleset loses them if you change to another ruleset and back.
It should either:
Save game options for each ruleset and load them upon switching to that ruleset...
or at least try to set the saved game options after it loads a new ruleset. (Some may be denied by the ruleset's options)
Post Reply