Version error: MapObjectivePacket when loading a (very) old map in editor

Bug #1612729 reported by kaputtnik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
High
Unassigned

Bug Description

I've just tested an old map (https://wl.widelands.org/maps/aquila/ from year 2010). While it is possible to start a game with this map, loading in Editor (with current trunk) fails with the message:

UnhandledVersionError: This game was saved using an older version of Widelands and cannot be loaded anymore, or it's a new version that can't be handled yet.
Packet Name: MapObjectivePacket
Saved Version: 1
Current Version: 2

Irritating the message talks about a "game" not a "map". I would expect: "This map was saved ..." when loading a map in editor.

Then i have unzipped the map and edited the file 'objective' to

packet_version="2"

instead of "1". After saving the file the map could be loaded in editor without any problems. Also starting a game is possible.

So i think the map isn't incompatible for the editor at all?

Tags: regression

Related branches

Revision history for this message
SirVer (sirver) wrote :

All maps should always stay compatible, so this is a regression and needs fixing for b19 - probably by just not loading objectives with an old version into the editor - since there are not supported by the game there is no reason to load them anyways.

Changed in widelands:
status: New → Confirmed
importance: Undecided → High
milestone: none → build19-rc1
tags: added: regression
SirVer (sirver)
Changed in widelands:
assignee: nobody → SirVer (sirver)
SirVer (sirver)
Changed in widelands:
status: Confirmed → In Progress
SirVer (sirver)
Changed in widelands:
status: In Progress → Fix Committed
assignee: SirVer (sirver) → nobody
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

Remote bug watches

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