Page 1 of 1

NewGRF question/help

Posted: 23 Jan 2018 02:11
by SkullKrixzz
So after playing in a multiplayer game with a trainset that has running sounds, i have grown even more disappointed with the GRF's i use that run in pure silence, so my question is:

is it possible to have a GRF to add running sounds to others? (both road and trainsets)


Since i dont use this site too often i apologize if this is in the wrong spot, if there is a more fitting location i will repost there instead.

Re: NewGRF question/help

Posted: 23 Jan 2018 07:24
by Gwyd
Funny you should ask that, since I've been trying to work on a sound add-on for the NARS 2cc add-on. As far as I can deduce, the answer is no, in NML. I'll come back with technical details later for those who are interested, showing the experiment I did.

Re: NewGRF question/help

Posted: 24 Jan 2018 08:34
by rowdog
Yes but it's not trivial.

viewtopic.php?t=70699#p1122701
planetmaker wrote:Define the NewGRF by ID which you want to override: http://newgrf-specs.tt-wiki.net/wiki/NM ... er_NewGRFs . Then you need to know the IDs of the vehicles used in the set you want to override and re-define those properties you're interested in changing.
EDIT: but if you plan on changing callbacks, you need to re-define *all* callbacks of that vehicle. You cannot simply add one.
It seems much easier to get the source for the set you want to add sound to and hack that.

Edit: sorry for the misinformation, see Michael Blunk's response below.

Re: NewGRF question/help

Posted: 24 Jan 2018 09:12
by michael blunck
SkullKrixzz wrote: is it possible to have a GRF to add running sounds to others? (both road and trainsets)
This is not possible. You can´t add/change custom sounds (action11 / CB33) by "overriding" destination newgrf properties by another newgrf. You´ll have to modify the source of the newgrf in question.

regards
Michael

Re: NewGRF question/help

Posted: 24 Jan 2018 10:45
by Wahazar
michael blunck wrote:
SkullKrixzz wrote: This is not possible. You can´t add/change custom sounds (action11 / CB33) by "overriding" destination newgrf properties by another newgrf. You´ll have to modify the source of the newgrf in question.
Isn't it possible in case of road vehicle newgrfs? I found strange behaviour/bug maybe: I defined custom sounds for tram newgrf and truck/buses newgrf, and other one inherited the first one sounds - truck were ringing etc.

Re: NewGRF question/help

Posted: 28 Jan 2018 04:54
by SkullKrixzz
michael blunck wrote:
SkullKrixzz wrote: is it possible to have a GRF to add running sounds to others? (both road and trainsets)
This is not possible. You can´t add/change custom sounds (action11 / CB33) by "overriding" destination newgrf properties by another newgrf. You´ll have to modify the source of the newgrf in question.

regards
Michael

but if there are no sounds there at all, does that really still count as "overriding"?

Re: NewGRF question/help

Posted: 28 Jan 2018 08:25
by Gwyd
You really can add/override sounds. You just need to replace all callbacks, as I found out.

Sent from my SM-G935F using Tapatalk