Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2274 closed defect (fixed)

Aegis javascript error

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

Description

I've got a javascript error with aegis

ERROR: JavaScript error: simulation/ai/aegis/headquarters.js line 201 TypeError: builders.forEach is not a function

([object Object],[object Array],[object Object])@simulation/ai/aegis/headquarters.js:201 ([object Object],[object Object],[object Array])@simulation/ai/aegis/headquarters.js:1032 ([object Object])@simulation/ai/aegis/aegis.js:160 ([object Object],[object Object])@simulation/ai/common-api-v3/base.js:68

Looking at the code in headquarters.js, it seems the function bulkPickWorkers return false when it should return an empty entity collection.

Change History (3)

comment:1 by wraitii, 10 years ago

Owner: set to wraitii

Adding this to my bucket list of stuffs I'll do whenever I get around to doing stuff.

comment:2 by wraitii, 10 years ago

Resolution: fixed
Status: newclosed

In 14582:

Various improvements to AI's early game. Simplify some code and improve on other. Add a few different strategies (Rush/normal/boom, quite basic for now, refs #2344).
Aegis should mostly respect tech limitations so I'll ref #1964.
I'm going to go with #2364 is fixed, the AI should be more efficient in early-game, and late-game is a known problem.
Fixes #2274 and fixes #2379.
Refs #2372 as it should fix several of those warnings for AIs.
Fixes #2256 with a new bartering system, in parts taken from mimo's patch.

comment:3 by wraitii, 10 years ago

Milestone: BacklogAlpha 16
Note: See TracTickets for help on using tickets.