The mod's scope is rather large, however, my current issue is with replacing the ships owner faction. I am planning to do this by setting the original mod as dependency and writing a suitable wares.xml patch.
The original file follows this sctructure:
Code: Select all
<add sel="/wares">
<ware id="SHIPNAME" name="{998107,2}" description="{998107,3}" group="ships_terran" transport="ship" volume="1" tags="ship">
<price min="20099943" average="25413426" max="28309471" />
<production time="320" amount="1" method="default" name="{998107,4}">
<primary>
<ware ware="computronicsubstrate" amount="120" />
<ware ware="energycells" amount="8000" />
<ware ware="metallicmicrolattice" amount="550" />
</primary>
</production>
<component ref="SHIPNAME_macro" amount="1" />
<restriction licence="capitalship" />
<owner faction="pioneers" />
</ware>
</add>
How do I write wares.xml patch file to leave everything as is, but REPLACE
Code: Select all
<owner faction="pioneers" />
Code: Select all
<owner faction="CUSTOMFACTION" />