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...
Scenario start year ignored unless scenario contains saved players
The editor invites scenario authors to set the game year among other scenario properties. However, it is ignored on game load, unless the save file also contains players.
However, in practice it gets ignored unless players are also saved. game.info.is_new_game is set based on absence of game.save_players in the savegame; and if set, srv_ready() does "game.info.year = game.server.start_year", which comes from the ruleset.
Our supplied Iberian Peninsula scenario attempts to start at -2000, but it is ignored due to this behaviour. (Found when testing the iso Iberian scenario in task #767082.)
Not sure what to do. Allowing scenario authors to set start year probably requires an explicit override, because it comes from the ruleset, and at some point scenarios won't be ruleset-specific. Or we could just document the current behaviour in an editor tooltip.
#3 Updated by Marko Lindqvist over 2 years ago
I would even consider removing editor support for setting the start year completely. Even if the start year gets set by the scenario file, it's still ruleset that drives it forward. Together they can lead to weird results.
The given -2000 start year is 2000 years later than the start year assumed by the ruleset. Calendar then goes forward with the same speed (as its increment is based on turn, not year) as usually, meaning the 2000 year difference compared to regular game is true for all turns. Game probably ends at around year 4000 instead of 2000.
#5 Updated by Marko Lindqvist almost 2 years ago
- File 0022-Editor-Remove-possibility-to-set-game-start-year.patch 0022-Editor-Remove-possibility-to-set-game-start-year.patch added
- File 0016-Editor-Remove-possibility-to-set-game-start-year.patch 0016-Editor-Remove-possibility-to-set-game-start-year.patch added
- Category set to General
- Status changed from New to Resolved
- Sprint/Milestone set to 3.0.0
Attached patches remove game start year setting support from the editor.