bugBattle for Wesnoth - Bugs: bug #16111, default gold carryover is used...

 
 
Show feedback again

bug #16111: default gold carryover is used when proceeding to next scenario after loading savegame created in linger mode

Submitted by:  Anonymissimus <anonymissimus>
Submitted on:  Fri 04 Jun 2010 12:11:19 AM UTC  
 
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: WML
Status: FixedPrivacy: Public
Assigned to: Anonymissimus <anonymissimus>Open/Closed: Closed
Release: 1.8.2Operating System: win xp

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:10 PM UTC, SVN revision 51601:

write and reload endlevel data when saving in linger mode (fix for bug #16111)

There obviously existed an [endlevel] tag in the savegame at some time
but it must have been lost. Added read and write method
to struct end_level_data.

(Browse SVN revision 51601)

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Sun 23 Oct 2011 12:00:55 AM UTC, comment #4:

The reason seems that the endlevel data is basically saved nowhere. Thus it's of course lost when reloading the linger mode save. Without reloading a savegame, such as directly progressing to the next scenario, the end level data struct doesn't get reinitialized so the values written into it by the [endlevel] tag are retained.

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Thu 20 Oct 2011 05:26:37 PM UTC, comment #3:

Other bugs in the series are bug #18827, bug #15545, bug #18828 and possibly bug #15226.

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Fri 04 Jun 2010 12:21:47 AM UTC, comment #2:

I give up...the bold part of the formula in the first post should be enclosed by * signs.

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Fri 04 Jun 2010 12:16:29 AM UTC, comment #1:

...the formula again...

Anonymissimus <anonymissimus>
Project MemberIn charge of this item.
Fri 04 Jun 2010 12:11:19 AM UTC, original submission:

Attached is my testcampaign stripped down for this.
The scenario is ended with this
When advancing directly, it works fine. But save in linger mode, reload that save and then proceed: Start gold is 100, although there's [side]gold=0.
100 = floor((3 gold per turn*8 turns finished early+102 gold left)*80/100)
Probably related to bug #15545.

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 #9239:  Testcampaign.zip added by anonymissimus (3kB - application/zip)

 

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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Nov 2011 05:42:30 PM UTCanonymissimusOpen/ClosedOpen=>Closed
    Sun 23 Oct 2011 10:58:01 PM UTCanonymissimusStatusNone=>Fixed
    Sat 22 Oct 2011 10:12:12 PM UTCanonymissimusAssigned toNone=>anonymissimus
    Fri 04 Jun 2010 12:11:20 AM UTCanonymissimusAttached File-=>Added Testcampaign.zip, #9239
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup