Sector Modding

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Valinir
Posts: 25
Joined: Sun, 4. Oct 20, 22:18
x3ap

Sector Modding

Post by Valinir » Wed, 3. Apr 24, 19:29

OK i hope someone can help me because im just confused and more and more desperate

ok first i try to get into the sector modding and have a dew questions now

lets start with the map folder, there is the clusters,galaxy, sectors, zones xml, i think i understand them so far, i tried a bit around in other sector mods and made a complete new sector on the map, i know how i create gate between sectors and so on, so i guess thats something i understood so far

so now lets go to my problems
first the asset sector, i looked into the icon sector from treybor to try to understand how i can add a sector sothe first thing, all this bigstar001-lod0-xmf-sig files that are in this order are the grapic files am i right?
so first question how do you choose them? is there a programm to open them to know what they look like?

then to my second problem (im not a programmer so i guess some of you will find that stupid how i try to fet into it) i took the icon sector from treybor and tried to change the files from it in a new folder to create a new sector,

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<defaults xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="libraries.xsd">

  <!--test-->
  <dataset macro="cluster_700_macro">
    <properties>
      <identification name="{20005,1053}" description="{150000,80001}" image="enc_cluster05"/>
      <sounds>
        <music ref="music_soundtrack_argon" />
      </sounds>
      <area sunlight="1" economy="0.75" security="0.5" />
      <system>
        <space environment="{1042,12011}(Clear Space)"/>
        <suns>
          <sun class="{1042,13021}(Yellow Dwarf)"/>
        </suns>
        <planets>
          <planet name="{20005,1053} {20403,102}(b)" class="{1042,14081}(Gas Giant)" geology="{1042,10011}(None)" atmosphere="{1042,10011}(None)" population="{1042,10011}(None)" settlements="{1042,10011}(None)" part="planet001">
          </planet>
        </planets>
      </system>
    </properties>
  </dataset>
  <dataset macro="cluster_700_sector001_macro">
    <properties>
      <identification name="{20005,1053}" description="{150000,80001}" />
      <sounds>
        <music ref="music_soundtrack_argon" />
      </sounds>
    </properties>
  </dataset>

</defaults>
thats that mapdefault.xml and the problem is <identification name="{20005,1053} this, that part always names my sector icon but i dont know why, where the hell does this come from, i looked through all xml files from treybors icon sector this is the only file where this numbers came from, so yeah i dont know im confused and frustrated

DeadAirRT
Posts: 1026
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Sector Modding

Post by DeadAirRT » Thu, 4. Apr 24, 04:40

Valinir wrote:
Wed, 3. Apr 24, 19:29
so first question how do you choose them? is there a programm to open them to know what they look like?
It's very similar to ship modding but also has an easier solution. You can either export all the assets into a format that can be opened in blender for example. Or you can go to different sectors in game and find things that you want in your sector.
Valinir wrote:
Wed, 3. Apr 24, 19:29
thats that mapdefault.xml and the problem is <identification name="{20005,1053} this, that part always names my sector icon but i dont know why, where the hell does this come from
Entries that are like {#####,#####} are t-file entries (text entries and sometimes voice entry for translation purposes). Assuming you already extracted the game files, in the "t" folder will be several xml files. The last two numbers are the calling code for different languages. In this case, 20005 is the page number and 1053 is the entry.

Valinir
Posts: 25
Joined: Sun, 4. Oct 20, 22:18
x3ap

Re: Sector Modding

Post by Valinir » Fri, 5. Apr 24, 00:46

ah ok this entries are in the base game folder, i was confused because since this is a mod i thought that he had to add the name icon to the game so i was just looking in his mod folder and not in the basegame folder, kinda weird that this name is in the basegame entries folder since this sector doesnt exist but that solved my confusen and lots of frustration

thank you very much Deadair you are a lifesaver and saved me from a lot of headaches

DeadAirRT
Posts: 1026
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Sector Modding

Post by DeadAirRT » Fri, 5. Apr 24, 14:26

Valinir wrote:
Fri, 5. Apr 24, 00:46
ah ok this entries are in the base game folder, i was confused because since this is a mod i thought that he had to add the name icon to the game so i was just looking in his mod folder and not in the basegame folder, kinda weird that this name is in the basegame entries folder since this sector doesnt exist but that solved my confusen and lots of frustration

thank you very much Deadair you are a lifesaver and saved me from a lot of headaches
I believe most mods use vanilla t-file entries because they already have voice snippet for the entry and in several languages. A few of us have trained a voice model to mimic Betty (ship computer) to have our own.

Valinir
Posts: 25
Joined: Sun, 4. Oct 20, 22:18
x3ap

Re: Sector Modding

Post by Valinir » Tue, 9. Apr 24, 13:33

ok, i have now a little problem and i hope you guys can help me

new try to add a sector since https://pastebin.com/5VdtWMLb made a good? explanation what to do and so on
but my problem is, i tried to get a gate connection from my new test sector to oort cloud but i dont know it wont work

galaxy.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
    <!-- Terran Cluster -->
    <connection name="ter_cluster_terc001_connection" ref="clusters">
      <offset>
        <position x="-300000000" y="0" z="0"/>
      </offset>
      <macro ref="ter_cluster_terc001_macro" connection="galaxy"/>
    </connection>
	    <!-- Gate Connection: Tethys Sector to Ooort Cloud -->
    <connection name="ter_gate_terc001ters001terz001_terrc116terrs001terrz001_connection" ref="destination" path="../ter_cluster_terc001_connection/ter_sector_terc001ters001_connection/ter_zone_terc001ters001terz001_connection/ter_gate_terc001ters001terz001_terrc116terrs001terrz001_connection">
      <macro connection="destination" path="../../../../../Cluster_116_connection/Cluster_116_Sector001_connection/terr_zone_terrc116terrs001terrz001_connection/terr_gate_terrc116terrs001terrz001_terc001ters001terz001_connection"/>
    </connection>
  </add>
</diff>

ter_cluster.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <!-- Terran Cluster -->
  <macro name="ter_cluster_terc001_macro" class="cluster">
    <component ref="standardcluster"/>
    <connections>
      <!-- ter Sector -->
      <connection name="ter_sector_terc001ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc001ters001_macro" connection="cluster"/>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc001"/>
        </macro>
      </connection>
    </connections>
  </macro>
</macros>
ter_sectors.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <!-- ter Sector -->
  <macro name="ter_sector_terc001ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Ter Zone -->
      <connection name="ter_zone_terc001ters001terz001_connection" ref="zones">
        <offset>
          <position x="0" y="0" z="0"/>
        </offset>
        <macro ref="ter_zone_terc001ters001terz001_macro" connection="sector"/>
      </connection>
    </connections>
  </macro>
</macros>
ter_zones.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <!-- Ter Zone -->
  <macro name="ter_zone_terc001ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Tethys Gate to Oort Cloud -->
	      <connection name="ter_gate_terc001ters001terz001_terrc116terrs001terrz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
</macros>
macros.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<index>
  <entry name="ter_galaxy_macro" value="extensions\Terran_sector\maps\XU_ep2_universe\galaxy"/>
  <entry name="ter_cluster*" value="extensions\Terran_sector\maps\XU_ep2_universe\ter_clusters"/>
  <entry name="ter_sector*" value="extensions\Terran_Sector\maps\XU_ep2_universe\ter_sectors"/>
  <entry name="ter_zone*" value="extensions\Terran_Sector\maps\XU_ep2_universe\ter_zones"/>
</index>
mapdefaults.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<defaults xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="libraries.xsd">
  <!-- Terran Cluster -->
  <dataset macro="ter_cluster_terc001_macro">
    <properties>
      <identification name="{20005,7045}" description="{90000001,100004}"/>
      <area sunlight="1.0" economy="0.5" security="0.5"/>
      <system>
      </system>
    </properties>
  </dataset>
  <!-- Terran Sector -->
  <dataset macro="ter_sector_terc001ters001_macro">
    <properties>
      <identification name="{20005,7045}" description="{90000001,100004}"/>
      <area sunlight="1.0" economy="0.5" security="0.5"/>
      <system>
      </system>
    </properties>
  </dataset>
</defaults>
setup_ter.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<mdscript name="Setup_ter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
  <cues>
    <!-- Find Clusters -->
    <cue name="ter_Start" checktime="0.1s" checkinterval="0.5s" version="2">
      <check_all>
        <event_game_loaded/>
      </check_all>
      <actions>
        <find_zone name="md.$ter_zone_terc001ters001terz001" macro="macro.ter_zone_terc001ters001terz001_macro"/>
        <find_zone name="md.$terr_zone_terrc116terrs001terrz001" macro="macro.terr_zone_terrc116terrs001terrz001_macro"/>
      </actions>
    </cue>
    <!-- Activate Gates between Tethys Sector and Oort Cloud -->
    <cue name="ActivateGate_terc001ters001terz001_terrc116terrs001terrz001">
      <conditions>
        <check_all>
          <event_cue_signalled cue="ter_Start"/> 
        </check_all>
      </conditions>
      <cues>
        <cue name="ActivateGate_Wait" checkinterval="0.1s">
          <actions>
            <find_object groupname="$Gates" class="class.gate" space="md.$ter_zone_terc001ters001terz001" required="true"/>
            <find_object groupname="$Gates" class="class.gate" space="md.$terr_zone_terrc116terrs001terrz001" required="true"/>
            <do_all exact="$Gates.count" counter="$i">
              <set_value name="$Gate" exact="$Gates.{$i}"/>
              <do_if value="not $Gate.isactive and $Gate.exit.exists">
                <debug_text text="player.module + ': Activating Jumpgate between ' + $Gate.cluster.knownname + ' and ' + $Gate.exit.cluster.knownname"/>
                <set_object_active object="$Gate" activate="true"/>
              </do_if>
            </do_all>
          </actions>
        </cue>
      </cues>
    </cue>
  </cues>
</mdscript>
dlc_terran_sectors.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <!-- Ooort Cloud Sector -->
  <add sel="//macros/macro[@name='Cluster_116_Sector001_macro']/connections">
    <!-- Oort Cloud Zone -->
    <connection name="terr_zone_terrc116terrs001terrz001_connection" ref="zones">
      <offset>
        <position x="-100000" y="0" z="-100000"/>
      </offset>
      <macro ref="terr_zone_terrc116terrs001terrz001_macro" connection="sector"/>
    </connection>
  </add>
</diff>
dlc_terran_zones.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <!-- Oort Cloud Zone -->
  <add sel="/macros" silent="true">
    <macro name="terr_zone_terrc116terrs001terrz001_macro" class="zone">
      <component ref="standardzone"/>
      <connections>
      <!-- Oort Cloud Gate to Tethys Sector -->
        <connection name="terr_gate_terrc116terrs001terrz001_terc001ters001terz001_connection" ref="gates">
          <offset>
            <position x="0" y="0" z="0"/>
            <rotation yaw="0" pitch="0" roll="0"/>
          </offset>
          <macro ref="props_gates_anc_gate_macro" connection="space"/>
        </connection>
      </connections>
    </macro>
  </add>
</diff>
thats all the files i have at the moment, i try to get it to github so its easier to look at, but yeah i dont get it why i cant make a gate connection from oort cloud to my new sector
hope some of you guys can help me with that


edit:
ok the problem is the terran oort cloud sector, if i try to connect to grand exchange it worked, is there something special with the terran sectors?


Thx for Deadair to solve my problem on discrod, file structure ftwxD

Valinir
Posts: 25
Joined: Sun, 4. Oct 20, 22:18
x3ap

Re: Sector Modding

Post by Valinir » Thu, 11. Apr 24, 15:16

ok i hope someone can help me again
i somehow struggle with a gate connection

Code: Select all

  <!-- Tethys Sector -->
  <macro name="ter_sector_terc001ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Tethys Zone -->
      <connection name="ter_zone_terc001ters001terz001_connection" ref="zones">
        <offset>
          <position x="100000" y="0" z="-100000"/>
        </offset>
        <macro ref="ter_zone_terc001ters001terz001_macro" connection="sector"/>
      </connection>	  
    </connections>
	 <connections>
      <!-- Tethys Zone -->
      <connection name="ter_zone_terc001ters001terz002_connection" ref="zones">
        <offset>
          <position x="0" y="0" z="0"/>
        </offset>
        <macro ref="ter_zone_terc001ters001terz002_macro" connection="sector"/>
      </connection>	  
    </connections>
  </macro>
  
  
  <!--  Rhea I-->
  <macro name="ter_sector_terc002ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Sector 02 Zone -->
      <connection name="ter_zone_terc002ters001terz001_connection" ref="zones">
        <offset>
          <position x="0" y="0" z="0"/>
        </offset>
        <macro ref="ter_zone_terc002ters001terz001_macro" connection="sector"/>
      </connection>
	  
	  <connection name="ter_zone_terc002ters001terz002_connection" ref="zones">
        <offset>
          <position x="-80000" y="0" z="180000"/>
        </offset>
        <macro ref="ter_zone_terc002ters001terz002_macro" connection="sector"/>
      </connection>
	  
    </connections>
  </macro>

Code: Select all

 <macro name="ter_zone_terc001ters001terz002_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	 	  	  <!-- Tethys Gate to Rhea I -->
	      <connection name="ter_gate_terc001ters001terz002_terc002ters001terz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
 	  

  
  
   <!--  Rhea I -->
   <macro name="ter_zone_terc002ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Rhea I to Tethys -->
	    <connection name="ter_gate_terc002ters001terz001_terc001ters001terz002_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>

Code: Select all

<!-- Gate Connection: Tethys Sector to Rhea I -->
    <connection name="ter_gate_terc001ters001terz002_terc002ters001terz001_connection" ref="destination" path="../ter_cluster_terc001_connection/ter_sector_terc001ters001_connection/ter_zone_terc001ters001terz002_connection/ter_gate_terc001ters001terz002_terc002ters001terz001_connection">
      <macro connection="destination" path="../../../../../ter_cluster_terc002_connection/ter_sector_terc002ters001_connection/ter_zone_terc002ters001terz001_connection/ter_gate_terc002ters001terz001_terc001ters001terz002_connection"/>
    </connection>
i try to get a gate connection from my sector tethys to rhea I and i have no idea why it dont work, i made some more connections then from rhea 1 to rhea 2, from rhea 2 to willingsacrifice and so on, every gate connection work, only from tethys to rhea i wont work and after looking 3 hours on the code i cant find why
hope someone can spot my mistake while looking over it



full sector file
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <!-- Tethys Sector -->
  <macro name="ter_sector_terc001ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Tethys Zone -->
      <connection name="ter_zone_terc001ters001terz001_connection" ref="zones">
        <offset>
          <position x="100000" y="0" z="-100000"/>
        </offset>
        <macro ref="ter_zone_terc001ters001terz001_macro" connection="sector"/>
      </connection>	  
    </connections>
	 <connections>
      <!-- Tethys Zone -->
      <connection name="ter_zone_terc001ters001terz002_connection" ref="zones">
        <offset>
          <position x="0" y="0" z="0"/>
        </offset>
        <macro ref="ter_zone_terc001ters001terz002_macro" connection="sector"/>
      </connection>	  
    </connections>
  </macro>
  
  
  <!--  Rhea I-->
  <macro name="ter_sector_terc002ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Sector 02 Zone -->
      <connection name="ter_zone_terc002ters001terz001_connection" ref="zones">
        <offset>
          <position x="0" y="0" z="0"/>
        </offset>
        <macro ref="ter_zone_terc002ters001terz001_macro" connection="sector"/>
      </connection>
	  
	  <connection name="ter_zone_terc002ters001terz002_connection" ref="zones">
        <offset>
          <position x="-80000" y="0" z="180000"/>
        </offset>
        <macro ref="ter_zone_terc002ters001terz002_macro" connection="sector"/>
      </connection>
	  
    </connections>
  </macro>
  
    <!--  Rhea II-->
  <macro name="ter_sector_terc003ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Sector 02 Zone -->
      <connection name="ter_zone_terc003ters001terz001_connection" ref="zones">
        <offset>
          <position x="-150000" y="0" z="-130000"/>
        </offset>
        <macro ref="ter_zone_terc003ters001terz001_macro" connection="sector"/>
      </connection>
	  
	    <connection name="ter_zone_terc003ters001terz002_connection" ref="zones">
        <offset>
          <position x="100000" y="0" z="180000"/>
        </offset>
        <macro ref="ter_zone_terc003ters001terz002_macro" connection="sector"/>
      </connection>
    </connections>
  </macro>
  
    <!--  Willing Sacrifice-->
  <macro name="ter_sector_terc004ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Sector 02 Zone -->
      <connection name="ter_zone_terc004ters001terz001_connection" ref="zones">
        <offset>
          <position x="-120000" y="0" z="-150000"/>
        </offset>
        <macro ref="ter_zone_terc004ters001terz001_macro" connection="sector"/>
      </connection>
	  
	  <connection name="ter_zone_terc004ters001terz002_connection" ref="zones">
        <offset>
          <position x="-100000" y="0" z="130000"/>
        </offset>
        <macro ref="ter_zone_terc004ters001terz002_macro" connection="sector"/>
      </connection>
    </connections>
  </macro>
  
    <!--  Matrix 160 -->
  <macro name="ter_sector_terc005ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Sector 02 Zone -->
      <connection name="ter_zone_terc005ters001terz001_connection" ref="zones">
        <offset>
          <position x="-800000" y="0" z="-800000"/>
        </offset>
        <macro ref="ter_zone_terc005ters001terz001_macro" connection="sector"/>
      </connection>
	  
	  <connection name="ter_zone_terc005ters001terz002_connection" ref="zones">
        <offset>
          <position x="800000" y="0" z="800000"/>
        </offset>
        <macro ref="ter_zone_terc005ters001terz002_macro" connection="sector"/>
      </connection>
    </connections>
  </macro>
  
    <!--  Matrix 161 -->
  <macro name="ter_sector_terc006ters001_macro" class="sector">
    <component ref="standardsector"/>
    <connections>
      <!-- Sector 02 Zone -->
      <connection name="ter_zone_terc006ters001terz001_connection" ref="zones">
        <offset>
          <position x="-90000" y="0" z="-90000"/>
        </offset>
        <macro ref="ter_zone_terc006ters001terz001_macro" connection="sector"/>
      </connection>
	  
    </connections>
  </macro>
</macros>
full zones file
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <!-- Tethys -->
  <macro name="ter_zone_terc001ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Tethys Gate to Oort Cloud -->
	      <connection name="ter_gate_terc001ters001terz001_terrc116terrs001terrz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection> 
    </connections>
  </macro>
    <macro name="ter_zone_terc001ters001terz002_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	 	  	  <!-- Tethys Gate to Rhea I -->
	      <connection name="ter_gate_terc001ters001terz002_terc002ters001terz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
 	  

  
  
   <!--  Rhea I -->
   <macro name="ter_zone_terc002ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Rhea I to Tethys -->
	    <connection name="ter_gate_terc002ters001terz001_terc001ters001terz002_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
    <macro name="ter_zone_terc002ters001terz002_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	 	  	 <!-- Rhea I to Rhea II -->
	      <connection name="ter_gate_terc002ters001terz002_terc003ters001terz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
  
  
     <!--  Rhea II -->
   <macro name="ter_zone_terc003ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Rhea II to Rhea I -->
	      <connection name="ter_gate_terc003ters001terz001_terc002ters001terz002_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection> 	  
    </connections>
  </macro>
  <macro name="ter_zone_terc003ters001terz002_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	 <!-- Rhea II to Willing Sacrifice -->
	      <connection name="ter_gate_terc003ters001terz002_terc004ters001terz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
  
  
     <!--  Willing Sacrifice -->
   <macro name="ter_zone_terc004ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Willing Sacrifice to Rhea II-->
	      <connection name="ter_gate_terc004ters001terz001_terc003ters001terz002_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>  	  
    </connections>
  </macro>
    <macro name="ter_zone_terc004ters001terz002_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	 <!-- Willing Sacrifice to Matrix 160 -->
	      <connection name="ter_gate_terc004ters001terz002_terc005ters001terz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>  
    </connections>
  </macro>
  
     <!--  Matrix 160 -->
   <macro name="ter_zone_terc005ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Matrix 160 to Willing Sacrifice -->
	      <connection name="ter_gate_terc005ters001terz001_terc004ters001terz002_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>	  	 
    </connections>
  </macro>
  <macro name="ter_zone_terc005ters001terz002_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Matrix 160 to Matrix 161 -->
	      <connection name="ter_gate_terc005ters001terz002_terc006ters001terz001_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>  	  
    </connections>
  </macro>
  
     <!--  Matrix 161 -->
   <macro name="ter_zone_terc006ters001terz001_macro" class="zone">
    <component ref="standardzone"/>
    <connections>
	  <!-- Matrix 161 to Matrix 160 -->
	      <connection name="ter_gate_terc006ters001terz001_terc005ters001terz002_connection" ref="gates">
        <offset>
          <position x="0" y="0" z="0"/>
          <rotation yaw="0" pitch="0" roll="0"/>
        </offset>
        <macro ref="props_gates_anc_gate_macro" connection="space"/>
      </connection>
    </connections>
  </macro>
  
</macros>
full galaxy file
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
    <!-- Tethys -->
    <connection name="ter_cluster_terc001_connection" ref="clusters">
      <offset>
        <position x="-300000000" y="0" z="0"/>
      </offset>
      <macro ref="ter_cluster_terc001_macro" connection="galaxy"/>
    </connection>
	
		<!-- Rhea I-->
	 <connection name="ter_cluster_terc002_connection" ref="clusters">
      <offset>
        <position x="-315000000" y="0" z="8660000"/>
      </offset>
      <macro ref="ter_cluster_terc002_macro" connection="galaxy"/>
    </connection>
	
	
	<!-- Rhea II-->
	 <connection name="ter_cluster_terc003_connection" ref="clusters">
      <offset>
        <position x="-345000000" y="0" z="8660000"/>
      </offset>
      <macro ref="ter_cluster_terc003_macro" connection="galaxy"/>
    </connection>
	
	<!-- Willing Sacrifice-->
	 <connection name="ter_cluster_terc004_connection" ref="clusters">
      <offset>
        <position x="-375000000" y="0" z="8660000"/>
      </offset>
      <macro ref="ter_cluster_terc004_macro" connection="galaxy"/>
    </connection>
	
	<!-- Matrix 160-->
	 <connection name="ter_cluster_terc005_connection" ref="clusters">
      <offset>
        <position x="-405000000" y="0" z="8660000"/>
      </offset>
      <macro ref="ter_cluster_terc005_macro" connection="galaxy"/>
    </connection>
	
	<!-- Matrix 161-->
	 <connection name="ter_cluster_terc006_connection" ref="clusters">
      <offset>
        <position x="-435000000" y="0" z="8660000"/>
      </offset>
      <macro ref="ter_cluster_terc006_macro" connection="galaxy"/>
    </connection>
	
		<!-- Gate Connection: Tethys Sector to Ooort Cloud -->
    <connection name="ter_gate_terc001ters001terz001_terrc116terrs001terrz001_connection" ref="destination" path="../ter_cluster_terc001_connection/ter_sector_terc001ters001_connection/ter_zone_terc001ters001terz001_connection/ter_gate_terc001ters001terz001_terrc116terrs001terrz001_connection">
      <macro connection="destination" path="../../../../../Cluster_116_connection/Cluster_116_Sector001_connection/terr_zone_terrc116terrs001terrz001_connection/terr_gate_terrc116terrs001terrz001_terc001ters001terz001_connection"/>
    </connection>
	
			<!-- Gate Connection: Tethys Sector to Rhea I -->
    <connection name="ter_gate_terc001ters001terz002_terc002ters001terz001_connection" ref="destination" path="../ter_cluster_terc001_connection/ter_sector_terc001ters001_connection/ter_zone_terc001ters001terz002_connection/ter_gate_terc001ters001terz002_terc002ters001terz001_connection">
      <macro connection="destination" path="../../../../../ter_cluster_terc002_connection/ter_sector_terc002ters001_connection/ter_zone_terc002ters001terz001_connection/ter_gate_terc002ters001terz001_terc001ters001terz002_connection"/>
    </connection>
	
			<!-- Gate Connection: Rhea I to Rhea II -->
    <connection name="ter_gate_terc002ters001terz002_terc003ters001terz001_connection" ref="destination" path="../ter_cluster_terc002_connection/ter_sector_terc002ters001_connection/ter_zone_terc002ters001terz002_connection/ter_gate_terc002ters001terz002_terc003ters001terz001_connection">
      <macro connection="destination" path="../../../../../ter_cluster_terc003_connection/ter_sector_terc003ters001_connection/ter_zone_terc003ters001terz001_connection/ter_gate_terc003ters001terz001_terc002ters001terz002_connection"/>
    </connection>
	
			<!-- Gate Connection: Rhea II to Willing Sacrifice -->
    <connection name="ter_gate_terc003ters001terz002_terc004ters001terz001_connection" ref="destination" path="../ter_cluster_terc003_connection/ter_sector_terc003ters001_connection/ter_zone_terc003ters001terz002_connection/ter_gate_terc003ters001terz002_terc004ters001terz001_connection">
      <macro connection="destination" path="../../../../../ter_cluster_terc004_connection/ter_sector_terc004ters001_connection/ter_zone_terc004ters001terz001_connection/ter_gate_terc004ters001terz001_terc003ters001terz002_connection"/>
    </connection>
	
			<!-- Gate Connection: Willing Sacrifive to Matrix 160 -->
    <connection name="ter_gate_terc004ters001terz002_terc005ters001terz001_connection" ref="destination" path="../ter_cluster_terc004_connection/ter_sector_terc004ters001_connection/ter_zone_terc004ters001terz002_connection/ter_gate_terc004ters001terz002_terc005ters001terz001_connection">
      <macro connection="destination" path="../../../../../ter_cluster_terc005_connection/ter_sector_terc005ters001_connection/ter_zone_terc005ters001terz001_connection/ter_gate_terc005ters001terz001_terc004ters001terz002_connection"/>
    </connection>
	
			<!-- Gate Connection: Matrix 160 to Matrix 161 -->
     <connection name="ter_gate_terc005ters001terz002_terc006ters001terz001_connection" ref="destination" path="../ter_cluster_terc005_connection/ter_sector_terc005ters001_connection/ter_zone_terc005ters001terz002_connection/ter_gate_terc005ters001terz002_terc006ters001terz001_connection">
      <macro connection="destination" path="../../../../../ter_cluster_terc006_connection/ter_sector_terc006ters001_connection/ter_zone_terc006ters001terz001_connection/ter_gate_terc006ters001terz001_terc005ters001terz002_connection"/>
    </connection>
  </add>
</diff>

full cluster file
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <!-- Tethys Cluster -->
  <macro name="ter_cluster_terc001_macro" class="cluster">
    <component ref="standardcluster"/>
    <connections>
      <!-- Tethys Sector -->
      <connection name="ter_sector_terc001ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc001ters001_macro" connection="cluster"/>
      </connection>
	  <connection name="ter_region_terc001terr001_connection" ref="regions">
        <offset>
          <position x="0" y="0" z="0"/>
        </offset>
        <macro name="ter_region_terc001terr001_macro">
          <component connection="cluster" ref="standardregion"/>
          <properties>
            <region ref="ter_region_terc001terr001"/>
          </properties>
        </macro>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc001"/>
        </macro>
      </connection>  
    </connections>
  </macro>
  
  	     <!-- Rhea I -->
	<macro name="ter_cluster_terc002_macro" class="cluster">
    <component ref="standardcluster"/>  
	<connections>
      <connection name="ter_sector_terc002ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc002ters001_macro" connection="cluster"/>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc002"/>
        </macro>
      </connection>
    </connections>
	</macro>
	
	  	     <!-- Rhea II -->
	<macro name="ter_cluster_terc003_macro" class="cluster">
    <component ref="standardcluster"/>  
	<connections>
      <connection name="ter_sector_terc003ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc003ters001_macro" connection="cluster"/>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc003"/>
        </macro>
      </connection>
    </connections>
	</macro>
	
	  	     <!-- Willing Sacrifice -->
	<macro name="ter_cluster_terc004_macro" class="cluster">
    <component ref="standardcluster"/>  
	<connections>
      <connection name="ter_sector_terc004ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc004ters001_macro" connection="cluster"/>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc004"/>
        </macro>
      </connection>
    </connections>
	</macro>
	
	  	     <!-- Matrix 160 -->
	<macro name="ter_cluster_terc005_macro" class="cluster">
    <component ref="standardcluster"/>  
	<connections>
      <connection name="ter_sector_terc005ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc005ters001_macro" connection="cluster"/>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc005"/>
        </macro>
      </connection>
    </connections>
	</macro>
	
	  	     <!-- Matrix 161 -->
	<macro name="ter_cluster_terc006_macro" class="cluster">
    <component ref="standardcluster"/>  
	<connections>
      <connection name="ter_sector_terc006ters001_connection" ref="sectors">  
        <macro ref="ter_sector_terc006ters001_macro" connection="cluster"/>
      </connection>
      <connection ref="content">
        <macro>
          <component connection="space" ref="ter_cluster_terc006"/>
        </macro>
      </connection>
    </connections>
	</macro>
</macros>

Post Reply

Return to “X4: Foundations - Scripts and Modding”