Trains through non-stop stations / Whistle boards
Moderator: OpenTTD Developers
Trains through non-stop stations / Whistle boards
I've been thinking about this and just want to throw it out to the world (mods: I'll also be placing a suggestion in TTDP, don't shout for cross-posting).
Assuming a train knows when it's entering a station (I don't actually know if that's the case), and assuming it knows it's not stopping, could something be done either in a grf or the game system to make the train sound it's horn/whistle as it enters the station? It's not compulsory anymore, but it would be a nice addition.
Also the possibility of building a whistle board (probably like a station, effectively) that causes the train to sound it's whistle or horn when required.
Both pretty empty ideas with very little benefit other than realism, but I thought I'd throw them out there to see if it was easy enough to implement.
Assuming a train knows when it's entering a station (I don't actually know if that's the case), and assuming it knows it's not stopping, could something be done either in a grf or the game system to make the train sound it's horn/whistle as it enters the station? It's not compulsory anymore, but it would be a nice addition.
Also the possibility of building a whistle board (probably like a station, effectively) that causes the train to sound it's whistle or horn when required.
Both pretty empty ideas with very little benefit other than realism, but I thought I'd throw them out there to see if it was easy enough to implement.
Official TT-Dave Fan Club
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr
Why be a song when you can be a symphony? r is a...
- Zhall
- Tycoon
- Posts: 1237
- Joined: 17 Jul 2007 01:36
- Skype: moonray_zdo
- Location: Teh matrix, duh.
- Contact:
Re: Trains through non-stop stations / Whistle boards
¿
Formerly known as Sapphire United.
Learn Openttd
Learn Planetary Annihilation
Learn Orbit
Whose poo?
Learn Openttd
Learn Planetary Annihilation
Learn Orbit
Whose poo?
- Toni Babelony
- Tycoon
- Posts: 1389
- Joined: 07 Jul 2006 09:34
- Skype: toni_babelony
- Location: Sagamihara-shi, Japan
- Contact:
Re: Trains through non-stop stations / Whistle boards
This subject is quite interesting and I do think it'll be a great addition to TTD, though in a lot of countries this isn't common practice. However, I'm always a foamer for horny trains. 

Retired JapanSet developer and creator of TIAS.
-
- Engineer
- Posts: 32
- Joined: 19 May 2007 00:49
Re: Trains through non-stop stations / Whistle boards
Over here in the Boston Metro area, all commuter rails that pass by my station as well as the Downeaster trains blow ther horns as a safety precaution. So i'm for that.
Re: Trains through non-stop stations / Whistle boards
I created a patch that makes train whistle when they pass a waypoint.
- Attachments
-
- waypoint_whistle.diff
- r14030
- (749 Bytes) Downloaded 266 times
Re: Trains through non-stop stations / Whistle boards
bridge & tunnel whistle board, like in reality.
Re: Trains through non-stop stations / Whistle boards
Cool idea!
http://en.wikipedia.org/wiki/Train_horn ... rn_Signals
http://en.wikipedia.org/wiki/Train_whistle
Most useful ones IMHO would be:
_ _ (two long sounds) when starting- already in game
_ _ o _ (long, long, short, long) - approach level crossing- should be used for "whistle post"
o o (two short)- acknowledge order- for waypoints?
o o o (3 short) - backing up- use when train reverses?
http://en.wikipedia.org/wiki/Train_horn ... rn_Signals
http://en.wikipedia.org/wiki/Train_whistle
Most useful ones IMHO would be:
_ _ (two long sounds) when starting- already in game
_ _ o _ (long, long, short, long) - approach level crossing- should be used for "whistle post"
o o (two short)- acknowledge order- for waypoints?
o o o (3 short) - backing up- use when train reverses?
Who is John Galt?
Re: Trains through non-stop stations / Whistle boards
I try ed WITH!!!!! recent builds, it works 100% OK, no errors, do the suggestions written above and, put it in trunk.(two long sounds) when starting- already in game
(long, long, short, long) - approach level crossing- should be used for "whistle post"
(two short)- acknowledge order- for way points?
(3 short) - backing up- use when train reverses?
Plus, trains could Whistle level crossings and stations it there not stopping, and different engines could have different sounds not just locos.
And a switch in the advanced settings on/off
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Trains through non-stop stations / Whistle boards
updated to R15821
For Community Integrated Version http://code.google.com/p/civopenttd/
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Trains through non-stop stations / Whistle boards
code change
hope this is ok to show the change like this
Code: Select all
-if (IsTileType(v->tile, MP_RAILWAY) && IsRailWaypoint(v->tile) && IsFrontEngine(v)) v->PlayLeaveStationSound();
+if (IsTileType(v->tile, MP_RAILWAY) && IsRailWaypoint(v->tile) && v->IsFrontEngine()) v->PlayLeaveStationSound();
For Community Integrated Version http://code.google.com/p/civopenttd/
Re: Trains through non-stop stations / Whistle boards
IsFrontEngine(v) -> v->IsFrontEngine() is the same thing I changed in the diesel_smoke patch for r16724+, so yes it's OK. 

NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Trains through non-stop stations / Whistle boards
I just working on this patch becuse it seems a nice one to get me started on
goals for this patch is to get a setting on it and also add bridge & tunnel whistle
I added bridge & tunnel whistle thats working here is the patch file for that
How dose the settings page work can any one give me a hint in the right way i just had a go at it and fail with a failt error in text doc ?
but this patch is working but still theres a no on and off setting
and also i need to clean the code up but this is the frist time i tryed to chage a patch file
but please tell me what you think
goals for this patch is to get a setting on it and also add bridge & tunnel whistle
I added bridge & tunnel whistle thats working here is the patch file for that
How dose the settings page work can any one give me a hint in the right way i just had a go at it and fail with a failt error in text doc ?
but this patch is working but still theres a no on and off setting
and also i need to clean the code up but this is the frist time i tryed to chage a patch file
but please tell me what you think
For Community Integrated Version http://code.google.com/p/civopenttd/
Who is online
Users browsing this forum: No registered users and 3 guests