But at the point where it comes to encoding the file with the command "grfcodec -e mytrain.grf" in step 4, GRFCodec tells me "NFO file missing header and version info", but I've added the // lines so it's not clear how to proceed.
Here's my code so far... I've tried this with the header they show, as well as the following variations from the base graphics NFO in my installation.
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 6)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 466 11656 8 21 -3 -11 normal
1 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 482 11656 20 14 -14 -7 normal
2 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 514 11656 29 12 -16 -8 normal
3 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 562 11656 20 14 -6 -7 normal
4 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 594 11656 8 20 -3 -10 normal
5 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 610 11656 20 14 -14 -7 normal
6 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 642 11656 29 12 -16 -8 normal
7 c:\program files\openttd\sprites/ogfx1_base00.png 8bpp 690 11656 20 14 -6 -7 normal
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 32)
// Format: spritenum imagefile depth xpos ypos xsize ysize xrel yrel zoom flags
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 32)
// Escapes: 2+ 2- 2< 2> 2u< 2u> 2/ 2% 2u/ 2u% 2* 2& 2| 2^ 2sto = 2s 2rst = 2r 2psto 2ror = 2rot 2cmp 2ucmp 2<< 2u>> 2>>
// Escapes: 71 70 7= 7! 7< 7> 7G 7g 7gG 7GG 7gg 7c 7C
// Escapes: D= = DR D+ = DF D- = DC Du* = DM D* = DnF Du<< = DnC D<< = DO D& D| Du/ D/ Du% D%
// Format: spritenum imagefile depth xpos ypos xsize ysize xrel yrel zoom flags