making new graphics

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
Tidus97
Traffic Manager
Traffic Manager
Posts: 214
Joined: 06 Jan 2006 06:58

making new graphics

Post by Tidus97 »

so im a little confused. i would like to create a new vehicle for ottd but i cant find any tutorials for it. there are some like the onehere but it doesnt talk about ottd. the different versions of tt is confusing. is there any tutorial aimed at making new graphics for OTTD?
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: making new graphics

Post by Alberth »

Graphics (or rather, GRF files) are not OpenTTD specific. They can be used both by OpenTTD and TTDPatch. They are indeed encoded using NFO and grfcodec, so you seem to be at the right spot.
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: making new graphics

Post by Benny »

I am sorry if I am "hijacking" this thread, but this question is pointed at the article in PikkaWiki which this thread points to.

How do I decompile a .grf file? PikkaWiki sais "grfcodec -d trg1r.grf -p2", and nothing more. I tried the command in cmd, but I just got an error that said: "GRFCodec is not a valid command."

Edit: Haha, I figured it out! I had to make a .bat file with the command. :D

I've added this to the wiki. :)
Image
Tidus97
Traffic Manager
Traffic Manager
Posts: 214
Joined: 06 Jan 2006 06:58

Re: making new graphics

Post by Tidus97 »

i got as far as that. there is nothing that tells you how to take X sprite, and insert it into the game.
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: making new graphics

Post by Benny »

Have a look here: http://wiki.ttdpatch.net/tiki-index.php ... RFTutorial
(Yes, it sais TTDPatch, but it is for OpenTTD too.)
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: making new graphics

Post by FooBar »

Bennythen00b wrote:Edit: Haha, I figured it out! I had to make a .bat file with the command. :D
Not really :?

If you have both grfcodec.exe and the .grf file you want to decode in the same directory, then in the command prompt, you can just cd to that directory and run grfcodec.exe -d -p 2 file.grf from there.

Batch files are useful if you want to run the same command over and over again (for instance, when encoding test versions of the grf you're working on). For the incidental decode, a batch surely can work, but you don't really need one.
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: making new graphics

Post by Benny »

Yes, I know. But that is a lot harder even if you just want to do it once. With a .bat file, you can just copy/paste. But with cmd, you have to write it manually.
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: making new graphics

Post by FooBar »

Ofcourse, use whatever method suits you best, but I just want to say that you can paste in cmd. Try a rightclick in the command window :D
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: making new graphics

Post by Benny »

Oh, ok.. :oops:
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: making new graphics

Post by FooBar »

Now don't be ashamed, Benny. Cmd isn't the most advanced tool, and the features it has are hidden pretty badly...
Tidus97
Traffic Manager
Traffic Manager
Posts: 214
Joined: 06 Jan 2006 06:58

Re: making new graphics

Post by Tidus97 »

like its inbuilt flight sim. who woulda knew
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Amazon [Bot] and 5 guests