Jump to content

Saved game load failures - best way to debug?


jonbaer
 Share

Recommended Posts

No they were recent games w/ no updates, I just unziped the .0adsave to compare the engine_version info "0.0.21" (since I think you are suppose to get a GUI box asking for loading previous versions - correct?) ... 

I did do a quick save game and load and it worked fine, guessing since these were longer matches it was something else.  Going to place a few console.logs inside of loadGame() or at least something that tells me what element failed to deserialize.

Link to comment
Share on other sites

If I put some more logging in CComponentManager::DeserializeState it shows that the error occurs while handling Pathfinder component.

If I force PSERROR_Deserialize to return true + load anyway this is what I ended up with @ crash time (not sure if any of this helps) ...

TypeError: renamedEntities is undefined
  EntityGroupsContainer.prototype.checkRenamedEntities@gui/session/selection.js:503:1
  EntityGroupsContainer.prototype.update@gui/session/selection.js:485:2
  updateGroups@gui/session/session.js:925:2
  restoreSavedGameData@gui/session/session.js:625:2
  init@gui/session/session.js:254:4
  reallyStartGame@gui/loading/loading.js:104:2
ERROR: GUI page 'page_session.xml': Failed to call init() function
GAME STARTED, ALL INIT COMPLETE
ERROR: JavaScript error: gui/session/selection.js line 270
TypeError: renamedEntities is undefined
  EntitySelection.prototype.checkRenamedEntities@gui/session/selection.js:270:1
  EntitySelection.prototype.update@gui/session/selection.js:223:2
  updateGUIObjects@gui/session/session.js:742:2
  onTick@gui/session/session.js:648:3
  __eventhandler53 (tick)@sn tick:0:1
ERROR: The pathfinder grid hasn't been setup yet, aborting ComputePath

Link to comment
Share on other sites

Well after accidentally deleting the bad .0adsave file(s) + playing a few more long length saved games off latest SVN I wasn't able to reproduce so your assumption is probably correct.  I also just realized I may have (or did) play w/ pyrogenesis -writeableRoot in the same development location on my hard drive.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...