Page 1 of 1

Error with .PCX files

Posted: 21 Jul 2008 21:35
by Samwise
This is really starting to p*** me off >.<

I was coding a bus I had on my pc, to obtain some coding skills again. I finished off the coding, and was attempting to encode this thing, but I keep getting the same errors :evil: Any help?

EDIT: Forgot to add info about it..

I'm using TTDPatch 2.5 rev 9, GRFcodec is up to date. I've created the bus using paint, saved it as a PNG, then opened up Irfanview and saved it as a .PCX. Usually, it's automatically saved as a 8 bit image, but this time it wasn't as you can see. I tried converting it to 8 bit in Irfanview, which resulted in the last lines..

Re: Error with .PCX files

Posted: 21 Jul 2008 21:40
by Zephyris
It looks like the palette of the pcx file has been lost or altered. Try copying the sprites into a copy of a pcx with the correct palette (eg. trg1r.grf decoded with the widows palette "grfcodec -d trg1r.grf -p 2"), cropping it down to the correct size and re-saving. Make sure you use the "use original palette" option saving if it needs specifying...

Re: Error with .PCX files

Posted: 21 Jul 2008 21:42
by Samwise
Thanks, that worked :)

Re: Error with .PCX files

Posted: 21 Jul 2008 22:04
by Zephyris
No prob, its such a pain when the palette messes up :s