I used this script that works normally for adding special factories as solar plants at the start of the game, and it works with the <event_cue_signalled cue="md.Setup.GameStart" />.
But when doing the script for Xenon defend stations it only spawns a worksite, not the station:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<mdscript name="Setup_Frontier" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
<cues>
<cue name="Frontier_Sectors" >
<conditions>
<event_cue_signalled cue="md.Setup.Start"/>
</conditions>
<actions>
<!--========================= XENON in FRONTIER ============-->
<!-- Xenon shipyards in PTNI -->
<find_sector name="$sector" macro="macro.cluster_rs202_sector002_macro"/>
<do_if value="$sector.exists">
<!--Add a station -->
<create_station name="shipyard_xenon_cluster_rs202" macro="macro.station_gen_factory_base_01_macro" owner="faction.xenon" sector="$sector" rawname="'{20102,1421}'" state="componentstate.operational" constructionplan="xen_shipyard">
<position x="1604273" y="0" z="1903" />
</create_station>
</do_if>
<!--_________________________________ETC ETC_____________________________-->
</actions>
</cue>
</cues>
</mdscript>