#3418 closed defect (fixed)
AI Defense Manager - army is undefined
Reported by: | silure | Owned by: | mimo |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 19 |
Component: | AI | Keywords: | |
Cc: | Patch: |
Description (last modified by )
Hello,
Getting this error on some maps, this also causes a huge slowdown past some time (r17021).
ERROR: JavaScript error: simulation/ai/petra/defenseManager.js line 401 TypeError: army is undefined m.DefenseManager.prototype.checkEvents@simulation/ai/petra/defenseManager.js:401:1 m.DefenseManager.prototype.update@simulation/ai/petra/defenseManager.js:18:2 m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2039:2 m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:123:3 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:81:2
Change History (3)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Keywords: | army undefined removed |
Milestone: | Alpha 19 → Backlog |
Summary: | TypeError: army is undefined → AI Defense Manager - army is undefined |
comment:3 by , 9 years ago
Milestone: | Backlog → Alpha 19 |
---|
Thanks for the report. I have been able to reproduce it, but that's not always possible and, as said by elexis, don't forget to provide the commands.txt file when reporting such bugs.
Note:
See TracTickets
for help on using tickets.
The error occcurs in the second line:
That's probably easy to fix, only a missing check. But if you have a commands.txt file at hand where that error happens, that would help too.