Forum - Space Odyssey MMORPG - a massive free online space game
May 13, 2024, 04:58:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New game Astro Galaxy launched by ET Virtual Worlds, http://www.astro-galaxy.com
 
   Home   Help Search Members Login Register  
Pages: [1]
  Send this topic  |  Print  
Author Topic: Problem with energy on big ships!!!  (Read 1994 times)
Palad
Private
*

Reputation: +0/-0
Offline Offline

Posts: 7


View Profile
« 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!!!
Report to moderator   Logged
UberPWNZ0R
Corporal
*

Reputation: +0/-0
Offline Offline

Posts: 136


In game login: ☺


View Profile
« Reply #1 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...
Report to moderator   Logged

Alright... rip
xthex
Guest
« Reply #2 on: September 25, 2006, 07:15:59 PM »

haha i guess there is a limit to how far you can expand
Report to moderator   Logged
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!