Opened 7 years ago

Closed 7 years ago

#4573 closed defect (fixed)

TypeError: this.phases[(i - 1)].requirements[Symbol.iterator] is not a function

Reported by: fabio Owned by: fatherbushido
Priority: Should Have Milestone: Alpha 22
Component: AI Keywords:
Cc: Patch:

Description

The attached replay triggers this error:

ERROR: JavaScript error: simulation/ai/common-api/gamestate.js line 176
TypeError: this.phases[(i - 1)].requirements[Symbol.iterator] is not a function
  m.GameState.prototype.getPhaseEntityRequirements@simulation/ai/common-api/gamestate.js:176:1
  m.HQ.prototype.buildMoreHouses@simulation/ai/petra/headquarters.js:1421:59
  m.HQ.prototype.update@simulation/ai/petra/headquarters.js:2236:4
  m.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:125:3
  m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:71:2

Using r19573.

Attachments (1)

commands.txt (266.9 KB ) - added by fabio 7 years ago.

Download all attachments as: .zip

Change History (4)

by fabio, 7 years ago

Attachment: commands.txt added

comment:1 by fatherbushido, 7 years ago

It should be my fault.

Version 0, edited 7 years ago by fatherbushido (next)

comment:3 by fatherbushido, 7 years ago

Owner: set to fatherbushido
Resolution: fixed
Status: newclosed

In 19578:

Make initialization of phase techs for AI more robust. Refs r19569. Fix #4573. Reviewed by mimo.
Differential Revision: https://code.wildfiregames.com/D491

Note: See TracTickets for help on using tickets.