URL:
<http://gna.org/bugs/?14218>
Summary: [unstore_unit] to recall list not working if recall
list empty
Project: Battle for Wesnoth
Submitted by: anonymissimus
Submitted on: Montag 31.08.2009 um 00:51
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.2
Operating System: win XP
_______________________________________________________
Details:
The following code reproduces the bug:
side 1 has a save_id
[event]
name=turn 2
[kill]
#clearing the recall list completely seems to be
important for reproducing
the bug
side=1
[not]
canrecruit=yes
[/not]
[/kill]
{DEBUG_MSG 1}
{NAMED_UNIT 1 Troll 1 1 test_unit test_unit ()}#it does not
matter what
test unit it is
{DEBUG_MSG 2}
[store_unit]
variable=u_Test
[filter]
id=test_unit
[/filter]
kill=yes
[/store_unit]
{DEBUG_MSG 3}
[store_unit]
variable=u_SideOneLeader
[filter]
canrecruit=yes
[and]
side=1
[/and]
[/filter]
kill=yes#killing the leader also may be important in
order to reproduce
the bug
[/store_unit]
{DEBUG_MSG 4}
{VARIABLE u_Test.x recall}
{VARIABLE u_Test.y recall}
{DEBUG_MSG 5}
[unstore_unit]
variable=u_Test
[/unstore_unit]#It is clearly visible that this tag produces
the error
message - see below.
{DEBUG_MSG 6}
{CLEAR_VARIABLE u_Test}
{DEBUG_MSG 7}
[unstore_unit]
variable=u_SideOneLeader
[/unstore_unit]#This tag produces no error message btw.
{DEBUG_MSG 8}
{CLEAR_VARIABLE u_SideOneLeader}
[/event]
error message:
20090831 01:42:35 error engine: Cannot unstore unit: no recall list for
player 1 and the map location is invalid.
It happens also for example in Delfadors Memoirs between
19_showdown_in_the_northern_swamp.cfg and 20_prince_of_wesnoth.cfg
Attached is a savegame from 19_showdown_in_the_northern_swamp.cfg
see also my (Anonymissimus) last post in forum thread
http://www.wesnoth.org/forum/viewtopic.php?f=8&t=13005&p=380288#p380288
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Montag 31.08.2009 um 00:51 Name:
DM-Showdown_in_the_Nort..._Runde_14.gz Size: 72kB By: anonymissimus
<http://gna.org/bugs/download.php?file_id=6540>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?14218>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs