SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-19-21, 03:49 PM   #1
Nisse_thepear
Swabbie
 
Join Date: Nov 2019
Posts: 8
Downloads: 57
Uploads: 0
gear Editing soundfiles

Not sure if this is the right place to post but here goes nothing.
I recently decided to mod the soundfiles, most of the files are from other mods but I ended up modifying a couple of them myself with Audacity.

Thing is, the sound files I edited myself don't play in game and are replaced with silence.
Is there a way to fix this or am I doing something wrong?
Nisse_thepear is offline   Reply With Quote
Old 06-19-21, 09:33 PM   #2
Mad Mardigan
Admiral
 
Mad Mardigan's Avatar
 
Join Date: Sep 2016
Location: Grand Rapids, Mi.
Posts: 2,327
Downloads: 491
Uploads: 0


SHO

Quote:
Originally Posted by Nisse_thepear View Post
Not sure if this is the right place to post but here goes nothing.
I recently decided to mod the soundfiles, most of the files are from other mods but I ended up modifying a couple of them myself with Audacity.

Thing is, the sound files I edited myself don't play in game and are replaced with silence.
Is there a way to fix this or am I doing something wrong?
I think with any sound files... (music ones, don't count in this assessment here.. ) like... a crew man repeating confirm of an order given, like... 1/3 ahead... is part of a scripting segment in game.

If I am correct in that assessment.. it would require that script being edited to know that you have added in the sound files that you've edited.. would be My guess here.

Am sure that someone more... knowledgeable about such, will be along to either confirm or shoot down My assessment.

M. M.

__________________
Mad Mardigan is offline   Reply With Quote
Old 06-20-21, 04:20 AM   #3
Nisse_thepear
Swabbie
 
Join Date: Nov 2019
Posts: 8
Downloads: 57
Uploads: 0
Default

Thanks for replying!

The files I edited myself were:
P16_#oil_explosion.wav
secondary_bomb_explosion.waw

They have the same name as the previous files, replaced them via JSGME. Since all the other soundfiles that I replaced with files that wern't edited by me worked - I suspect something went wrong when I exported the two files i edited myself.
Nisse_thepear is offline   Reply With Quote
Old 06-20-21, 05:31 AM   #4
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,749
Downloads: 440
Uploads: 2


Default

Quote:
Originally Posted by Nisse_thepear View Post
Thanks for replying!

The files I edited myself were:
P16_#oil_explosion.wav
secondary_bomb_explosion.waw

They have the same name as the previous files, replaced them via JSGME. Since all the other soundfiles that I replaced with files that wern't edited by me worked - I suspect something went wrong when I exported the two files i edited myself.
Open a file that has not been edited. You'll see the waveform window. On the left of that is the information for the file. Note that it will usually show 44.1kHz at 32-bit float. That information however, is how Audacity opened the file. Most of the files in the game are 16-bit fixed, and you have to match that. You have to match the bit-depth. Sometimes a mono file will display as 22050 hz while "stereo" (two channels) will show as 44100. That is one in the same thing. But you should match the games file, whether mono or stereo. You also cannot exceed certain lengths time-wise with some of those files. The "Ambient" sounds can generally be longer, but a lot of the sound effects are only 2-3 seconds in length, while other sounds are 10-12 seconds. You have to stay close to the original length of most files in the game. What the file was originally is what you want to match all around in general. Open the files you edited in Audacity again, edit them to length, then when you export to wav, make sure the bit-depth is 16-bit fixed. That's what my guess is to what the issue is for you.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is online   Reply With Quote
Old 06-20-21, 08:47 AM   #5
Nisse_thepear
Swabbie
 
Join Date: Nov 2019
Posts: 8
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by propbeanie View Post
Open a file that has not been edited. You'll see the waveform window. On the left of that is the information for the file. Note that it will usually show 44.1kHz at 32-bit float. That information however, is how Audacity opened the file. Most of the files in the game are 16-bit fixed, and you have to match that. You have to match the bit-depth. Sometimes a mono file will display as 22050 hz while "stereo" (two channels) will show as 44100. That is one in the same thing. But you should match the games file, whether mono or stereo. You also cannot exceed certain lengths time-wise with some of those files. The "Ambient" sounds can generally be longer, but a lot of the sound effects are only 2-3 seconds in length, while other sounds are 10-12 seconds. You have to stay close to the original length of most files in the game. What the file was originally is what you want to match all around in general. Open the files you edited in Audacity again, edit them to length, then when you export to wav, make sure the bit-depth is 16-bit fixed. That's what my guess is to what the issue is for you.
Changing the bit-float to 16 bit, the wavelength 22050 Hz and exporting it as a mono soundfile solved it!
Thanks alot man!
Nisse_thepear is offline   Reply With Quote
Old 06-20-21, 02:32 PM   #6
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 793
Downloads: 27
Uploads: 0


Default

Quote:
Originally Posted by Nisse_thepear View Post
Changing the bit-float to 16 bit, the wavelength 22050 Hz and exporting it as a mono soundfile solved it!
Thanks alot man!
So, is the result good in game ?
Mister_M is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.