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 20 Oct 2011 05:18:29 PM UTC  
 
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 23 Oct 2011 10:57:52 PM UTC, 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 22 Oct 2011 09:07:58 PM UTC, 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 20 Oct 2011 05:33:58 PM UTC, comment #1:

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

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Thu 20 Oct 2011 05:18:29 PM UTC, 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):
   
   
Comment:
   

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Nov 2011 05:54:15 PM UTCanonymissimusOpen/ClosedOpen=>Closed
    Sun 23 Oct 2011 10:58:22 PM UTCanonymissimusStatusNone=>Fixed
    Sat 22 Oct 2011 09:07:58 PM UTCanonymissimusAssigned toNone=>anonymissimus
    Thu 20 Oct 2011 05:23:15 PM UTCanonymissimusAttached File-=>Added Children_of_Dragons.zip, #14234
    Thu 20 Oct 2011 05:18:29 PM UTCanonymissimusAttached File-=>Added scenario_ends.gz, #14233
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup