Grf codec problems
Moderator: Graphics Moderators
Grf codec problems
When grf codec asks for target grf and sprites source parth what do i put.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
For target grf write the name of the grf file you want to encode.
And for the sprite source path write the name of the folder where you have the sprites, usually the folder is "sprites".
And for the sprite source path write the name of the folder where you have the sprites, usually the folder is "sprites".

In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
- Wile E. Coyote
- Tycoon
- Posts: 8515
- Joined: 08 Jul 2004 22:14
- Skype: wile.e.coyote2
- Location: Belgrade, Serbia
- Contact:
It happens when PCX from which you encode GRF is small AFAIK (but I don't know why). I know only this sollution:
you must have PCX image which you drew and which is not corrupted. Copy sprites from it to this "corrupted" PCX, and then encode GRF. Sprites will be OK.
you must have PCX image which you drew and which is not corrupted. Copy sprites from it to this "corrupted" PCX, and then encode GRF. Sprites will be OK.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.
Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Chances are your Orginal pcx file isn't 800 pixils in width.
I'm not sure what multiple it has to be of, but if it isn't of that multiple then you get that type of distorion.
I tend to avoid making pcx files which are not 800 pixils wide for that reason.
~ Lakie
I'm not sure what multiple it has to be of, but if it isn't of that multiple then you get that type of distorion.
I tend to avoid making pcx files which are not 800 pixils wide for that reason.
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
I can state definitively that the GIMP (at least, 2.2.10) does not experience this problem. I just saved a PCX with widths of 275, 271, 269, 263, and 257, and had no problems with any of the encodes. Note that, with the exception of the first one (275), all are prime numbers. I believe that this proves either:
(1) The width must be a multiple of at least one of 275, 271, 269, 263, 257, (and possibly some other numbers)
--OR-- (and far more likely, IMO)
(2) The width must be a multiple of one.
If anyone who uses other graphics programs could do a similar procedure, and post all PCX/NFO pairs that do not work, that will probably cause grfcodec to get fixed faster. The first one for the list of misbehaving PCXen is Flamelord's, here.
(1) The width must be a multiple of at least one of 275, 271, 269, 263, 257, (and possibly some other numbers)
--OR-- (and far more likely, IMO)
(2) The width must be a multiple of one.
If anyone who uses other graphics programs could do a similar procedure, and post all PCX/NFO pairs that do not work, that will probably cause grfcodec to get fixed faster. The first one for the list of misbehaving PCXen is Flamelord's, here.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
I can't get it to compile right, but if I change the width of the pcx file to 280, it compiles fine.
Maybe it's just my computer?
~ Lakie
Maybe it's just my computer?
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
And again, opening it in GIMP and saving it (no changes) causes it encode and decode just fine.Lakie wrote:I can't get it to compile right, but if I change the width of the pcx file to 280, it compiles fine.
From the other thread:
You seem to be quite fond of these random fixes that just happen to work. I'd much rather make my PCX one pixel narrower/wider (see below) than struggle to figure out which compression byte needs to change to 03.George wrote:The problem is not in PCX, but in grfcodec and this is the way to fix it (I do not know why, but it is)
michael blunck wrote:Apparently, grfcodec has problems with .pcx files with an uneven picture width which have been converted from .bmp files with that odd width.
This is a known bug which has been in existence since the first version of grfcodec.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Heh, how strange, must be the way my software causes such an issue for me then.
Oh, and I've known about grfcodec being less than perfect for quite a while.
~ Lakie

Oh, and I've known about grfcodec being less than perfect for quite a while.

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Who is online
Users browsing this forum: No registered users and 23 guests