Page 1 of 1
The Trouble With Whistles

Posted:
Tue Jun 09, 2015 4:49 pm
by PickeringLumberCorp
Hello,
I have recently been playing around with different custom whistles with the locomotives from the Logging Mega Pack, and I have seemed to run into a bit of a bother. The default whistles of the locomotives work fine, but the custom whistles suffer from this symptom: the whistle loop sound file starts playing at the same time as the whistle start sound file, thereby effectively covering up the start sound file. I was wondering if there's a bit of coding which deals with timing that I have to change or what. I would appreciate any and all help. By the way, the Logging Mega Pack is absolutely amazing (especially the Shays)!
Cheers,
Armagon
Re: The Trouble With Whistles

Posted:
Thu Jun 11, 2015 12:31 am
by KCJones
Are you editing the WhistleControl01.proxybin file correctly?
Re: The Trouble With Whistles

Posted:
Thu Jun 11, 2015 6:23 am
by PickeringLumberCorp
No. I am just changing out only the sound files. Is there some hidden thing I have to do?
Re: The Trouble With Whistles

Posted:
Thu Jun 11, 2015 10:33 am
by KCJones
The proxybin files control which sounds to play, when and where (inside, outside or both), also what triggers the sound and at what pitch and various other parameters. The bin files in the sound folders connect the engine bin files to the relevant proxybin file.
Can I suggest you open them up and study them a bit. I am far from an expert, but what I have gleaned, much is from looking into the files, researching these forums and asking questions.
Dick C.
Re: The Trouble With Whistles

Posted:
Thu Jun 11, 2015 2:58 pm
by Chacal
Also read the relevant developer docs, available here in the file library.
Re: The Trouble With Whistles

Posted:
Sat Jul 25, 2015 3:43 pm
by PickeringLumberCorp
I am not able to make much sense of the script in the WhistleControlproxybin file.
Re: The Trouble With Whistles

Posted:
Sat Jul 25, 2015 4:21 pm
by _o_OOOO_oo-Kanawha
Usually, the whistle or horn sound is divided into three sections: start - loop - end. The proxybin.xml takes care of playing the right sample
When you pull the cord, start sounds, when you hold the cord for a certain duration, loop sounds as long as the cord is being pulled, when you release the cord end sounds.
So there should be three sound samples in the whistle's sound folder. You'll need to replace them with the correct sample from your replacement whistle. If that comes in one long sound sample, you'll have to cut it into start - loop - end sections yourself.
There are free .wav file editors available, or you could use an online .wav editor. It takes some trial and error to cut the correct parts from the sample so your whistly sounds good in both short and long blasts. In short blasts, the loop section doesn't play, the whiste goes straight from start to end, so these sections must match up too.
You might also want to adjust the volume.