Loading saved options
Loading saved options
Hi, I have been toying with freeciv on my own for a couple of years, and I am finally really getting into it. My favorite client is Qt. But for the love of my pinky toe, there is one thing I do not manage to figure: how do I load up a previously set configuration for my options, so that I don't have to scan all the options to leave everything how I like? Things like initial units, military settings, minimum distance between cities, etc. Thanks!
-
- Hardened
- Posts: 171
- Joined: Sun Dec 31, 2017 3:41 am
Re: Loading saved options
You can edit the "games.ruleset" file contained in the folder with the name of the ruleset you're using. At the bottom of the file there's a section that looks like -
(This is my own custom version.) You can add whatever you want, need to know what "name"s are valid and what they mean. "startunits" is the answer for one of your prefs. If you run ./freeciv-server from a command line, > help options will show the "name"s and e.g. > help startunits explains that option.
Code: Select all
set =
{ "name", "value", "lock"
"size", 5, FALSE
"aifill", 6, FALSE
"animals", 0, TRUE
"startunits", "cwx", FALSE
"disasters", 10, FALSE
"migration", TRUE, FALSE
...
Re: Loading saved options
Thank you very much for the answer. I think I understand, but this is a little too much for my poor me... I noticed that, in random maps (not scenarios), if I don't change the ruleset, it will keep my previous settings, so at least there's that for me. I was hoping that there would be an interface to set up various "rules" and then load them at will, easily. But thank you, anyway!
Re: Loading saved options
Maybe it's of use to you that you can save current server options to a file with /write <filename>, and read them with /read <filename> server commands you can enter client chatline.
> help write
Command: write - Write current settings as server commands to file.
Synopsis: write <file-name>
Level: hack
> help read
Command: read - Process server commands from file.
Synopsis: read <file-name>
Level: ctrl