That's because it isn't lol. How do I attach that audio to the child of a parent prefab? I'll go research that now. lol I thought all I had to do was drag the file in and export it out. I didn't know I had to attach it to anything.Can't see your pic clearly but it doesn't appear you have the audio in a child of the parent prefab.
<configs>
<remove xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundRandom']"/>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundRandom']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutroamcustom</set>
<remove xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundAlert']"/>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundAlert']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalertcustom</set>
<remove xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundAttack']"/>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundAttack']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutattackcustom</set>
<remove xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundDeath']"/>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundDeath']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeathcustom</set>
<remove xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundSense']"/>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundSense']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutsensecustom</set>
</configs>
<configs>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutalertcustom"> <AudioSource name="Sounds/AudioSource_Screamer"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalert1"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalert2"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalert3"/>
<Channel name="Mouth"/>
<Priority name="3"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="3"/>
</SoundDataNode>
</append>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutattackcustom"> <AudioSource name="Sounds/AudioSource_Screamer"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutattack1"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutattack2"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutattack3"/>
<Channel name="Mouth"/>
<Priority name="2"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="1.8"/>
</SoundDataNode>
</append>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutdeathcustom"> <AudioSource name="Sounds/AudioSource_Pain"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeath1"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeath2"/>
<Channel name="Mouth"/>
<Priority name="0"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="1.111"/>
</SoundDataNode>
</append>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutroamcustom"> <AudioSource name="Sounds/AudioSource_Screamer"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutroam1"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutroam2"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutroam3"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutroam4"/>
<Channel name="Mouth"/>
<Priority name="5"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="3"/>
</SoundDataNode>
</append>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutsensecustom"> <AudioSource name="Sounds/AudioSource_Screamer"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutsense1"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutsense2"/>
<Channel name="Mouth"/>
<Priority name="4"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="3"/>
</SoundDataNode>
</append>
</configs>
I hope I get this right also. Tell me if I'm wrong. You need a parent folder for the different sounds. I have a folder for the attack sounds, one for the roam, one for the alert and one for the death sounds. As you see above in my code I have pointed the zombiefemalescoutroam1 to 4 to the folder zombiefemalescoutroamcustom which is the <SoundDataNode name="zombiefemalescoutroamcustom">?Look at my pic.
Parent object is blank.
Child object is also blank. Drag audio clip to child. No longer blank.
The sounds.xml is not working as I see no edited values. The entityclasses one is working though.So basically we don't know yet if you are having a unity issue or xml issue.
Let's work on one at a time.
On the unity as you saw in my video, I had several sounds selected at one point. What I did in real life was keep those selected and build ONE unity3d file with all of those sounds, and as you saw from my XML I reference them from one unity3d file, but different parents.
So now let's assume that you did the unity correctly, so now it's an XML issue.
Find the sticky post in tutorials about xpath error checking and run exportcurrentconfigs to see what your xml final result is and that'll help you narrow down the XML issue.
First make sure the sounds.xml is working, then you can diagnose the entityclasses.
<configs>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundAlert']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalertcustom</set>
</configs>
<configs>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutalertcustom"> <AudioSource name="Sounds/AudioSource_Screamer"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalertcustom1"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalertcustom2"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutalertcustom3"/>
<Channel name="Mouth"/>
<Priority name="3"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="3"/>
</SoundDataNode>
</append>
</configs>
No problem.edit: sorry if I am hijacking this thread Winterhart, but we do "kinda" have the same problem. Getting the new sounds to the zombies.
Sorry. Now that I have doublechecked it is indeed in the bottom of the sounds.xml. I probably checked on the wrong gameworld save....and you're not seeing that entry at the bottom of sounds.xml? Something is wrong then, because the xpath looks correct.
<SoundDataNode name="zombiefemalescoutalertcustom"><!--Element appended by: "RobelotoScreamerSound"--> <AudioSource name="Sounds/AudioSource_Screamer" />
<AudioClip ClipName="#@modfolder(RobelotoScreamerSound):Resources/screamersounds.unity3d?zombiefemalescoutalertcustom1" />
<AudioClip ClipName="#@modfolder(RobelotoScreamerSound):Resources/screamersounds.unity3d?zombiefemalescoutalertcustom2" />
<AudioClip ClipName="#@modfolder(RobelotoScreamerSound):Resources/screamersounds.unity3d?zombiefemalescoutalertcustom3" />
<Channel name="Mouth" />
<Priority name="3" />
<maxVoicesPerEntity value="1" />
<LocalCrouchVolumeScale value="1.0" /> <CrouchNoiseScale value="0.5" /> <NoiseScale value="1" /> <MaxVoices value="10" /> <MaxRepeatRate value="3" />
</SoundDataNode>
</Sounds>
I now tried only with one sound.@Winter: Okay, you're getting close! At least the xml part is right, as it's trying to read the .unity3d file looking for the sound.
In your case, you're confusing the parent name with the unity3d file name. The unity3d file is what you save the BUNDLE as when you right click that script. What you want to reference is the parent name, NOT the child name. The child name is immaterial. So, LEAVING YOUR XML ALONE...
...in Unity, change the PARENT name to ZombieSounds, and then when you rightclick to bundle it, change the .unity3d file name to ChangeSounds.unity3d, then you should be good to go.
@Robeloto: Are you getting the same error as Winter is?
Your xml still looks right, so see the above as I think you're doing what Winter is doing.
<configs>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundDeath']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeathcustom</set>
</configs>
<configs>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutdeathcustom"> <AudioSource name="Sounds/AudioSource_Pain"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeath1"/>
<Channel name="Mouth"/>
<Priority name="3"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="3"/>
</SoundDataNode>
</append>
</configs>
<configs>
<append xpath="/Sounds">
<SoundDataNode name="zombiefemalescoutdeath1"> <AudioSource name="Sounds/AudioSource_Pain"/>
<AudioClip ClipName="#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeath1"/>
<Channel name="Mouth"/>
<Priority name="3"/>
<maxVoicesPerEntity value="1"/>
<LocalCrouchVolumeScale value="1.0"/> <CrouchNoiseScale value="0.5"/> <NoiseScale value="1"/> <MaxVoices value="10"/> <MaxRepeatRate value="3"/>
</SoundDataNode>
</append>
</configs>
<configs>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundDeath']/@value">#@modfolder:Resources/screamersounds.unity3d?zombiefemalescoutdeath1</set>
</configs>
<set xpath="/entity_classes/entity_class[@name='zombieArlene']/property[@name='SoundSense' and @value='Enemies/Base_Zombie_Female/zombiefemalesense']/@value">ZombieSounds</set>
<configs>
<set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundDeath']/@value">zombiefemalescoutdeath1</set>
</configs>
Haha and I just noticed the same time you posted this!Entityclasses:
You're only importing the sound to sounds.xml, the only thing you do in entityclasses or items or blocks or vehicles is REFERENCE the sounddatanote name you gave it.Code:<configs> <set xpath="/entity_classes/entity_class[@name='zombieScreamer']/property[@name='SoundDeath']/@value">zombiefemalescoutdeath1</set> </configs>
Haha yes! Thanks you so so very much for all your help! Man, I spent the whole damn saturday and sunday morning with this game, but it was worth it! Now it works perfectly! Time for bed! ^^Looks like you figured it out while I was typing. =)
What I finally did (before I read this) that is working is create a parent object named ChangedSounds, and then leaving the child object named Game Object and attaching the sound to it. It is all working now. I edited the post to show that....in Unity, change the PARENT name to ZombieSounds, and then when you rightclick to bundle it, change the .unity3d file name to ChangeSounds.unity3d, then you should be good to go.