Soldier pathfinding can deadlock in narrow areas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Confirmed
|
Low
|
Unassigned |
Bug Description
In narrow passages, such as in the map "The ancient sun of fire", the soldier pathfinding can cause deadlocks. When large groups of allied soldiers try to go into opposite directions, neither of them will give way, and the game cannot get itself out of this situation.
Workaround: When this happens to your own soldiers, you can resolve the deadlocks by destroying one of your military buildings that the soldier came from.
Reproduce: I am attaching a savegame of "The ancient sun of fire" which was graciously provided by Andi Hotz in bug #612348. (That bug was a mixture of different, vaguely similar soldier-related bugs). Load the savegame and attack one of the orange Guardhalls with a large group of soldiers. Then a bit later, but before the first group of soldiers returns, attack the other Guardhall with a similarly large group. They will get stuck fairly reliably.
Changed in widelands: | |
status: | Expired → Confirmed |
It seems as if it does not have to be a narrow space.
I guess this one is related:
I had a mass fight (40+soldiers from each side) partly in mountain terrain.
All went fine, except one pair.
The enemy soldier was in walking animation, but could not pass my soldier, who in turn
kept hitting at him without any effect. Others were standing guard.
I ignored it for a good while, and then used the spot where they were fighting
for building a sentry.
That warped them from the location and they started and finished a regular fight.