For the ship spawn control cue's in focwsetup, move the find_station for the shipyard search inside of the do_if condition, so that the script doesn't search for a shipyard and then in the next step determines it doesn't actually want to build a ship, causing an unnecessary search for no reason. Might be a very minor performance gain only, but still.
Code: Select all
<do_if value="($numship + $totalnumxenmin3) lt $ExistingDestroyerThreshold">
<find_station name="$XenonShipyard" space="player.galaxy" functional="true" multiple="false">
<match canbuildships="true"/>
<match owner="faction.xenon"/>
</find_station>
<request_job_ship job="'xenon_free_miner_m_mineral3'" name="this.$Requested_Job_Ship" requester="$XenonShipyard" zone="$XenonShipyard.zone"/>
<set_value name="$totalnumxenmin3" operation="add" exact="1"/>
</do_if>
Might want to add jobs for Cluster_424_Sector002_macro (Emperors Pride VI) and Cluster_415_Sector001_macro (Matrix #598).... but:
I'm having some difficulties to understand how the miners are distributed. As far as I can see, the cue's randomly search for a shipyard not specific to the actual job sector, so the miners might for example get build in Scale Plate Green, but would then deploy to Matrix #9 causing them to travel through half of the universe eventually?
And if that's not the case and they just stay and mine where they are being built - then why have 4 job definitions for miners anyway, wouldn't one be enough then and it would just be a question of which shipyard to build them at?
This is less of a concern for destroyers and fighters, but for miners I believe the intention is to have some additional ones in each Xenon area, so unsure if the script currently works that way?
The "xenon_free_miner_m_mineral4" job has an encounters tag for "ship_cluster". Guess that slipped in somehow but shouldn't be there as it might cause the miners being picked up by your encounters logic and start patroling instead of mining.
Code: Select all
<job id="xenon_free_miner_m_mineral4" name="{20204,1901}" startactive="false">
<modifiers commandeerable="true"/>
<orders>
<order order="MiningRoutine" default="true">
<param name="minbuy" value="0"/>
<param name="maxbuy" value="2"/>
<param name="minsell" value="0"/>
<param name="maxsell" value="2"/>
</order>
</orders>
<basket basket="minerals_xenon"/>
<category faction="xenon" tags="[factionlogic, miner]" size="ship_m"/>
<quota galaxy="2" />
<location class="sector" macro="Cluster_21_Sector001_macro" />
<environment buildatshipyard="true"/> <encounters id="ship_cluster"/>
<time interval="180"/>
<ship>
<select faction="xenon" tags="[miner, solid]" size="class.ship_m"/>
<owner exact="xenon" overridenpc="true"/>
<cargo>
<wares>
<fillpercent min="0" max="100" profile="inversebell"/>
</wares>
</cargo>
</ship>
</job>