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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-04-10, 08:03 AM   #1
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default CTDs when editing Speech Files

I posted this in the general forums but realized it is probably better suited here.


So I downloaded Pouls sound mod which is fantastic. However, some of the speech files I want to edit.

For example, "returning to course" I get tired of hearing the captain from Das Boot scream "more or less, more or less that's not good enough"

-So I convert the file to wav format
-I open it in a sound editor and chop off the end of the sound bite to my liking.
-I re-encode/convert the file back to ogg and drop it back in the Poul sound mod and re-enable the mod.

When I go to the game and change course, thus activating this sound I get a CTD? Is there something I'm missing? I swear I used to do this all the time before I started running 1.5 and TMO2.0 with no problems. Any ideas?
Dignan is offline   Reply With Quote
Old 12-04-10, 10:03 AM   #2
tomoose
Grey Wolf
 
Join Date: Aug 2005
Posts: 930
Downloads: 23
Uploads: 0
Default Just a guess..

...but is the file the exact same size as the original? I had messed around a while back by changing the rubber dinghy collision sound to something other than that horrendous ship collision sound. I found that the file size had to be the same otherwise it didn't work.

I ended up changing it back as it affected all the other ship collisions (i.e. the devs used one sound effect for all ship collisions regardless of their size including the rubber dinghy for the spy dropoff missions, a terrible oversight but we're stuck with it.)

It could have been something else but my conclusion at the time was the file size. Hope this helps.
tomoose is offline   Reply With Quote
Old 12-04-10, 10:06 AM   #3
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Could be. I've used different sounds for other things before that were different file sizes with no problems. I only seem to get this when trying to switch out a few speech files. Might be the "sample rate" as Beast suggested in another thread.
Dignan is offline   Reply With Quote
Old 12-04-10, 11:33 AM   #4
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

i know for certain the sound files duration was very sensitive, too short and it wouldnt play (the game doesnt always use the whole sound from start to finish) or too long (sometimes by only seconds) and it would CTD on you.

im not sure if it was the size that mattered all that much but you never know and it stands to reason size and duration would go up or down together
  Reply With Quote
Old 12-04-10, 04:41 PM   #5
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

Make sure you at least have used the same bitrate, compression mode (VBR or CBR), frequency (44khz vs 48khz, or others) and channel type (stereo or mono) as the stock file. I remember SH4 does not support every available format. This is also true for WAV. You have to imagine SH4 is allocating buffers for sounds, probably partially hardcoded for its size, and as such if you exceed that buffer (for instance when now using a higher bitrate) you will overflow it and CTD. What webster says is also true, if files are longer or shorter, similar problems might occur. Some workarounds used by people were to add silence (if an audio track was cut shorter) to it's original length.
skwasjer 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 03:33 PM.


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