To try to save some confusion I'm going to reexplain the process of making an interstellar worm hole connection. This information is posted here already but I think what is posted here is misleading as the code presented simply doesn't work. It does outline the concept correctly but its syntax is incorrect. Here is a working snippet of code.
Code
- interStarConnectionCount 2
- interStarConnection
- starIndexA 0
- planetIndexA 15
- starIndexB 1
- planetIndexB 6
- spawnProbability 1.0
- type "Wormhole"
- interStarConnection
- starIndexA 0
- planetIndexA 16
- starIndexB 1
- planetIndexB 3
- spawnProbability 1.0
- type "Wormhole"
To explain this directly, this creates two interstellar wormhole connections. One from star 1 planet 16 to star 2 planet 7, and another from star 1 planet 17 to star 2 planet 4.
To add an interstellar Wormhole connection simply find your interStarConnectionCount line and set its value to how many connections you wish to make. Then you use the following lines to specify the originating planet by star then planet index. Finally you set the destination star and planet via their indexes. Lastly you set your spawn probability, more than likely always going to be 1, and set the type to Wormhole.
Now, this sounds more complicated than it actually is. However, finding the correct index value is a misleading process.
This value cannot be found in galaxy forge. I cannot overstate this enough. The only way to find the correct value is to count how many stars you have from the top of the file down,
using a text editor on the galaxy file. Then once you have your star index, within your star entity you will have all your planet entities. These must be counted from the top of the star entity down starting with 0.
For example, if you have 2 stars your indexes for those stars will be 0 and 1. If each star has 4 planets each of these would have indexes from 0 to 3. Wormholes are simply planets as far as the engine is concerned.
So if you have a wormhole that is located in the first star on the third planet its index would be star 0, planet 2.
To create an in system worm hole you simply find the connectionCount for the appropriate star and increment that value by how many connections you want to add. Galaxyforge will have created a number of connections for you, one for each phase lane. You only have to create the wormhole connections manually. So if you wanted to create an in system set of wormholes you would be adding 1 connection between the 2 planets (wormholes). These connections are star specific so make sure you stick them under the correct star entity.
Code
- connection
- planetIndexA 0
- planetIndexB 4
- spawnProbability 1.000000
- type "Wormhole"
This code would create a wormhole connection between planet 1 and 5. Now, one of these planets must actually be a wormhole for this to work. If you make one side of your wormhole another planet type you have just created a one way wormhole. This one way concept works on the interstellar holes as well.
Both the interstellar and local connections can be made to work like normal phase lanes if you set the type to "Phaselane". Galaxyforge is good enough to make your local phase lanes for you so I don't think you'll want to be doing this by hand. However, you can create an interstellar phase lane just like the interstellar jump holes. Just change the type and your ships can happily fly from one star to the other via a normal phase lane.
I want to thank those that came before me in this thread. Without their input I wouldn't have gotten this to work at all. Happy mapping everyone!