Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Mar 23, 2019 2:10 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed May 01, 2013 2:51 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Dec 20, 2006 1:31 pm
Posts: 978
Location: Aschaffenburg
This is about clarifying the behaviour of callback 33 (vehicle sound effect).
The specs do not quite define for which vehicles (front engine, articulated part, wagon, secondary engine) the callback is called for each of the effects.

As usual the behaviour of TTDP and OTTD do not agree in all cases, while they agree in some cases in a way which is obviously non-sense :p

Anyway, let's discuss the behaviour for trains. RV should just behave the same as trains, and aircraft and ships are easy anyway (though not neccessarily correct in TTDP/OTTD :p).


Overview: Wrt. TTDP I am confident but not entirely sure I read the source for effects 06 and 09 correctly :)
Code:
Effect                                    | TTDP                                         | OTTD              | Discussion
------------------------------------------|----------------------------------------------|-------------------|-------------
01 Start sound                            | front                                        | front             |
                                          |                                              |                   |
02 Tunnel sound                           | front                                        | front             |
                                          |                                              |                   |
03 Breakdown sound                        | front                                        | front             |
                                          |                                              |                   |
04 Running sound per distance interval    | front                                        | various           | (M)
                                          |                                              |                   |
05 Plane touch down                       | (front)                                      | (front)           |
                                          |                                              |                   |
06 Visual effect generation               | every vehicle that spawns an effect          | front             | (V)
                                          | according to CB10 (not sure)                 |                   |
                                          |                                              |                   |
07 Running sound per time interval        | front                                        | various           | (M)
                                          |                                              |                   |
08 Stopped sound per time interval        | front                                        | various           | (M)
                                          |                                              |                   |
09 Load/unload sound                      | front, each gradual loading step (not sure), | front, instead of | (L)
                                          | independent of payment sound                 | payment sound     |
                                          |                                              |                   |
10 Bridge sound                           | (bridge)                                     | (bridge)          |


General questions:
  1. Did anyone ever use effects (V) and (L), i.e. is there a test GRF out there?
  2. (V) and (L) could be triggered quite often. For (M) there are engine ticks and motion counter to allow the NewGRF to control the sound amount.
    Should there be random bits to play the effect only sometimes?
    Or are vehicle ticks enough?
  3. Some sound effect might benefit from additional info. E.g. visual effect might need the type of visual effect that was spawned.
    So I guess var 10 should be clarified/changed to only use bits 0 to 7 for the sound effect type.

(M) discussion: For which vehicles should moving/idle sounds be called?
  1. Called only for front. (weird for consists with multiple engines, esp. with only cab car in front)
  2. Called for all engines in the consist (independent of powered-ness), not called for articulated parts or rear-heads.
  3. Called for all engines in the consist (independent of powered-ness), including articulated parts and rear-heads.
  4. Called for all vehicles in the consist, including wagons, articulated parts and rear-heads.

(V) discussion: For which vehicles should the visual effect sound be called?
  1. I guess the TTDP behaviour makes sense. Play sound whenever CB10 says to make an effect.

(L) discussion: For which vehicles should the load/unload effect sound be called?
All options include "play independent of/in addition to payment sound".
  1. Called only for front when loading/unloading starts (i.e. not per gradual loading step).
  2. Called for all vehicles (including articulated parts) in the consist whenever they load/unload stuff (i.e. per gradual loading step)

_________________
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁


Top
   
PostPosted: Wed May 01, 2013 3:09 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7301
Ad (M):

1 is obviously the easiest thing to do, but it would also be the worst, especially if combining stuff (e.g. use the invisible engine to overcome some GRF restrictions. not that i would condone this kind of approach :)).

i think 4 is the best approach here, allow everything, and let the GRF author decide. problem here is that many (possibly similar) sounds are playing at the same time.

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Sun May 05, 2013 9:29 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon Mar 24, 2008 1:04 pm
Posts: 268
Location: Finland
(M) discussion: 4. It should be that way. Current behaviour is 1, and personally, i don't like it at all.

And in addition, effect 07 shouldn't be called when consist is waiting on red block signal. Effect 08 should be called instead, of course.

_________________
Projects in progress: Finnish Trainset (DevZone)| Finnish Rail Infrastructure and Stations Set (DevZone)


Top
   
PostPosted: Thu May 16, 2013 8:26 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon Mar 24, 2008 1:04 pm
Posts: 268
Location: Finland
An important addition, i think start sound (01) should be called whenever train starts accelerating from speed = 0. With current behaviour, at a situation when train stops on signal and then accelerates out of it, the sound effect goes directly from 08 to 07. It should go this way instead: 08-> 01-> 07. Currently the effect 01 is called only when departing on station, but not after red signal or manual stopping using red flag.

_________________
Projects in progress: Finnish Trainset (DevZone)| Finnish Rail Infrastructure and Stations Set (DevZone)


Top
   
PostPosted: Thu May 16, 2013 8:40 pm 
Offline
Tycoon
Tycoon

Joined: Wed Apr 27, 2005 7:09 am
Posts: 5248
kyosuke1989 wrote:
An important addition, i think start sound (01) should be called whenever train starts accelerating from speed = 0. With current behaviour, at a situation when train stops on signal and then accelerates out of it, the sound effect goes directly from 08 to 07. It should go this way instead: 08-> 01-> 07. Currently the effect 01 is called only when departing on station, but not after red signal or manual stopping using red flag.

And that´s correct:

Quote:
01 Start sound, called when leaving a station or depot [...]

hence your opinion is a misinterpretation.

In DBXL I´m using it exactly as a "train leaving sound".

regards
Michael

_________________
Image


Top
   
PostPosted: Thu May 16, 2013 8:57 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon Mar 24, 2008 1:04 pm
Posts: 268
Location: Finland
In that case, there should be "acceleration sound effect callback", which would be called whenever train starts accelerating from speed = 0.

_________________
Projects in progress: Finnish Trainset (DevZone)| Finnish Rail Infrastructure and Stations Set (DevZone)


Top
   
PostPosted: Fri May 17, 2013 12:50 am 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7301
or maybe you should check the speed when deciding the sound, so you have a different sound for <=10km/h and >10km/h?

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.