productivity drops on game load

Bug #980287 reported by Angelo Locritani
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

On game loading, productivity graph shows a sudden drop (see attached screenshot - green boxes show the drop).

may it be related to bug 923621?

Related branches

Revision history for this message
Angelo Locritani (alocritani) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I suspect this is due to how productivity is currently calculated. There is a bug report which goes into more detail how this is done, which I didn't find at the moment (please add a link if someone stumbles across it). Roughly it looks at whether the building is currently producing anything, and then compares it with the 10-20 last time the building tried to produce anything. So, when loading a game I assume part of this is not available for some reason and productivity takes a dive. However, since it is able to pick up at the same level where it left off, I assume the historical data is actually available so I am not sure why it cannot look at it right away.

Note that everything above is pure speculation, and might be (read:probably) wrong.

Changed in widelands:
importance: Undecided → Low
status: New → Confirmed
tags: added: savegame statistics ui
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
wl-zocker (wl-zocker) wrote :

This is still the case in r6970 and looks quite odd, especially when the game has been reloaded several times.

SirVer (sirver)
Changed in widelands:
status: Incomplete → 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
Revision history for this message
Martin Schmidt (martinschmidt) wrote :

calc_statistics() is called for productionsites in the constructor.
However, if data is loaded from a save game the statistics
are not updated immediately.
Solution: call calc_statistics() in load_finish([..])

Revision history for this message
SirVer (sirver) wrote :

Good solution. Merged in r7374. Thanks :).

Changed in widelands:
status: Confirmed → Fix Committed
milestone: none → build19-rc1
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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