.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old May 9th, 2001, 01:06 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Could someone explain:

No, its CS 251
Reply With Quote
  #2  
Old May 9th, 2001, 06:08 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Could someone explain:

Thank god, I thought it was Basic Cobolt 101 with a bit of C, not C++. I was getting confused. Often happens after:

10 cls
20 print "WTF"
30 input = x
40 print "enter your name"
50 print x
60 Print "you just froze up my pc."
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #3  
Old May 9th, 2001, 11:48 AM

Lemmy Lemmy is offline
Second Lieutenant
 
Join Date: Mar 2001
Location: Netherlands
Posts: 479
Thanks: 0
Thanked 0 Times in 0 Posts
Lemmy is on a distinguished road
Default Re: Could someone explain:

quote:
Originally posted by klausD:
Especially because the entire data of the different sectors have not to be in RAM the whole time, (because only one sector is active in RAM at the same time) it could be a resource saving method. On the other hand the universe could be nearly infinite. (depending rather on HD-space than RAM)


but then how do you calculate what the AI is doing in the different sectors, if the sector is stored on hd, then after each turn one sector should be saved, another one loaded, let the AI take their turn, and load the next sector

or am i missing something



[This message has been edited by LemmyM (edited 09 May 2001).]
__________________
[Boo!]
Reply With Quote
  #4  
Old May 9th, 2001, 12:31 PM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Could someone explain:

Does anyone recall Frontier: Elite II? That came on 2x 1meg floppies and the map size on there was ridiculous. There were (literally) millions and millions of systems.

Once I jammed my cursor keys down on the system map and went away for a while. When I got back it had reached grid -1124, 295 or something, and it had still only moved a few pixels on the (full screen) galactic map. To put that to scale, each grid reference had maybe half a dozen 3D systems in. Only the nearest few hundred grid references actually stored system information other than the word "unexplored" but the amount of information was mind blowing.

When I reloaded the game another time and checked back, though, the system data was exactly the same (even at -1124, 295), so if it was generating the systems dynamically, it wasn't doing it randomly. It *must* have been generated on the fly by some kind of fractal routine. Veeeery clever. Shame the rest of the game was so buggy.

------------------
"Pinky, are you pondering what I'm pondering?"
"Uh, I think so Brain, but how are we gonna teach a goat to dance with flippers on? "
Reply With Quote
  #5  
Old May 10th, 2001, 01:03 AM

Askan Nightbringer Askan Nightbringer is offline
Corporal
 
Join Date: May 2001
Location: Sydney, Australia (the 3rd island!)
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Askan Nightbringer is on a distinguished road
Default Re: Could someone explain:

The Elite guys did randomly create their map. But they stored the 'seed' used to randomly create the map so when you loaded up a game you always got the same result.

This is because random numbers on computers aren't really random. There is just a huge lookup table full of numbers and each one comes out in order. The 'seed' is what is used to work out where you start in that table.

If you use the same 'seed' you'll always get the same numbers in the same order.

ie. If seed = 24
First 5 random numbers is
4 11 3 6 3

So I don't have to store 4,11,3,6,3 all I have to store is the seed (24 in this case).

The original Elite universe was stored in something like 4 bytes of data (which is 32 1's or 0's ). They just had table to look up desriptions based on verbs and nouns. (I guess its the lookup tables that took up all the space)

ie. The Gelbars are known for their fanatical love of sitcoms.

Well thats my bit of completely useless trivia for the week.

Askan


__________________
It should never be forgotten that the people must have priority -- Ho Chi Minh
Reply With Quote
  #6  
Old May 9th, 2001, 02:55 PM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Could someone explain:

Interesting. Not much good for SE though, sinc once the map is generated you *still* have the problem of how to manipulate it all in memory.

------------------
"Pinky, are you pondering what I'm pondering?"
"Uh, I think so Brain, but how are we gonna teach a goat to dance with flippers on? "
Reply With Quote
  #7  
Old May 9th, 2001, 03:20 PM

Krakenup Krakenup is offline
Corporal
 
Join Date: Jan 2001
Location: Newport News, VA
Posts: 125
Thanks: 0
Thanked 0 Times in 0 Posts
Krakenup is on a distinguished road
Default Re: Could someone explain:

quote:
Originally posted by askan:
This is because random numbers on computers aren't really random. There is just a huge lookup table full of numbers and each one comes out in order. The 'seed' is what is used to work out where you start in that table.

If you use the same 'seed' you'll always get the same numbers in the same order.


Usually, it's not really a table. Most Random Number Generators perform a series of mathematical operations on the seed, generating a "random" number and a new seed. So if you start with the same seed, as askan said, you get the same series of random numbers. Tables of random numbers exist, but, if you are using billions of them, it's a lot easier to generate them on the fly.
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 01:00 AM.


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