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: 6
Joined: 29 Oct 2019 05:49

how to use callback

Post by sky81 » 29 Oct 2019 16:41

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: 9309
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: how to use callback

Post by planetmaker » 31 Oct 2019 16:46

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: 5398
Joined: 13 Sep 2004 13:21
Location: The Moon
Contact:

Re: how to use callback

Post by PikkaBird » 01 Nov 2019 00:59

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 4 guests