I'm just plunging myself into the world of NewGRFs. However, it doesn't go well. I made the tutorial NewGRF which is in TTDPatch Wiki, but I have problems with my first own project. I wanted to replace the Battery Farm sprite with a recolored one and tried to compile it using the following NFO content:
Code: Select all
// Au c:\grfcodec\sprites\myfirstgrf.pcx 324 12 09 31 64 -31 0
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 09 00 00 00
1 * 8 08 06 "TM" 03 05 00 00
2 * 4 01 09 01 04
3 c:\grfcodec\sprites\myfirstgrf.pcx 4 12 09 31 64 -31 0
4 c:\grfcodec\sprites\myfirstgrf.pcx 84 12 09 31 64 -31 0
5 c:\grfcodec\sprites\myfirstgrf.pcx 164 12 09 34 64 -31 -3
6 c:\grfcodec\sprites\myfirstgrf.pcx 244 12 09 38 64 -31 -7
7 * 4 01 09 01 01
8 c:\grfcodec\sprites\myfirstgrf.pcx 324 12 09 31 64 -31 0
9 * 7 00 09 01 01 16 09 87
Would somebody please help me and point me what I've done wrong.
And if somebody had a link to a good NewGRF tutorial I would gladly like to check it out. I'd say the TTDPatchWiki one is way too small because it explains only that train replacement stuff.
EDIT: Yeah, and move this thread to another forum if it belongs to other one. Please keep it however on the OpenTTD section since it's the only one I'm reading.