Home » Stars! Clones, Extensions, Modding » VML lounge » Experiences with the VML version?!?
Re: Experiences with the VML version?!? |
Tue, 20 May 2003 13:55 |
|
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.
- LEitReport message to a moderator
|
|
|
|
|
Experiences with the VML version?!?
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Wed, 16 April 2003 14:15
|
|
|
Re: Experiences with the VML version?!?
By: Peptis on Thu, 17 April 2003 00:08
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Thu, 17 April 2003 07:01
|
|
|
Re: Experiences with the VML version?!?
By: Ron on Fri, 18 April 2003 12:08
|
|
|
Re: Experiences with the VML version?!?
By: ASword on Sun, 18 May 2003 16:17
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Sun, 18 May 2003 16:50
|
|
|
Re: Experiences with the VML version?!?
By: ASword on Mon, 19 May 2003 02:17
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Mon, 19 May 2003 08:37
|
|
|
Re: Experiences with the VML version?!?
By: ASword on Mon, 19 May 2003 14:47
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Tue, 20 May 2003 11:41
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Tue, 20 May 2003 13:36
|
|
|
Re: Experiences with the VML version?!?
By: LEit on Tue, 20 May 2003 13:55
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Tue, 20 May 2003 17:42
|
|
|
Re: Experiences with the VML version?!?
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Wed, 21 May 2003 01:58
|
|
|
Re: Experiences with the VML version?!?
By: iztok on Wed, 21 May 2003 02:19
|
|
|
Re: Experiences with the VML version?!?
By: ASword on Wed, 21 May 2003 10:50
|
|
|
Re: Experiences with the VML version?!?
By: Verker on Wed, 21 May 2003 11:39
|
|
|
Re: Experiences with the VML version?!?
By: regiss on Thu, 22 May 2003 05:06
|
|
|
Re: Experiences with the VML version?!?
By: ASword on Wed, 21 May 2003 21:48
|
|
|
Re: Experiences with the VML version?!?
|
|
|
Re: Experiences with the VML version?!?
By: iztok on Thu, 22 May 2003 03:06
|
|
|
Re: Experiences with the VML version?!?
By: ASword on Sat, 24 May 2003 10:27
|
Goto Forum:
Current Time: Thu Apr 25 22:58:55 EDT 2024
|