Update of bug #11307 (project wesnoth):
Category: Feature Request => Bug
Severity: 3 - Normal => 4 - Important
Release: 1.4 => 1.4, svn trunk
_______________________________________________________
Follow-up Comment #2:
If I'm not mistaken, the feature is already present, in the form of a couple
of lines of code at gamestatus.cpp, 210-211. The problem is that using
[code][scenario]
turn_at="$blahbity"
[/scenario][/code]
Causes an assertion error:
wesnoth: variable.cpp:215: variable_info::variable_info(const std::string&,
bool, variable_info::TYPE): Assertion `repos != __null' failed
I'm researching into this, and have marked it as a bug instead of a feature
request.
Right now I've got the following backtrace that confirms my theory:
#0 0x00002b15c3dfdb45 in raise () from /lib64/libc.so.6
#1 0x00002b15c3dff0e0 in abort () from /lib64/libc.so.6
#2 0x00002b15c3df707f in __assert_fail () from /lib64/libc.so.6
#3 0x000000000075b75c in variable_info (this=0x7fffe9576ce0,
[EMAIL PROTECTED], force_valid=false,
validation_type=variable_info::TYPE_SCALAR) at variable.cpp:215
#4 0x000000000059679e in game_state::get_variable_const
(this=0x7fffe95791a0, [EMAIL PROTECTED]) at gamestatus.cpp:1098
#5 0x00000000007ac9ce in do_interpolation ([EMAIL PROTECTED],
[EMAIL PROTECTED]) at serialization/string_utils.cpp:121
#6 0x00000000007aca92 in utils::interpolate_variables_into_string
([EMAIL PROTECTED], [EMAIL PROTECTED]) at
serialization/string_utils.cpp:343
#7 0x00000000005a672c in gamestatus (this=0x7fffe95774d8,
[EMAIL PROTECTED], num_turns=24, s_o_g=0x7fffe95791a0) at
gamestatus.cpp:210
#8 0x0000000000696d94 in play_controller (this=0x7fffe9577270,
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
ticks=113746, num_turns=24, [EMAIL PROTECTED],
[EMAIL PROTECTED], skip_replay=false, is_replay=false) at
play_controller.cpp:53
#9 0x00000000006a3bd8 in playsingle_controller (this=0x7fffe9577270,
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
ticks=113746, num_turns=24, [EMAIL PROTECTED],
[EMAIL PROTECTED], skip_replay=false) at playsingle_controller.cpp:39
#10 0x0000000000687537 in playsingle_scenario ([EMAIL PROTECTED],
[EMAIL PROTECTED], level=0x1de5de0, [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
skip_replay=false) at playcampaign.cpp:131
#11 0x000000000068a7f7 in play_game ([EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], io_type=IO_NONE,
skip_replay=false) at playcampaign.cpp:380
#12 0x0000000000412fdf in play_game (this=0x7fffe9578fa0, reload=(anonymous
namespace)::game_controller::RELOAD_DATA) at game.cpp:1921
#13 0x0000000000426ec5 in play_game (argc=2, argv=0x7fffe957a2a8) at
game.cpp:2332
#14 0x000000000042704f in main (argc=2, argv=0x7fffe957a2a8) at game.cpp:2356
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11307>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs