grfcodec error

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
jgf
Engineer
Engineer
Posts: 93
Joined: 02 Mar 2006 01:40
Location: Columbus, OH

grfcodec error

Post by jgf »

In attempting my first TTD graphics mod (simply trying to replace that hideous checkerboard terrain in toyland), I've run into a problem converting the pcx back to grf. The pcx looks fine, I changed no sizes nor added/deleted sprites, merely gave the ground tiles a consistent grassy appearance; but when trying to recompile the file I get:

Error: invalid compression, data diff at 2992 of 2996 bytes, even uncompressed, aborting.

Now what?
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

How are you running grfcodec? What options?
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
jgf
Engineer
Engineer
Posts: 93
Joined: 02 Mar 2006 01:40
Location: Columbus, OH

Post by jgf »

I used the default settings as explained in the docs to generate the pcx and nfo files. I edited the former (didn't touch the latter) and used the default settings to (attempt to) recompile the grf. This was done in a dos window opened in the grfcodec directory.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

jgf wrote:default settings ... default settings
Just as "latest" is not version number, "default" is not a setting.

What, *exactly*, did you type?
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
jgf
Engineer
Engineer
Posts: 93
Joined: 02 Mar 2006 01:40
Location: Columbus, OH

Post by jgf »

I am not at my home computer so don't have the docs handy. By default I meant I typed exactly what the docs said to recompile the file; I used no additional switches.
jgf
Engineer
Engineer
Posts: 93
Joined: 02 Mar 2006 01:40
Location: Columbus, OH

Post by jgf »

FTR:

I typed: grfcodec -d trgt.grf

to create the pcx and:

grfcodec -e trgt.grf

to create the new grf

I got the error message; though a new grf was created it wouldn't load.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Very strange... it seems that for some reason your PCX edits cause grfcodec to be unable to properly compress the sprite, even with compression turned off. I have no clue what could be causing that...
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Google [Bot] and 16 guests