request to have more control on system generator
-
- Bounty Hunter
- Posts: 138
- Joined: Thu May 22, 2008 8:53 am
request to have more control on system generator
we (vt) need the ability to create systems with 3 and 4 suns, is it possible to have more control on the numbers of suns and system size?
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
Re: request to have more control on system generator
Have you looked at the first sector of milky_way.xml? (After the planet definitions) It should be called <sector name="unknown_sector"> and it contains the minimum and maximum defaults for each system--the actually values are randomly chosen between the <system name="min"> and <system name="max"> specified there.
There's also minlimit and maxlimit which might serve as absolute caps so they might be overriding what you are putting there.
There should be some definitions for num_stars and num_planets.
If you need more control, you can specify these values individually for each system as well.
For the scaling of the systems there is a configuration variable. The only actual value is the "sun_radius" specified in the .xml file which I think is multiplied by vegastrike.config Section "galaxy", Variable "StarRadiusScale"
There is also Section "galaxy", Variable "CompactnessScale" which I think is multiplied by the "compactness" that is determined randomly for each system.
The config has a few other variables that could be interesting to tweak. Also, make sure you remember to clear out ".vegastrike/sectors" before testing because they are only generated once even if you start a new saved game.
There's also minlimit and maxlimit which might serve as absolute caps so they might be overriding what you are putting there.
There should be some definitions for num_stars and num_planets.
If you need more control, you can specify these values individually for each system as well.
For the scaling of the systems there is a configuration variable. The only actual value is the "sun_radius" specified in the .xml file which I think is multiplied by vegastrike.config Section "galaxy", Variable "StarRadiusScale"
There is also Section "galaxy", Variable "CompactnessScale" which I think is multiplied by the "compactness" that is determined randomly for each system.
The config has a few other variables that could be interesting to tweak. Also, make sure you remember to clear out ".vegastrike/sectors" before testing because they are only generated once even if you start a new saved game.
-
- Bounty Hunter
- Posts: 138
- Joined: Thu May 22, 2008 8:53 am
Re: request to have more control on system generator
thanks, will check