.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old March 5th, 2007, 06:32 AM
David E. Gervais's Avatar

David E. Gervais David E. Gervais is offline
General
 
Join Date: May 2002
Location: Canada
Posts: 3,227
Thanks: 7
Thanked 44 Times in 28 Posts
David E. Gervais is on a distinguished road
Default Re: Asteroid Rings

Hi there,

In SystemTypes.txt you often see more than one planet with the same 'position' (ie Ring 7 might have 2 planets assigned to it.) The game seems to be smart enough not to place these planets in the same hex, so simply add a bunch of Asteroid objects and assign them the same Ring #. In the example below Object 12 is an asteroid field that will be randomly placed in Ring 5. Simply Copy this data a bunch of times to 'mostly' fill the number of hexes in the target ring. And change the Obj ##. So if you wanted ring 5 to be filled with asteroids create Obj 12 to say 32 and add it to a new System type.

Code:

Obj 12 Physical Type := Asteroids
Obj 12 Position := Ring 5
Obj 12 Stellar Abil Type := Normal Asteroids
Obj 12 Specific Stellar Obj Name := Any
Obj 12 Size := Any
Obj 12 Atmosphere := Any
Obj 12 Composition := Any



I hope this helps, At least that is how I see it could be done. Also, I wouldn't 'Fill' the entire ring, if the game does a search for 'empty' hex in a Ring and keeps finding only asteroids the game might hang while doing the system generation.

Cheers!
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 07:13 AM.


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