how to use callback

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Locked
sky81
Engineer
Engineer
Posts: 38
Joined: 29 Oct 2019 05:49

how to use callback

Post by sky81 »

Hello,

Can someone give me an example of how to use callbacks? I read wiki but not really understood.
I want to overwrite default capacity of road vehicle. This means that I need to use calback 15 (CB 15) but don't know how to use it

Thanks
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: how to use callback

Post by planetmaker »

I moved this to the graphics development sub-forum where it should be and hopefully will attract more responses.

What language do you use? There is a few options in programming languages for NewGRFs: Plain NFO? NML? Something else?

You might want to browse some of the repositories for NewGRFs found on the DevZone, e.g. https://kallithea.openttdcoop.org in search for several examples.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: how to use callback

Post by PikkaBird »

Furthermore, starting multiple topics for the same question isn't going to get you better or quicker answers.
Locked

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 39 guests