Page 1 of 2
Bridgesounds
Posted: 02 Oct 2006 22:19
by MJS
How about bridgesounds? Railway bridges make this wonderful sound when a train drives over them... Now I suggested tram bells to ring when they approach a junction, and that was too difficult to achieve, it seems; but as trains know when they enter a tunnel, and whistle, I thought maybe they know or can be taught when they are on a bridge...
Posted: 02 Oct 2006 23:08
by PikkaBird
Looking through the
savegame internals and the
wiki, it seems that trains
don't currently know if they're on a bridge. Everything else required for a train to play sounds (and possibly varied depending on the type of train, the speed, etc) is already possible with grf.
Posted: 03 Oct 2006 00:45
by DaleStan
You're right, it doesn't seem to be there, but they do have to know somehow, since they obey bridge speed-limits.
Posted: 03 Oct 2006 07:19
by PikkaBird
That's what I thought. I was surprised it wasn't there.
Posted: 03 Oct 2006 07:46
by Gremnon
Maybe in the engine code itself, considering that only steam engines make any sound at all entering tunnels, maybe its similar for bridges?
Posted: 03 Oct 2006 09:50
by eis_os
The bridge code for veh movement limits the engine speed. Aka if > as bridgespeed do engine speed = bridgespeed after the real speed was calculated.
Posted: 03 Oct 2006 16:24
by Patchman
It wouldn't be particularly hard to add a variable telling whether a vehicle is on a bridge or not, but maybe this should be kept a little more general and also inform of other terrain types? If so, which ones?
Also, it'd be almost necessary to know the type of bridge, wood, steel and concrete would all sound different. However, if a bridge set is loaded you don't know which is which...
Posted: 03 Oct 2006 21:12
by Ramshill
How about making the bridge detect the train

Posted: 03 Oct 2006 21:33
by DaleStan
Well, there are two different types of bridge sounds. One is the train whistle when entering the bridge, and the other is the running sound of the train going over the bridge.
Posted: 03 Oct 2006 21:34
by Patchman
Ramshill wrote:How about making the bridge detect the train

That would in principle probably be the better solution, except that bridges don't have action 1/2/3 yet and so can't support sound callbacks.
[edit] However, I could quite easily implement it as a generic callback for feature 06 for now.[/edit]
DaleStan wrote:Well, there are two different types of bridge sounds. One is the train whistle when entering the bridge, [...]
That could be a standard vehicle sound event, similar to entering a tunnel.
Posted: 03 Oct 2006 22:49
by krtaylor
I've got a question here. If it can easily be added so that the bridge detects a train, would it be able to detect also WHICH train? Because if it could, then it seems to me that possibly, a new disaster could be created: bridge collapse.
- If the bridge knows a train has just entered it, and knows which train it is, then there could be a random chance of a collapse.
- A collapse causes the train to crash in the usual way - is that just a trigger that can be poked to cause the normal "crash" graphic process?
- And, maybe get rid of the bridge, just as happens when you bulldoze on any one of the bridge squares, the whole bridge goes?
Or is this too far-fetched?
Posted: 03 Oct 2006 23:26
by Patchman
krtaylor wrote:Or is this too far-fetched?
Yes.
Posted: 04 Oct 2006 02:40
by Patchman
Bridge sounds are available in r1071/beta 9.
Posted: 04 Oct 2006 09:18
by Ramshill
Thankyou Patchman you are pretty all right (English for you rock).
Posted: 04 Oct 2006 09:22
by Hyronymus
Not to mention he works fast. Is this the fastest requested feature implementation ever?!
Posted: 04 Oct 2006 09:26
by Ramshill
Don't know but If there was a quicker one I bet Patchman did it!
Posted: 04 Oct 2006 09:28
by michael blunck
> Bridge sounds are available in r1071/beta 9.
Where do we get the sounds from?
> Is this the fastest requested feature implementation ever?!
No.
regards
Michael
Posted: 04 Oct 2006 09:40
by Hyronymus
Care to inform us what the quickest incorporated request was that you made to Patchman, Michael?
Posted: 04 Oct 2006 10:54
by michael blunck
> Care to inform us what the quickest incorporated request was that you made to Patchman, Michael?
Oh, there were many. Too many to write them down in a single post.
OTOH, there were also many newly introduced (or already removed before) bugs. Although, I´d have to dig my memory to say if there were more quick features or more quick bugs.
regards
Michael
Posted: 04 Oct 2006 11:25
by Born Acorn
You get the sounds through a microphone, or from someone with a microphone.
Or some kind of free audio/video bank. You could also ask permission from someone who's got an audio or video file for use of the sound.