Star Distribution

Is anyone aware of which file governs the proportion of stars by color that is generated in a new game or with the map editor?  How many yellows vs blues/whites/reds/orange?

6,378 views 4 replies
Reply #1 Top

I suspect it just runs through the star list over and over until it hits the base number tbh.

Reply #2 Top

StarSystemDefs.xml is the file you are looking for. The system group (bottom part of the file) there seems to control the number of each star you get. Just change the type of a couple of stars there and you will get more or less of your wanted kind. 

Reply #4 Top

Yeah, there is no number to tweak, but every spawned system on the map has a defined star from that file. Changing the star in that file will increase/decrease the spawning of those stars affected. The map generator seems to randomly pick from these systems when creating stars on the map. So the more you have of one kind, the more it should spawn. I haven't been counting but my best guess is that is how it works. (Instead of running through the list over and over when creating star systems) Either way you need to create a list and do the numbers manually sadly. 

If you want a completely new file for more accuracy you can create a new file creating your own system group with the values you seem to want. Just change the line <StarSystemTemplateGroup>SystemTemplate</StarSystemTemplateGroup> in Galciv3MapDefs.xml with your new path. There seems to be no limit to how many different star systems you can create in a group.

Anyways, it looks good so far. Hope you get it working ;)