DangerousI Posted August 10, 2018 Report Share Posted August 10, 2018 (edited) Within your ai (petra) javascript code you have on line 140 a typeError, saying Quote ERROR: JavaScript error: simulation/ai/petra/_petrabot.js line 140 TypeError: savedEvents[key][ i] is undefined I'm using the latest 0 A.D. version (Ken Wood, bless him) for Linux [Mint].. See attachment for more info. For some reason the key and i variable combination results in a non-existing object from this 2d array. Kind regards, Melroy van den Berg Edited August 10, 2018 by DangerousI Quote Link to comment Share on other sites More sharing options...
elexis Posted August 11, 2018 Report Share Posted August 11, 2018 Can you tell us when that error occurred? Since it's in the "Serialize" function, it might be at the time when you created a savegame? Did you use any mods or try to load an old savegame? 1 Quote Link to comment Share on other sites More sharing options...
DangerousI Posted August 11, 2018 Author Report Share Posted August 11, 2018 No mods (only 0ad itself as 'mod'). Yes, sorry I forgot to say indeed when this happens. This error actually happens during multiplayer LAN game, directly after the moment ceasefire count-down reached zero (the moment the AI is allowed to attack me/us). So its NOT during a save game. 1 Quote Link to comment Share on other sites More sharing options...
elexis Posted August 11, 2018 Report Share Posted August 11, 2018 and with that information I could reproduce the error, thanks! I've reported it here in the hope that our AI developers return: #5282. Should also mention that rejoining with AI players is currently not supported. Quote Link to comment Share on other sites More sharing options...
gameboy Posted August 12, 2018 Report Share Posted August 12, 2018 @mimo Quote Link to comment Share on other sites More sharing options...
gameboy Posted September 8, 2018 Report Share Posted September 8, 2018 @mimo Where is mimo, Where are you? We need your help. Thank you. Quote Link to comment Share on other sites More sharing options...
gameboy Posted April 8, 2020 Report Share Posted April 8, 2020 Please fixed it. Quote Link to comment Share on other sites More sharing options...
Silier Posted April 8, 2020 Report Share Posted April 8, 2020 https://code.wildfiregames.com/D2695 1 Quote Link to comment Share on other sites More sharing options...
gameboy Posted April 9, 2020 Report Share Posted April 9, 2020 @Angen Well, I'll test the patch and hope it works out Quote Link to comment Share on other sites More sharing options...
gameboy Posted April 12, 2020 Report Share Posted April 12, 2020 @Angen When I load the game into the game screen, the error message appears, using this patch. WARNING: JavaScript warning: simulation/ai/petra/diplomacyManager.js line 181 reference to undefined property events.CeasefireEnded ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 1 Quote Link to comment Share on other sites More sharing options...
Silier Posted April 12, 2020 Report Share Posted April 12, 2020 thnx, I've fixed that Quote Link to comment Share on other sites More sharing options...
gameboy Posted April 12, 2020 Report Share Posted April 12, 2020 @Angen My friend, I tested your new patch and still found that the error occurred: WARNING: JavaScript warning: simulation/ai/petra/diplomacyManager.js line 181 reference to undefined property events.CeasefireEnded ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 ERROR: JavaScript error: simulation/ai/petra/diplomacyManager.js line 181 TypeError: events.CeasefireEnded is undefined PETRA.DiplomacyManager.prototype.checkEvents@simulation/ai/petra/diplomacyManager.js:181:1 PETRA.DiplomacyManager.prototype.update@simulation/ai/petra/diplomacyManager.js:524:2 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2774:2 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:2 Quote Link to comment Share on other sites More sharing options...
Stan` Posted April 12, 2020 Report Share Posted April 12, 2020 @gameboy did you forget to revert? Quote Link to comment Share on other sites More sharing options...
gameboy Posted April 12, 2020 Report Share Posted April 12, 2020 @Stan`Thank you very much, friend. I restored them and used the new patch again. @Angen The file binaries / data / modules / public / simulation / components / aiinterface.js does not appear in the new patch??? Quote Link to comment Share on other sites More sharing options...
Silier Posted April 12, 2020 Report Share Posted April 12, 2020 No, it does not. I removed changes done in aiinterface.js as they turned out to be not correct. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.