.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEIV

Reply
 
Thread Tools Display Modes
  #1  
Old November 17th, 2007, 12:35 PM

Kammak Kammak is offline
Private
 
Join Date: Jul 2002
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Kammak is on a distinguished road
Default Negative Damage?

I did a search for "negative damage" and found nothing...I infrequently see Planetary Napalm V, in large mounts, causing negative damage to a planet--which actually restores damage points to it. I've not modded Planetary Napalm nor standard ship mounts.

Surely this has been seen before?

Kammak
Reply With Quote
  #2  
Old November 17th, 2007, 03:59 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Negative Damage?

That would be a display glitch.
Weapon platforms with lots of shields have more hitpoints than the planet accounts for.

So if a platform has taken 5000 damage (including shields) and the planet thinks it has only 500 hitpoints (armor & components)...

When the weapon platform is destroyed, the planet will go from 5000/%bignumber% damage to 500/%bignumber% damage as the partial damage goes away and only one platform is destroyed.

The display says ok, you went from 5000 to 500, so that is -4500 damage.


In summary, it is nothing to worry about.
Reply With Quote
  #3  
Old November 17th, 2007, 04:01 PM
capnq's Avatar

capnq capnq is offline
General
 
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
capnq is on a distinguished road
Default Re: Negative Damage?

I'm not certain, but that sounds like an integer overrun.

If an operation would put a variable past the upper boundary for its type, it will sometimes "wrap around" past the lower bound. For example, if the allowed range is -511 to +512, and the variable has been set to 520, it will display as -503. Or something like that.

However, it seems really odd that damage amounts would be typed to such a low upper bound, so I'm probably wrong.

Edit: SJ types faster than me, and explained it better to boot.
__________________
Cap'n Q

"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
Reply With Quote
  #4  
Old November 17th, 2007, 04:08 PM

Kammak Kammak is offline
Private
 
Join Date: Jul 2002
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Kammak is on a distinguished road
Default Re: Negative Damage?


Ah, thanks to both of you.

Regards,

Kammak
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.