Jump to content

Modlet Error (Changing Marksmen Rifle Sound)


Laz Man

Recommended Posts

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!

 

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


Link to comment
Share on other sites

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!

 

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...