Page 1 of 1

NewGRF running sounds continue after a train has crashed

Posted: 05 Aug 2013 05:27
by WWTBAM
Crashing trains with running sounds leaves the running sounds going until the crash is cleared. T load the savegame you will need UKRS and enhanced tunnels on.

Re: NewGRF running sounds continue after a train has crashed

Posted: 05 Aug 2013 09:25
by OzTrans
That seems to be the problem of the GRF and not the game; before using running sounds, a few bits have to be checked, among them are in tunnel, in depot, stopped and crashed.

Re: NewGRF running sounds continue after a train has crashed

Posted: 05 Aug 2013 11:56
by WWTBAM
I left a message for Pikkabird just in case he wants to fix it.

Re: NewGRF running sounds continue after a train has crashed

Posted: 05 Aug 2013 17:22
by frosch
If you care: Checks for crashed, tunnel, depot and manually stopped were added to OpenTTD explicitly.
It makes no sense to impose these things onto NewGRF, esp. for stuff like "crashed": What sound would you want to play anyway? "running" or "stopped"?
Same holds for tunnels and depots: NewGRF do not have to check whether the vehicle is visible in a viewport either.

If you are looking into vehicle sounds, you might also be interested in http://www.tt-forums.net/viewtopic.php?f=68&t=65649


Edit: Btw., if you want to look into this, the relevant codepart is vehspri.asm:1149... "vehtickproc". To play the "stopped" sound for crashed vehicles instead of the running one, replace the "test byte [edi+veh.vehstatus],3" with "test byte [edi+veh.vehstatus],0x83". To suppress any sounds for depot/tunnel/crashed/... replace some of the jumps to .nomotion with jumps to .nocyclesound