URL:
<http://gna.org/bugs/?20106>
Summary: Campaign difficulty level discarded when reloading
from saved games
Project: Battle for Wesnoth
Submitted by: shadowmaster
Submitted on: Tue 28 Aug 2012 05:03:58 AM CLT
Category: Bug
Severity: 5 - Blocker
Priority: 7 - High
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.11.0, trunk r55176
Operating System: Any
_______________________________________________________
Details:
When loading single-player campaign saved games, the difficulty information
cannot be read from the save (which results in the difficulty description
reading as "UNTLB" in the Load Game dialog) and the game falls back to the
NORMAL difficulty level.
The real difficulty level does seem to exist in the saved game WML under
[snapshot], but it's not taken into consideration.
This trunk (and 1.11.0) regression was introduced by r55053.
Steps to reproduce:
- Start A Tale of Two Brothers on any of the two difficulty levels. Do note
that they are internally identified by the EASY and HARD preprocessor symbols,
respectively.
- Save at the start of turn 1 of the first scenario, and immediately proceed
to reload that save through the Load Game dialog.
- Turn debug mode on with :debug, use :n to advance to the next scenario.
- You will start the next scenario without a turn limit, and if you check the
status table you'll notice your enemy starts with zero gold. This is because
both these attributes are only defined when EASY or HARD are defined, due to
the campaign's design.
A more technical test:
- Edit any scenario from A Tale of Two Brothers to add the following code
snippet at the beginning
#ifdef NORMAL
#error NORMAL should never be defined for this campaign!
#endif
- Do as the first guide describes, and you'll hit a preprocessor error message
upon reloading from a save.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20106>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs