• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Need help debugging a syntax error for my modlet

stompbox108

New member
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