View Issue Details

IDProjectCategoryLast Update
0002234AI War 1 / ClassicBug - OtherJan 4, 2011 9:04 pm
ReporterSomeone.r.c.tm Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version4.059 
Fixed in Version4.060 
Summary0002234: Handicap of 0% does not save correctly
Description(Note: This bug was found and reproduced in the trial version not the full version)

Handicap settings of 0% do not seem to save properly. You can change the handicap setting of your player by changing you handicap setting in the Host New Campaign (or loading a game with a different handicap setting) and then loading a save game with 0% handicap.

Exact steps to reproduce:
1. Start a new campaign with a handicap of 0% and then save the game.
2. Quit back to the main menu and go into the Host New Campaign again.
3. Set yourself to have a handicap of -300% (or anything else besides 0%)
4. Press exit in the Host New Campaign menu so that you go back to the main menu.
5. Load the save game that you just made earlier with a handicap of 0%.
6. Note that your handicap is now set to -300% (or whatever you set it to in step 3) instead of the proper value of 0%.


This seems to work with any save game that has a handicap of 0%. It doesn't seem to work with save games that have a handicap of anything other than 0% though (i.e. a game with handicap of -10% will stay at -10% even if you do the exact same steps as above). If you quit the game your handicap settings in the Host New Campaign reset to 0% so this only happens if you change the handicap setting without quitting the game.

This may not sound that bad but you can easily screw up the handicap settings of any of you games by loading a game with a different handicap setting before you load your game with a 0% handicap setting. Loading a save game changes the handicap setting just like if you went into the Host New Campaign menu. So you can load a game with a handicap of -100% then load a game with handicap of 0% and the game with handicap of 0% will change to -100%. Worse, once you save the game with a handicap setting of something other than 0% it's stuck like that and so you can screw up your games and not notice it until it is too late.

Have not tested this bug in multiplayer games but I suspect this is the cause of bug 0001768 since the symptoms sound very similar. I suspect the reporter's friend was fooling around and played a game with a handicap of 300% before they loaded the game.
TagsNo tags attached.
Internal Weight

Relationships

related to 0001768 closedChris_McElligottPark Resource Harvesters produce lots of resources 
parent of 0002235 resolvedChris_McElligottPark Tutorials do not properly set handicap and/or does not warn 

Activities

TechSY730

Jan 3, 2011 7:44 am

reporter   ~0007349

And another reason why one should be VERY careful when reusing mutable objects (or however game state is stored in memory). What you think may be overridden upon a "reinitialization" may not always be, and thus you get "state leak" in weird circumstances.

Chris_McElligottPark

Jan 4, 2011 9:04 pm

administrator   ~0007490

Thanks!

* If a handicap was previously set on a player, then it wouldn't get reset properly when a new game or tutorial was started. Fixed.

Issue History

Date Modified Username Field Change
Jan 3, 2011 6:09 am Someone.r.c.tm New Issue
Jan 3, 2011 6:14 am Someone.r.c.tm Relationship added related to 0001768
Jan 3, 2011 7:44 am TechSY730 Note Added: 0007349
Jan 3, 2011 9:27 am Nil Einne Relationship added related to 0002235
Jan 3, 2011 6:25 pm TechSY730 Relationship deleted related to 0002235
Jan 3, 2011 6:25 pm TechSY730 Relationship added parent of 0002235
Jan 4, 2011 9:04 pm Chris_McElligottPark Note Added: 0007490
Jan 4, 2011 9:04 pm Chris_McElligottPark Status new => resolved
Jan 4, 2011 9:04 pm Chris_McElligottPark Fixed in Version => 4.060
Jan 4, 2011 9:04 pm Chris_McElligottPark Resolution open => fixed
Jan 4, 2011 9:04 pm Chris_McElligottPark Assigned To => Chris_McElligottPark