|
Post by Awesomdary on Aug 19, 2014 18:50:39 GMT -5
When I load up a game I seem to quite often get the wrong RP ammount and credit income for several turns, usually untill I get a change in any of my Politics, other things could cause it to revert to normal aswell I think, but I've tried testing a bit without luck, the only thing that I seem to keep getting a correct reversal is the change in politics... I haven't double checked but it could also change when I research something, since I usually get it back to normal within 3-6 turns. Hope this helps you find the cause
HTC One Plus, Android-version 4.2.2
|
|
|
Post by Cory Trese on Aug 19, 2014 18:53:03 GMT -5
Please make sure you're running the latest release. This is one of the things the auto-test suite checks, and we do run it on the HTC One.
|
|
|
Post by Awesomdary on Aug 19, 2014 18:57:18 GMT -5
Please make sure you're running the latest release. This is one of the things the auto-test suite checks, and we do run it on the HTC One. I am 1.4.5 been getting the issue for a while now since I've had a Spy Battle for the last ~100 turns or so (I think) and before that I had 1 or 2 Alliances
|
|
|
Post by Cory Trese on Aug 19, 2014 18:59:01 GMT -5
Please make sure you're running the latest release. This is one of the things the auto-test suite checks, and we do run it on the HTC One. I am 1.4.5 been getting the issue for a while now since I've had a Spy Battle for the last ~100 turns or so (I think) and before that I had 1 or 2 Alliances There were some edge case bugs like 5 or six releases ago, but those have been fixed and the auto-test suite has been updated to open-close-turn-open-close-turn-open-close-turn and do sub-data tests on each open-close cycle. I've run it for about a million turns at a time and it reports a 0% error rate, which was closer to 10% previously
|
|
|
Post by Awesomdary on Aug 19, 2014 19:03:16 GMT -5
I am 1.4.5 been getting the issue for a while now since I've had a Spy Battle for the last ~100 turns or so (I think) and before that I had 1 or 2 Alliances There were some edge case bugs like 5 or six releases ago, but those have been fixed and the auto-test suite has been updated to open-close-turn-open-close-turn-open-close-turn and do sub-data tests on each open-close cycle. I've run it for about a million turns at a time and it reports a 0% error rate, which was closer to 10% previously Hmm do you think it could be caused by longer term shut down of the app by removing the game from memmory? because It usually happens when I haven't played the game for a while, and I know that it apps tends to seem to stay running in the ram for a while after closing the app.
|
|
|
Post by Cory Trese on Aug 19, 2014 19:04:11 GMT -5
No, I don't think that has any impact. I'll spend some time testing on the HTC One and guessing at random stuff that might cause your device to malfunction in memory applications or something.
Do you have a custom rom or Developer Options turned on? Mysterious issues with other applications?
|
|
|
Post by Cory Trese on Aug 19, 2014 19:06:30 GMT -5
It would help if you were more specific about this:
"get the wrong RP ammount and credit income"
and this
"a change in any of my Politics"
and this:
"getting a correct reversal"
|
|
|
Post by Awesomdary on Aug 19, 2014 19:11:35 GMT -5
No, I don't think that has any impact. I'll spend some time testing on the HTC One and guessing at random stuff that might cause your device to malfunction in memory applications or something. Do you have a custom rom or Developer Options turned on? Mysterious issues with other applications? Wish I did, since that would be a likely cause, but no :/ everything else seems to be running as it should aswell
|
|
|
Post by Awesomdary on Aug 19, 2014 19:14:16 GMT -5
It would help if you were more specific about this: "get the wrong RP ammount and credit income" and this "a change in any of my Politics" and this: "getting a correct reversal" I am missing the bonuses associated with alliance or spy battle (increase in RP) I can log out a game where I am getting 310 RP and log in again and start getting only 272 RP per turn for example I then either lose a Trade Alliance or gain Trade Route or Trade Alliance and it starts giving me the correct ammount from the Alliance/Spy Battle.
|
|
|
Post by Cory Trese on Aug 19, 2014 19:42:15 GMT -5
So you are expecting 310 RP, but the HUD (bottom of the screen listing summary) is only showing 272?
Or you are seeing 310 and only getting 272 added to your Research projects?
Since you used 310 as an example, I'm assuming your referring to the HUD, not a single Colony?
I'll spend a few hours looking, but we haven't gotten any e-mail reports of this and I am getting a ton of e-mail reports about various questions and issues daily.
|
|
|
Post by Cory Trese on Aug 19, 2014 23:09:57 GMT -5
Still puzzled over this one. I've triple checked the code, and the system that loads political data for new games is the same one that is used when a turn rolls over. Cannot figure out how it would be different on a loaded game vs. a running game in the most recent update.
Created some new auto-test scripts to try to recreate but so far, no luck.
|
|
|
Post by Awesomdary on Aug 20, 2014 9:47:08 GMT -5
Still puzzled over this one. I've triple checked the code, and the system that loads political data for new games is the same one that is used when a turn rolls over. Cannot figure out how it would be different on a loaded game vs. a running game in the most recent update. Created some new auto-test scripts to try to recreate but so far, no luck. Hmm I will try and collect more data next time it happens, but basically before I log out I get the 310 RP as also stated in the HUD and in the Empire summary every Turn. After I log off and log on again later It says 310 in the HUD but after I run the first turn it comes up 272 (Numbers may not be the exate ones but as best as I could remember). Sorry I wasn't clearer about how it looked and worked, but, I will check everything the next time i happens, as best I can. Too bad I can't copy the Savegame or anything like that...
|
|
|
Post by Cory Trese on Aug 20, 2014 16:32:51 GMT -5
Still puzzled over this one. I've triple checked the code, and the system that loads political data for new games is the same one that is used when a turn rolls over. Cannot figure out how it would be different on a loaded game vs. a running game in the most recent update. Created some new auto-test scripts to try to recreate but so far, no luck. Hmm I will try and collect more data next time it happens, but basically before I log out I get the 310 RP as also stated in the HUD and in the Empire summary every Turn. After I log off and log on again later It says 310 in the HUD but after I run the first turn it comes up 272 (Numbers may not be the exate ones but as best as I could remember). Sorry I wasn't clearer about how it looked and worked, but, I will check everything the next time i happens, as best I can. Too bad I can't copy the Savegame or anything like that... You can copy saved games, it all depends on your level of access to your device. One thing that might be confusing you here, and throwing off your observations, is the fact that only a single conflict -- not multiple conflicts -- can have an impact on a single Colony for a turn. If Cadar is engaged in multiple conflicts, the weight of the conflict will determine which one effect which colony. Even after about 6 hours of testing for this bug, I still have not seen a single instance where saving, closing, loading and running a turn (or any of about 100 different combinations) actually had an unexpected (for me) adjustment to the RP/CP/Credits/EP generated in the turn log. I'll keep looking, but at this point I'm really struggling to even come up with any more untested cases to try.
|
|
|
Post by Awesomdary on Aug 20, 2014 17:33:30 GMT -5
I have been trying to recreate the bug as well, but since I can't add or remove the alliances and spy battles it's a bit harder for me, I am at turn 500 something now, and I can't recreate the bug, it happened a lot in the turns between 100-350 ish or so. I will keep trying though Thanks a lot for trying so hard to find the bug, I wish I could do more to help recreate it, I don't have it rooted or are running any developer tools so I can't get to where the games are stored :/ Oh yeah and I usually only get impacted by one conflict like now I have 2 trade alliances and one spy battle?
|
|
|
Post by Cory Trese on Aug 20, 2014 23:51:30 GMT -5
Okay, tested for a few more hours on this one and even wrote a new, very invasive test that looks at the saved game file using a secondary API to check every game cycle for differences. Now the prize winner for the slowest running test in the suite 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! =)
|
|