• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Sound in Unity needs to be one version please

JDork

New member
I need to know which version of Unity to use for importing sounds, then exporting them in 7dtd. Why are there two different versions of Unity recommended on here? I understand for those who have experience with this kind of thing, it's probably a snap. For a noob like me? Not so much. Version 2018.2 not only has a different interface than the one in the video, it doesn't even give me the option to Build. The other version recommended, 2021.3.19f1 does allow for Build, but then it is mentioned at 02:18 in the video to put it in the resource folder, but there are no instructions on how to do that, or where the resource folder is. Maybe an updated video instead of one that is 7 years old at this point would be beneficial. All I want to do is export from Unity some custom sounds into the loudspeakers, but I fear I may not have the apt or the patience to keep jumping through hoops. Please help me.

 
I need to know which version of Unity to use for importing sounds, then exporting them in 7dtd. Why are there two different versions of Unity recommended on here? I understand for those who have experience with this kind of thing, it's probably a snap. For a noob like me? Not so much. Version 2018.2 not only has a different interface than the one in the video, it doesn't even give me the option to Build. The other version recommended, 2021.3.19f1 does allow for Build, but then it is mentioned at 02:18 in the video to put it in the resource folder, but there are no instructions on how to do that, or where the resource folder is. Maybe an updated video instead of one that is 7 years old at this point would be beneficial. All I want to do is export from Unity some custom sounds into the loudspeakers, but I fear I may not have the apt or the patience to keep jumping through hoops. Please help me.
Almost every major game update changes the version used. You can always check your log file for the current version, it will be right near the top. 1.3 is currently using 2022.3.50f1.

 
I appreciate the quick reply, but that doesn't really help me with any tutorials revolved around the version I should be using. The only video is 7 years old and still using version 2018.2

 
Don't know that much has changed. Once you have imported the export script that I think is linked in Xyth's guide all you do for sounds is import them into Unity and then right click and export them into a unity3d bundle. Don't have to bother with prefabs or anything. Wav, mp3, or ogg should work.

 
For something as simple as sounds, pretty much any modern version of Unity should work as well as any other.

Also, if some video somewhere told you to put the exported file into a "Resources" folder in your mod, that's a convention, not a requirement. Generally speaking, that's where mod authors usually put all their compiled Unity assets. It's a good idea to follow conventions but it's not a requirement.

As long as you reference the correct folder when you specify sounds in sounds.xml, you should be fine.

There are differences in game versions though. The XML syntax for importing resources, changed in a recent alpha (I think maybe A20, but I'm just going by memory).

Here's an example of how to specify a new sound in 1.0:
 

<SoundDataNode name="zombieburnta21alert">
<AudioSource name="Sounds/AudioSource_CreatureSenseAlert" />
<AudioClip ClipName="#@modfolder:Resources/ZombieSounds_KHz.unity3d?zombieburntalert1" />
<AudioClip ClipName="#@modfolder:Resources/ZombieSounds_KHz.unity3d?zombieburntalert2" />
<AudioClip ClipName="#@modfolder:Resources/ZombieSounds_KHz.unity3d?zombieburntalert3" />
<Channel name="Mouth" />
<Priority name="3" />
<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="3" />
</SoundDataNode>




In this case, the "#@modfolder" prefix tells 7D2D to look in the current mod's folder. It looks in the "Resources" folder, in a file called "ZombieSounds_KHz.unity3d", and within that file it grabs the "zombieburntalert1" sound (or whatever) from the package.

That's from my zombie pack. I wanted my own burnt zombie to use the A21 sounds, and not the new burnt zombie sounds, so I ripped them from A21 and put them in my own Unity package. I did it for 1.0 so I know it works.

 
I know people are trying to be helpful, and I do appreciate it, but in any of the many versions of Unity that I have downloaded, I need to know what to do from the very beginning. Think like a noob. When I first open Unity for the first time in a new project, or with the project posted in a link by Xyth, I need very specific instructions (preferably in a video, as I am a visual learner) from step 1. I'm finding any information that is out there to be very outdated. It makes it incredibly difficult for someone new like me to get started. So far I have based everything I have been tryin to learn, pretty much solely on instructions on this site posted by Xyth, but they are contradicting and vague. As an example: I downloaded and opened Unity version 2021.3.19f1, as per one of Xyth's posts on here. I created a new project from the Unity Hub. I imported a sound asset. From there, I am completely and utterly lost. Based in various versions of Unity and various explanations, instructions, interfaces and steps are all different. I need one version of Unity that more than one person uses as a base to get started. From there, I need specific, consistent instructions, from New Project to Exported to 7 DTD.  

 
Back
Top