.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 May 1st, 2001, 09:29 AM

COOL3077 COOL3077 is offline
Private
 
Join Date: Oct 2000
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
COOL3077 is on a distinguished road
Default Question About Number of Planets

Hi

Can some one explain to me why we can only use upto 255 planets per quadrant. I love this game to bits its just so good, but i like Gigantic maps to play with and was just wondering two things. How many can u have? And if only 255 Y????

Drew

PS modder wanabes plus seasoned modders should check this out.
http://www.cdmag.com/articles/032/11...eempir-04.html

Reply With Quote
  #2  
Old May 1st, 2001, 11:06 AM
Q's Avatar

Q Q is offline
Colonel
 
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
Q is on a distinguished road
Default Re: Question About Number of Planets

It's not 255 planets but 255 sytems per quadrant as maximum.
This is hard coded by MM probably because otherwise the game would need higher hardware requirements as it does now.
Reply With Quote
  #3  
Old May 1st, 2001, 11:55 AM

jc173 jc173 is offline
Sergeant
 
Join Date: Mar 2001
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
jc173 is on a distinguished road
Default Re: Question About Number of Planets

It's probably got something to do with the way the data is stored is my guess since 256 is a power of 2. Although if this were some sort of 256 slot array, I'd actually expect there to be 256 not 255 systems, I don't know maybe the first slot is some kinda of header.
Reply With Quote
  #4  
Old May 1st, 2001, 12:56 PM

nerfman nerfman is offline
Sergeant
 
Join Date: Aug 2000
Location: Greenville, SC
Posts: 377
Thanks: 0
Thanked 0 Times in 0 Posts
nerfman is on a distinguished road
Default Re: Question About Number of Planets

2^8 = 256
Reply With Quote
  #5  
Old May 2nd, 2001, 01:41 AM

rdouglass rdouglass is offline
Major
 
Join Date: Nov 2000
Location: Biddeford, ME, USA
Posts: 1,007
Thanks: 0
Thanked 0 Times in 0 Posts
rdouglass is on a distinguished road
Default Re: Question About Number of Planets

It probably is 255 'cause you can't have Zero systems, can you? It's like using a 0 based array instead of a 1 based array (for any programmer types). Just a guess but a possibility......
Reply With Quote
  #6  
Old May 1st, 2001, 03:55 PM
Taqwus's Avatar

Taqwus Taqwus is offline
Major General
 
Join Date: Aug 2000
Location: Mountain View, CA
Posts: 2,162
Thanks: 2
Thanked 4 Times in 4 Posts
Taqwus is on a distinguished road
Default Re: Question About Number of Planets

It's probably just an unsigned char -- 8 bits, with the possible range of 0-255. I suppose Aaron *could* have written it so that 0 was interpreted as 1, 255 as 256 (casting to a larger type), and so forth... but pretending that 0 means 1 is a very good way to lose sanity tracking down subtle bugs...

------------------
-- The thing that goes bump in the night
__________________
Are we insane yet? Are we insane yet? Aiiieeeeee...
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 06:08 AM.


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