PDA

View Full Version : Quick question/help sh3.sdl creaks


Philipp_Thomsen
03-26-08, 11:06 PM
For people familiar to sh3.sdl

There's no sound by sound entry, there's some sort of 'playlist' for the creaks Interior.Playlist.DepthCranks and Im trying to tweak that for my mod, coz the creaks keep looping.

The problem is, sometimes two creaks play simultaneously, them one of them ends up in a eternal 1 second loop.

I want to tweak this file so two creaks dont play at the same time.

Some questions:

1) If I add an entry for each of the creaks, will it work?
2) If I increase the priority of the sound, it may dont get in the eternal loop?
3) If I add a delay (lets say, 5) will one creak wait for the other to end, then 5 seconds later start playing?
4) Is folder/Loop/Play what this check/uncheck boxes does?
5) What is "PITCH"? What does it do?
6) Changing in category, would it help?

Well, ANY help is apreciated, any clever idea on how can I tweak this. I manage to put several stereo sounds in the game and so far no problem, except for these creaks, I know it can be done, I just need YOUR help!

Thanks in advance!

Philipp_Thomsen
03-27-08, 10:35 AM
bump!

Philipp_Thomsen
03-27-08, 01:45 PM
Come on, there must be someone around here that understand at least a little bit of this... PRETTY PLEASE???

My sound mod depends on this to work properly, until then I cant release it full...

The GWX crew, did someone work with sh3.sdl??? ANY information is welcome!

Philipp_Thomsen
03-27-08, 02:45 PM
I don't know much about that part, but there's another file related to the sounds. Maybe the data you're looking for is rather in the .dsd file in data/interior/anysub/, it opens in S3D.

HOW THE HELL DID I FORGET ABOUT THOSE FILES??? :damn: :damn: :damn: :damn: :damn: :damn:

Thanks for making me remeber them, Mikhayl. I will give it a tweak and some tests...

But the questions remain stading, waiting for someone with guts to answer! :up:

nikpinero
03-27-08, 07:24 PM
I don't know much about that part, but there's another file related to the sounds. Maybe the data you're looking for is rather in the .dsd file in data/interior/anysub/, it opens in S3D.

HOW THE HELL DID I FORGET ABOUT THOSE FILES??? :damn: :damn: :damn: :damn: :damn: :damn:

Thanks for making me remeber them, Mikhayl. I will give it a tweak and some tests...

But the questions remain stading, waiting for someone with guts to answer! :up:

FWIW, I think your sound pack is one of the most comprehensive out there. I liked it a lot, but I was forced to uninstall it because of the issue you just brought up on this thread, those loops were driving me nuts. Of course I could just replace the creak sounds with those of some other mod, or I might even take them out altogether, put itīd be a pity, since your creaks sound pretty damn good. Anyhow researching this issue I encountered the following thread, which in spite of not offering any solutions might still be useful to you:

http://www.subsim.com/radioroom/showthread.php?t=91284&highlight=creak

skwasjer
03-27-08, 07:39 PM
I've tried to answer your questions, but it may not be 100% correct. If anyone else reads this and sees something is incorrect, I hope they will add/correct.

There's no sound by sound entry, there's some sort of 'playlist' for the creaks Interior.Playlist.DepthCranks and Im trying to tweak that for my mod, coz the creaks keep looping.

The problem is, sometimes two creaks play simultaneously, them one of them ends up in a eternal 1 second loop.

I want to tweak this file so two creaks dont play at the same time.

Playlists are controlled by the SoundPlaylist controller in the .DSD files, and not by the .SDL file. There must however be a 'generic' entry in the .SDL file to which this controller is linked (see 'Name'-property, it contains the name of an .SDL entry).

The SDL-file only controls the playback settings (volume, pitch, etc), and usually also which file to play (wav/ogg). The .DSD file (or others, depending on controllers) control how/when a sound is played...


1) If I add an entry for each of the creaks, will it work?
In this specific case, you can suffice by adding new sounds in the .DSD-file in the SoundPlaylist controller. You'll have to use S3D v0.6.1 or higher to be able to do this.

2) If I increase the priority of the sound, it may dont get in the eternal loop?
Don't know. The priority, category and folder controls how the game queues and orders all sounds. Depending on how many sound channels are available (depending on hardware), the game will choose the highest priority sounds, but also at least a percentage from each category and folder. That way, in heavy combat scenario's, you won't just hear thousands of sounds from one category (ie. machine gun bullets), but also still your wake, engine, aircraft props, ship sirenes, etc.

3) If I add a delay (lets say, 5) will one creak wait for the other to end, then 5 seconds later start playing?
You can change delay between items in SoundPlaylist controller, and even a random delay.
The delay value in the SDL-file just delays the initial playback. This is usually used to allow for another sound (not triggered by the DSD/SDL-file) to be played first. For instance, the Dive sequence, you first hear 'Yes Sir, dive planes set for normal dive' and then the hatch closes, bubbles etc. This hatch sound, has a delay of some 3 secs, to allow the speech sound to be played first...

4) Is folder/Loop/Play what this check/uncheck boxes does?

- 'Is folder' is a flag that indicates if the entry is a folder-like entry. Most of the first entries are flagged 'true'. For example, you can see Interior in that list. Folders contain items. The dot (.) is a folder seperator.
I.e.: Interior.Clock, Interior.ElectricSparkCutie, etc. belong to the same folder Interior. Folders themselfs are not actually a 'playable' sound. See 2) for more info.

- 'Loop' indicates the sound should be looped.

- 'Play' indicates the sound should automatically play. Unchecked, the sound must be triggered by an action/event. For example, a shipwake has it checked, a ping has it unchecked.

5) What is "PITCH"? What does it do?
Can't explain it any better than this:
http://en.wikipedia.org/wiki/Pitch_(music)

Also known as time strech:
http://en.wikipedia.org/wiki/Timestretching

6) Changing in category, would it help?
Don't know if that helps but I doubt it, see 2) for more info on category, but other than that: test, test, test... ;)


Anyway, regarding overlapping creaks, possibly they all have to be similar in length. Maybe the game only uses the first creak it's length and assumes all the others are the same. Try disabling Preload and see if that helps... Maybe not, I don't know exactly the meaning of it.

rascal101
03-27-08, 11:50 PM
Seems really acute when you go very deep then one sound just keeps repeating over and over again, sometimes if you change depth or turn you can cause the sound file to 'unlock' itself out of its groove, whereby the game plays fine or you get a new sound which does the same thing

Hope some one has a fix for this

J