md/InitUniverse.xml
This is the patch file:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<diff>
<replace sel="/mdscript[@name='InitUniverse']/cues/library[@name='InitStationActions']/actions/do_if/add_units[@category='unitcategory.police']/@exact">0.02 * $unitcapacity</replace>
</diff>
Basically divides by 10 the number of police drones available for stations at Universe creation (The last functionality added to "Configurable Mass Traffic" mod).
Well... The problem is that XR refuses to load the diff clausule. On the log I get this puzzling error:
Code: Select all
[=ERROR=] Error loading MD file extensions\Configurable_Mass_Traffic\md\InitUniverse.xml: Ignoring root node 'diff' in XML file 'extensions\Configurable_Mass_Traffic\md\InitUniverse.xml'.
Code: Select all
[=ERROR=] Cannot match path '/mdscript[@name='InitUniverse']/cues/library[@name='InitStationActionsSS']/actions/do_if/add_units[@category='unitcategory.police']/@exact' in patch file 'extensions\Configurable_Mass_Traffic\md\inituniverse.xml'. Skipping node.
...Is this file "special" in the sense on how it treats XPath expressions? I have seen plenty of patches applied to other elements of the mission director directory on other mods and I have created myself a good bunch of patches to aiscripts or...
...I'm missing something basic here?
EDIT: Forgot to mention... This is the ONLY patch applied to the Vanilla file, so a potential collision with another mod acting on the same file is not the answer
