Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3422 closed defect (fixed)

TypeError: a is undefined

Reported by: silure Owned by: mimo
Priority: Must Have Milestone: Alpha 19
Component: AI Keywords:
Cc: Patch:

Description

At turn 3971 (r17024):

ERROR: JavaScript error: simulation/ai/common-api/utils.js line 21
TypeError: a is undefined
  m.SquareVectorDistance@simulation/ai/common-api/utils.js:21:6
  m.NavalManager.prototype.moveApart/</<@simulation/ai/petra/navalManager.js:531:1
  m.EntityCollection.prototype.forEach@simulation/ai/common-api/entitycollection.js:136:3
  m.NavalManager.prototype.moveApart/<@simulation/ai/petra/navalManager.js:528:5
  m.EntityCollection.prototype.forEach@simulation/ai/common-api/entitycollection.js:136:3
  m.NavalManager.prototype.moveApart@simulation/ai/petra/navalManager.js:520:2
  m.NavalManager.prototype.update@simulation/ai/petra/navalManager.js:717:2
  m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2055:2
  m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:123:3
  m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:81:2

Attachments (1)

commands.txt (72.3 KB ) - added by silure 9 years ago.

Download all attachments as: .zip

Change History (3)

by silure, 9 years ago

Attachment: commands.txt added

comment:1 by mimo, 9 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 17027:

delay the ownerShip only after the entity is spawned, fix #3422

comment:2 by mimo, 9 years ago

Thanks for the report and the commands.txt file. r17027 fixes the bug itself, but there is still a problem with all these merchand ships trying to reach the dock for trading and blocking it. That's in the TODO list.

Note: See TracTickets for help on using tickets.