bugBattle for Wesnoth - Bugs: bug #18828, scenario ends after start event in...

Show feedback again

bug #18828: scenario ends after start event in campaign "Children of Dragons"

Submitted by:  Anonymissimus <anonymissimus>
Submitted on:  Thu Oct 20 17:18:29 2011  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group:  None of the others
Status: FixedPrivacy: Public
Assigned to: Anonymissimus <anonymissimus>Open/Closed: Closed
Release: runk r51547Operating System: win xp, ubuntu

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun Oct 23 22:57:52 2011, SVN revision 51603:

limit number of executions of [endlevel] to 1 times per scenario (fix for bug #18828)

A scenario can only be ended once. Also prevents sort-of recursion
if it appears in a victory or defeat event.

(Browse SVN revision 51603)

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Sat Oct 22 21:07:58 2011, comment #2:

Finally I think I understand.
This code triggers the bug:

What happens is that an end_level_exception for victory is thrown with linger mode enabled, then the victory event sets linger mode to false, which causes the linger mode cleanup code to be skipped since the engine now thinks this victory exception was thrown with linger_mode=no, thus the next scenario starts with linger mode.
A workaround is to put linger_mode=false into the previous [endlevel] tag.

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Thu Oct 20 17:33:58 2011, comment #1:

Note that it doesn't reproduce when using the start-of-scenario save.

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Thu Oct 20 17:18:29 2011, original submission:

Load attached save with attached campaign. Click turn done, the scenario skips into linger mode after the start event.
Other bugs in the series are bug #18827, bug #15545, bug #16111 and possibly bug #15226.

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #14234:  Children_of_Dragons.zip added by anonymissimus (914kB - application/x-zip-compressed)
file #14233:  scenario_ends.gz added by anonymissimus (47kB - application/gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by anonymissimus (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Nov 7 17:54:15 2011anonymissimusOpen/ClosedOpen=>Closed
    Sun Oct 23 22:58:22 2011anonymissimusStatusNone=>Fixed
    Sat Oct 22 21:07:58 2011anonymissimusAssigned toNone=>anonymissimus
    Thu Oct 20 17:23:15 2011anonymissimusAttached File-=>Added Children_of_Dragons.zip, #14234
    Thu Oct 20 17:18:29 2011anonymissimusAttached File-=>Added scenario_ends.gz, #14233
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup