Opened 12 years ago
Closed 12 years ago
#1620 closed defect (fixed)
qBot-xp tries to get position for empty unitCollection
Reported by: | Deiz | Owned by: | wraitii |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 11 |
Component: | UI & Simulation | Keywords: | |
Cc: | wraitii | Patch: |
Description
As I'm fairly unfamiliar with the AI code I can't provide much insight. All I know is that this.position is defined at attack_plan.js:516:
this.position = this.unitCollection.getCentrePosition();
It seems logical that for this.position to be undefined, the unitCollection must be empty. As with most AI errors, it tends to cause severe slowdowns.
ERROR: JavaScript error: simulation/ai/common-api-v2/utils.js line 10 TypeError: a is undefined SquareVectorDistance((void 0),[object Array])@simulation/ai/common-api-v2/utils.js:10 ([object Object],[object Object],[object Array])@simulation/ai/qbot-wc/attack_plan.js:626 ([object Object],[object Object],[object Array])@simulation/ai/qbot-wc/military.js:590 ()@simulation/ai/qbot-wc/qbot.js:132 ([object Object])@simulation/ai/common-api-v2/base.js:147 @:0
Note:
See TracTickets
for help on using tickets.
I'll give a look at that, should be an easy fix.