Fujisan
Warlord
- Joined
- Sep 9, 2003
- Messages
- 130
Bug description
Promotion and policy saving game options invert their values every time the game loaded. To make it clear see the next flow chart.
Workaround
When, after loading your saved game, you see the game doesn't allow ending turn without promoting all your unpromoted units, just save your current game and load again.
Possible fix
Looking through the code I found the following lines in "core\CiVUP - Events.lua" where these options are set.
As one can see these options are reversed every time the game loaded/started.
If there an event that fired only once, when the game is started, then binding this script with the game start event may resolve the problem. However I'm quite new in civ 5 scripting and couldn't find how to implement this.
PS:
I wonder why this bug wasn't reported before.
Promotion and policy saving game options invert their values every time the game loaded. To make it clear see the next flow chart.
Code:
Game start
. . . . .
Promotion and policy saving is ON (by default)
. . . . .
Save game
Load game
. . . . .
Promotion and policy saving is OFF
. . . . .
Save game
Load game
. . . . .
Promotion and policy saving is ON
. . . . .
and so on.
Workaround
When, after loading your saved game, you see the game doesn't allow ending turn without promoting all your unpromoted units, just save your current game and load again.
Possible fix
Looking through the code I found the following lines in "core\CiVUP - Events.lua" where these options are set.
Code:
for optionInfo in GameInfo.GameOptions() do
if optionInfo.Reverse then
Game.SetOption(optionInfo.ID, not Game.IsOption(optionInfo.ID))
end
end
As one can see these options are reversed every time the game loaded/started.
If there an event that fired only once, when the game is started, then binding this script with the game start event may resolve the problem. However I'm quite new in civ 5 scripting and couldn't find how to implement this.
PS:
I wonder why this bug wasn't reported before.