Page 1 of 1
making new graphics
Posted: 12 Apr 2009 04:33
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 one
here but it doesnt talk about ottd. the different versions of tt is confusing. is there any tutorial aimed at making new graphics for OTTD?
Re: making new graphics
Posted: 12 Apr 2009 05:41
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.
Re: making new graphics
Posted: 12 Apr 2009 06:04
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.
I've added this to the wiki.

Re: making new graphics
Posted: 12 Apr 2009 06:18
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.
Re: making new graphics
Posted: 12 Apr 2009 06:25
by Benny
Have a look here:
http://wiki.ttdpatch.net/tiki-index.php ... RFTutorial
(Yes, it sais TTDPatch, but it is for OpenTTD too.)
Re: making new graphics
Posted: 13 Apr 2009 09:32
by FooBar
Bennythen00b wrote:Edit: Haha, I figured it out! I had to make a .bat file with the command.

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.
Re: making new graphics
Posted: 13 Apr 2009 09:34
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.
Re: making new graphics
Posted: 13 Apr 2009 09:46
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

Re: making new graphics
Posted: 13 Apr 2009 09:49
by Benny
Oh, ok..

Re: making new graphics
Posted: 13 Apr 2009 09:53
by FooBar
Now don't be ashamed, Benny. Cmd isn't the most advanced tool, and the features it has are hidden pretty badly...
Re: making new graphics
Posted: 13 Apr 2009 11:16
by Tidus97
like its inbuilt flight sim. who woulda knew