Bug: saved game info is not updated when overwriting a save

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
User avatar
PawelS
Posts: 31
Joined: March 28th, 2009, 12:15 pm
Location: Poland, EU

Bug: saved game info is not updated when overwriting a save

Post by PawelS »

OS: Windows 7 64-bit
Wesnoth version: 1.9.12

How to reproduce:

1. Start a campaign.
2. Save the game, entering a name for it (for example 'test').
3. Start another campaign.
4. Save the game under the same name as before, overwriting the previous save.
5. Go to Load Game and select the 'test' game. The minimap and other info (campaign name, difficulty, turn number) will refer to the game you first saved under that name, not to the one you last saved.

It's only the information at the loading screen which is not updated, the game loads normally. Deleting userdata\save_index.gz fixes this problem, so it seems the data is not updated in this file when overwriting a saved game.
AI
Inactive Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: Bug: saved game info is not updated when overwriting a s

Post by AI »

I tracked down this bug ago myself a long while ago, and I believe the problem was that the new save info was simply appended to the index, without older information ever being cleared. I vaguely recall it being fixed though, so this may he a regression.
User avatar
doofus-01
Art Director
Posts: 4180
Joined: January 6th, 2008, 9:27 pm
Location: USA

Re: Bug: saved game info is not updated when overwriting a s

Post by doofus-01 »

This behaviour has been pretty consistent since I've been paying attention - 1.3/1.4?, at least among released versions (I don't know about trunk). I noticed it because a map with UMC terrain always fails to load (the minimap, the scenario loads just fine) and gives an error, even after the map has been edited to have only mainline terrain. Probably not the same bug, but it is related, in the end.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
Post Reply