Announcement

Collapse
No announcement yet.

Modlet Error (Changing Marksmen Rifle Sound)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Modlet Error (Changing Marksmen Rifle Sound)

    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)



    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 Laz Man; 4 weeks ago.

    #2
    Originally posted by Laz Man View Post
    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)



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

    Comment


      #3
      Originally posted by sphereii View Post
      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.

      Comment

      Working...
      X