.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #28  
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
 

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 04:04 PM.


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