All4n wrote:Thanks bas!
A feature request would be a .merge file/function.
Example.
sector_data.xml.merge:Code: Select all
<sectorDescription name="NEBULA_SECTOR" minSector="0" unique="false">
<event name="YOUR_EVENT" min="1" max="1"/>
</sectorDescrption>
Final output:Code: Select all
<sectorDescription name="NEBULA_SECTOR" minSector="0" unique="false">
<nameList>
<name>Uncharted Nebula</name>
</nameList>
<trackList>
<track>deepspace</track>
<track>void</track>
</trackList>
<rarityList>
<blueprint name="engi" rarity="4"/>
<blueprint name="mantis" rarity="4"/>
<blueprint name="energy" rarity="4"/>
<blueprint name="slug" rarity="3"/>
<blueprint name="rock" rarity="4"/>
<blueprint name="human" rarity="1"/>
</rarityList>
<startEvent>START_BEACON_NEBULA</startEvent>
<event name="STORE" min="0" max="1"/>
<event name="ITEMS" min="1" max="3"/>
<event name="NEBULA_STORE" min="1" max="1"/>
<event name="NEBULA_EMPTY" min="4" max="4"/>
<event name="NEBULA_HOSTILE" min="5" max="6"/>
<event name="NEBULA_NEUTRAL" min="7" max="8"/>
<event name="DISTRESS_BEACON" min="1" max="3"/>
<event name="YOUR_EVENT" min="1" max="1"/>
</sectorDescrption>
This looks more like a question for Grognak's Mod Manager and similar tools - this tool is essentially just for unpacking/repacking the .dat files, and what you want is neither straightforward nor necessarily straightforward. Consider the following source/mod XML files:
Code: Select all
<!-- Source -->
<event name="FINISH_BEACON">
<text>You've arrived at the Long-Range Beacon. When the FTL Drive is charged you can jump to the next Sector.</text>
<choice hidden="true">
<text>Continue...</text>
<event load="NON_HOSTILE"/>
</choice>
</event>
<!-- Mod -->
<event name="FINISH_BEACON">
<text>This is the end. Prepare yourself!</text>
<choice hidden="true">
<text>Continue...</text>
<event />
</choice>
<choice hidden="true">
<text>Pick a fight!</text>
<event load="HOSTILE1"/>
</choice>
<choice hidden="true">
<text>Go shopping!</text>
<store />
</choice>
</event>
1) What would even expect this to merge to?
2) Why? (It was intentionally ambiguous, for the record.)
Personally, I don't think that this tool should have XML merging, simply because that's outside of the scope,and should be done by other tools which implement this, rather than the ftldat tool itself.