Hi all
(I think) I've finished the chimera set, but somehow doesnt the code work. The PCX is at the proper format with the proper palette, but it dont seem to work. As well as there are some bugs in the code i cant seem to figure out. Anyone with some experience wanna help me a tad?
Also, somehow doesnt the sprites "come" out properly from the PCX. They turn out wierd and not at all sometimes.
Two attachments, the PCX and a png of the sprites and a "setup" of engines with a couple of coaches and a mail/armor wagon.
The code i used:
Code:
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
// Initial sprite with line count. Leave it empty because NFORenum will fix it for you.
-1 * 0 00 00 00 00
// Action 8: define GRF version (07), GRFID (46 42 79 01), Name and Description.
-1 * 0 08 07 46 42 99 01 "OpenGFX - New Maglevs v0.1" 00 "Drawn and Coded by 7of9/DJ Nekkid\nJan5 2008; added chimera" 00
// Action 1: for trains define 1 set of 8 sprites for the engine
-1 * 0 01 00 01 08
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
-1 sprites/chim.pcx 1 40 01 23 8 -4 -12
-1 sprites/chim.pcx 41 40 01 17 22 -11 -9
-1 sprites/chim.pcx 81 40 01 12 32 -16 -6
-1 sprites/chim.pcx 121 40 01 17 22 -11 -9
-1 sprites/chim.pcx 161 40 01 23 8 -4 -12
-1 sprites/chim.pcx 201 40 01 17 22 -11 -9
-1 sprites/chim.pcx 241 40 01 12 32 -16 -6
-1 sprites/chim.pcx 281 40 01 16 22 -11 -8
// Action 2: For trains define cargo ID AB, 1 moving state, 1 loading state, use first set from Action1, use first set from Action1
-1 * 0 02 00 AA 01 01 00 00 00 00
// Action 1: for trains define 1 set of 4 sprites for the passenger carriage
-1 * 0 01 00 01 04
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
-1 sprites/chim.pcx 1 100 01 24 8 -4 -12
-1 sprites/chim.pcx 41 100 01 17 22 -11 -9
-1 sprites/chim.pcx 81 100 01 12 32 -16 -6
-1 sprites/chim.pcx 121 100 01 17 22 -11 -9
// Action 2: For trains define cargo ID A0, 1 moving state, 1 loading state, use first set from Action1, use first set from Action1
// Definition of use of graphics
-1 * 0 02 00 AB 01 01 00 00 00 00
// Action 3: For trains, 1 train, VehID 58, 0 cargo type definitions, default cargo ID A0.
-1 * 0 03 00 01 57 00 AA 00
-1 * 0 03 00 81 59 00 AB 00
// -1 * 0 03 00 01 58 00 A0 00
// Action 3 livery override, to match wagon with engine VehID 1B for passenger carriage.
// -1 * 0 03 00 81 1B 00 A1 00
// Action 4: Change Vehicle name
// -1 * 0 04 00 7F 01 57 "Lev4 'Chimaera'" 00
// Action 0: Change vehicle properties, read Wiki for details ;)
-1 * 0 00 00 0F 01 57 00 \w2037-01-01 02 01 03 \b20 04 \b255 05 02 06 07 08 01 09 \w641 0B \w20000 12 FD 13 01 16 \b75 18 01 19 1A 04 20 01 28 27 04