Help in creating a new simple train newGRF

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
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Help in creating a new simple train newGRF

Post by Gliptal »

Hey everyone,

I'm looking for a couple of pointers on how to create a very simple newGRF centered around trains. Ideally I'd only modify the default trains slightly (names, speeds), and add new trains to the roster using the default available sprites.

I know how to code and looked at NML already, but I'm at a loss about how to handle sprites, where to get them, or how to compile a newGRF and what files are needed.

I'd appreciate even very simple directions on how to start, a working example with a single train that uses existing graphics would be perfect for example!
User avatar
Erato
Chief Executive
Chief Executive
Posts: 740
Joined: 25 May 2015 09:09
Location: The Netherlands

Re: Help in creating a new simple train newGRF

Post by Erato »

You must be looking for this: https://www.tt-wiki.net/wiki/NMLTutorial
No pics no clicks. Seriously.
ImageImageImageImageImageImage
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Help in creating a new simple train newGRF

Post by Gliptal »

Thanks man. Where would I find the default graphic files? I can't seem to find .bmps either in the OpenTTD directory or the OpenGFX+ repo.
User avatar
Erato
Chief Executive
Chief Executive
Posts: 740
Joined: 25 May 2015 09:09
Location: The Netherlands

Re: Help in creating a new simple train newGRF

Post by Erato »

Gliptal wrote:Thanks man. Where would I find the default graphic files? I can't seem to find .bmps either in the OpenTTD directory or the OpenGFX+ repo.
After compiling the code, the .png files are no longer accessible. I presume with "default graphics" you mean the graphics of the standard OpenTTD trains and such. That'd be these: https://dev.openttdcoop.org/projects/op ... prites/png Also take a look at viewtopic.php?p=644154#p644154 for blank patterns of any size.
No pics no clicks. Seriously.
ImageImageImageImageImageImage
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Help in creating a new simple train newGRF

Post by Gliptal »

Erato wrote:
Gliptal wrote:Thanks man. Where would I find the default graphic files? I can't seem to find .bmps either in the OpenTTD directory or the OpenGFX+ repo.
After compiling the code, the .png files are no longer accessible. I presume with "default graphics" you mean the graphics of the standard OpenTTD trains and such. That'd be these: https://dev.openttdcoop.org/projects/op ... prites/png Also take a look at viewtopic.php?p=644154#p644154 for blank patterns of any size.
Thank you, this really helps get me started!
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Help in creating a new simple train newGRF

Post by Gliptal »

I managed to replicate the Kirby with my newGRF. How would I go to remove the old trains from the list when my grf is active?
User avatar
Gliptal
Engineer
Engineer
Posts: 82
Joined: 01 Dec 2013 01:11

Re: Help in creating a new simple train newGRF

Post by Gliptal »

Thank you everyone.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 15 guests