How to code new .grf's?

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

Post Reply
User avatar
tigerface
Engineer
Engineer
Posts: 93
Joined: 01 Jan 2007 17:29

How to code new .grf's?

Post by tigerface »

Hello all, this is my first post but I've been reading these forums for months.

Anyway, are there any better tutorials anywhere, than the wiki on making new grfs? I'd like to code from scratch because every time I try copying something already done I end up ruining all the graphics installed in my TTD :( . If anyone could give me some hints or point me in the right direction I'd be very grateful. And when I can code I'd like to get involved in some of the cool projects you got going on here!

Heres a pic of a southeastern networker I knocked up earlier with help from Purnos drawing tutorial hope you like it!

Jr.

Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: How to code new .grf's?

Post by DaleStan »

thanet-bomber wrote:Anyway, are there any better tutorials anywhere, than the wiki on making new grfs?
Not to my knowledge. Have you gotten to the point where the tutorial mentions NFORenum? If not, jump ahead, and read that section, and then go back to where you were.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: How to code new .grf's?

Post by Purno »

thanet-bomber wrote: Heres a pic of a southeastern networker I knocked up earlier with help from Purnos drawing tutorial hope you like it!

Jr.

Image
FYI, the image does not show up...
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Re: How to code new .grf's?

Post by ISA »

Purno wrote:
thanet-bomber wrote: Heres a pic of a southeastern networker I knocked up earlier with help from Purnos drawing tutorial hope you like it!

Jr.

Image
FYI, the image does not show up...
FireFox show when You make right click on image and take show/view image :)
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Aye, strange, it works now.

Anyways, looks very good, but the front looks a bit weird in _ view. But I'd need a pic of the real thing to see if that's supposed to be.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
GameR
Director
Director
Posts: 554
Joined: 14 Aug 2006 11:46
Location: Den Haag, nederland
Contact:

Re: How to code new .grf's?

Post by GameR »

ISA wrote:
Purno wrote:
thanet-bomber wrote: Heres a pic of a southeastern networker I knocked up earlier with help from Purnos drawing tutorial hope you like it!

Jr.

Image
FYI, the image does not show up...
FireFox show when You make right click on image and take show/view image :)
about this: just doawnload the latest version... there are no ploblems like this with that one
Image
add me ass friend! i'm so lonely!
User avatar
tigerface
Engineer
Engineer
Posts: 93
Joined: 01 Jan 2007 17:29

Post by tigerface »

Yeah it does look a bit odd in _ view and also in the \ and / views I think I didnt really know what to do with it. I tried copying the EMU's in PikkaBirds UKRS set but theyre all squarer than this one. Here's a pic which has a fairly good angle:

http://www.freewebs.com/norwoodpark/nor ... den466.JPG

Anyway I'm not particuarly interested in being an artist I just drew this cos it's the horrible train I have to get to work every day :( anyone got any tips on where to start with coding?

Jr.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

My suggestion;
Attachments
466.PNG
466.PNG (3.14 KiB) Viewed 2329 times
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
tigerface
Engineer
Engineer
Posts: 93
Joined: 01 Jan 2007 17:29

Post by tigerface »

did you edit that sprite? it's different to what I have on my computer!!
Formerly thanet-bomber.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Yeah, I edited the front, only a few pixels.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
tigerface
Engineer
Engineer
Posts: 93
Joined: 01 Jan 2007 17:29

Post by tigerface »

oh right thought so looks much better cheers! you're drawin tutorials are awesome that only took me about an hour to draw! if only there were tuts like that for coding I still can't get it in my game :(
Formerly thanet-bomber.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

You *could* take a look at GRF Maker, it still requires you to know how NFO is put together, but makes things a little clear, and saves time on allignment...
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
tigerface
Engineer
Engineer
Posts: 93
Joined: 01 Jan 2007 17:29

Post by tigerface »

Oh that sounds interesting I'll have a look for that and give it a go. Cheers mate!
Formerly thanet-bomber.
User avatar
tigerface
Engineer
Engineer
Posts: 93
Joined: 01 Jan 2007 17:29

Post by tigerface »

GRFcodec says can't read truecolour PCX files. What does that mean? I only used the colours from the palette!?!
Formerly thanet-bomber.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

You need to save it as 256-color file.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 13 guests