After much bug fixing and discussion, @DrkSephy and I have decided to disable the suspend/resume game functionality until we can find the cause of the problem and stabilize it.
Resuming a suspended game has caused numerous intermittent bugs that will work for some people and not work for others. This causes much confusion as to where the problem lies. Currently, we suspect the HTML5 Local Storage to be at the root of the problem because on some gameplays, the bug arises but on refresh, the bug cannot be replicated. Similarly, on some gameplays, the bug does not show but on refresh, the bug appears. If this was a problem with our code, we would have been able to replicate the issue each time.
Attempts at fixing the issues this has caused has been filed several times with minimal success:
166: Continuing a suspended game does not restore game back to a playable state
186: Resuming a suspended game causes menus involving (player?) units' items to break the game
187: Resuming a suspended game revives killed units (but will not partake in battle)
188: Resuming game has inconsistent HP
191: Dead enemies show up on status screen
192: Trying to continue from suspended game doesn't always work
193: Beating a level from a resumed game breaks next map
194: Going to new map on a resumed game still breaks
196: Resuming saved game loaded old map, but proper enemies
After much bug fixing and discussion, @DrkSephy and I have decided to disable the suspend/resume game functionality until we can find the cause of the problem and stabilize it.
Resuming a suspended game has caused numerous intermittent bugs that will work for some people and not work for others. This causes much confusion as to where the problem lies. Currently, we suspect the HTML5 Local Storage to be at the root of the problem because on some gameplays, the bug arises but on refresh, the bug cannot be replicated. Similarly, on some gameplays, the bug does not show but on refresh, the bug appears. If this was a problem with our code, we would have been able to replicate the issue each time.
Attempts at fixing the issues this has caused has been filed several times with minimal success:
166: Continuing a suspended game does not restore game back to a playable state
186: Resuming a suspended game causes menus involving (player?) units' items to break the game
187: Resuming a suspended game revives killed units (but will not partake in battle)
188: Resuming game has inconsistent HP
191: Dead enemies show up on status screen
192: Trying to continue from suspended game doesn't always work
193: Beating a level from a resumed game breaks next map
194: Going to new map on a resumed game still breaks
196: Resuming saved game loaded old map, but proper enemies