#3232 closed defect (fixed)
Petra AI transportPlan - self.boardingPos[shipId] is undefined
Reported by: | elexis | Owned by: | mimo |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 19 |
Component: | AI | Keywords: | |
Cc: | Patch: |
Description
This error happened on r16639.
First error appeared on turn 880:
ERROR: JavaScript error: simulation/ai/petra/transportPlan.js line 294 TypeError: self.boardingPos[shipId] is undefined m.TransportPlan.prototype.onBoarding/<@simulation/ai/petra/transportPlan.js:294:6 m.EntityCollection.prototype.forEach@simulation/ai/common-api/entitycollection.js:142:3 m.TransportPlan.prototype.onBoarding@simulation/ai/petra/transportPlan.js:251:2 m.TransportPlan.prototype.update@simulation/ai/petra/transportPlan.js:239:3 m.NavalManager.prototype.update@simulation/ai/petra/navalManager.js:717:7 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:1841:2 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:123:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:83:2
The second error appeared on every turn thereafter:
ERROR: JavaScript error: simulation/ai/common-api/utils.js line 32 TypeError: a is undefined m.SquareVectorDistance@simulation/ai/common-api/utils.js:32:6 m.TransportPlan.prototype.onBoarding/<@simulation/ai/petra/transportPlan.js:280:9 m.EntityCollection.prototype.forEach@simulation/ai/common-api/entitycollection.js:142:3 m.TransportPlan.prototype.onBoarding@simulation/ai/petra/transportPlan.js:251:2 m.TransportPlan.prototype.update@simulation/ai/petra/transportPlan.js:239:3 m.NavalManager.prototype.update@simulation/ai/petra/navalManager.js:717:7 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:1841:2 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:123:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:83:2
Error reproducible with the attached commands.txt.
Attachments (1)
Change History (4)
by , 9 years ago
Attachment: | commands.txt and replaylog.7z added |
---|
comment:1 by , 9 years ago
comment:3 by , 9 years ago
Milestone: | Backlog → Alpha 19 |
---|
Note:
See TracTickets
for help on using tickets.
It was a networked game on cycladic islands. The error appeared after minute 7 (i.e. after the ceasefire ended) and it was a tiny map (map size 128). A ship could barely pass the islands, if at all.