Redwall: Warlords

Discussion => Help / Bugs => Topic started by: Juska on October 03, 2010, 07:52:59 PM

Title: Losses Bug
Post by: Juska on October 03, 2010, 07:52:59 PM
Ok, so somewhere there is a bug in the losses on attacks code.

I started with 29,448,270 skiffs, the attack said I lost 1,924,111 and I ended with 26,058,024.

But 29,448,270 - 1,924,111 = 27,524,059


My starting troops:

(http://img203.imageshack.us/img203/5136/beginf.png) (http://img203.imageshack.us/i/beginf.png/)

Uploaded with ImageShack.us (http://imageshack.us)

The attack:

(http://img269.imageshack.us/img269/9309/attackcs.png) (http://img269.imageshack.us/i/attackcs.png/)

Uploaded with ImageShack.us (http://imageshack.us)

After the attack:

(http://img63.imageshack.us/img63/3900/endwe.png) (http://img63.imageshack.us/i/endwe.png/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: Losses Bug
Post by: Shadow on October 03, 2010, 09:32:57 PM
I worked out a while ago that you lose double what you should. I think that in the new attack system, losses get calculated and applied twice, but where in the code is up to Shael or Windy to find.

You didn't lose exactly double though, so I am not sure about that anymore.
Title: Re: Losses Bug
Post by: Juska on October 03, 2010, 10:10:12 PM
Losses could be getting calculated separately twice, because they are a little random, which could account for the extra.
Title: Re: Losses Bug
Post by: Shadow on October 04, 2010, 06:42:23 AM
What attack tyope were you using? (drive, sack, capture, whatever?)
Title: Re: Losses Bug
Post by: Juska on October 04, 2010, 10:28:55 AM
Drive I'm pretty sure.