NewGRF question/help
Moderator: Graphics Moderators
-
- Engineer
- Posts: 29
- Joined: 31 Oct 2014 18:24
- Location: London, Ontario
NewGRF question/help
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.
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
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
Yes but it's not trivial.
viewtopic.php?t=70699#p1122701
Edit: sorry for the misinformation, see Michael Blunk's response below.
viewtopic.php?t=70699#p1122701
It seems much easier to get the source for the set you want to add sound to and hack that.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.
Edit: sorry for the misinformation, see Michael Blunk's response below.
Last edited by rowdog on 28 Jan 2018 06:16, edited 1 time in total.
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: NewGRF question/help
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.SkullKrixzz wrote: is it possible to have a GRF to add running sounds to others? (both road and trainsets)
regards
Michael
Re: NewGRF question/help
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.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.
Formerly known as: McZapkie
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
-
- Engineer
- Posts: 29
- Joined: 31 Oct 2014 18:24
- Location: London, Ontario
Re: NewGRF question/help
michael blunck 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.SkullKrixzz wrote: is it possible to have a GRF to add running sounds to others? (both road and trainsets)
regards
Michael
but if there are no sounds there at all, does that really still count as "overriding"?
Re: NewGRF question/help
You really can add/override sounds. You just need to replace all callbacks, as I found out.
Sent from my SM-G935F using Tapatalk
Sent from my SM-G935F using Tapatalk
Who is online
Users browsing this forum: UnicycleBloke and 15 guests