Tuesday, January 15, 2013

Stuck

Made it 98% of the way until Async fell on its face. The problem is saving game state data with online games. Each game has a pretty complex amount of data it needs to play. Each player holds its own analytic data, ie: number of each particular tile they put down every turn. The game also holds a history of all turn moves, this history records what that status of the game board was and who owned what. The last big piece of information is the holding of each of the player's special tile states.

All of this information is held in the onlineGameManager class, originally I wanted to just try to save that entire class. However yesterday every time i tried to do so the save would fail. What I have come to understand is that its simply too complex to save.

I don't want to push all this data up the cloud every turn either, that just data loss waiting to happen. So Matt suggested this morning that I grab all of the data out and store it in an XML doc, which is way less intensive.

 

No comments:

Post a Comment