Opened 12 years ago

Closed 11 years ago

#1710 closed defect (fixed)

AegisBot AI error: this._template.Health is undefined

Reported by: dialectric Owned by:
Priority: Should Have Milestone: Alpha 13
Component: UI & Simulation Keywords:
Cc: wraitii Patch:

Description

Running the Sept 5 build, Third Macedonian War scenario, with AegisBot for the Macedonians, I killed a macedonian sheep and encountered a multiple warning and error message, which repeats continuously. Errors shown include:

Javascript error: simulation/ai/common-api-v2/entity.js line 62 TypeError: this._template.Health is undefined

It can be reproduced by (1)playing Third Macedonian War scenario (2)setting Macedonian, or both AIs, to AegisBot (3)taking a horse unit from your compound right across the map until you reach the macedonian sheep - they have a blue collar - and killing one with your horse unit.

The death of the sheep triggers the error.

Attachments (1)

AI_error.jpg (149.2 KB ) - added by dialectric 12 years ago.
error message

Download all attachments as: .zip

Change History (5)

by dialectric, 12 years ago

Attachment: AI_error.jpg added

error message

comment:1 by historic_bruno, 12 years ago

Cc: wraitii added
Component: Core engineUI & Simulation

comment:2 by wraitii, 12 years ago

Allright, it ought to be fixed in my working copy. I believe this was caused by the game trying to repair sheeps (it checks for all entities and sheeps don't have hitpoints when they're dead, so there was an "undefined" error.)

comment:3 by wraitii, 11 years ago

Fixed in the (not-committed yet) v3 AI API

Last edited 11 years ago by wraitii (previous) (diff)

comment:4 by wraitii, 11 years ago

Milestone: BacklogAlpha 13
Resolution: fixed
Status: newclosed

Duplicate of #1754, this is now fixed in API V2 too.

Note: See TracTickets for help on using tickets.