Opened 10 years ago

Closed 10 years ago

#2605 closed defect (fixed)

UnitAI error when packing unit

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

Description (last modified by leper)

with latest svn, I've got an error in UnitAI

ERROR: FinishOrder called for entity 3680 (units/cart_mechanical_siege_ballista_unpacked) when order queue is empty
  UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3455
  UnitAI.prototype.UnitFsmSpec.INDIVIDUAL.PACKING.PackFinished@simulation/components/UnitAI.js:2923
  FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274
  UnitAI.prototype.OnPackFinished@simulation/components/UnitAI.js:3853
  Pack.prototype.PackProgress@simulation/components/Pack.js:124
  Timer.prototype.OnUpdate@simulation/components/Timer.js:93</p>
ERROR: Error in timer on entity 1692, IID 80, function TimerHandler: TypeError: this.orderQueue.unshift is not a function
  UnitAI.prototype.PushOrderFront@simulation/components/UnitAI.js:3554
  UnitAI.prototype.LeaveFoundation@simulation/components/UnitAI.js:4915
  Foundation.prototype.Build@simulation/components/Foundation.js:179
  Builder.prototype.PerformBuilding@simulation/components/Builder.js:65
  UnitAI.prototype.UnitFsmSpec.INDIVIDUAL.REPAIR.REPAIRING.Timer@simulation/components/UnitAI.js:2639
  FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274
  UnitAI.prototype.TimerHandler@simulation/components/UnitAI.js:3757
  Timer.prototype.OnUpdate@simulation/components/Timer.js:93

I guess it is connected to the changes in r15237

Change History (4)

comment:1 by leper, 10 years ago

Cc: sanderd17 added
Description: modified (diff)
Milestone: BacklogAlpha 17

Got a commands.txt for that?

comment:2 by sanderd17, 10 years ago

Unlikely to be related to r15237. If there are errors in that commit, it should only cause undefined stuff.

comment:3 by mimo, 10 years ago

This problem is reproducible:

  • place a foundation somewhere (without starting its construction)
  • put a ballista on the foundation and unpack it
  • make a builder to start the construction
  • ask the ballista to move away

comment:4 by mimo, 10 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 15276:

fix #2605

Note: See TracTickets for help on using tickets.