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

This Month's Specials

The Falklands War: 1982- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old May 23rd, 2001, 10:10 AM

Lemmy Lemmy is offline
Second Lieutenant
 
Join Date: Mar 2001
Location: Netherlands
Posts: 479
Thanks: 0
Thanked 0 Times in 0 Posts
Lemmy is on a distinguished road
Default Re: Assigning negative values to components

quote:
Originally posted by Arc.Smiloid:
There has been some people asking if this could be done. I remember from my days editing Master of Orion 2 data files that negative values for components were acheived using the formula:

65535 + <negative intended value> = the number to use.

So if you wanted something that weighed -200 kT then you would do the following:

65535 + (-200)
65535 - 200 = 65335

If you used the 65335 value for the component it would weigh -200 kT in the game.



this should work if SE4 uses 16 bit signed numbers.
my guess is 32 bit signed numbers are used, but that wouldn't explain why you would a 66 kt component, and if 8 bit numbers were used you would get a -73kt component, not sure about that one.
i think i'll try this tonight.

i assume you did try to just enter -200 in the txt file right?


ooh, i just made corporal

[This message has been edited by LemmyM (edited 23 May 2001).]
__________________
[Boo!]
Reply With Quote
 

Bookmarks


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 12:15 AM.


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