• 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.

Need help debugging a syntax error for my modlet

this modlet increases speed of walking and running for players. It's driving me batty trying to figure why it won't work. It's entityclasses.xml

<runningmod>

<set xpath="/entity_classes/entity_class/[@name=playerMale]/effect_group/passive_effect[@name=WalkSpeed]/@value">4.0</set>

<set xpath="/entity_classes/entity_class/[@name=playerMale]/effect_group/passive_effect[@name=RunSpeed]/@value">15.0</set>

</runningmod>

any help is appreciated

 
I'm not at all familiar with using xpath, but to my knowledge, passive effects use different operators than normal ones. In this case, should <set/> be <base_set/>?

 
There are two WalkSpeed and RunSpeed effects, maybe it is modifying the swimming version since you don't specify a value for that tag. Perhaps it would work to add [@tags=''] to yours to indicate the non-swimming version.

 
There are two WalkSpeed and RunSpeed effects, maybe it is modifying the swimming version since you don't specify a value for that tag. Perhaps it would work to add [@tags=''] to yours to indicate the non-swimming version.
I also had concerns about that, was wondering how you use those tags to further narrow down or exclude some lines, but for now I have no problem increasing my speed while swimming, LOL.

but that wasn't it. I found out what it was. I had to remove the "/" in this portion of the code entity_class/[@name=playerMale]. Syntax can be a "beeeotch"

 
Back
Top