Just an update for anyone here

I haven't forgotten I'm just busy with other work... I'll keep cleaning it up and hopefully make this a "nice" tutorial when I'm done (on the mod forums) but this much here might give you something to mess with. Its basically the first 1/2 of the tutorial, and not tested/cleaned up. This should give you enough to load a new/custom sound of your own into the game and test it if you're interested. If you are not able to get this part to work , please let me know! Installing the proper Unity version is the hardest (and longest) part.
Its *possible* the a19 Unity template project by xyth doesn't work in a20. I have not tested this yet! We're just importing sounds so its likely it still works. the template is made to do "all sorts of things" like importing/exporting 3D models/blocks/etc. Sounds are the easiest and simplest and don't require a lot the template project contains ( like the special tags you need to use for the game so blocks collide properly, doors open properly, etc). You'll likely know there's an issue if you load your sound mod in and it throws an error or there's no sound, but its also possible no sound will play if you made an XML formatting error. If you hit "F1" after the game loads you can check for any errors/warnings and hopefully they will have the name of the mod or filename in your mod if it has errors.
Rough Sound Mod Tutorial below....
############
# READ THIS FIRST!
############
Before beginning, a few things should be done by you to make the steps below easier:
1. Get a single sound file (.wav format) that is short (1-2 seconds long). You will use this for the tutorial below
2. Name this sound file "testsound" (all lowercase!). If you are using Windows and "file name extensions" are turned on, the name will look like "testsound.wav"
Notes:
- This is a basic tutorial for creating a barebones XML mod that adds a single "new"
sound (of your choosing) into the game to an existing object in the game.
- The methods used here are not "absolute" or "the best" or "the only" way to accomplish this.
- This will not cover all the different ways of adding sounds like altering/changing/replacing
the existing game sounds. It is only meant as a way for people unfamiliar with Unity and XML modding
to get something basic working.
- Additional updates to this may be added where common pitfalls/problems exist or game updates change the process.
############
# Installing Unity
############
This is for a19. A20 not ready yet!
Info:
- Unity is what the game is developed in and you need it to export into the .unity3d file format.
- I recommend not attempting to use Unity on non-Windows systems for your first project (it may have issues)
- The "Unity Hub" is like a wrapper for handling multiple Unity installations. You want to use this to install Unity itself.
- Modding for & Days to Die usually works best if you use the same version of Unity as the game was built in. This changes when major game updates come out:
7 Days to Die version -> Unity version to use/install
A18 -> Unity 2019.1
A19 -> Unity 2019.2
A20 Experimental -> Unity 2020.3.14f1
Installing Unity Hub and Unity:
See these posts from xyth to install Unity and his Template project.
Note: This template project can be used for many other things, not just sounds!
Note: The template project contains the *required* "MultiPlatformExportAssetBundles.cs" file to export your sounds in the .unity3d format.
NEWER: "Consolidated Guide to Modding 7D2D with Unity"
OLDER: "Creating and Exporting Models from Unity for use in 7D2D"
############
# Using Unity to import a sound and export it as a .unity3d file/format
############
Convert the "testsound" .wav file into unity.3d format:
Referenced from the 1st link above, this video shows on how to import and export sounds into .unity3d files:
Note: When exporting the sound, make the filename: test-sounds-cupboard.unity3d
############
# Making a simple XML mod for the sound
############
- Instead of starting from scratch, download the fully functioning "template-sound-mod" from here:
https://github.com/doughphunghus/7D2D-CommunitySoundPacks-a20
Note: If you load this mod into the game it should load without errors. It adds a single extra sound when opening a cupboard.
Copy your "test-sounds-cupboard.unity3d" file into the "template-sound-mod/Resources" folder
So the mod will load your sound, lets replace the sound that comes with the mod with your .unity3d packaged sound:
- open the file: template-sound-mod/Config/sounds.xml with a text or XML editor of your choice.
- Change this line: <AudioClip ClipName="#@modfolder:Resources/doughphunghus-cupboard.unity3d?wrench_harvest-5"/>
To this: <AudioClip ClipName="#@modfolder:Resources/test-sounds-cupboard.unity3d?testsound"/>
- Save the file.
############
# Loading the sound mod into the game and testing it
############
Manually installing "simple" mods guide:
Manual installation:
https://7daystodiemods.com/how-to-install-7-days-to-die-mods/
- Once the mod has been copied to the "Mods" folder, Create a new game using the "Navezgane" map AND
Enable "Cheat mode" in the "Advanced" settings before launching the game so you can spawn in a cupboard to test your sounds on
- When the game is loaded, open the menu ('M' key will work) and choose the creative menu (lightbulb icon at the top)
- On the left search area, type in "cupboard" and choose any block named "cupboard" (not the "open" ones) and put it on your toolbelt.
- Close the menu and place a cupboard block on the ground and open (and close) it a few times to hear the new sound.
Note: The game chooses the new sound 'randomly' from the available 'open_cupboard' sounds so it may take a few tries.