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
|
|
ecstazy |
|
Messages:35
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?
Report message to a moderator
|
Private 1st Class
|
|
|
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
|
|
Deleted. |
|
Messages:2663
Registered:December 2012 Location: Russian Federation |
|
|
ecstazy wrote on Sun, 22 July 2018 00:06Hi 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.
Left this community.Report message to a moderator
|
|
|
|
|
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
|
|
Deleted. |
|
Messages:2663
Registered:December 2012 Location: Russian Federation |
|
|
ecstazy wrote on Sun, 22 July 2018 02:12Hey 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]
Left this community.Report message to a moderator
|
|
|
|
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
|
|
ecstazy |
|
Messages:35
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!
Report message to a moderator
|
Private 1st Class
|
|
|
Goto Forum:
Current Time: Sat May 04 23:23:36 GMT+3 2024
Total time taken to generate the page: 0.01014 seconds
|