Page 1 of 1

Question regarding grfcodec decoding error

Posted: 06 Dec 2009 14:33
by popewiz
With some help from George, I've been modifying his ECS Vectors to eliminate the closing and opening of industries for some scenarios I'm working on. I've had no issues decoding all but one of the .grf files in which grfcodec outputs the following error:

Code: Select all

Decoding:
Cannot write to sprites/power.wav: No such file or directory
I have the most recent version of grfcodec and I've tried with and without using grfwizard. I've attached the .grf as well as the partial .pcx and .nfo that result.

Anybody have any ideas?

Re: Question regarding grfcodec decoding error

Posted: 08 Dec 2009 22:12
by frosch
No idea. Maybe try to create the directory "sprites" first. Maybe grfcodec only tries to create it for realsprites but not for sounds.

Re: Question regarding grfcodec decoding error

Posted: 08 Dec 2009 22:50
by planetmaker
popewiz wrote:

Code: Select all

Decoding:
Cannot write to sprites/power.wav: No such file or directory
I downloaded the grf file and decoded the newgrf by means of grfcodec r2245 ("latest" is no version number!) without problems. Is your sprites dir maybe write protected? Or your working dir so that a sprites dir cannot be created?

Re: Question regarding grfcodec decoding error

Posted: 09 Dec 2009 04:00
by popewiz
planetmaker wrote:
popewiz wrote:

Code: Select all

Decoding:
Cannot write to sprites/power.wav: No such file or directory
I downloaded the grf file and decoded the newgrf by means of grfcodec r2245 ("latest" is no version number!) without problems. Is your sprites dir maybe write protected? Or your working dir so that a sprites dir cannot be created?
Well, it must have been something related to this. I moved the grf out of the folder and up a directory level, and it came out fine. Thanks for the suggestion.