Error with .PCX files

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Error with .PCX files

Post 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..
Attachments
naamloos.PNG
(70.18 KiB) Downloaded 66 times
Image
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: Error with .PCX files

Post 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...
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Re: Error with .PCX files

Post by Samwise »

Thanks, that worked :)
Image
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: Error with .PCX files

Post by Zephyris »

No prob, its such a pain when the palette messes up :s
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Amazon [Bot] and 8 guests