HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. "Read more...":https://support.plan.io/news/187
Feature #662023
closedStore remaining turn timeout in savegame
0%
Description
Store remaining turn timeout in savegame, and restore the remaining turn timeout when loading that savegame.
This has been requested by participants in the 250-player LongTurn game on Freeciv-web.
Files
Related issues
Updated by Marko Lindqvist almost 6 years ago
- Blocks Task #656466: S3_0 datafile format freeze (d3f) added
Updated by Marko Lindqvist almost 6 years ago
Better to store time since turn start than remaining time, for handling later changes to timeout setting correctly. This includes the case where there was no timeout set before saving, but it gets set after savegame has been loaded.
Updated by Marko Lindqvist almost 6 years ago
- Blocks Feature #660202: Update scenarios to S3_0 format added
Updated by Marko Lindqvist almost 6 years ago
- File PhaseSecondsSave.patch PhaseSecondsSave.patch added
- Status changed from New to In Progress
Saving part (to get savegame format updated already)
Updated by Marko Lindqvist almost 6 years ago
- File PhaseSecondsSave-2.patch PhaseSecondsSave-2.patch added
- Tracker changed from Bug to Feature
- Fixed crash when timer is not initialized (saving outside phase)
Updated by Marko Lindqvist almost 6 years ago
- File 0030-Use-phase_seconds-from-the-savegame.patch 0030-Use-phase_seconds-from-the-savegame.patch added
- Status changed from In Progress to Resolved
Untested patch for value loading + using part
Updated by Marko Lindqvist over 5 years ago
Marko Lindqvist wrote:
Untested patch for value loading + using part
Andreas, can you test if it works?
Updated by Andreas Røsdal over 5 years ago
I tried applying the patch to Freeciv-web, but the patching failed.
This was rejected:
if (game.server.phase_timer != NULL) {
secfile_insert_int(saving->file,
- timer_read_seconds(game.server.phase_timer),
+ timer_read_seconds(game.server.phase_timer)
+ + game.server.additional_phase_seconds,
"game.phase_seconds");
}
I'm currently on vacation, so I will not be able to do any actions on this. Any help with this would be much appreciated.
Updated by Marko Lindqvist over 5 years ago
Andreas Røsdal wrote:
I tried applying the patch to Freeciv-web, but the patching failed.
First patch/part is already in. Maybe you tried to reapply it?
Updated by Andreas Røsdal over 5 years ago
I suggest that you please commit this to git, and I will test it once it is there. It seems likely to work, and took some effort to test. Thanks for fixing this.
Updated by Marko Lindqvist over 5 years ago
So I guess this has to wait until I have time to setup some basic testing to know it doesn't break anything.
Updated by Andreas Røsdal over 5 years ago
Tested by first applying PhaseSecondsSave-2.patch, then 0030-Use-phase_seconds-from-the-savegame.
Now the patch applies without any problems.
Tested loading one of the LongTurn savegames, which is attached. The savegame now contains phase_seconds=153.
However, when loading the savegame, the timeout starts at exactly 23 hours still. I therefore don't think the patch correctly loads and sets the remaining timeout when loading the game.
Updated by Marko Lindqvist over 5 years ago
- File 0003-Use-phase_seconds-from-the-savegame.patch 0003-Use-phase_seconds-from-the-savegame.patch added
It was just the client display of remaining timeout that was still wrong.
Updated by Jacob Nevins over 5 years ago
- Status changed from Resolved to Closed