Opened 3 years ago
Last modified 2 years ago
#6179 new defect
[PetraAI] ERROR: numberOfGarrisonedSlots tries to access entities not present in entities map
Reported by: | Langbart | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | AI | Keywords: | |
Cc: | Patch: |
Description
While playing the latest SVN version [25461], I got some errors:
ERROR: JavaScript error: simulation/ai/common-api/entity.js line 747 this._ai._entities.get(...) is undefined garrisonedSlots@simulation/ai/common-api/entity.js:747:34 PETRA.GarrisonManager.prototype.numberOfGarrisonedSlots@simulation/ai/petra/garrisonManager.js:214:17 PETRA.HQ.prototype.trainEmergencyUnits@simulation/ai/petra/headquarters.js:2114:43 PETRA.DefenseManager.prototype.assignDefenders@simulation/ai/petra/defenseManager.js:510:18 PETRA.DefenseManager.prototype.update@simulation/ai/petra/defenseManager.js:63:7 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2752:22 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:11 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:7
I will attach the replay (replay_ERRORS_PETRA.zip) and interestinglog.html files. The incident occurs at about the 27-minute mark.
Attachments (2)
Change History (7)
by , 3 years ago
Attachment: | replay_ERRORS_PETRA.zip added |
---|
by , 3 years ago
Attachment: | interestinglog.html added |
---|
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Summary: | ERRORS: PETRA → [PetraAI] ERROR: numberOfGarrisonedSlots tries to access entities not present in entities map |
---|
comment:3 by , 3 years ago
Milestone: | Alpha 25 → Alpha 26 |
---|
comment:4 by , 3 years ago
Could it be that the unit gets promoted inside the building and such is a new unit? I also get warnings by autogarrisoning units using the salad bowl cheat.
comment:5 by , 2 years ago
Milestone: | Alpha 26 → Backlog |
---|
Note:
See TracTickets
for help on using tickets.
The symptom is easy to fix, but the cause less. It seems that there is an entity garrisoned that is not part of the AI, very strange.