Robeloto
New member
for example, in my mod. My zombieGunner does not load the sound when he is getting hurt or dies. These sounds worked before, but now he is silent. The sounds are in the exact format as the other zombies I have and the other zombies work perfectly. I have tried various things, like adding the sound in unity again and doublecheck so everything is ok before I save. Used a wav instead of a mp3 file, shortened the sound.
Everything in entityclasses.xml and sounds.xml are as they should be.
Entityclasses.xml
<property name="SoundRandom" value="gunnerroam"/>
<property name="SoundAlert" value="gunneralert"/>
<property name="SoundSense" value="gunnerattack"/>
<property name="SoundHurt" value="gunnerpain"/>
<property name="SoundDeath" value="gunnerdeath"/>
<property name="SoundAttack" value="gunnerattack"/>
Sounds.xml
<SoundDataNode name="gunnerpain"> <AudioSource name="Sounds/AudioSource_Sounds/AudioSource_Pain"/>
<Noise ID="2" noise="11" time="3" muffled_when_crouched="0.5"/>
<AudioClip ClipName="#@modfolder:Resources/robelotozombiesounds.unity3d?gunnerpain1"/>
<AudioClip ClipName="#@modfolder:Resources/robelotozombiesounds.unity3d?gunnerpain2"/>
<AudioClip ClipName="#@modfolder:Resources/robelotozombiesounds.unity3d?gunnerpain3"/>
<Channel name="Mouth"/>
<Priority name="1"/>
<maxVoicesPerEntity value="1"/>
<LowestPitch name="0.95"/>
<HighestPitch name="1.05"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="1.8"/>
</SoundDataNode>
In the console this message will appear every time the game tries to load the sound:
7 days AudioManager LoadAudio failed to load audio source object for Audiosource/AudioSource name="Sounds/AudioSource_Pain
The other sounds for gunners work and they are of the same quality and even the same length, so what gives?
It's weird...
Edit: I tried switching out the pain and death to attack sounds and then they work. But this is not giving me a clue to why the other sounds is not working. Seems I have to make new sounds for the pain and death sounds or something and pray that they will work. This is giving me a headache, cause now when I made a new zombie and made some new sound for it, the pain and death sounds will not work. But just as with the gunner, the other sounds work fine.
Everything in entityclasses.xml and sounds.xml are as they should be.
Entityclasses.xml
<property name="SoundRandom" value="gunnerroam"/>
<property name="SoundAlert" value="gunneralert"/>
<property name="SoundSense" value="gunnerattack"/>
<property name="SoundHurt" value="gunnerpain"/>
<property name="SoundDeath" value="gunnerdeath"/>
<property name="SoundAttack" value="gunnerattack"/>
Sounds.xml
<SoundDataNode name="gunnerpain"> <AudioSource name="Sounds/AudioSource_Sounds/AudioSource_Pain"/>
<Noise ID="2" noise="11" time="3" muffled_when_crouched="0.5"/>
<AudioClip ClipName="#@modfolder:Resources/robelotozombiesounds.unity3d?gunnerpain1"/>
<AudioClip ClipName="#@modfolder:Resources/robelotozombiesounds.unity3d?gunnerpain2"/>
<AudioClip ClipName="#@modfolder:Resources/robelotozombiesounds.unity3d?gunnerpain3"/>
<Channel name="Mouth"/>
<Priority name="1"/>
<maxVoicesPerEntity value="1"/>
<LowestPitch name="0.95"/>
<HighestPitch name="1.05"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="1.8"/>
</SoundDataNode>
In the console this message will appear every time the game tries to load the sound:
7 days AudioManager LoadAudio failed to load audio source object for Audiosource/AudioSource name="Sounds/AudioSource_Pain
The other sounds for gunners work and they are of the same quality and even the same length, so what gives?

Edit: I tried switching out the pain and death to attack sounds and then they work. But this is not giving me a clue to why the other sounds is not working. Seems I have to make new sounds for the pain and death sounds or something and pray that they will work. This is giving me a headache, cause now when I made a new zombie and made some new sound for it, the pain and death sounds will not work. But just as with the gunner, the other sounds work fine.
Last edited by a moderator: