bugBattle for Wesnoth - Bugs: bug #20438, Hitpoints bug in Bad Moon Rising

Show feedback again

bug #20438: Hitpoints bug in Bad Moon Rising

Submitted by:  Markus Enzenberger <enz>
Submitted on:  Tue Jan 15 08:59:53 2013  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group:  None of the others
Status: Ready For TestPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: 1.10.4Operating System: Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sun Feb 10 08:17:24 2013, comment #2:

I can't reproduce it with Wesnoth 1.10, since alarantalara thinks it might be fixed in 1.11, please test with 1.11.1 or 1.11.2 once released.

Mark de Wever <mordante>
Project Member
Tue Jan 15 14:14:05 2013, comment #1:

Integer overflow or underflow is possible in 1.10 and earlier, though it should require several effects of the same type (3-4) to be applied for it to occur.

This therefore may already be fixed in 1.11, since the calculations there use floating point math. Such a change cannot be safely backported in order to avoid out of sync problems between different 1.10 versions.

There may be something platform specific as well that could be fixed, since I cannot reproduce the bug with the attached save in 1.10.5 on OS X (including by loading the turn 4 save as a replay, though the extra hp are visible if I load it directly).

Simon Forsyth <alarantalara>
Project Member
Tue Jan 15 08:59:53 2013, original submission:

I run into a bug when playing the add-on campaign Bad Moon Rising Part 1. I already reported the bug to the forum for the campaign here:


However, the developer said that other people also run into the bug and that it is possible that it is a bug in the Wesnoth code. If this is the case, it could also appear elsewhere and you might want to look into it. It looks like an integer overflow or underflow to me.

I am using the Wesnoth package on Ubuntu 12.10 (Wesnoth 1.10.4) and installed the add ons Bad Moon Rising and Archaic Era from the add-on server a few days ago. The Bad Moon Rising version shows 1.4.4+svn.

The bug appears when I attack the Shadow Opponent in scenario "A trial" the first time. It drains life from Scarrion and gets a ridiculous number of hitpoints (the number varies, but is about 100000000). I can always reproduce this behaviour from the attached saved game (round 3). I also attached a save game for round 4 that shows the hitpoints for the Shadow Opoonentn after the bug.

Markus Enzenberger <enz>


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

Attach File(s):

Attached Files
file #16949:  BMR1-A_Trial-Autospeichern3.gz added by enz (11kB - application/x-gzip)
file #16950:  BMR1-A_Trial-Autospeichern4.gz added by enz (12kB - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by shadowmaster (Updated the item)
  • -unavailable- added by mordante (Posted a comment)
  • -unavailable- added by alarantalara (Posted a comment)
  • -unavailable- added by enz (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Mar 26 12:50:26 2013shadowmasterOpen/ClosedOpen=>Closed
    Sun Feb 10 08:17:24 2013mordanteStatusNone=>Ready For Test
    Tue Jan 15 08:59:53 2013enzAttached File-=>Added BMR1-A_Trial-Autospeichern3.gz, #16949
      Attached File-=>Added BMR1-A_Trial-Autospeichern4.gz, #16950
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup