Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Dec 11, 2018 5:58 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Nov 16, 2017 3:27 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Dec 01, 2013 1:11 am
Posts: 75
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!


Top
   
PostPosted: Thu Nov 16, 2017 6:54 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon May 25, 2015 9:09 am
Posts: 338
Location: The Netherlands
You must be looking for this: https://www.tt-wiki.net/wiki/NMLTutorial

_________________
No pics no clicks. Seriously.
ImageImageImageImageImageImage


Top
   
PostPosted: Thu Nov 16, 2017 9:48 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Dec 01, 2013 1:11 am
Posts: 75
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.


Top
   
PostPosted: Thu Nov 16, 2017 10:13 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon May 25, 2015 9:09 am
Posts: 338
Location: The Netherlands
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


Top
   
PostPosted: Thu Nov 16, 2017 10:16 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Dec 01, 2013 1:11 am
Posts: 75
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!


Top
   
PostPosted: Fri Nov 17, 2017 1:24 am 
Offline
Engineer
Engineer
User avatar

Joined: Sun Dec 01, 2013 1:11 am
Posts: 75
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?


Top
   
PostPosted: Fri Nov 17, 2017 10:25 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed May 16, 2007 4:59 pm
Posts: 2825
https://newgrf-specs.tt-wiki.net/wiki/NML:Disable_items

I think this is what you're after...

_________________
GRVTS/eGRVTS --- Generic Tram Set --- UK Town Set --- zBase ---RichardWheeler.net


Top
   
PostPosted: Fri Nov 17, 2017 12:42 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Dec 01, 2013 1:11 am
Posts: 75
Thank you everyone.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.