• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

How do i change the Trader music?

Muils

Refugee
Can't change it at all, it keeps telling me something like:

WRN XML patch for "sounds.xml" from [my mod] did not apply <set xpath="/root/contents/content[@name='TraderRekt']/AudioClip/@ClipName
 
Can't change it at all, it keeps telling me something like:

WRN XML patch for "sounds.xml" from [my mod] did not apply <set xpath="/root/contents/content[@name='TraderRekt']/AudioClip/@ClipName
How are you trying to set the xpath? I don't do much modding for the game, but normally a set xpath would need to use the paths within the file you're changing. There isn't a contents/content section in sounds.xml.
 
How are you trying to set the xpath? I don't do much modding for the game, but normally a set xpath would need to use the paths within the file you're changing. There isn't a contents/content section in sounds.xml.
No idea, i don't even know much about modding. What sections are there if there's no contents/content section?
 
No idea, i don't even know much about modding. What sections are there if there's no contents/content section?
Here is an example for changing the color of shale on the map:

XML:
<set xpath="/blocks/block[@name='terrOreOilDeposit']/property[@name='Map.Color']/@value">255,0,0</set>

Here is the a partial section of blocks.xml:

XML:
<block name="terrOreOilDeposit">
    <property name="CanMobsSpawnOn" value="true"/>
    <property name="DescriptionKey" value="terrainBlockGroupDesc"/>
    <property name="DisplayType" value="blockTerrain"/>
    <property name="Map.Color" value="200,150,250"/>

So the xpath is "blocks" (for blocks.xml), then "block" for the property that we are looking at (first part of the second quote). Then we are editing the part that has name of terrOreOilDeposit with a property name of Map.Color and we are setting the new value to 255,0,0.

If you are editing sounds.xml, you're going to need to look through it to find what you are changing and set the path to the correct location in a similar way.
 
Back
Top