Page 1 of 2
Savegame compatibility
Posted: Mon Apr 20, 2015 9:05 pm
by cazfi
Freeciv savegame format changes freely during development of new version -> save from the dev version of yesterday may not be compatible with dev version of today. The savegame compatibility is only provided between stable releases (in practice also the development version is always able to load saves from any stable versions even if not from the halfway format between previous stable version and current development version). Freeciv-web uses development versions of freeciv -> there are savegame compatibility breaks.
This thread is for advance warnings about those, and also for freeciv-web developer discussion about the mitigation plans.
Re: Savegame compatibility
Posted: Mon Apr 20, 2015 9:12 pm
by cazfi
patch #6003 adds traderoute direction information. Fallback mechanisms work from old stable version saves, but not from any recent development version saves. Loading of the saves without that information will fail.
In this case I think we should patch freeciv-web version of freeciv (for some reasonable time) so that in case of lacking traderoute direction, default one is used:
savegame3.c:
dir = secfile_lookup_str(loading->file, "%s.route_direction%d", citystr, i);
->
dir = secfile_lookup_str_default(loading->file, "Bidirectional", "%s.route_direction%d", citystr, i);
Re: Savegame compatibility
Posted: Tue Apr 21, 2015 4:30 pm
by AndreasR
Thanks for the advance notice of savegame compatibility issues. I agree that patching Freeciv-web to read older savegames would be nice. Thankfully players have been mostly forgiving of some necessary savegame breaks.
Without a doubt the highest priority issue for Freeciv-web now should be fixing bug
#23430.
Andreas
Re: Savegame compatibility
Posted: Fri Apr 24, 2015 3:45 pm
by cazfi
Check the savegame compatibility issues also when updating freeciv-web to a freeciv revision containing patch #6027, patch #6022
Re: Savegame compatibility
Posted: Thu May 14, 2015 12:04 am
by Gizmo
i have a problem saving in freeciv-web:
when i load an advanced savegame into fcw it restarts from the beginning, at 4000 BC (T0)
do i have to start pre-saved games differently? (after loading i clicked on 'start game')
Re: Savegame compatibility
Posted: Thu May 14, 2015 12:38 am
by Gizmo
Gizmo wrote:i have a problem saving in freeciv-web:
when i load an advanced savegame into fcw it restarts from the beginning, at 4000 BC (T0)
do i have to start pre-saved games differently? (after loading i clicked on 'start game')
strange.. in a new savegame it seems to work now.
maybe the reason was that i had a websocket error earlier in that savegame
(i use windows 7 x64 with firefox 37.0.2)
Re: Savegame compatibility
Posted: Mon Jul 27, 2015 7:49 am
by cazfi
cazfi wrote:also for freeciv-web developer discussion about the mitigation plans.
Was any work made for the savegame incompatibilities mentioned in this thread before the new version of freeciv-web went to production? There seems to be several bugreports related to a case where an older savegame has been loaded.
Re: Savegame compatibility
Posted: Mon Jul 27, 2015 5:03 pm
by AndreasR
cazfi wrote:cazfi wrote:also for freeciv-web developer discussion about the mitigation plans.
Was any work made for the savegame incompatibilities mentioned in this thread before the new version of freeciv-web went to production? There seems to be several bugreports related to a case where an older savegame has been loaded.
Unfortunately, no work was done for the savegame incompatibilities. Loading of old incompatible savegames has been disabled.
Most users seems to understand and accept the current way Freeciv-web version upgrades are handled: that the price of progress of new versions of Freeciv-web is that some times the savegames could get lost because a new version will not support the old format. The only bugreport of this that I'm aware of this this one reported by myself:
https://gna.org/bugs/?23707
Do you have any suggestions about how to improve this? More frequent releases of Freeciv and Freeciv-web simultaneously, where loading the previous savegame-format is supported?
Andreas
Re: Savegame compatibility
Posted: Thu Jul 30, 2015 1:05 am
by sveinung
Re: Savegame compatibility
Posted: Wed Aug 05, 2015 11:22 am
by sveinung
Patch #6154 creates a way to mark a code section as development version internal save game compatibility and select if it should be included or not.
Patch #6153 would have broken the loading of unit orders.
Patch #6171 adds development version internal save game compatibility for it.