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

Modlet Error (Changing Marksmen Rifle Sound)

Laz Man

Fun Pimps Staff
Probably a newb mistake but I am getting the following "Invalid Token" error when trying to change the sound of the marksmen rifle to the AK47. (error occurs after loading a game, not at application startup)

L1NBtzO.png


See my modlet code below (items.xml). Any suggestions? Thanks!

Code:
<configs>

<set xpath="/items/item[contains(@name, 'gunMR10')]/property[contains(@class, 'Action0')]/property[contains(@name, 'Sound_start']/@value">ak47_fire</set>
<set xpath="/items/item[contains(@name, 'gunMR10')]/property[contains(@class, 'Action0')]/property[contains(@name, 'Sound_repeat']/@value">ak47_fire</set>

</configs>
 
Last edited by a moderator:
Probably a newb mistake but I am getting the following "Invalid Token" error when trying to change the sound of the marksmen rifle to the AK47. (error occurs after loading a game, not at application startup)
L1NBtzO.png


See my modlet code below (items.xml). Any suggestions? Thanks!

Code:
<configs>

<set xpath="/items/item[contains(@name, 'gunMR10')]/property[contains(@class, 'Action0')]/property[contains(@name, 'Sound_start']/@value">ak47_fire</set>
<set xpath="/items/item[contains(@name, 'gunMR10')]/property[contains(@class, 'Action0')]/property[contains(@name, 'Sound_repeat']/@value">ak47_fire</set>

</configs>
Take a look at your last contains() on each line. You open the round brace for the contain, but you do not close it before the ].

 
Take a look at your last contains() on each line. You open the round brace for the contain, but you do not close it before the ].
Ty! Will try that change later today.

 
Back
Top