My first Mod

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

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

TiberiusSol
Posts: 2
Joined: Fri, 23. Aug 24, 18:26

My first Mod

Post by TiberiusSol »

Hello, I'm trying to get to grips with the topic of modding. and wanted to create a "simple" gate connection mod.
I used another mod as a reference and changed the data of the sectors and positions of the gates (in the DAT file).
I changed the ID and description in the (.xml) file. with a little help from ChatGPT.

I start the game, the mod is recognized, but I can't subscribe to it. Or should I say I can click on subscribe and restart, but the mod was not subscribed to.

What am I missing? :gruebel:

What is the .CAT file for?

I am very grateful for any help
TiberiusSol
Posts: 2
Joined: Fri, 23. Aug 24, 18:26

Re: My first Mod

Post by TiberiusSol »

this is the code. nothing complicated

<?xml version="1.0" encoding="utf-8"?>
<diff>

<!-- Einträge für neue Zonen in den Index aufnehmen -->
<add sel="/index">
<entry name="GH_Zone001_Cluster_31_Sector001_macro" value="extensions\nopileos_fortuneVI_gate_connection\maps\xu_ep2_universe\zones"/>
<entry name="GH_Zone001_Cluster_04_Sector002_macro" value="extensions\nopileos_fortuneVI_gate_connection\maps\xu_ep2_universe\zones"/>
</add>

</diff>

<?xml version="1.0" encoding="utf-8"?>
<diff>

<!-- Verbindung zwischen Ketzersuntergang und Nopileos' Fortune VI hinzufügen -->
<add sel="/macros/macro[@name='XU_EP2_universe_macro']/connections">
<connection name="ClusterGate031To004" ref="destination" path="../Cluster_31_connection/Cluster_31_Sector001_connection/GH_Zone001_Cluster_31_Sector001_connection/connection_ClusterGate031To004">
<macro connection="destination" path="../../../../../Cluster_04_connection/Cluster_04_Sector002_connection/GH_Zone001_Cluster_04_Sector002_connection/connection_ClusterGate004To031" />
</connection>
</add>

</diff>

<?xml version="1.0" encoding="utf-8"?>
<diff>

<!-- Zonen in den Sektoren von Ketzersuntergang und Nopileos' Fortune VI hinzufügen -->
<add sel="/macros/macro[@name='Cluster_31_Sector001_macro']/connections">
<connection name="GH_Zone001_Cluster_31_Sector001_connection" ref="zones">
<offset>
<position x="250000" y="0" z="250000" />
</offset>
<macro ref="GH_Zone001_Cluster_31_Sector001_macro" connection="sector" />
</connection>
</add>

<add sel="/macros/macro[@name='Cluster_04_Sector002_macro']/connections">
<connection name="GH_Zone001_Cluster_04_Sector002_connection" ref="zones">
<offset>
<position x="250000" y="0" z="-250000" />
</offset>
<macro ref="GH_Zone001_Cluster_04_Sector002_macro" connection="sector" />
</connection>
</add>

</diff>

<?xml version="1.0" encoding="utf-8"?>
<diff>

<!-- Definition der Zonen-Makros für die neuen Zonen -->
<add sel="/macros">
<macro name="GH_Zone001_Cluster_31_Sector001_macro" class="zone">
<component ref="standardzone" />
<connections>
<connection name="connection_ClusterGate031To004" ref="gates">
<offset>
<position x="0" y="500" z="0" />
<quaternion qx="0" qy="0.7071066499" qz="0" qw="0.7071068883" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space" />
</connection>
</connections>
</macro>
</add>

<add sel="/macros">
<macro name="GH_Zone001_Cluster_04_Sector002_macro" class="zone">
<component ref="standardzone" />
<connections>
<connection name="connection_ClusterGate004To031" ref="gates">
<offset>
<position x="0" y="500" z="0" />
<quaternion qx="0" qy="-0.7071065307" qz="0" qw="0.7071070075" />
</offset>
<macro ref="props_gates_anc_gate_macro" connection="space" />
</connection>
</connections>
</macro>
</add>

</diff>
User avatar
Benman2785
Posts: 49
Joined: Wed, 29. Jul 09, 03:37
x4

Re: My first Mod

Post by Benman2785 »

did you have the old mod still in /extensions/

did you change the id in content.xml?

Return to “X4: Foundations - Scripts and Modding”