Opened 8 years ago

Closed 4 years ago

#4153 closed defect (duplicate)

Units in formation beome uncontrollable or stuck

Reported by: elexis Owned by: wraitii
Priority: Must Have Milestone:
Component: Simulation Keywords: beta
Cc: Patch:

Description (last modified by elexis)

Often when switching betwen formations, units become uncontrollable.

https://trac.wildfiregames.com/raw-attachment/ticket/4153/formation_slapstick.gif

This is one of the worst and ugliest bugs in the game. If we don't fix it for this release, then the ticket should be pushed to the next milestone without changing the priority. This should not appear in anything calling itself beta either.

Attachments (4)

commands_a20_kaen_min24.40.txt (323.6 KB ) - added by elexis 8 years ago.
Minute 24:40 more than 100 units of the blue player became uncontrollable. Sample from https://wildfiregames.com/forum/index.php?/topic/21001-units-stuck-running-in-place/
formation_slapstick.gif (1.8 MB ) - added by elexis 8 years ago.
commands.txt (617.6 KB ) - added by elexis 7 years ago.
About minute 22 of this A21 replay, the units of the yellow player (Vercingetorix) are showing this bug.
a21_min22_yoreei_cant_disband.7z (487.6 KB ) - added by elexis 7 years ago.
At minute 22, the yellow player yoreii experiences a formation bug where units don't disband.

Change History (21)

by elexis, 8 years ago

Minute 24:40 more than 100 units of the blue player became uncontrollable. Sample from https://wildfiregames.com/forum/index.php?/topic/21001-units-stuck-running-in-place/

by elexis, 8 years ago

Attachment: formation_slapstick.gif added

comment:1 by elexis, 8 years ago

Description: modified (diff)

comment:2 by Itms, 8 years ago

We could disable formations as we did for one alpha (I don't remember which one) but spending time fixing that while we plan to rework formations is probably a waste.

What do you think? Does that happen frequently? Would players be infuriated to see formations temporarily disabled?

comment:3 by elexis, 8 years ago

Priority: Release BlockerMust Have

It should block the release in theory, but not this one. Since formations are disabled by default, the bug can be avoided.

comment:4 by elexis, 8 years ago

Milestone: Alpha 21Alpha 22

comment:5 by elexis, 7 years ago

Keywords: beta added

by elexis, 7 years ago

Attachment: commands.txt added

About minute 22 of this A21 replay, the units of the yellow player (Vercingetorix) are showing this bug.

comment:6 by echotangoecho, 7 years ago

In my opinion, the formations should be disabled until this bug is fixed, as this bug makes formations pretty much unusable at the moment and not many players do use formations as far as I'm aware, the players that do use them are mostly unaware that this bug exists, and it can be very irritating for them when this bug does occur. It shouldn't be too difficult to disable them (see r17028, don't know where they where disabled).

comment:7 by fatherbushido, 7 years ago

If we hide that, we will code even more things without taking care of formations and it will become even worse.

comment:8 by wraitii, 7 years ago

I would be in favor of entirely removing the formation code we have now. It's imo irremediably broken (as in it doesn't even work well), and we would be better served with removing it entirely and then reimplementing it when we've found a sane way to do that.

edit: to give a bit more detail, the current formation code: -is useless because formations don't really do anything -makes units move weirdly when it works (pick a long line and you'll see what I mean, makes no sense when it turns for example) -is slow -makes CCmpUnitMotion needlessly complicated -makes UnitAI.js horrible (honestly…) -is a mess and in a state of life support since like Alpha 13

Last edited 7 years ago by wraitii (previous) (diff)

comment:9 by Itms, 7 years ago

I am all for removing the "automatic formation" when a group of units gets an order. The code for that is messy at least, and probably unneeded if we have an actual formation system (i.e. a system where players have to create a formation or not depending on the situation, to add a layer of strategy).

I did that as a WIP some time ago and Yves used that WIP when he started working on formations. I'd suggest waiting for him before committing anything, in order not to break his work.

by elexis, 7 years ago

At minute 22, the yellow player yoreii experiences a formation bug where units don't disband.

comment:10 by elexis, 7 years ago

Milestone: Alpha 22Backlog

Backlogging due to lack of progress

comment:11 by temple, 6 years ago

Description: modified (diff)

I think this might've been fixed by r19709.

comment:12 by elexis, 6 years ago

refs #4990

comment:13 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

comment:14 by elexis, 5 years ago

Description: modified (diff)

comment:15 by wraitii, 5 years ago

Milestone: BacklogAlpha 24
Owner: set to wraitii

I can't reproduce this with https://github.com/wraitii/0ad/tree/D13_outtakes I'm not very familiar with the issue though so if someone else can confirm it no longer happens, it'd be great.

comment:16 by Freagarach, 4 years ago

I've been trying to reproduce this on current SVN (r23575), but nothing I did could cause the described symptoms.

For the record, the things I tried:

  • Moving many units without formation to one spot, then invoke a formation (tried using all possible formations).
  • Swichting one formation into another, many combinations possible, I might have had them all. (Also did that in rapid succession.)
  • Moving formations.
  • Performing commands other than walk (build, attack, gather).
  • Moving in/through dense forests (other pathfinding struggles do occur).
  • Combining two ~100 units large formations into one and performing the same steps as above.

comment:17 by wraitii, 4 years ago

Milestone: Alpha 24
Resolution: duplicate
Status: newclosed

This seems to have stopped happening as described, and further #4990 is more descriptive.

I'm closing as duplicate and moving the other to A24, I'm not certain the formation-unitAI issue has been fixed.

Note: See TracTickets for help on using tickets.