.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

Reply
 
Thread Tools Display Modes
  #1  
Old June 11th, 2002, 02:50 AM

CW CW is offline
Second Lieutenant
 
Join Date: Jun 2001
Location: Australia
Posts: 409
Thanks: 0
Thanked 0 Times in 0 Posts
CW is on a distinguished road
Default Non-integer values in data files?

I've noticed that just about every mod uses pure integer values in the data files, can't they take decimals at all?
__________________
A propeller is just a big fan in front of the plane designed to keep the pilot cool. Want prove? Stop the prop and watch the pilot break out in a heavy sweat!
Reply With Quote
  #2  
Old June 11th, 2002, 02:58 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Non-integer values in data files?

No, they can not use decimals.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #3  
Old June 11th, 2002, 03:58 AM
Krsqk's Avatar

Krsqk Krsqk is offline
Lieutenant Colonel
 
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
Krsqk is on a distinguished road
Default Re: Non-integer values in data files?

"Easy" way around this: multiply all kt values by 10. Any kt value not ending in zero would be, proportionally, a decimal value.
__________________
The Unpronounceable Krsqk

"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
Reply With Quote
  #4  
Old June 11th, 2002, 11:38 AM

CW CW is offline
Second Lieutenant
 
Join Date: Jun 2001
Location: Australia
Posts: 409
Thanks: 0
Thanked 0 Times in 0 Posts
CW is on a distinguished road
Default Re: Non-integer values in data files?

Quote:
"Easy" way around this: multiply all kt values by 10. Any kt value not ending in zero would be, proportionally, a decimal value.
I was trying NOT to do that because I know I will horribly confuse myself. I'm talking about the engine movements and I don't really want to assign 10 movement points to the lowest tech Version. But if I can't use decimals then I suppose that is the only way to go.
__________________
A propeller is just a big fan in front of the plane designed to keep the pilot cool. Want prove? Stop the prop and watch the pilot break out in a heavy sweat!
Reply With Quote
  #5  
Old June 11th, 2002, 07:44 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: Non-integer values in data files?

Why _not_ assign 10 movements to the slowest engine? Just make your ships require 10 times as many engines per move
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #6  
Old June 11th, 2002, 08:11 PM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default Re: Non-integer values in data files?

Quote:
Originally posted by Ed Kolis:
Why _not_ assign 10 movements to the slowest engine? Just make your ships require 10 times as many engines per move
Because movement points are tracked by a single byte. That means a maximum limit of 255. At 10 movement points per engine that's only 25 engines max in any size ship before you cause a range check error. If it goes higher from there it will be much less. So, you see the problem?
Reply With Quote
Reply

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 03:15 PM.


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