Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Dec 10, 2018 12:08 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: NewGRF question/help
PostPosted: Tue Jan 23, 2018 2:11 am 
Offline
Engineer
Engineer
User avatar

Joined: Fri Oct 31, 2014 6:24 pm
Posts: 25
Location: London, Ontario
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.


Top
   
 Post subject: Re: NewGRF question/help
PostPosted: Tue Jan 23, 2018 7:24 am 
Offline
Chief Executive
Chief Executive
User avatar

Joined: Mon Apr 17, 2017 4:52 pm
Posts: 644
Location: Western Ile-de-France Region
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.


Top
   
 Post subject: Re: NewGRF question/help
PostPosted: Wed Jan 24, 2018 8:34 am 
Offline
Engineer
Engineer

Joined: Wed May 24, 2017 12:51 pm
Posts: 32
Location: East Texas
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.

_________________
Unless otherwise stated, all my code is GPL v2.


Last edited by rowdog on Sun Jan 28, 2018 6:16 am, edited 1 time in total.

Top
   
 Post subject: Re: NewGRF question/help
PostPosted: Wed Jan 24, 2018 9:12 am 
Offline
Tycoon
Tycoon

Joined: Wed Apr 27, 2005 7:09 am
Posts: 5237
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

_________________
Image


Top
   
 Post subject: Re: NewGRF question/help
PostPosted: Wed Jan 24, 2018 10:45 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1083
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.

_________________
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension.
Addicted to freeciv longturn.


Top
   
 Post subject: Re: NewGRF question/help
PostPosted: Sun Jan 28, 2018 4:54 am 
Offline
Engineer
Engineer
User avatar

Joined: Fri Oct 31, 2014 6:24 pm
Posts: 25
Location: London, Ontario
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"?


Top
   
 Post subject: Re: NewGRF question/help
PostPosted: Sun Jan 28, 2018 8:25 am 
Offline
Chief Executive
Chief Executive
User avatar

Joined: Mon Apr 17, 2017 4:52 pm
Posts: 644
Location: Western Ile-de-France Region
You really can add/override sounds. You just need to replace all callbacks, as I found out.

Sent from my SM-G935F using Tapatalk


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-2018 phpBB Limited

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