URL:
<http://gna.org/bugs/?18757>
Summary: Some WML now causes an Assertion Failure
Project: Battle for Wesnoth
Submitted by: sigurdthedragon
Submitted on: Thu 29 Sep 2011 04:24:23 AM GMT
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: Trunk r51325
Operating System: Win 7 x64
_______________________________________________________
Details:
In my Random Campaign add-on, some WML which has been working fine since
1.9.7 now causes the following message on screen (abbreviated):
Assertion Failed!
...\trunk\src\variable.cpp
Line: 911
Expression: is_valid_
with the choice of Abort, Retry, Ignore
Thus causing Wesnoth to crash.
The following appeared in stderr when this was caused:
20110928 23:54:53 warning engine: WML Syntax error:: Variable in WML string
cannot be evaluated because, the first character of the identifier is an
invalid character, one of . , [, or ]. in
"start_message.[0]" at
"start_message." <---->"[0]"
The following is the block of code causing it:
{VARIABLE start_message.[0] _"Ah, glorious battle approaches!"}
{VARIABLE start_message.[1] _"To battle, my troops! This enemy shall feel
our might!"}
{VARIABLE start_message.[2] _"It looks like enemy troops are near. No
matter, they shall fall before this army!"}
{VARIABLE start_message.[3] _"Today is a good day for the other guy to
die! Everyone, to the ready!"}
{RANDOM 0..3}
{VARIABLE random_message $start_message.[$random]}
{CLEAR_VARIABLE start_message,random}
This became broken sometime after 1.9.9
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18757>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs