Adding new vehicle 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

Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

so u dont know how to make them? or is it just me?
For every addition of knowledge u aquire, you forget something that you knew before
User avatar
Oracle
Tycoon
Tycoon
Posts: 2138
Joined: 22 May 2003 09:59

Post by Oracle »

The way I make new GRFs is by simply creating an empty, 0 byte text file with the wanted filename to get GRFCodec to encode.
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

re: Oracle

is this right?:

i created a notepad file in the ttd folder then went to comandpromt and wrote "grfcodec -e (filename).grf -p2"
then "ren (filename).new (filename).grf"
then "grfcodec -d (filename).grf -p2"

and it came up with a problem and closed

i really want to know how to do it and i have already followed all the tourials and none of them worked or they were tooooo techinal.

plz help

Birdey
For every addition of knowledge u aquire, you forget something that you knew before
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

AFAIK you need to decode before you encode :wink: That's probably why you get the error also
Currently working on:

Norwegian (NSB) Trainset
Topic | Website
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

if i make a notepad document and try to decode it the same thing happenes...i have already decoded the trgtr.grf...

i will give up in a minute

Birdey
For every addition of knowledge u aquire, you forget something that you knew before
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

I GOT IT!!

thanks
For every addition of knowledge u aquire, you forget something that you knew before
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

what do i do when it comes up with "grf file is wrong version" ??
For every addition of knowledge u aquire, you forget something that you knew before
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Most likely, make sure your action 8 is correct (see step 3).
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.
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

now it says invalid sprite 12

and i have chcked it many times

mine is:

Code: Select all

12 * 7 03 00 01 16 00 00 00
For every addition of knowledge u aquire, you forget something that you knew before
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

That looks ok, as long as cargo ID 0 is defined properly by an action 2 before it. How does that look?
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.
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

here's the whole thing

// Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0D 00 00 00
1 * 9 08 06 73 62 00 31 36 00 00
2 * 4 01 00 01 08
3 C:\TTD\SPRITES\mytrain.pcx 18 8 01 18 8 -3 -10
4 C:\TTD\SPRITES\mytrain.pcx 34 8 09 15 20 -14 -6
5 C:\TTD\SPRITES\mytrain.pcx 66 8 01 12 28 -14 -6
6 C:\TTD\SPRITES\mytrain.pcx 114 8 09 16 20 -4 -8
7 C:\TTD\SPRITES\mytrain.pcx 146 8 01 18 8 -3 -10
8 C:\TTD\SPRITES\mytrain.pcx 162 8 09 16 20 -14 -7
9 C:\TTD\SPRITES\mytrain.pcx 194 8 01 12 28 -14 -6
10 C:\TTD\SPRITES\mytrain.pcx 242 8 09 15 20 -4 -7
11 * 9 02 00 00 01 01 00 00 00 00
12 * 7 03 00 01 16 00 00 00
13 * 7 00 00 01 01 16 12 FD

thank for ur help ur a legend
For every addition of knowledge u aquire, you forget something that you knew before
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

That exact file works fine when I try it. Maybe you forgot to encode it again or something?
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.
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

thanks heaps it worked after me just deleting the grf file and re encoding it..

thanks again hopefully i will get better and help out someone that doesnt know how to
For every addition of knowledge u aquire, you forget something that you knew before
Birdey
Engineer
Engineer
Posts: 90
Joined: 12 Oct 2004 04:59
Location: Sydney, Australia
Contact:

Post by Birdey »

now how do u make the sprites bigger?
For every addition of knowledge u aquire, you forget something that you knew before
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 17 guests