Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Kill limits...Is there such a thing ?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> Steel Panthers World At War & Mega Campaigns >> Kill limits...Is there such a thing ? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Kill limits...Is there such a thing ? - 12/11/2002 11:23:10 PM   
Sturmbannfuhrer

 

Posts: 28
Joined: 6/24/2002
From: Größdeutschland
Status: offline
Okay i havent been around for quite some time now...ooops...
Anyway this is my problem. I dunno wether its a bug or not or anything...I m puzzled:confused:
The amount of infantries that i killed was rising more than 30,000 then after a certain limit there is a minus sign infront of the number like for eg: -25,000 and this amount slowly reduce to
-1000++ then something odd happened...the following game i onwards i found that the AI only pitch a small amount of soldiers at me...roughly about 250 men and also a few APCs but there is not one tank besides the SPA that numbered only two peices...

Is this supposed to be like that or is it something really odd ???:confused:
Post #: 1
Re: Kill limits...Is there such a thing ? - 12/12/2002 7:05:39 AM   
john g

 

Posts: 984
Joined: 10/6/2000
From: college station, tx usa
Status: offline
[QUOTE]Originally posted by Sturmbannfuhrer
[B]Okay i havent been around for quite some time now...ooops...
Anyway this is my problem. I dunno wether its a bug or not or anything...I m puzzled:confused:
The amount of infantries that i killed was rising more than 30,000 then after a certain limit there is a minus sign infront of the number like for eg: -25,000 and this amount slowly reduce to
-1000++ then something odd happened...the following game i onwards i found that the AI only pitch a small amount of soldiers at me...roughly about 250 men and also a few APCs but there is not one tank besides the SPA that numbered only two peices...

Is this supposed to be like that or is it something really odd ???:confused: [/B][/QUOTE]

If it went negative around 32767, then the kills are stored as a 16 bit signed integer, when you get over 65535 kills it should start back over at 0, assuming it doesn't just crash out with an overflow error.

The same sort of thing happens sort of with leader ratings, they can go up to 255, but then they drop back to 0 since they are stored as an 8 bit unsigned integer.

Its just a quirk in how the game is written. Don't even get into the discussion on how many units you can have on the map before you start not getting crews when a vehicle is destroyed.
thanks, John.

(in reply to Sturmbannfuhrer)
Post #: 2
- 12/12/2002 10:41:14 AM   
Irinami

 

Posts: 746
Joined: 9/4/2002
From: Florida, USA
Status: offline
Yep. All a matter of memory. Basically someone figured "they'll never get that high a skill rating/kill amount/number of units..." and, to save the RAM footprint, used a variable smaller than they should have. Ever remember "flipping the score" on your old video games? Like Defender on the Atari or Mario on the NES? Same deal. Except I find it a bit less tolerable on computer games: either use a large enough variable, or handle the "flipping" effect (ie, put a cap on it so it won't go beyond what the variable can handle).

_____________________________



Newbies!!
Wild Bill's Tanks at Munda Mini-Campaign. The training campaign for comb

(in reply to Sturmbannfuhrer)
Post #: 3
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> Steel Panthers World At War & Mega Campaigns >> Kill limits...Is there such a thing ? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.922