gameboy Posted November 14, 2017 Share Posted November 14, 2017 (edited) @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 November 14, 2017 by gameboy Link to comment Share on other sites More sharing options...
gameboy Posted November 14, 2017 Author Share Posted November 14, 2017 This is the command.txt file. This error occurred when I exited the game after saving the game and then loaded it again. commands.txt 1 Link to comment Share on other sites More sharing options...
mimo Posted November 14, 2017 Share Posted November 14, 2017 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. 1 Link to comment Share on other sites More sharing options...
gameboy Posted November 14, 2017 Author Share Posted November 14, 2017 I can upload my saved game, please help me. Link to comment Share on other sites More sharing options...
elexis Posted November 15, 2017 Share Posted November 15, 2017 So upload it. 1 Link to comment Share on other sites More sharing options...
gameboy Posted November 15, 2017 Author Share Posted November 15, 2017 @mimo, @elexis Three game archive files, please test them, thank you. Three_game_archive_files_.zip Link to comment Share on other sites More sharing options...
mimo Posted November 15, 2017 Share Posted November 15, 2017 Any problem understanding "describe exactly what you did." in order to reproduce the error? and why put 3 games in a zip file when we need only the one with the problem. 1 Link to comment Share on other sites More sharing options...
gameboy Posted November 15, 2017 Author Share Posted November 15, 2017 @mimo Because I am afraid that I cannot reproduce the error, so I have saved three, you can choose either one of them can reproduce this mistake, thank you, my old friend, please help me. Link to comment Share on other sites More sharing options...
gameboy Posted November 15, 2017 Author Share Posted November 15, 2017 OK,my friend, one file. savegame-0014.0adsave Link to comment Share on other sites More sharing options...
elexis Posted November 15, 2017 Share Posted November 15, 2017 Sure you didn't try to load an old svn savegame and then clicked on save? Link to comment Share on other sites More sharing options...
gameboy Posted November 15, 2017 Author Share Posted November 15, 2017 NO, this is the latest save on SVN. Link to comment Share on other sites More sharing options...
elexis Posted November 15, 2017 Share Posted November 15, 2017 So this happens if the AI starts to trade and then saving the game? Always or only sometimes? Link to comment Share on other sites More sharing options...
mimo Posted November 15, 2017 Share Posted November 15, 2017 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. 1 Link to comment Share on other sites More sharing options...
gameboy Posted November 15, 2017 Author Share Posted November 15, 2017 @mimo Can you fix this mistake, my friend? Please take care of this problem. thank you Link to comment Share on other sites More sharing options...
Stan` Posted November 15, 2017 Share Posted November 15, 2017 Can you be more specific as to when and why this error occurs ? Can you give us a simple example on how to reproduce it ? Link to comment Share on other sites More sharing options...
gameboy Posted November 15, 2017 Author Share Posted November 15, 2017 (edited) @stanislas69 My friend, you can test I upload the archive file, when the end of a battle, I save the game, and then when I load the game again, this error message appears in the game. thank you Edited November 15, 2017 by gameboy Link to comment Share on other sites More sharing options...
elexis Posted November 24, 2017 Share Posted November 24, 2017 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 1 Link to comment Share on other sites More sharing options...
gameboy Posted November 25, 2017 Author Share Posted November 25, 2017 @mimo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now