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

That can't be true as the error message tells it happens during serialization (so when saving a game). So can you describe exactly what you did. Or possibly you loaded the savedgame and saved it again immediately? If yes, can you upload here the saved game.

  • Like 1
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

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...