Jump to content

AI ERROR!


gameboy
 Share

Recommended Posts

@mimo Today, I tested the latest SVN20445, and when I save games in the game, the error message appears:

 

ERROR: JavaScript error: simulation/ai/petra/tradeManager.js line 649 TypeError: route[key] is undefined m.TradeManager.prototype.routeEntToId@simulation/ai/petra/tradeManager.js:649:3 m.TradeManager.prototype.Serialize@simulation/ai/petra/tradeManager.js:667:26 m.HQ.prototype.Serialize@simulation/ai/petra/headquarters.js:2524:19 m.PetraBot.prototype.Serialize@simulation/ai/petra/_petrabot.js:159:9 reallySaveGame@gui/savedgames/save.js:74:3 saveGame@gui/savedgames/save.js:57:3 __eventhandler429 (press)@__internal(4) press:0:1

ERROR: AI script Serialize call failed

ERROR: JavaScript error: simulation/ai/petra/tradeManager.js line 649 TypeError: route[key] is undefined m.TradeManager.prototype.routeEntToId@simulation/ai/petra/tradeManager.js:649:3 m.TradeManager.prototype.Serialize@simulation/ai/petra/tradeManager.js:667:26 m.HQ.prototype.Serialize@simulation/ai/petra/headquarters.js:2524:19 m.PetraBot.prototype.Serialize@simulation/ai/petra/_petrabot.js:159:9 reallySaveGame@gui/savedgames/save.js:74:3 saveGame@gui/savedgames/save.js:57:3 __eventhandler438 (press)@__internal(4) press:0:1

ERROR: AI script Serialize call failed

ERROR: JavaScript error: simulation/ai/petra/tradeManager.js line 649 TypeError: route[key] is undefined m.TradeManager.prototype.routeEntToId@simulation/ai/petra/tradeManager.js:649:3 m.TradeManager.prototype.Serialize@simulation/ai/petra/tradeManager.js:667:26 m.HQ.prototype.Serialize@simulation/ai/petra/headquarters.js:2524:19 m.PetraBot.prototype.Serialize@simulation/ai/petra/_petrabot.js:159:9 reallySaveGame@gui/savedgames/save.js:74:3 saveGame@gui/savedgames/save.js:57:3 __eventhandler443 (press)@__internal(4) press:0:1

ERROR: AI script Serialize call failed

Edited by gameboy
Link to comment
Share on other sites

I've stopped caring about it. But if you want to try, basic trade serialization of course works (otherwise we would have much more errors like that). I think it must be linked to the fact that the AI is run only every 8 turns, and if a market is destroyed between the last AI turn and the serialization, this could maybe do some errors. But as long as we have no answers on when and how the error occured, we are loosing our time.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Might be either a related or exactly the needed fix:

r20479 | mimo | 2017-11-19 15:56:22 +0100 (So, 19 Nov 2017) | 1 line

petra: a few tunings and add a protection in tradeRoute serialization in case a market was destroyed in the last few turns between AI running and serialization

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...