I've been away from these forums for quite a while now (just silently observing), but in the last week or so, I decieded to try and learn how to make newGRFs. However, I seem to have hit a bit of a snag. Using Purno's tutorial, I drew a new passenger carriage, and, eager to get it working, download GRFCodec, and followed the tutorial
here, but swapping the example of an SH 125 for the passenger carriage. I changed everything that seemed appropiete (number of sprites, engine ID, etc.) in the example code, but still find it doesn't work. I must have done something wrong, and I am hoping one of you learned gentlemen out there could give me some advice.
The code I have in my GRF is this:
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 09 00 00 00
1 * 8 08 06 "MP" 14 99 00 00
2 * 4 01 00 01 04
3 data\sprites/trg1r18.PCX 194 280 01 22 8 -3 -10
4 data\sprites/trg1r18.PCX 210 280 09 17 22 -14 -7
5 data\sprites/trg1r18.PCX 242 280 01 12 32 -14 -6
6 data\sprites/trg1r18.PCX 290 280 09 17 22 -4 -8
7 * 9 02 00 00 01 01 00 00 00 00
8 * 7 03 00 01 1B 00 00 00
9 * 7 00 00 01 01 16 12 FD
When I try to run the GRF in openTTD, the pessenger carriage remains the same, while both halfs of the SH 125 face the same direction (probably because I reduced the sprite no. from 8 to 4)
Please could someone tell me where I have gone wrong.