Jump to content

Silier

WFG Retired
  • Posts

    1.265
  • Joined

  • Days Won

    9

Posts posted by Silier

  1. On 31/07/2021 at 8:14 AM, wowgetoffyourcellphone said:

    ERROR: JavaScript error: simulation/components/UnitAI.js line 258 cmpControllerAI is null Order.FormationWalk@simulation/components/UnitAI.js:258:8 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3824:26 enter@simulation/components/UnitAI.js:2196:15 FSM.prototype.SwitchToNextState@globalscripts/FSM.js:366:14 FSM.prototype.ProcessMessage@globalscripts/FSM.js:274:8 UnitAI.prototype.ProcessMessage@simulation/components/UnitAI.js:4277:15 Attack.prototype.StopAttacking@simulation/components/Attack.js:526:14 Resistance.prototype.OnOwnershipChanged@simulation/components/Resistance.js:181:62

    ERROR: Script message handler OnOwnershipChanged failed

    ERROR: Error in timer on entity 5333, IID103, function TimerHandler: TypeError: cmpControllerAI is null Order.FormationWalk@simulation/components/UnitAI.js:258:8 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3824:26 Timer@simulation/components/UnitAI.js:3282:10 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.TimerHandler@simulation/components/UnitAI.js:4159:15 Timer.prototype.OnUpdate@simulation/components/Timer.js:139:44

    ERROR: JavaScript error: simulation/components/UnitAI.js line 258 cmpControllerAI is null Order.FormationWalk@simulation/components/UnitAI.js:258:8 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3824:26 Order.Attack@simulation/components/UnitAI.js:427:16 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.PushOrderFront@simulation/components/UnitAI.js:3899:16 UnitAI.prototype.AttackVisibleEntity@simulation/components/UnitAI.js:4957:7 UnitAI.prototype.RespondToTargetedEntities@simulation/components/UnitAI.js:4994:15 UnitAI.prototype.AttackEntitiesByPreference@simulation/components/UnitAI_DE.js:89:14 LosAttackRangeUpdate@simulation/components/UnitAI.js:3278:11 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.OnRangeUpdate@simulation/components/UnitAI.js:4262:16

    ERROR: Script message handler OnRangeUpdate failed

    ERROR: JavaScript error: simulation/components/UnitAI.js line 258 cmpControllerAI is null Order.FormationWalk@simulation/components/UnitAI.js:258:8 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3824:26 Order.Attack@simulation/components/UnitAI.js:427:16 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.PushOrderFront@simulation/components/UnitAI.js:3899:16 UnitAI.prototype.AttackVisibleEntity@simulation/components/UnitAI.js:4957:7 UnitAI.prototype.RespondToTargetedEntities@simulation/components/UnitAI.js:4994:15 UnitAI.prototype.AttackEntitiesByPreference@simulation/components/UnitAI_DE.js:89:14 LosAttackRangeUpdate@simulation/components/UnitAI.js:3278:11 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.OnRangeUpdate@simulation/components/UnitAI.js:4262:16

    ERROR: Script message handler OnRangeUpdate failed

    ERROR: Error in timer on entity 5345, IID7, function Attack: TypeError: cmpControllerAI is null Order.FormationWalk@simulation/components/UnitAI.js:258:8 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3824:26 Order.Cheer@simulation/components/UnitAI.js:620:15 FSM.prototype.ProcessMessage@globalscripts/FSM.js:265:17 UnitAI.prototype.PushOrderFront@simulation/components/UnitAI.js:3899:16 UnitAI.prototype.Cheer@simulation/components/UnitAI.js:5810:7 UnitAI.prototype.CallPlayerOwnedEntitiesFunctionInRange@simulation/components/UnitAI.js:6433:23 enter@simulation/components/UnitAI.js:2216:12 FSM.prototype.SwitchToNextState@globalscripts/FSM.js:366:14 FSM.prototype.ProcessMessage@globalscripts/FSM.js:274:8 UnitAI.prototype.ProcessMessage@simulation/components/UnitAI.js:4277:15 Attack.prototype.StopAttacking@simulation/components/Attack.js:526:14 Attack.prototype.Attack@simulation/components/Attack.js:559:8 Timer.prototype.OnUpdate@simulation/components/Timer.js:139:44

    Fixed by https://code.wildfiregames.com/rP25845

    • Like 1
    • Thanks 1
  2. 6 hours ago, Yekaterina said:

    metadata.json 198 kB · 0 downloads commands.txt 1 MB · 1 download

    Here are the replays. 

    Another small problem: 0ad seems to interfere with KDE window effects. When 0ad is running, all window effects like wobbly windows, magic lamp and any animations would disappear. 

    Thank you,

    this one is really mysterious and I can’t see way how it can happen code wise. It looks like something else is changing variable when it should not. Most likely it will be not fixed anytime soon.
    Ticket: https://trac.wildfiregames.com/ticket/6265

  3. 30 minutes ago, wowgetoffyourcellphone said:

    Got this with both DE and EA. Create a formation of troops (hoplites in this instance). The default close order formation works. Now task these dudes to gather a treasure. They won't move (glitched out; perhaps a known problem?). Then task them to capture a building. Voila. That error is generated and they still do not move.

    Can anyone else reproduce? I can reproduce it very easily and consistently. 

    Treasure bug is trigger for error you see.

    It is even worse because controller went into individual state so formation will not respond at all.

    https://code.wildfiregames.com/rP24989

    • Thanks 1
  4. 9 hours ago, Yekaterina said:

    Screenshot_20210731_230345.thumb.png.34ac5c6fe35d59f08d3fc80204544d73.png

    This error occured in A24 when people are dancing with formations. Please check that it won't happen in A25. Thanks. 

    (Build 19th July 24937-release)

    This does not make sense why that would happen.

    offsets are just recomputed few lines above and if formation would not have members it would disband and not calling this.

    Do you happen to have replay?

  5. 3 hours ago, Stan` said:

    My understanding is that the formation controller should move but doesn't.

    It would not move because formation controller was not told to attack but unit's did it individually.

    Were they in defensive stance? In that case they would return to held position given by last player command while being still in formation they would run. However they could reform at place and then walk to held position as formation but current code about held position is rabbit hole more with formations.

    Even if they would not be in defensive stance to go back to held position automatically reforming after attack/action (when members are idle again) while half of formation may be elsewhere will trigger run too.

    Now reason why they run in formation, if they would stuck and need to catch up with formation and if they would not run they would never be able to.

    Looking into the code I can see potential line, causing them run when they act by themselves but I need to check unitai. Previously it checked if they are tasked to move as formation, now it checks if they are member of formation. However check is now more correct so we need to fix unitai and formations what is long topic or bring back old logic and rename the function, but reforming will still trigger run.

    We could disable running for formation members but they would never catchup so that's probably not good idea eighter.

×
×
  • Create New...