Page 1 of 1

Importing (but not replacing) new sounds for mod development

Posted: Tue May 19, 2020 10:15 pm
by jefetienne
Hi all,

A while ago, I started a branch for a rudimentary NPC voice greeting mod that I was thinking of doing. It required the use of multiple clips of recorded voices. I tried sifting through the codebase to find a method that imports new sounds, but not for the purpose of replacing existing noises. I personally couldn't find any, so I instead wrote a method here.

I just wanted to confirm with everybody here that there isn't a way to import new sounds without the purpose of replacing existing sounds. If there isn't, I think it would be greatly beneficial for the modding community to add one, and I'd like to discuss what you think would be the best way to implement it. Currently, the method I wrote is in "SoundReplacement" so it doesn't exactly fit within that class. I'd like to propose making another class like "SoundImporter", or maybe just renaming the class.

I'm interested in making an ambiance mod that adds tavern, village, and town noises to make the environment feel more lively, and as far as I can tell, it currently doesn't seem possible from what I've gathered.

Re: Importing (but not replacing) new sounds for mod development

Posted: Wed May 20, 2020 12:36 am
by Interkarma
For additional ambient sounds, you could just create a custom ambient sound player to play whatever sounds you want bundled with your mod.

This could be in addition to current ambient sounds, or you could disable the core ambient effects player and just play your sounds instead.

There no method to add new sounds that the core game would be aware of. Even if the sounds are present, the core game has no reason to play them as it only knows about the classic assets. Mods can use custom sounds, but they need also decide when to play them.

Re: Importing (but not replacing) new sounds for mod development

Posted: Wed May 20, 2020 1:35 am
by jefetienne
Interkarma wrote:
Wed May 20, 2020 12:36 am
For additional ambient sounds, you could just create a custom ambient sound player to play whatever sounds you want bundled with your mod.
I've been so wrapped up with DFU as an engine that I forgot that Unity was also an engine :lol: I feel silly for making this, but thank you for letting me know.

Re: Importing (but not replacing) new sounds for mod development

Posted: Thu May 21, 2020 12:36 pm
by Metzik
I'm interested in making an ambiance mod that adds tavern, village, and town noises to make the environment feel more lively, and as far as I can tell, it currently doesn't seem possible from what I've gathered.
This sounds really cool Jefetienne. Any thoughts on adding sfx like footsteps, clothing/armor, working sounds (like the smith or the man with horse and cart) on npc's as well? It'd be cool if there where markets in towns and villages as well.

Re: Importing (but not replacing) new sounds for mod development

Posted: Thu May 21, 2020 10:34 pm
by jefetienne
Metzik wrote:
Thu May 21, 2020 12:36 pm
Any thoughts on adding sfx like footsteps, clothing/armor, working sounds (like the smith or the man with horse and cart) on npc's as well?
Those sound pretty good! It all depends on what sounds I can find on the internet that are properly licensed for redistribution. I'll make a post on one of the modding forums at some point about it.

Re: Importing (but not replacing) new sounds for mod development

Posted: Sat May 23, 2020 1:23 pm
by Azteca
Thanks for asking this question. I started on a sound replacement mod. Working on the existing effects is great but there is certainly room for expansion! Nice to know it’s possible.

Re: Importing (but not replacing) new sounds for mod development

Posted: Sun May 24, 2020 2:54 pm
by Metzik
Thanks for asking this question. I started on a sound replacement mod. Working on the existing effects is great but there is certainly room for expansion! Nice to know it’s possible.
Actually Azteca, I was going to ask you about the status of your project as well :)