Couple of questions more for my understanding on how the modding works:
EconAI has an aiscript/order.move.recycle.xml which is a diff patch, so I'm assuming it patches a Vanilla aiscript/order.move.recycle.xml. However looking at my extracted Vanilla catalogs, there is no such script. So how does this one work?
Again in EconAI you have an aiscript/order.mining.routine.xml which has this code fragment:
Code: Select all
<add sel="//attention/actions//do_if[@value='$sector.exists']/do_if[@value='not $gatheringspaces.indexof.{$sector} or $sector.hashazardousregion or ($sector.owner and this.hasrelation.enemy.{$sector.owner})']" pos="before">
<set_value name="$IsHostileSector" exact="not $gatheringspaces.indexof.{$sector} or $sector.hashazardousregion or ($sector.owner and this.hasrelation.enemy.{$sector.owner})"/>
<do_if value="not $IsHostileSector and $sector.iscontested">
<do_all exact="$sector.contestingfactions.count" counter="$ContestIndex">
<do_if value="this.hasrelation.enemy.{$sector.contestingfactions.{$ContestIndex}}">
<set_value name="$IsHostileSector" exact="true"/>
</do_if>
</do_all>
</do_if>
</add>
Looking at my Vanilla files again, I can see which section this is supposed to patch, but my Vanilla file has this, which is the part I'm assuming is targeted by the above snippet:
Code: Select all
<!-- Zone found -->
<do_if value="@$sector.exists">
<debug_text text="'Resource %1 found in %2, %3. minamount: %4'.[$ware, $sector.knownname, $sector.cluster.knownname, $scaledminamount]" chance="$debugchance"/>
<do_if value="not $gatheringspaces.indexof.{$sector} or $sector.hashazardousregion or ($sector.owner and this.hasrelation.enemy.{$sector.owner})">
<debug_text text="'%s %s %s refuses to mine in sector %s belonging to %s. has hazardous region: %s. not in gatheringspaces: %s'.[this.assignedcontrolled.idcode, this.assignedcontrolled.knownname, this.assignedcontrolled, $sector.knownname, $sector.owner, $sector.hashazardousregion, not $gatheringspaces.indexof.{$sector}]" chance="$debugchance"/>
<!-- allow player-owned ships automatically mining in a hazardous region if the only space they can operate in is in a hazardous region. -->
How is
matched to
?
Is it not missing the additional @ sign there? From a syntax perspective for me that doesn't seem to be a valid match, is the diff logic just ignoring that additional character?
In your 5.3 notes you say something about adjusting Yaki ship orders, however in my extracted files of the 4 FE modules, I can't find any "yaki" reference whatsoever. That's why I was thinking I'm missing something.
So just struggling a bit to understand how this stuff currently works, but quite possibly I'm just missing something super obvious... trying to find out what it is though.