bugFreeciv - Bugs: bug #19894, Cannot load savegame of...

Show feedback again

bug #19894: Cannot load savegame of barbarianless ruleset

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Tue Jul 3 22:18:24 2012  
Category: generalSeverity: 3 - Normal
Priority: 5 - NormalStatus: Duplicate
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Release: Operating System: None
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue Jun 21 15:03:52 2016, comment #3:

Fixed since

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Fri Jul 6 19:19:45 2012, comment #2:

Attaching what I did so far to this ticket just for safekeeping. In short term I'm more likely to just provide dummy barbarians in my ruleset than working on this further.

(file #15993)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Fri Jul 6 18:49:17 2012, comment #1:

As ruleset is loaded first and settings reseted, or even changed by humans, later, checks and restrictions should apply at the time of setting barbarianrate setting. Not that it would be trivial to implement either - when resetting to default values, default value for barbarianrate is sometimes illegal value to set.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Tue Jul 3 22:18:24 2012, original submission:

$subject is actually just one side of the bug I've so far managed to work around.
It should be possible to load ruleset without barbarian unit types, if barbarians are disabled from the game. Game starting sequence is such that this succeeds only if barbarians were disabled before ruleset loading started - this is even more counterintuitive remembering that ruleset loading resets the settings, so usually there's no point at all to set some settings before setting rulesetdir.
For initial loading of the ruleset I have primitive.serv like this:

set barbarians DISABLED
rulesetdir primitive

and in game.ruleset:

set =
{ "name", "value", "lock"
"barbarians", "DISABLED", TRUE

Former allows loading of the ruleset, latter sets barbarians disabled also after ruleset loading resets the setting.

Now that I have played such a game, and saved it (as a scenario, but I don't think that makes any difference), I'm unable to load savegame. There's no way to make server disable the barbarians before ruleset is loaded.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #15993:  BarbariansValidate.patch added by cazfi (5kB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Jun 21 15:03:52 2016cazfiStatusNone=>Duplicate
      Assigned toNone=>cazfi
    Fri Jul 6 19:19:45 2012cazfiAttached File-=>Added BarbariansValidate.patch, #15993
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup