I am making a simple sector to play with and use for coding practice. I have a fair bit done but don't quite get how to make 2 gates and join them so I can jump. I can spawn the gate item but anymore than that im lost. if someone could drop some code here id be grateful.
my sector vega prime, with a jump from devris.
thanks
Making a simple sector how does one make 2 gates
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 773
- Joined: Thu, 18. Dec 03, 09:00
-
- Moderator (Deutsch)
- Posts: 25130
- Joined: Sun, 2. Apr 06, 16:38
Have you already checked Observe's XR modding guide for any useful information about placing gates?
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten
Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)
Neuauflage der fünf X-Romane als Taschenbuch
The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)
Neuauflage der fünf X-Romane als Taschenbuch
The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
Gate Connections are defined in the Galaxy.xml
although the linking is a bit tricky because you have to describe the Universe Path from there down to Zone Level, and from that Gate up to Galaxy Level again (the many ../ there) and then back to the Destination Zone...

if not stated otherwise everything i post is licensed under WTFPL
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter
I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help

-
- Posts: 773
- Joined: Thu, 18. Dec 03, 09:00
-
- Posts: 773
- Joined: Thu, 18. Dec 03, 09:00
well ill need you to proof my scripting. I get the gates one in vega (my sector) and one in maelstrom (alpha) and there is a line on the galatic map showing the connection BUT in game there is not swirl in the gate and they don't work..and they say gate to unknown zone. I imaging its a small prob I missed somewhere.
<?xml version="1.0" encoding="utf-8"?>
<diff>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="Cluster_vega_connection" ref="clusters">
<offset>
<position x="-3400000000" y="0" z="-200000000" />
</offset>
<macro ref="cluster_vega_macro" connection="galaxy" />
</connection>
</add>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="ClusterGate01" ref="destination" path="../Cluster_A_connection/Cluster_A_Sector01_connection/tzoneCluster_A_Sector01_Zone94_connection/clustergate_connection_Vega02">
<macro connection="destination" path="../../../../../Cluster_vega_connection/cluster_v2_sector01_connection/tzonecluster_v2_Sector00_Zone1_connection/clustergate_connection_Vega01" />
</connection>
</add>
</diff>
the gates are added to the zone files as well.
<connection name="clustergate_connection_vega01" ref="gates">
the vega02 gate is in the zones.xml with the <add> feature. both look fine in game.
ideas?
<?xml version="1.0" encoding="utf-8"?>
<diff>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="Cluster_vega_connection" ref="clusters">
<offset>
<position x="-3400000000" y="0" z="-200000000" />
</offset>
<macro ref="cluster_vega_macro" connection="galaxy" />
</connection>
</add>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="ClusterGate01" ref="destination" path="../Cluster_A_connection/Cluster_A_Sector01_connection/tzoneCluster_A_Sector01_Zone94_connection/clustergate_connection_Vega02">
<macro connection="destination" path="../../../../../Cluster_vega_connection/cluster_v2_sector01_connection/tzonecluster_v2_Sector00_Zone1_connection/clustergate_connection_Vega01" />
</connection>
</add>
</diff>
the gates are added to the zone files as well.
<connection name="clustergate_connection_vega01" ref="gates">
the vega02 gate is in the zones.xml with the <add> feature. both look fine in game.
ideas?
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
almost forgot that: you also have to activate the Gate via MD.
here the necesary Code for activation itself:
and here an md template which is executed at startup:
here the necesary Code for activation itself:
Code: Select all
<find_cluster name="$Maelstrom" macro="macro.cluster_a_macro"/>
<find_cluster name="$Vega" macro="macro.cluster_vega_macro"/>
<find_object groupname="$Gates" class="class.gate" space="$Maelstrom" destination="$Vega"/>
<do_all exact="$Gates.count" counter="$Counter">
<set_value name="$Gate" exact="$Gates.{$Counter}"/>
<do_if value="not $Gate.isactive and $Gate.exit.exists">
<set_object_active object="$Gate" activate="true"/>
</do_if>
</do_all>
Code: Select all
<mdscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Init_balogt" xsi:noNamespaceSchemaLocation="http://utnas/~unitrader/XRebirthxsds/md.xsd">
<cues>
<cue name="Connect_Gates">
<actions>
<!-- Code above here (and maybe other Stuff, just change the mdscript and cue name to something fitting -->
</actions>
</cue>
</cues>
</mdscript>
if not stated otherwise everything i post is licensed under WTFPL
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter
I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help

-
- Posts: 773
- Joined: Thu, 18. Dec 03, 09:00
this isnt working...should it.i assume im missing something
<?xml version="1.0" encoding="utf-8"?>
<diff>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="Cluster_vega_connection" ref="clusters">
<offset>
<position x="-3400000000" y="0" z="-200000000" />
</offset>
<macro ref="cluster_vega_macro" connection="galaxy" />
</connection>
</add>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="ClusterGateVega01" ref="destination" path="../Cluster_A_connection/Cluster_A_Sector01_connection/tzoneCluster_A_Sector01_Zone94_connection/clustergate_connectionVega02">
<macro connection="destination" path="../../../../../Cluster_vega_connection/cluster_v2_sector01_connection/tzonecluster_v2_Sector00_Zone1_connection/clustergate_connectionVega01" />
</connection>
</add>
</diff>
that's the galaxy.xml entry
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="Init_vega" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd" >
<cues>
<cue name="ConnectVega">
<actions>
<find_cluster name="$Maelstrom" macro="macro.Cluster_A_macro"/>
<find_cluster name="$Vega" macro="macro.cluster_vega_macro"/>
<find_object groupname="$Gates" class="class.gate" space="$Maelstrom" destination="$Vega"/>
<do_all exact="$Gates.count" counter="$Counter">
<set_value name="$Gate" exact="$Gates.{$Counter}"/>
<do_if value="not $Gate.isactive and $Gate.exit.exists">
<set_object_active object="$Gate" activate="true"/>
</do_if>
< /do_all>
</actions>
</cue>
</cues>
< /mdscript>
that's the md script
do you see where I am going wrong.
<diff>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="Cluster_vega_connection" ref="clusters">
<offset>
<position x="-3400000000" y="0" z="-200000000" />
</offset>
<macro ref="cluster_vega_macro" connection="galaxy" />
</connection>
</add>
<add sel="/macros/macro[@name='XU_EP1_universe_macro']/connections">
<connection name="ClusterGateVega01" ref="destination" path="../Cluster_A_connection/Cluster_A_Sector01_connection/tzoneCluster_A_Sector01_Zone94_connection/clustergate_connectionVega02">
<macro connection="destination" path="../../../../../Cluster_vega_connection/cluster_v2_sector01_connection/tzonecluster_v2_Sector00_Zone1_connection/clustergate_connectionVega01" />
</connection>
</add>
</diff>
that's the galaxy.xml entry
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="Init_vega" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd" >
<cues>
<cue name="ConnectVega">
<actions>
<find_cluster name="$Maelstrom" macro="macro.Cluster_A_macro"/>
<find_cluster name="$Vega" macro="macro.cluster_vega_macro"/>
<find_object groupname="$Gates" class="class.gate" space="$Maelstrom" destination="$Vega"/>
<do_all exact="$Gates.count" counter="$Counter">
<set_value name="$Gate" exact="$Gates.{$Counter}"/>
<do_if value="not $Gate.isactive and $Gate.exit.exists">
<set_object_active object="$Gate" activate="true"/>
</do_if>
< /do_all>
</actions>
</cue>
</cues>
< /mdscript>
that's the md script
do you see where I am going wrong.
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
it thats exactly your MD code you have 2 Syntax errors in it:
< /do_all>
↑
< /mdscript>
↑
Spaces do not belong there. your XML Editor should already have complained about this when saving the file...
as for the other stuff: no idea & cannt look it up currently - on the way to work...
< /do_all>
↑
< /mdscript>
↑
Spaces do not belong there. your XML Editor should already have complained about this when saving the file...
as for the other stuff: no idea & cannt look it up currently - on the way to work...
if not stated otherwise everything i post is licensed under WTFPL
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter
I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help
