Page MenuHomeFeedback Tracker

Switching behaviour and unitPos on a unit causes endless unitPos switching
Closed, ResolvedPublic

Description

If I switch behaviour of AI unit's group to COMBAT (and either manually or automatically unitPos is changed to MIDDLE) and then I setBehaviour to SAFE, and unitPos to UP at the same time, unit gets to an endless swithcing loop rendering it unusable.
Seemingly BOTH behaviour AND unitPos changes are needed. Issuing DoStop doesn't prevent the bug though.

My steps below reproduce the bug always although I don't know which step really triggers it.

EDIT: After some tests, I could narrow the issue down:

   setBehaviour "SAFE" or setBehaviour "CARELESS"
      together with
   setUnitPos "UP" on a MIDDLE unit

causes this issue. Not Aware, not Combat, nor DOWN in Safe/careless causes the bug.

Details

Legacy ID
815953423
Severity
None
Resolution
Open
Reproducibility
Always
Category
AI Issues
Steps To Reproduce
  1. create a player unit
  2. create a DIFFERENT group unit. NAME it "myUnit"
  3. give him a move waypoint, so that it moves when the commands are given to him. (EDIT: I could reproduce it on a stationary unit as well)
  4. run the following code on him:
  5. spawn { myUnit setUnitPos "MIDDLE"; sleep 5; (group myUnit) setBehaviour "SAFE"; myUnit setUnitPos "UP";

};

Event Timeline

zapat edited Steps To Reproduce. (Show Details)May 13 2013, 12:22 PM
zapat edited Additional Information. (Show Details)
zapat set Category to AI Issues.
zapat set Reproducibility to Always.
zapat set Severity to None.
zapat set Resolution to Open.
zapat set Legacy ID to 815953423.May 7 2016, 2:05 PM
MadDogX added a subscriber: MadDogX.May 7 2016, 2:05 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.