building will burn down after upgrading and moving soldiers inside

Bug #858292 reported by lowne
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Unassigned

Bug Description

when starting to upgrade a military building the enemy took over a building. Still upgrading the enemy took over another building near by. When upgrade were ready some soldiers tried to move in but the building just burned down.

Related branches

Revision history for this message
lowne (bugrep12) wrote :
Revision history for this message
lowne (bugrep12) wrote :
Revision history for this message
lowne (bugrep12) wrote :
Revision history for this message
lowne (bugrep12) wrote :
Revision history for this message
lowne (bugrep12) wrote :
description: updated
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting this, lowne.

I am not able to watch the replay since it has some problems since it becomes unsynchronized and goes to pause. Though, based on the screenshot, something seems to happen when the building is occupied. I guess it has something to do with the borders, but I don't see how the finished buildings should be destroyed as long as the construction site is allowed to live.

Also, I will edit the tags a bit. See http://wl.widelands.org/wiki/TriagingBugs/#official_widelands_bug_tags for a list of official tags used.

Changed in widelands:
importance: Undecided → Medium
status: New → Confirmed
tags: added: military replay
removed: burn destroied destroy down go inside soldier upgrade
Revision history for this message
SirVer (sirver) wrote :

Setting to incomplete for bug sweeping.

Changed in widelands:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
SirVer (sirver)
Changed in widelands:
status: Expired → Confirmed
Revision history for this message
SirVer (sirver) wrote :

Setting to incomplete for bug sweeping.

Changed in widelands:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
SirVer (sirver)
Changed in widelands:
status: Expired → Confirmed
GunChleoc (gunchleoc)
Changed in widelands:
milestone: none → build20-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :

The attached savegame reproduces the bug. It happens when the building is sitting on the border. There are 2 possible solutions:

1. Burn down the construction site and the unoccupied building
2. Keep the site intact when the soldiers move in

I am in favor of 1.

Revision history for this message
kaputtnik (franku) wrote :

Running your save game the widelands crashes here as soon the first soldier tries to enter the Outpost:

widelands: ../src/logic/editor_game_base.cc:576: virtual void Widelands::EditorGameBase::do_conquer_area(Widelands::PlayerArea<Widelands::Area<Widelands::FCoords> >, bool, Widelands::PlayerNumber, bool, bool, bool): Assertion `preferred_player != player_area.player_number' failed.
Abgebrochen (Speicherabzug geschrieben)

+1 for solution 1

GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
assignee: nobody → GunChleoc (gunchleoc)
Revision history for this message
GunChleoc (gunchleoc) wrote :

That assert pointed me in the correct direction. All that needed doing in the end is increasing the area that the map is recalculated

@lowne: Thanks for all those screenshots, they were invaluable :)

The savegame is unrecoverable, so I'm attaching a savegame with an earlier state of the game. Play as red player and delete the small military buildings close to the border, or play as blue and conquer them.

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

@lowne I tried to reproduce this in a normal Game with Guns fix applied and found no such Issue as you described it. I used that savegame from Gun and noticed a difference, compared to trunk.
So I think Gun has fixed it.

Lets merge this to trunk now and have many happy stays in widelands :-)

Changed in widelands:
status: In Progress → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
assignee: GunChleoc (gunchleoc) → nobody
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
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.