Page 2 of 2

Posted: 16 Apr 2006 07:46
by Purno
DaleStan wrote:That looks to me like the DOS palette, flipped end-for-end.

This is the Windows palette.
Hmm... I've always used the DOS palette, and never had any problems with it, AFAIK.

Posted: 16 Apr 2006 10:07
by Samwise
Well my trains are running in my games cuz I pasted my pics over others and that worked.. but when I create my own .grf it's colors are very weird...

Posted: 16 Apr 2006 10:58
by Jezulkim
That's because the palette is correct on that picture.

This is how to get a correct palette for your own grfs:

1)Convert your trains to ttd win palette with option "match to nearest colour" (or something like that)
2)Then encode the grf file and you're done

Posted: 16 Apr 2006 12:42
by Purno
Darkmast49 wrote:Well my trains are running in my games cuz I pasted my pics over others and that worked.. but when I create my own .grf it's colors are very weird...
Just decode, paste your sprites over them again, and encode again. That's what did the trick for me.

Posted: 16 Apr 2006 19:31
by Samwise
ok thanks ;) Now I have to learn to configure the .grf files with NFO... I can only input the graphics now in the good order..

Posted: 17 Apr 2006 19:51
by Samwise
Hmm.. It worked.. And I followed the wiki grf tuts and created my first .grf file.. I included it, that worked all fine.. But when I create my train it runs WAY from the track and does not connect to others trains and even in depot it doesn't go in the right cube.. Can anyone help?? :oops: :oops:

Posted: 17 Apr 2006 21:44
by DaleStan
Your xrel and yrel are wrong.

Posted: 18 Apr 2006 12:30
by Samwise
ok ty.. how can I adjust the right ones of them? Dunno what numbers I have to input there..

Posted: 18 Apr 2006 15:26
by mart3p
Try loading your GRF file in TTDPatch and then use the GRF Author Helper Window.

Posted: 18 Apr 2006 15:54
by DaleStan
Did you follow the link?
Did you read the corresponding section of the page I linked to?
Does it not describe what values to use?

Posted: 18 Apr 2006 17:47
by Samwise
It was a link.. didn't see it.. :oops:

Posted: 18 Apr 2006 17:52
by Samwise
good.. they are ON the track now.. Now I have to reset the graphics positions.. Cuz they give the wrong ones :oops:

Edit: I'm getting sick of this... what can be wrong?? :

The NFO File:
// 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 "PB99" 00 00
2 * 4 01 00 01 08
3 sprites/mytrain.pcx 66 8 01 22 8 -3 -9
4 sprites/mytrain.pcx 82 8 02 15 22 -14 -6
5 sprites/mytrain.pcx 114 8 03 12 33 -10 -7
6 sprites/mytrain.pcx 162 8 04 13 21 -1 -2
7 sprites/mytrain.pcx 194 8 05 22 8 -3 -9
8 sprites/mytrain.pcx 210 8 06 13 21 -14 -4
9 sprites/mytrain.pcx 242 8 07 12 33 -10 -7
10 sprites/mytrain.pcx 290 8 08 15 22 -1 -4
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

Please help..

Posted: 18 Apr 2006 23:40
by DaleStan
Darkmast49 wrote:good.. they are ON the track now.. Now I have to reset the graphics positions.. Cuz they give the wrong ones
What do you mean by graphics positions?

All of the meta-data now looks sane, except for your compression.

NFORenum should be objecting to that, BTW.

Posted: 19 Apr 2006 12:39
by Jezulkim
Do you mean the in game sprite positions? Then the grf author helperis for you.

Posted: 19 Apr 2006 16:00
by Samwise
Nono.. It's something else.. When I start up the game with my .grf included in openttd.cfg, the train drives ON the track.. But he uses the same sprite for every direction :S the / front view, so if the train goes _ it still has the same sprite used (/ front view).. whats the problem about that??

Posted: 19 Apr 2006 17:14
by DaleStan
Darkmast49 wrote:... my .grf included in openttd.cfg ...
1) Does it work in TTDPatch? If so, your grf is fine, and Open is broken.
2) What does NFORenum tell you?

Posted: 19 Apr 2006 19:17
by Samwise
1) I don't have the right version of TTDPatch.. When I use my original files of TTDLX and past the TTDPatch over it and run TTConfig/exe, it saids error reading registry.. And I don't have Transport Tycoon Deluxe.exe in my folder of TTDPatch.

2)Where can I find NFORenum? (I know, I'm completely noobish right now

Posted: 19 Apr 2006 20:24
by DaleStan
1) You have to have a full TTD install to use TTDPatch.
2) Somewhere down vvvv there.

Posted: 20 Apr 2006 06:29
by Samwise
1) I'm getting further with that.. I only need a right TTDLOADW.OVL now...
2) Thanks ;)