Forum - Space Odyssey MMORPG - a massive free online space game

Feedback Terminal => "Bugs" and Problems => Topic started by: Palad on September 25, 2006, 05:48:51 PM



Title: Problem with energy on big ships!!!
Post by: Palad on September 25, 2006, 05:48:51 PM
When i design a ship i find problem:
i set 14 powercores with max energy and what i saw:

Numbers in Fleet   Space/Ship    Marines    SpaceLeft                       Energ left         
   0    30000000000000260    0    2000000000000260    9223372036854775808    

 
Attack    Defence    Hitpoints    Crew Level
   0          0          0          Rookie    
Attack accuracy    Absorb Power    SP Power    AP Power
   0 %            0%            00%            00%    
Installed ship systems:

 
POWERCORE systems:

   Name    Weight    Sell Price    Energy
Gen    Sell
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    
   2^16    2000000000000000    12.544    800000000000004736    

There must be at least 11200*10^15 energy, but it stop on 9200*10^15 energy.
Please increase the maximum capacity of energy!!!


Title: Re: Problem with energy on big ships!!!
Post by: UberPWNZ0R on September 25, 2006, 07:13:10 PM
9223372036854775808 is maximum value for signed 64bit number.
2^64 = 18446744073709551616 but we loose one bit for +/- sign, so its 9223372036854775808.
I dont know if emi can do anything about that, maybe if there is some library for large numbers...


Title: Re: Problem with energy on big ships!!!
Post by: xthex on September 25, 2006, 07:15:59 PM
haha i guess there is a limit to how far you can expand