For those looking to edit connections themselves, changing existing ones or adding new connections is fairly easy. to edit the xml's i HIGHLY suggest that you use notepad++, a free text editor that is vastly superior to your windows notepad.
first, identify what connection you'd like to add (I'd suggest adding it to the list.xml file. that file doesn't do anything but help you as a mental note) also figure out which dlc those sectors belong to, it's important. This page has some helpful tags at the bottom you can toggle, to get an idea, if you aren't sure. For base game gates use the map\... directory and for any of the dlc's use extensions\... .
as an example: say you want to add a gate to Jupiter. This is a terran sector, so open up More Gates\extensions\ego_dlc_terran\maps\xu_ep2_universe and then open up dlc_terran_zones.xml and dlc_terran_sectors.xml
in the zones file, simply copy the last block in both files and add it to the bottom, above </diff> ( from <add to </add>. i suggest copying the comment above it for organization purposes as well)
go to https://roguey.co.uk/x4/universe/ and select the sector you want to place the gate in. for Jupiter this would be: "https://roguey.co.uk/x4/universe/cluster_107_macro/cluster_107_sector001_macro/". From the URL you can see that it is cluster 107 and sector 001. those 2 are the important numbers. sector is always going to be 1 if its a single sector, but for multi sectors like grand exchange, it denotes the number within the cluster, so keep that in mind.
get your second gates id as well. for this example, let's connect Jupiter to Antigone memorial. using Roguey you can identify it as cluster 49 sector 001. Since it's a vanilla sector, the file to edit would be More Gates\maps\xu_ep2_universe\sectors.xml and zones.xml
now swap the cluster number and sector number in the blocks you just added in those files with the ones from the sectors you want to add: <!-- 12 Jupiter x Antigone memorial --> <add sel="//macros/macro[@name='Cluster_107_Sector001_macro']/connections"> <connection name="zones_iHaku_Cluster_107_Sector001_connection" ref="zones"> <offset> <position x="60000" y="0" z="-140000" /> </offset> <macro ref="zones_iHaku_Cluster_107_Sector001_macro" connection="sector"/> </connection> </add> and the zones.xml is going to be edited like this: <!-- 12 Jupiter x Antigone memorial --> <add sel="//macros"> <macro name="zones_iHaku_Cluster_107_Sector001_macro" class="zone"> <component ref="standardzone"/> <connections> <connection name="connection_ClusterGate107To49" ref="gates"> <offset> <position x="1" y="1" z="1"/> <rotation yaw="310" /> </offset> <macro ref="props_gates_anc_gate_macro" connection="space"/> </connection> </connections> </macro> </add> Do the same for the other sector as well, since you will need 2 gates to connect. i highly suggest swapping the names in the note, again for organization purposes. makes it easier later to know which gate is which.
for the "position" entry in sector.xml, change the values in increments of about 10.000. good distances for gates seem to be between 70k and 140k away from the center. for "jaw", it's simple the orientation of the ring, ie: in which direction it's going to be facing. 0 means its looking downwards, 90 is to the left, 180 up, 270 to the right and 360 is the same as 0 again.
lastly, open up More Gates\maps\xu_ep2_universe\galaxy.xml and add your entry at the bottom. In this example, the edited entry would look like this:
<!-- 12 Sacred Relic x Turquoise Sea X --> <add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections"> <connection name="ClusterGate107To49" ref="destination" path="../Cluster_23_connection/Cluster_107_Sector001_connection/zones_iHaku_Cluster_107_Sector001_connection/connection_ClusterGate107To49"> <macro connection="destination" path="../../../../../Cluster_49_connection/Cluster_49_Sector001_connection/zones_iHaku_Cluster_49_Sector001_connection/connection_ClusterGate49To107"/> </connection> </add> and that's it, your new gates and connections should show up ingame. place them wherever you want by editing the positions (keep the 1/1/1 in zones like that, I'm told placing it to 0/0/0 can result in teleportation bugs if you stand up while in the zone of the gate. so just keep it like that) double check your sector values to really be 00X, if you're editing a multi sector cluster!
I love this mod! Any plans to modify this a bit with the new sectors added? More specifically Mists of Artemis, Freeom's Reach, Mitsuno's Sacrifice or Defiance and maybe Nopileos' Memorial and or any of the new sectors you think might be more interesting to connect.
A lot of the new sectors make for some great player bases but they are so far away from trading hubs they just aren't nearly as viable. By adding a connection or two it opens them up a bit as being more competitive.
Hey Nice mod, Also love the customization. Made a proper map for it hope you like it.
Also, how can I add my own gate connection if possible? Some suggestions,
Eleventh Hour to Heart of Acrimony I boneyard (the one to the left of current) rather than the home system of FRF Heart of Acrimony II
Watchful Gaze to Matrix 79B since Borons need some conflict to bring them into the reality of X4's universe conflict those pacifist morons. Removing Litany of Fury to Sanctuary of Darkness, since its too close to the boron home system and "Watchful Gaze to Matrix 79B" compensates for it.
Menelaus Oasis to Oort Cloud or Uranus or Saturn rather than Mercury, basically the outer edge of Sol rather than inner planets, since the Terran xenophobia would never allow access to inner planets to any race not even ARG let alone the borons, they'd rather invade the borons and the borons will just get slaughtered currently.
also removing Oort Cloud to Atiyas Misfortune as Xenon there just gets trampled due to superior Terran forces and gives the Terrans an extremely advantageous back door to ANT and ARG and HOP.
Remove Company Regard to Tharkas Ravine as it adds nothing to the situation and there is already "Hewas Twin to Ianamus Zura"
Remove Ocean of Fantasy to Astroid belt since there is already Barren Shores to Getsu Fune or vice-versa
Keep Atreus Clouds to Great Reef cause who doesn't hate Sanctuary of Darkness
I'm trying to get this mod to work but it just... doesn't?
Tried installing it both manually and using Vortex, the game recognizes it, shows it as active and everything but the gates are just not there.
How do i even troubleshoot that?
Well.... It's working now BUT there's something you might want to add to your explanation on how to add new connections. If the gate you are trying to add is at a sector that already has an added gate by the mod itself you have to niche the connections within the already added sector/zone I was trying to get asteroid belt to link into black hole sun V this means that the code that got it to work was (position is just for ease of debugging and comments moved around for organization purposes):
(For some reason the nexus forum changes the command "CONNECTlON=" into "cjavascript-event-stripped", so assume every time it shows up its the connection equals command.)
On terran zones xml, Create a second macro with a different name under the first </macro> of the original entry:
<!-- 6-12 Asteroid Belt Connections--> <add sel="//macros"> <!-- 6 Asteroid Belt x Ocean of Fantasy --> <macro name="zones_iHaku_Cluster_100_Sector001_macro" class="zone"> <component ref="standardzone"/> <connections> <connection name="connection_ClusterGate100To604" ref="gates"> <offset> <position x="1" y="1" z="1"/> <rotation yaw="225" /> </offset> <macro ref="props_gates_anc_gate_macro" connection="space"/> </connection> </connections> </macro> <!-- 12 Asteroid Belt x Black Hole V--> <macro name="zones_iHaku_Cluster_100_Sector001_macro2" class="zone"> <component ref="standardzone"/> <connections> <connection name="connection_ClusterGate100To06" ref="gates"> <offset> <position x="1" y="1" z="1"/> <rotation yaw="150" /> </offset> <macro ref="props_gates_anc_gate_macro" connection="space"/> </connection> </connections> </macro> </add>
On terran sectors xml Create another connection with a different name under the first </connection>, then reference the zone macro created in the zones xml, MAKE SURE IT HAS THE SAME NAME :
<!--6-12Asteroid Belt Connections--> <add sel="//macros/macro[@name='Cluster_100_Sector001_macro']/connections"> <!-- 6 Asteroid Belt x Ocean of Fantasy --> <connection name="zones_iHaku_Cluster_100_Sector001_connection" ref="zones"> <offset> <position x="110000" y="0" z="110000" /> </offset> <macro ref="zones_iHaku_Cluster_100_Sector001_macro" connection="sector"/> </connection>
On Galaxy xml make sure to reference the correct connection name created inside sectors xml :
<!-- 12 Asteroid Belt x Black Hole sun V --> <add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections"> <connection name="ClusterGate06To100" ref="destination" path="../Cluster_06_connection/Cluster_06_Sector002_connection/zones_iHaku_Cluster_06_Sector002_connection/connection_ClusterGate06To100"> <macro connection="destination" path="../../../../../Cluster_100_connection/Cluster_100_Sector001_connection/zones_iHaku_Cluster_100_Sector001_connection2/connection_ClusterGate100To06"/> </connection> </add>
This way every sector can have as much added gates as you would like them to have.
First off all ... many thanks for this mod ! Its exactly what I was looking for, especially with the possibility to change everything to my own needs ... ...and while doing that, I run in to a problem on my side.
I followed your explanation and was able to add the new gates to the sectors where I want them, check. The problem is, that the connections between them dont work. :/ All new gates are marked as inactive. All predefined connections added by your mod work as they should. Tbh I have no idea as to why mine arent working, because I simply copied the new coordinates in to the galaxy.xml and didnt change anything else in the code. I´ve read the comments below, and also tried deltamaddog´s "fix" (creating a new file instead of overwriting the original one), but that didnt fix the issue either.
So, after some hours of testing, changing etc. I was able to get some connections to work, but I found a lot of other strange behaviors, which dont make any sense, at least to me. ;)
1. when the mod is used unchanged, every connection does work, if the mod starts/loads with the save... sometimes it simply doesnt and all gates are market as inactive. 2. adding new gates does not work in every sector *solved 3. some connections between additionally added gates dont work (gates are both marked as inactive) *solved 4. removing some existing connections (which came with your mod) and adding new ones, sometime results in active gates, but without a transfer between them.... also quite strange[/s-] *seems as if it is solved - still have to test all connections 5. [s]after certain changes, the save wont load again *solved as well
If you´re interested and have the time, i´d like to provide my changes in your code plus (if possible) some logs.
cheers
*"solutions" /my changes I´ve put a bit more additional time in to it and just added all my new connections / gates etc. at the end of your predefined settings, instead of "cleaning" the whole file .... this worked. :) At first I wanted the whole file "cleaned", thats why I didnt do it the way you explained it in the description. Thanks again for this mod ! :)
Hey, nice mod so far. Wanted to add some extra Gates. Example: Morningstar 4 x Silent Witness 1. Now I have 1 extra inactive Gate in each Sector. Maybe there is something wrong with connecting both Gates? For test purposes I have choosen a Position in the center of each sector. (`cjavascript-event-stripped` is `connection`) Zones: <!-- 12 Morning Star IV x Silent Witness I --> <add sel="//macros"> <macro name="zones_iHaku_Cluster_46_Sector001_macro" class="zone"> <component ref="standardzone"/> <connections> <connection name="connection_ClusterGate46To08" ref="gates"> <offset> <position x="1" y="1" z="1"/> <rotation yaw="310" /> </offset> <macro ref="props_gates_anc_gate_macro" connection="space"/> </connection> </connections> </macro> </add> <!-- 12 Silent Witness I x Morning Star IV--> <add sel="//macros"> <macro name="zones_iHaku_Cluster_08_Sector001_macro" class="zone"> <component ref="standardzone"/> <connections> <connection name="connection_ClusterGate08To46" ref="gates"> <offset> <position x="1" y="1" z="1"/> <rotation yaw="210" /> </offset> <macro ref="props_gates_anc_gate_macro" connection="space"/> </connection> </connections> </macro> </add>
Sectors: <!-- 12 Morning Star IV x Silent Witness I --> <add sel="//macros/macro[@name='Cluster_46_Sector001_macro']/connections"> <connection name="zones_iHaku_Cluster_46_Sector001_connection" ref="zones"> <offset> <position x="10000" y="0" z="0" /> </offset> <macro ref="zones_iHaku_Cluster_46_Sector001_macro" connection="sector"/> </connection> </add> <!-- 12 x Silent Witness I x Morning Star IV --> <add sel="//macros/macro[@name='Cluster_08_Sector001_macro']/connections"> <connection name="zones_iHaku_Cluster_08_Sector001_connection" ref="zones"> <offset> <position x="0" y="10000" z="0" /> </offset> <macro ref="zones_iHaku_Cluster_08_Sector001_macro" connection="sector"/> </connection> </add>
Galaxy: <!-- 12 Morning Star IV x Silent Witness I --> <add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections"> <connection name="ClusterGate46To08" ref="destination" path="../Cluster_46_connection/Cluster_46_Sector001_connection/zones_iHaku_Cluster_46_Sector001_connection/connection_ClusterGate46To08"> <macro connection="destination" path="../../../../../Cluster_08_connection/Cluster_08_Sector001_connection/zones_iHaku_Cluster_08_Sector001_connection/connection_ClusterGate08To46"/> </connection> </add>
I would apprechiate help very much. Thank you for your work :)
Just copying your galaxy portion into my own galaxy.xml to compare, i'm not sure why you changed <macro cjavascript-event-stripped"destination" path=
to <macro connection="destination" path=
I dont know why you would use "cjavascript-event-stripped" as i've never used that so i dont know if it works without the "=" right after it or if the game is ok with that in the first place. I'm not actually that familiar with xml and how x4 uses it, mostly just learned trough looking at the vanilla files and asking on discord when i run into a deadend.
more clear, nexus changing the code messes things up :D I changed things the same style as the ones provided by the mod honestly I dont know how to insert a screenshot here
I may have solved the problem. Removed the Gate from your files, edited them again in a new file. Started again a new game and imported the mod(3Files, galaxy, sector and zones) in it. Now its working. Thanks for your help anyway.
I noticed the Boron building stations in Getsu Fune before reconnecting the Heretic's End gate to their systems, which kinda breaks the immersion of doing those storylines. Is there any way to link the other Boron connections to the Heretic's End mission?
no, but what you can do is go to the galaxy file and put a comment indicator around that specific connection. that way, it will not be active, but the gates will be there. then, when the story connection is established, you simply remove the comment indicators and the connection will be there.
<!-- content -->
this is how the comment indicators look like, and anything between them will be ignored in the xml (that's why there are indicators around the names of the connection).
to be more specific, i would move the --> after the </add>. like this <!-- 1 Great Reef x Atreus Clouds <add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections"> <connection name="ClusterGate603To608" ref="destination" path="../Cluster_603_connection/Cluster_603_Sector001_connection/zones_iHaku_Cluster_603_Sector001_connection/connection_ClusterGate603To608"> <macro connection="destination" path="../../../../../Cluster_608_connection/Cluster_608_Sector001_connection/zones_iHaku_Cluster_608_Sector001_connection/connection_ClusterGate608To603"/> </connection> </add> -->
Great addon! Really mixes things up from the base game. It's nice to see Boron trading with Terran and Paranid. The Xenon get some new ways into some of the systems too which makes the games a bit more spicy.
the boron and terran will not trade as they are incapable of doing so as "enemies". they wont really attack each other either. I added this specific gate as more like a player-only gate, if the player wishes to boost the boron economy as a teran starter. tho BUC will sometimes use it, not like they really mess with boron anyway. (unless you use some war addon that makes reputations between factions dynamic, at which point this gate becomes pretty important)
The main boron gates are litany of fury and great reef x atreus cloud, which see heavy usage by the AI. IMO i feel like the latter was almost ment to be in the game in the first place. maybe ocean of fantasy instead, but it feels right. If Egosoft would add a mission to connect the inactive gates in those 2 sectors, that'd be great.
Hi, the gate in Sanctuary of Darkness (leading to Litany of Fury) is in a dangerous region and just after a couple of hours play time there are several dozens of ship wrecks already. So please can you fix that by moving the gate to a safe region?
Hmm, that area isnt actually in a hazard zone, but i suppose the AI often doesnt know how to fly around those parts too well. i didnt see this happening on my end, but i'd totally believe it, knowing how messed up the pathing can be at times.
regardless, i moved the gate closer to where the ai is supposed to move in SoD anyway, near the highway. should be easier for it to fly there. thanks for the report!
hey, great mod finaly some shortcut gates but could u do me a favour plz ? there are 3 connections u miss : second contact 7 and frontier edge saturn 2 and venus turqoise see and antigone memoria
It's nice to see some connectivity in the sectors, but if I would make some small changes/additions I would add more connections to Xenon sectors to make the universe a little more 'interesting'
some of the connections do that. they dont always directly go into a xenon sector, but a 1 jump gate usually does the same if the gates are close together in the same space, which i made sure to be the case (so they dont need to fly trough lots of hostile space to reach their target)
more connections arent going to give the xenon more ships, as they are still capped by production speed and total ship capacity. furthermore, i gave relatively direct connections to BOR/HOP, who had essentially zero connections at all to xenon space, and gave terran a second source of potential invasion. the other factions didnt really need more invasion routes, besides maybe PIO, who probably couldnt deal with it anyway (tho they do have a 3 and 4 gate connection now).
22 comments
to edit the xml's i HIGHLY suggest that you use notepad++, a free text editor that is vastly superior to your windows notepad.
first, identify what connection you'd like to add (I'd suggest adding it to the list.xml file. that file doesn't do anything but help you as a mental note)
also figure out which dlc those sectors belong to, it's important. This page has some helpful tags at the bottom you can toggle, to get an idea, if you aren't sure.
For base game gates use the map\... directory and for any of the dlc's use extensions\... .
as an example: say you want to add a gate to Jupiter. This is a terran sector, so open up More Gates\extensions\ego_dlc_terran\maps\xu_ep2_universe and then open up dlc_terran_zones.xml and dlc_terran_sectors.xml
in the zones file, simply copy the last block in both files and add it to the bottom, above </diff> ( from <add to </add>. i suggest copying the comment above it for organization purposes as well)
go to https://roguey.co.uk/x4/universe/ and select the sector you want to place the gate in. for Jupiter this would be: "https://roguey.co.uk/x4/universe/cluster_107_macro/cluster_107_sector001_macro/". From the URL you can see that it is cluster 107 and sector 001. those 2 are the important numbers. sector is always going to be 1 if its a single sector, but for multi sectors like grand exchange, it denotes the number within the cluster, so keep that in mind.
get your second gates id as well. for this example, let's connect Jupiter to Antigone memorial. using Roguey you can identify it as cluster 49 sector 001. Since it's a vanilla sector, the file to edit would be More Gates\maps\xu_ep2_universe\sectors.xml and zones.xml
now swap the cluster number and sector number in the blocks you just added in those files with the ones from the sectors you want to add:
<!-- 12 Jupiter x Antigone memorial -->
<add sel="//macros/macro[@name='Cluster_107_Sector001_macro']/connections">
<connection name="zones_iHaku_Cluster_107_Sector001_connection" ref="zones">
<offset>
<position x="60000" y="0" z="-140000" />
</offset>
<macro ref="zones_iHaku_Cluster_107_Sector001_macro" connection="sector"/>
</connection>
</add>
and the zones.xml is going to be edited like this:
<!-- 12 Jupiter x Antigone memorial -->
<add sel="//macros">
<macro name="zones_iHaku_Cluster_107_Sector001_macro" class="zone">
<component ref="standardzone"/>
<connections>
<connection name="connection_ClusterGate107To49" ref="gates">
<offset>
<position x="1" y="1" z="1"/>
<rotation yaw="310" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space"/>
</connection>
</connections>
</macro>
</add>
Do the same for the other sector as well, since you will need 2 gates to connect. i highly suggest swapping the names in the note, again for organization purposes. makes it easier later to know which gate is which.
for the "position" entry in sector.xml, change the values in increments of about 10.000. good distances for gates seem to be between 70k and 140k away from the center.
for "jaw", it's simple the orientation of the ring, ie: in which direction it's going to be facing. 0 means its looking downwards, 90 is to the left, 180 up, 270 to the right and 360 is the same as 0 again.
lastly, open up More Gates\maps\xu_ep2_universe\galaxy.xml and add your entry at the bottom.
In this example, the edited entry would look like this:
<!-- 12 Sacred Relic x Turquoise Sea X -->
<add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
<connection name="ClusterGate107To49" ref="destination" path="../Cluster_23_connection/Cluster_107_Sector001_connection/zones_iHaku_Cluster_107_Sector001_connection/connection_ClusterGate107To49">
<macro connection="destination" path="../../../../../Cluster_49_connection/Cluster_49_Sector001_connection/zones_iHaku_Cluster_49_Sector001_connection/connection_ClusterGate49To107"/>
</connection>
</add>
and that's it, your new gates and connections should show up ingame. place them wherever you want by editing the positions
(keep the 1/1/1 in zones like that, I'm told placing it to 0/0/0 can result in teleportation bugs if you stand up while in the zone of the gate. so just keep it like that)
double check your sector values to really be 00X, if you're editing a multi sector cluster!
A lot of the new sectors make for some great player bases but they are so far away from trading hubs they just aren't nearly as viable. By adding a connection or two it opens them up a bit as being more competitive.
Also love the customization.
Made a proper map for it hope you like it.
Also, how can I add my own gate connection if possible?
Some suggestions,
This is what i'm proposing:
thanks
I'm trying to get this mod to work but it just... doesn't?
Well.... It's working now BUT there's something you might want to add to your explanation on how to add new connections.Tried installing it both manually and using Vortex, the game recognizes it, shows it as active and everything but the gates are just not there.
How do i even troubleshoot that?
If the gate you are trying to add is at a sector that already has an added gate by the mod itself you have to niche the connections within the already added sector/zone
I was trying to get asteroid belt to link into black hole sun V
this means that the code that got it to work was (position is just for ease of debugging and comments moved around for organization purposes):
(For some reason the nexus forum changes the command "CONNECTlON=" into "cjavascript-event-stripped", so assume every time it shows up its the connection equals command.)
On terran zones xml, Create a second macro with a different name under the first </macro> of the original entry:
<!-- 6-12 Asteroid Belt Connections-->
<add sel="//macros">
<!-- 6 Asteroid Belt x Ocean of Fantasy -->
<macro name="zones_iHaku_Cluster_100_Sector001_macro" class="zone">
<component ref="standardzone"/>
<connections>
<connection name="connection_ClusterGate100To604" ref="gates">
<offset>
<position x="1" y="1" z="1"/>
<rotation yaw="225" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space"/>
</connection>
</connections>
</macro>
<!-- 12 Asteroid Belt x Black Hole V-->
<macro name="zones_iHaku_Cluster_100_Sector001_macro2" class="zone">
<component ref="standardzone"/>
<connections>
<connection name="connection_ClusterGate100To06" ref="gates">
<offset>
<position x="1" y="1" z="1"/>
<rotation yaw="150" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space"/>
</connection>
</connections>
</macro>
</add>
On terran sectors xml Create another connection with a different name under the first </connection>, then reference the zone macro created in the zones xml, MAKE SURE IT HAS THE SAME NAME :
<!--6-12Asteroid Belt Connections-->
<add sel="//macros/macro[@name='Cluster_100_Sector001_macro']/connections">
<!-- 6 Asteroid Belt x Ocean of Fantasy -->
<connection name="zones_iHaku_Cluster_100_Sector001_connection" ref="zones">
<offset>
<position x="110000" y="0" z="110000" />
</offset>
<macro ref="zones_iHaku_Cluster_100_Sector001_macro" connection="sector"/>
</connection>
<!-- 12 Asteroid Belt x Black Hole V-->
<connection name="zones_iHaku_Cluster_100_Sector001_connection2" ref="zones">
<offset>
<position x="110000" y="10000" z="110000" />
</offset>
<macro ref="zones_iHaku_Cluster_100_Sector001_macro2" connection="sector"/>
</connection>
</add>
On Galaxy xml make sure to reference the correct connection name created inside sectors xml :
<!-- 12 Asteroid Belt x Black Hole sun V -->
<add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
<connection name="ClusterGate06To100" ref="destination" path="../Cluster_06_connection/Cluster_06_Sector002_connection/zones_iHaku_Cluster_06_Sector002_connection/connection_ClusterGate06To100">
<macro connection="destination" path="../../../../../Cluster_100_connection/Cluster_100_Sector001_connection/zones_iHaku_Cluster_100_Sector001_connection2/connection_ClusterGate100To06"/>
</connection>
</add>
This way every sector can have as much added gates as you would like them to have.
Solved
First off all ... many thanks for this mod ! Its exactly what I was looking for, especially with the possibility to change everything to my own needs ...
...and while doing that, I run in to a problem on my side.
I followed your explanation and was able to add the new gates to the sectors where I want them, check.
The problem is, that the connections between them dont work. :/ All new gates are marked as inactive.
All predefined connections added by your mod work as they should. Tbh I have no idea as to why mine arent working, because I simply copied the new
coordinates in to the galaxy.xml and didnt change anything else in the code. I´ve read the comments below, and also tried deltamaddog´s "fix" (creating
a new file instead of overwriting the original one), but that didnt fix the issue either.
Is there anything I might have overseen ?!
Thanks in advanve !
So, after some hours of testing, changing etc. I was able to get some connections to work, but I found a lot of other strange
behaviors, which dont make any sense, at least to me. ;)
1. when the mod is used unchanged, every connection does work, if the mod starts/loads with the save... sometimes it simply doesnt
and all gates are market as inactive.
2.
adding new gates does not work in every sector*solved3.
some connections between additionally added gates dont work (gates are both marked as inactive)*solved4.
removing some existing connections (which came with your mod) and adding new ones, sometime results in active gates, but without*solved as wella transfer between them.... also quite strange[/s-] *seems as if it is solved - still have to test all connections
5. [s]after certain changes, the save wont load again
If you´re interested and have the time, i´d like to provide my changes in your code plus (if possible) some logs.
cheers
*"solutions" /my changes
I´ve put a bit more additional time in to it and just added all my new connections / gates etc. at the end of your predefined settings, instead of "cleaning" the whole file .... this worked. :)
At first I wanted the whole file "cleaned", thats why I didnt do it the way you explained it in the description.
Thanks again for this mod ! :)
(`cjavascript-event-stripped` is `connection`)
Zones:
<!-- 12 Morning Star IV x Silent Witness I -->
<add sel="//macros">
<macro name="zones_iHaku_Cluster_46_Sector001_macro" class="zone">
<component ref="standardzone"/>
<connections>
<connection name="connection_ClusterGate46To08" ref="gates">
<offset>
<position x="1" y="1" z="1"/>
<rotation yaw="310" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space"/>
</connection>
</connections>
</macro>
</add>
<!-- 12 Silent Witness I x Morning Star IV-->
<add sel="//macros">
<macro name="zones_iHaku_Cluster_08_Sector001_macro" class="zone">
<component ref="standardzone"/>
<connections>
<connection name="connection_ClusterGate08To46" ref="gates">
<offset>
<position x="1" y="1" z="1"/>
<rotation yaw="210" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space"/>
</connection>
</connections>
</macro>
</add>
Sectors:
<!-- 12 Morning Star IV x Silent Witness I -->
<add sel="//macros/macro[@name='Cluster_46_Sector001_macro']/connections">
<connection name="zones_iHaku_Cluster_46_Sector001_connection" ref="zones">
<offset>
<position x="10000" y="0" z="0" />
</offset>
<macro ref="zones_iHaku_Cluster_46_Sector001_macro" connection="sector"/>
</connection>
</add>
<!-- 12 x Silent Witness I x Morning Star IV -->
<add sel="//macros/macro[@name='Cluster_08_Sector001_macro']/connections">
<connection name="zones_iHaku_Cluster_08_Sector001_connection" ref="zones">
<offset>
<position x="0" y="10000" z="0" />
</offset>
<macro ref="zones_iHaku_Cluster_08_Sector001_macro" connection="sector"/>
</connection>
</add>
Galaxy:
<!-- 12 Morning Star IV x Silent Witness I -->
<add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
<connection name="ClusterGate46To08" ref="destination" path="../Cluster_46_connection/Cluster_46_Sector001_connection/zones_iHaku_Cluster_46_Sector001_connection/connection_ClusterGate46To08">
<macro connection="destination" path="../../../../../Cluster_08_connection/Cluster_08_Sector001_connection/zones_iHaku_Cluster_08_Sector001_connection/connection_ClusterGate08To46"/>
</connection>
</add>
I would apprechiate help very much. Thank you for your work :)
<macro cjavascript-event-stripped"destination" path=
to
<macro connection="destination" path=
I dont know why you would use "cjavascript-event-stripped" as i've never used that so i dont know if it works without the "=" right after it or if the game is ok with that in the first place. I'm not actually that familiar with xml and how x4 uses it, mostly just learned trough looking at the vanilla files and asking on discord when i run into a deadend.
I changed things the same style as the ones provided by the mod
honestly I dont know how to insert a screenshot here
then, when the story connection is established, you simply remove the comment indicators and the connection will be there.
<!--
content
-->
this is how the comment indicators look like, and anything between them will be ignored in the xml (that's why there are indicators around the names of the connection).
to be more specific, i would move the --> after the </add>. like this
<!-- 1 Great Reef x Atreus Clouds
<add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
<connection name="ClusterGate603To608" ref="destination" path="../Cluster_603_connection/Cluster_603_Sector001_connection/zones_iHaku_Cluster_603_Sector001_connection/connection_ClusterGate603To608">
<macro connection="destination" path="../../../../../Cluster_608_connection/Cluster_608_Sector001_connection/zones_iHaku_Cluster_608_Sector001_connection/connection_ClusterGate608To603"/>
</connection>
</add> -->
(unless you use some war addon that makes reputations between factions dynamic, at which point this gate becomes pretty important)
The main boron gates are litany of fury and great reef x atreus cloud, which see heavy usage by the AI. IMO i feel like the latter was almost ment to be in the game in the first place. maybe ocean of fantasy instead, but it feels right. If Egosoft would add a mission to connect the inactive gates in those 2 sectors, that'd be great.
regardless, i moved the gate closer to where the ai is supposed to move in SoD anyway, near the highway. should be easier for it to fly there. thanks for the report!
but could u do me a favour plz ? there are 3 connections u miss :
second contact 7 and frontier edge
saturn 2 and venus
turqoise see and antigone memoria
could u plz add them too ?
more connections arent going to give the xenon more ships, as they are still capped by production speed and total ship capacity. furthermore, i gave relatively direct connections to BOR/HOP, who had essentially zero connections at all to xenon space, and gave terran a second source of potential invasion. the other factions didnt really need more invasion routes, besides maybe PIO, who probably couldnt deal with it anyway (tho they do have a 3 and 4 gate connection now).