Opened 5 months ago

Closed 5 months ago

#6891 closed defect (fixed)

Units Demo is broken - something aura related

Reported by: marder Owned by: wowgetoffyourcellphone
Priority: Release Blocker Milestone: Alpha 27
Component: Simulation Keywords:
Cc: Patch: https://code.wildfiregames.com/D5210

Description (last modified by phosit)

Bug found by @phosit https://trac.wildfiregames.com/ticket/6890?replyto=4#comment:4 reproduce -> start units demo e.g. error:

structures/ishtar_gate...
ERROR: JavaScript error: simulation/components/Auras.js line 116
AuraTemplates.Get(...) is undefined
  Auras.prototype.CalculateAffectedPlayers@simulation/components/Auras.js:116:38
  Auras.prototype.Clean@simulation/components/Auras.js:244:8
  Auras.prototype.Init@simulation/components/Auras.js:18:7
  @maps/scenarios/units_demo.js:38:19
ERROR: JavaScript error: simulation/components/Auras.js line 116
AuraTemplates.Get(...) is undefined
  Auras.prototype.CalculateAffectedPlayers@simulation/components/Auras.js:116:38
  Auras.prototype.Clean@simulation/components/Auras.js:244:8
  Auras.prototype.OnOwnershipChanged@simulation/components/Auras.js:489:7
  @maps/scenarios/units_demo.js:86:16
ERROR: Script message handler OnOwnershipChanged failed
ERROR: JavaScript error: simulation/components/Auras.js line 171
AuraTemplates.Get(...) is undefined
  Auras.prototype.GetType@simulation/components/Auras.js:171:23
  Auras.prototype.IsRangeAura@simulation/components/Auras.js:196:14
  Auras.prototype.GetRangeOverlays@simulation/components/Auras.js:89:13
  RangeOverlayManager.prototype.UpdateRangeOverlays@simulation/components/RangeOverlayManager.js:29:51
  RangeOverlayManager.prototype.OnOwnershipChanged@simulation/components/RangeOverlayManager.js:67:8
  @maps/scenarios/units_demo.js:86:16
ERROR: Script message handler OnOwnershipChanged failed

Affects probably also other maps where the units are used.

problem seems to be https://code.wildfiregames.com/rP27919

Change History (5)

comment:1 by marder, 5 months ago

Component: UI & SimulationSimulation

comment:2 by marder, 5 months ago

Description: modified (diff)

comment:3 by phosit, 5 months ago

Description: modified (diff)

Add a more complete error log.

comment:4 by marder, 5 months ago

Patch: https://code.wildfiregames.com/D5210

comment:5 by wowgetoffyourcellphone, 5 months ago

Owner: set to wowgetoffyourcellphone
Resolution: fixed
Status: newclosed

In 27964:

[Fix] rP27919 -> restore loyalty_regen.json

Patch by: @marder
Accepted by: @wowgetoffyourcellphone

Differential Revision: https://code.wildfiregames.com/D5210
Fixes #6891

Note: See TracTickets for help on using tickets.