Skip to content

Instantly share code, notes, and snippets.

@UniTrader
UniTrader / move.undock.xml
Last active March 14, 2018 15:50
Forward Undocking for XL Docks - Hack
<diff>
<replace sel="//move_undocking">
<do_if value="true" comment="replace with multiple nodes was buggy iirc - so adding a no-op-node in-between">
<do_if value="$olddockslot.component.parent.macro.id == 'buildmodule_ships_albion_xl_macro'">
<set_value name="$undocktarget" exact="position.[0m,0m,6km]"/>
</do_if>
<do_elseif value="false" comment="add additional undock targets"/><!-- use pos="after" for this in the diff file-->
<do_if value="$undocktarget?" comment="an alternative undock target pos is set - use it">
<transform_position name="$undocktarget" refposition="this.ship.position" refrotation="this.ship.rotation">
<position value="$undocktarget"/>
#!/bin/bash
toolpath="$PWD"
echo $toolpath
cd ../X\ Rebirth
date +"%T"
echo "================================================================"
# Delete previously extracted Files - we want a fresh extraction
if [ -d XR_extracted ]; then
echo "============= removing previously extracted Files.. ============"
rm -rf XR_extracted
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="CMR_supply" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://utnas/~unitrader/XRebirthxsds/md.xsd">
<cues>
<cue name="Init">
<actions>
<find_ship groupname="$PlayerCarrier" space="player.galaxy" multiple="true" shiptype="shiptype.carrier" owner="faction.player">
<match_loadout wares="[ware.software_tpwar_carrierresupply]" />
</find_ship>
</actions>
<cues>
C.GetPlayerID() => a
type:cdata
value:19552ULL
----
tostring(a) => b
type:string
value:19552ULL
----
<?xml version="1.0" encoding="UTF-8"?>
<mdscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="UT_Technological_Progress_Test" xsi:noNamespaceSchemaLocation="http://utnas/~unitrader/XRebirthxsds/md.xsd">
<cues>
<cue name="Init">
<actions>
<create_group groupname="$Testships"/>
</actions>
<cues>
<cue name="SpawnTestShips" checktime="10s" checkinterval="5s">
<conditions>