[Rseding91] Research progress >100% issue
Posted: Fri Sep 02, 2016 4:41 pm
I got this report.
viewtopic.php?f=51&t=31718&start=30#p201886
I don't know how it happened... I listed my code a couple posts later, all it does is store the progress reported by the LUA script, and restore it if you change back. So the game itself had to have research going past 100% in the first place for my mod to attempt to restore it. Someone theorises a mod changing the cost of a technology down while it is already in progress in a save file...
Anyway, Wouldn't it be a relatively simple fix to change your game code to use a >= check for this?
viewtopic.php?f=51&t=31718&start=30#p201886
I don't know how it happened... I listed my code a couple posts later, all it does is store the progress reported by the LUA script, and restore it if you change back. So the game itself had to have research going past 100% in the first place for my mod to attempt to restore it. Someone theorises a mod changing the cost of a technology down while it is already in progress in a save file...
Anyway, Wouldn't it be a relatively simple fix to change your game code to use a >= check for this?