Soldiers get lost

Bug #1098550 reported by ron hering
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Confirmed
Undecided
Unassigned

Bug Description

Playing Green Plateau with Build bzr6486, when you destroy your military post the soldiers dont follow the road home, they go wandering and soon perish.

Revision history for this message
Jens Beyer (qcumber-some) wrote :

Hasn't this always been the case?
When you destroy a building, the workers inside get pushed out and then run around, trying to find a flag which is connected to an economy. This very same system applies to soldiers.
It is more or less random whether they find a road or not.

Revision history for this message
ron hering (rhering6938) wrote : Re: [Bug 1098550] Re: Soldiers get lost

I thought if the bulding was on a marked road they would find the flag and follow the road, usuall they do?

--- On Fri, 1/11/13, Jens Beyer (Qcumber-some) <email address hidden> wrote:

From: Jens Beyer (Qcumber-some) <email address hidden>
Subject: [Bug 1098550] Re: Soldiers get lost
To: <email address hidden>
Date: Friday, January 11, 2013, 8:00 AM

Hasn't this always been the case?
When you destroy a building, the workers inside get pushed out and then run around, trying to find a flag which is connected to an economy. This very same system applies to soldiers.
It is more or less random whether they find a road or not.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1098550

Title:
  Soldiers get lost

Status in Widelands:
  New

Bug description:
  Playing Green Plateau with Build bzr6486, when you destroy your
  military post the soldiers dont follow the road home, they go
  wandering and soon perish.

To manage notifications about this bug go to:
https://bugs.launchpad.net/widelands/+bug/1098550/+subscriptions

Revision history for this message
_aD (ad-simplypeachy) wrote :

If the building is on a road and you destroy via the building's destroy menu, the workers/soldiers will follow the flags. If there is enemy presence nearby which "pushes" past the flag, it will be removed and the soldiers will randomly move to find another flag. If you destroy a building via it's flag, they will randomly move to find a flag.

If there isn't a flag nearby while they are moving around then they're more likely to perish before finding it. You can always set down a new flag close by, join the road up to your economy, and the soldiers should move to it fairly quickly and return safely.

Revision history for this message
SirVer (sirver) wrote :

This whole algorithm could be improved though: when a worker gets fugitive, it should search in a small but deterministic area for a flag and walk there first. Only when big chunks of an economy are destroyed at once (via warfare) should there be stray workers imho.

Revision history for this message
_aD (ad-simplypeachy) wrote :

I agree with #4 - it makes sense that they would only panic when there has been large-scale destruction.

Changed in widelands:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.