Page 1 of 1

Umm?

Posted: 28 Dec 2005 23:17
by ISA
What did i make wrong to replace Old SH125 in ttd?
I have green flag in ai, but no train, my noobysh mind cant find mistake

Code: Select all

// Automatically generated by GRFCODEC. Do not modify!
// (Info version 6)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
    0 * 4	 0D 00 00 00
    1 * 8	 08 06 "SH47" 00 00
    2 * 4	 01 00 01 08
    3 e:\gamez\transport\sprites/mytrain.pcx 66 8 01 18 8 -3 -10
    4 e:\gamez\transport\sprites/mytrain.pcx 82 8 09 15 20 -14 -6
    5 e:\gamez\transport\sprites/mytrain.pcx 114 8 01 12 28 -14 -6
    6 e:\gamez\transport\sprites/mytrain.pcx 162 8 09 16 20 -4 -8
    7 e:\gamez\transport\sprites/mytrain.pcx 194 8 01 18 8 -3 -10
    8 e:\gamez\transport\sprites/mytrain.pcx 210 8 09 16 20 -14 -7
    9 e:\gamez\transport\sprites/mytrain.pcx 242 8 01 12 28 -14 -6
   10 e:\gamez\transport\sprites/mytrain.pcx 290 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
And why this grfwizard change the hex? ("SH47" in my .nfo). And thies spaces are wrong :?

Posted: 30 Dec 2005 17:50
by Wile E. Coyote
If you only want to change sprites (not anything else), use action A.

Posted: 30 Dec 2005 18:25
by Lakie
It changed the SH47 because grfcodec will automaticly comvert any hex which is within a certain ASCII character range in the string itself.
It can also compile such a string quite happily.
This is so it's more user friendly and the coder doesn't have to write in string in hex, which was very annoying.
If you want to disbale this, use the parameter -t when using grfcodec.

Are the graphics the same as the SH47 in TTD, if so you will have a hard time trying to tell the diefference.
Try adding an Action4 to change the name to make it more obivous.

Code: Select all

 14 * 10   04 00 1F 01 16 "Test" 00
Hope that helps,
~ Lakie

Posted: 30 Dec 2005 21:42
by ISA
Ok ill try it some day in the new year! Thx both of you :)