Page 1 of 1

how to use callback

Posted: 29 Oct 2019 16:41
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

Re: how to use callback

Posted: 31 Oct 2019 16:46
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.

Re: how to use callback

Posted: 01 Nov 2019 00:59
by PikkaBird
Furthermore, starting multiple topics for the same question isn't going to get you better or quicker answers.