Problems with adding a custom civilization

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
Hrexandro
Posts: 1
Joined: Fri Mar 12, 2021 3:54 pm

Problems with adding a custom civilization

Post by Hrexandro »

I read:
https://freeciv.fandom.com/wiki/Nations ... leset_file
and
https://freeciv.fandom.com/wiki/Forum:H ... nation_%3F

I made the <nation>.ruleset and put it in data/nation. Added the flags and shields and listed them in /misc/flags.spec flags-large.spec shields.spec and shields-large.spec. However, if the nation is added in data/default/nationlist.ruleset, the game client freezes when starting a new game. If I try to run a server, the following error appears when "2:loading ruleset.":
Could not load ruleset 'data\classic\nations.ruleset':
In secfile_from_input_file() [../../../../utility/registry.ini.c:466]: secfile '
data\classic\nations.ruleset' in section 'nation_<newnation>, line 1, pos 0
looking at: '[nation_barbarian]'
included from file "data\classic\nations.ruleset", line60
when its added at the end, or another nation that was expected instead of "barbarian", like "abkhaz" if I add it in the beginning. Same thing happens if I add it to data/override.

Seems to me that the game does not like anything additional in those lists other than what it expects to be there.

If I add it to Users\~\AppData\Roaming\.freeciv\2.6\default\nation.ruleset, the game runs, but the nation does not appear in the game.


EDIT: I figured out what was wrong (thanks to louis94 from the Longturn discord) - the last city on the list is NOT supposed to have a comma after it!
Post Reply