Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Trying to understand the sound files for the weapons (the index number from the xml files)
Trying to understand the sound files for the weapons (the index number from the xml files) [message #354110] Sat, 21 July 2018 22:06 Go to next message
ecstazy

 
Messages:30
Registered:July 2007
Location: Romania
Hi guys, I was trying to add my new gun, with also a new sound, but I can't seem to find a way to understand what is with the index numbers. From the xml editor I don't see my .ogg file that I created. I also added my sound name in the sounds xml files at the end of the list. But when creating the gun and checking the sounds name from other weapons, they seem to have a index number, but on the sounds file there are no index numbers. Can anyone help?
Re: Trying to understand the sound files for the weapons (the index number from the xml files) [message #354111 is a reply to message #354110] Sat, 21 July 2018 22:15 Go to previous messageGo to next message
sevenfm

 
Messages:1666
Registered:December 2012
Location: Soviet Russia
ecstazy wrote on Sun, 22 July 2018 00:06
Hi guys, I was trying to add my new gun, with also a new sound, but I can't seem to find a way to understand what is with the index numbers. From the xml editor I don't see my .ogg file that I created. I also added my sound name in the sounds xml files at the end of the list. But when creating the gun and checking the sounds name from other weapons, they seem to have a index number, but on the sounds file there are no index numbers. Can anyone help?

Open Data-1.13\TableData\Items\Weapons.xml, find your weapon entry, set the following tags:
<sSound>XXX</sSound>
<SilencedSound>XXX</SilencedSound>
<sBurstSound>XXX</sBurstSound>
<sSilencedBurstSound>XXX</sSilencedBurstSound>
You can also define additional sound effects here:
<sReloadSound>XXX</sReloadSound>
<sLocknLoadSound>XXX</sLocknLoadSound>
Where XXX is the id of the sound in TableData\Sounds\Sounds.xml for single shot sounds or additional sounds, and in BurstSounds.xml for burst sounds where %d is substituted with burst length.
Id is simple number of XML line in that file.



7609+fix | 7609+AI (r790) | 7609 unofficial modpack | Win8+ fix | Experimental project | Vengeance:Reloaded | Youtube

"It's already "dog-eat-dog", friend. Not sure what worse a bunch of zombies could do."


Re: Trying to understand the sound files for the weapons (the index number from the xml files) [message #354112 is a reply to message #354111] Sun, 22 July 2018 00:12 Go to previous messageGo to next message
ecstazy

 
Messages:30
Registered:July 2007
Location: Romania
Hey Sevenfm, well I did tried it, I made it that way the first time but it wouldn't work. I also added my file that is named "SOUNDS\WEAPONS\556\5,56 SIG M400 ELITE SINGLE SHOT.ogg" on both tabledata\sounds.xml files, the one on Data-1.13 and the normal Data folder. On the Sounds.xml file from "Data-13" the line number is 503, but when I shoot with the weapon I can't hear anything (I am using a rifle so only single shot, no burst or auto fire). On the "Data" folder I have the line with number 488, but it's not the same sound that I have. Any idea why?
Re: Trying to understand the sound files for the weapons (the index number from the xml files) [message #354113 is a reply to message #354112] Sun, 22 July 2018 00:16 Go to previous messageGo to next message
sevenfm

 
Messages:1666
Registered:December 2012
Location: Soviet Russia
ecstazy wrote on Sun, 22 July 2018 02:12
Hey Sevenfm, well I did tried it, I made it that way the first time but it wouldn't work. I also added my file that is named "SOUNDS\WEAPONS\556\5,56 SIG M400 ELITE SINGLE SHOT.ogg" on both tabledata\sounds.xml files, the one on Data-1.13 and the normal Data folder. On the Sounds.xml file from "Data-13" the line number is 503, but when I shoot with the weapon I can't hear anything (I am using a rifle so only single shot, no burst or auto fire). On the "Data" folder I have the line with number 488, but it's not the same sound that I have. Any idea why?

You don't need to put anything into Data xml folder unless you want to play in vanilla mode.
It's not exact line number in text file but number of XML entry, which also may be starting from 0 (I don't remember exactly), so you need to try it or check any other weapon (look at line number in Sounds.xml file, compare with XML entry in Weapons.xml for that weapon and you will know the offset between text line and xml entry number).

[Updated on: Sun, 22 July 2018 00:17]




7609+fix | 7609+AI (r790) | 7609 unofficial modpack | Win8+ fix | Experimental project | Vengeance:Reloaded | Youtube

"It's already "dog-eat-dog", friend. Not sure what worse a bunch of zombies could do."


Re: Trying to understand the sound files for the weapons (the index number from the xml files) [message #354115 is a reply to message #354113] Sun, 22 July 2018 09:12 Go to previous message
ecstazy

 
Messages:30
Registered:July 2007
Location: Romania
Yeah, you were right, I am using notepad++, apparently there is a 2 line difference between the sounds line and the actual sound (or something like that.)

Thank you very much!
Previous Topic: New Voicepack
Next Topic: Editing after starting game
Goto Forum:
  


Current Time: Sat Oct 20 20:24:15 EEST 2018

Total time taken to generate the page: 0.01114 seconds