Station graphics and coding tutorial for dummies

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

michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Station graphics and coding tutorial for dummies

Post by michael blunck »

Seems to be that <0B "PROT">. 0B defines the callback flags and must be a byte value.

In general, use of that "tutorial" makes not much sense, since it builds only on copy&paste, written by people without much knowledge on coding stations.

A better tutorial can be found here http://www.ttdpatch.de/grfspecs/m4nfoMa ... nsTut.html although it doesn't refer to nfo but on m4nfo. But there's also much better explanation to be found for station coding in general http://www.ttdpatch.de/grfspecs/m4nfoMa ... tions.html than in the official nfo/grf specs.

regards
Michael
Image
User avatar
Quast65
Tycoon
Tycoon
Posts: 2661
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: Station graphics and coding tutorial for dummies

Post by Quast65 »

Nitrous69 wrote: 30 Dec 2021 08:44 Hello.

I have a little problem with making those station tiles. Every time I update the station-ID then in-game it shows me this:Image I tried to use several IDs but it still shows me that error. :?: I hope you can help me. :idea:Image
You are using the wrong Property in front of "PR0T"
Change 0B into 08

A more elaborate tutorial about stations in NFO can be found here:
http://www.simuscape.net/simutalk/viewt ... f=85&t=859
(registration may be required)
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Station graphics and coding tutorial for dummies

Post by michael blunck »

Classic c&p.
He didn't "use a property". :p

scnr
Michael
Image
Nitrous69
Engineer
Engineer
Posts: 5
Joined: 30 Dec 2021 08:27
Contact:

Re: Station graphics and coding tutorial for dummies

Post by Nitrous69 »

Thank you so much! It worked rightly as it should :D You were very helpful! :)
User avatar
Quast65
Tycoon
Tycoon
Posts: 2661
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: Station graphics and coding tutorial for dummies

Post by Quast65 »

I wish you all the best for

Code: Select all

 E6 07 
:tongue:
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 27 guests