I am trying to duplicate the function of the random mapmaker in the game by creating a map via Galaxy Forge with a 50/50% chance planets (save for player starting planets) will spawn. My problem is if I connect all the planets with phase lines, and one of those planets between two phase lines does not spawn that game, then the phase line does not just continue to the next possible planet so I could have spots in the map you can't go any further to get to the rest of the planets. What can I do to fix this? What is the purpose of a percent chance of planets spawning if you can't guarantee a connection between them?
Here is an example: I create 6 planets in a galaxy forge map. 4 planets (excluding the homeworlds) are set to a 50% chance of spawning. They are lined up one after another. I connect all the planets via phase lines. Now if the first planet after my homeworld does not spawn no phase line spawns breaking the chain and my homeworld is now isolated from the other planets.
Now, I could connect all planets with all possible connections to insure a path which would be A LOT of phase lines but that would be silly. I do not want a sure path of planets that will always be there because that kind of defeats the purpose of randomizing the map. Yes, I could just use the map maker that came with the game but I want the extra options galaxy forge comes with that the in game map maker does not, for example, the choice to use the default template on a planet etc.
Any help?
Edit --- Well to partially answer my own question, I would make a definite path of planets that will have a 100% chance of being there so that you were guaranteed at least 1 path to the other homeworlds.