Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » FreeStars » New stars! server clone proposal
Re: New stars! server clone proposal Mon, 01 October 2007 04:53 Go to previous messageGo to previous message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
yartrebo wrote on Sun, 30 September 2007 21:51

Would you mind sharing your algorithm(s)? I was planning on only doing the basic stars! generation, but it's more for a lack of ideas than for it being particularly difficult.


Well, generating the coordinate distributions isn't actually hard, at least for "classical" shapes like rectangles, rings, globular clusters and spiral galaxies. The main issues are eliminating those coordinates too close to others and automatically placing the HomeWorlds, and I do both by mostly brute-force. Rolling Eyes Whip

The hardest is (to me) to find a good enough way for the game creator to specify how the galaxy should be created, by using criteria such as:

Deal overall star density, not just size, particularly for non-rectangular galaxies, or where there's more than one shape involved (say, 4 squares inside a ring)
Deal non-standard HW placement (for example, in spirals, or scenario games)
Deal generally, how to specify which galaxy you want without needing to use an endless set of numbers...

Perhaps you'll be better off by sticking to standard shapes 1st and waste time on candy later when everything else is already rolling. Sherlock

But it would be nice if your "engine" had room for that candy from its inception. Twisted Evil



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Just a Clone?
Next Topic: Efficient Algorithm for Scanning planets/fleets/etc.
Goto Forum:
  


Current Time: Fri May 10 04:06:11 EDT 2024