Opened 11 years ago
Closed 11 years ago
#1754 closed defect (fixed)
Aegis Bot JavaScript warning when slaughtering AI-controlled animals.
Reported by: | michael | Owned by: | wraitii |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 13 |
Component: | UI & Simulation | Keywords: | |
Cc: | wraitii | Patch: |
Description (last modified by )
Happens on Median Oasis 4 and maybe Deccan Plateau (both newer maps).
WARNING: JavaScript warning: simulation/ai/common-api-v2/entity.js line 279 reference to undefined property this._entity.hitpoints
WARNING: JavaScript warning: simulation/ai/common-api-v2/entity.js line 62 reference to undefined property this._template.Health
ERROR: JavaScript error: simulation/ai/common-api-v2/entity.js line 62 TypeError: this._template.Health is undefined ()@simulation/ai/common-api-v2/entity.js:62 ()@simulation/ai/common-api-v2/entity.js:280 ()@simulation/ai/common-api-v2/entity.js:282 ([object Object],"1923",[object Object])@simulation/ai/qbot-wc/economy.js:238 ([object Object])@simulation/ai/common-api-v2/entitycollection.js:79 ([object Object])@simulation/ai/qbot-wc/economy.js:238 ([object Object],[object Object],[object Array])@simulation/ai/qbot-wc/economy.js:754 ()@simulation/ai/qbot-wc/qbot.js:132 ([object Object])@simulation/ai/common-api-v2/base.js:147 @:0
Attachments (2)
Change History (15)
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 11 years ago
Cc: | added |
---|
by , 11 years ago
Attachment: | mainlog.html added |
---|
by , 11 years ago
Attachment: | interestinglog.html added |
---|
comment:3 by , 11 years ago
Description: | modified (diff) |
---|
comment:4 by , 11 years ago
comment:5 by , 11 years ago
Milestone: | Backlog → Alpha 12 |
---|---|
Priority: | Should Have → Release Blocker |
comment:6 by , 11 years ago
Milestone: | Alpha 12 → Alpha 13 |
---|---|
Priority: | Release Blocker → Must Have |
This is worked around now, which is good enough for A12.
comment:8 by , 11 years ago
comment:9 by , 11 years ago
Summary: | Aegis Bot JavaScript warning on Median Oasis 4. → Aegis Bot JavaScript warning when slaughtering AI-controlled animals. |
---|
comment:10 by , 11 years ago
Replying to wraitii:
FYI, this is fixed in the API v3.
Could you backport the (probably small) fix to v2?
comment:12 by , 11 years ago
Committing the API 3 is basically only a matter of reviewing. Quantumstate started, I dunno where he got.
Leper, I'll try tomorrow, it's indeed a simple fix.
Possible problem could be with killed sheep belonging to the player?