Post by Awesomdary on Aug 21, 2014 2:16:24 GMT -5
Building that test I came to realize that the actual fix for the issue (5-6 releases ago) was to completely discard the entire political simulator data cache and rebuilt at the start of every turn.
This is computationally expensive, but also provides a 100% guarantee that aside from changes and variation determined by the game's rules, each turn will be fully compliant with the state in the saved game file.
So, how it works today
1. Load game => rebuild political simulator
2. Click next turn => rebuild political simulator
...
X. Click next turn => rebuild political simulator
The new test shows that this is probably not necessary and may be a waste of time, but it does completely and certainly fix any issues where turns and political changes are not correctly interacting, but those political changes are saved and then the simulator is purged from memory and then reloaded.
Based on all this testing, several in depth code reviews and new automated tests I cannot in any way come up with an explanation for this, outside of their being some deeper confusion about what constitutes the "wrong RP or Credit levels" in the original post.
I will continue to run the entire automated test suite several times each release, and if it ever flags an error of this type, I will quickly fix it and update this thread. If the bug exists it occurs in less than one in two million turns based on my search.
I hope this has been a helpful discussion. I suspect that the game is playing correctly, by the rules, and that for some reason or another you're expecting something different from the rules which is causing a suspicion of a defect in the software. I'd be happy to try to answer any rules questions you have, in this or another thread.
OK ... back to working on the next release! =)
I was wondering if you think that the 2 alliances I had at the time I remember clearest, could have caused the problems with the RP ammount?
And again Thanks so much for taking the time to see if you could find the bug, I will keep an eye on if the bug shows up again, but all things considered it isn't happening as much as it did when I first started playing which is a huge plus