Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » VML lounge » Experiences with the VML version?!?
Re: Experiences with the VML version?!? Tue, 20 May 2003 13:55 Go to previous messageGo to previous message
LEit is currently offline LEit

 
Lt. Commander

Messages: 879
Registered: April 2003
Location: CT
Based on the numbers (30k and 60k), I'd guess that Stars! stores the size of a ship in a 16 bit signed integer. 16 bit makes sense because it's a 16 bit program. Signed isn't ideal for mass (which can't get negative, so why allow that), but signed is the default with most compilers, and as long as you don't exceed 32k there isn't any reason to worry about it.

So when the mass exceeds 32767 it goes negative, and can be gated. It probably doesn't affect fuel usage, becase that probably is added into a long (maybe even unsigned) for a fleet, and would have to exceed 2 billion kT to hit a signed long limit (which might be possible with enough huge ships), and 4 billion kT if it's an unsigned long.

When the mass gets above 65536 it will be treated as 0 for gates, and if it goes higher it'll start having a positive mass again. So for a 300kT gate, you will start having problems again when the mass is over 65836kT.

You should probably just take these numbers as numbers to test, in case my theory is wrong.



- LEit

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: new VML game
Next Topic: Any improvements to StarEd? (or my other software)
Goto Forum:
  


Current Time: Thu Apr 25 22:58:55 EDT 2024