grfcodec wrong id

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
mike123
Engineer
Engineer
Posts: 7
Joined: 24 Nov 2007 03:08

grfcodec wrong id

Post by mike123 »

GRFCodec version 0.9.10

$ grfcodec -d openttdw.grf
openttdw.grf has 1615 sprites, maxx 72, maxy 65, maxs 3176.

$ grep " 1534" openttdw.nfo
1534 sprites/openttdw.pcx 338 4936 03 36 56 0 0

gimp, open "openttdw.pcx" copy id 1534 to new file, modify, then save as
data/sprites/openttdw/1534.png

cursor does not change

rename 1534.png to 1533.png

cursor works fine
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: grfcodec wrong id

Post by DaleStan »

Unless grfcodec objects when re-encoding that file, or NFORenum changes the sprite number, the sprite number is correct, and it's OpenTTD that's loading the sprite into the wrong place.
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
mike123
Engineer
Engineer
Posts: 7
Joined: 24 Nov 2007 03:08

Re: grfcodec wrong id

Post by mike123 »

openttdw.grf was not modified in any way
i'm using openttd-0.6.0-beta1-source.tar.bz2

e7e54a125cec46531d370af469f74a9c openttdw.grf (380401)

fell free to move this topic into openttd bugs area
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: grfcodec wrong id

Post by Rubidium »

The issue should be fixed in the coming nightlies/betas.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 19 guests