Page 1 of 1
Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 12:59
by Zwaantje
Hi, i have a problem when using the grf wizard, if I select the place where the grfcodec.exe is i get an error that the path may contain spaces, i tried every place on my computer, but it didn't work.
So then i wanted to decode / encode the grfs with grfcodec, but when i start the program it opens and closes almost instantly so i can't enter any command.
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 13:33
by Lakie
Grfcodec doesn't take input whilst running, it takes the input in the form of parameters.
Thus, you can consider it like a batch process, you feed it the information you want with the grf file coming out the other side (or an error message).
You best open the command prompt and run it from that, run it with -h as a parameter to get a list of how it can work.
If my memory is right, don't you just put paths with spaces in them in quotation marks, eg "C:\Documents and Settings\Lakie\Editing\Grfs\grfcodec.exe"?
Hope that helps,
~ Lakie
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 14:57
by Zwaantje
Lakie wrote:You best open the command prompt and run it from that, run it with -h as a parameter to get a list of how it can work.
If my memory is right, don't you just put paths with spaces in them in quotation marks, eg "C:\Documents and Settings\Lakie\Editing\Grfs\grfcodec.exe"?
Umm, for the 1st part, do you mean start -> command(uitvoeren) -> and then "C:\Documents and Settings\Jos\Mijn documenten\ttd\grfcodec.exe" ? It runs but same as first, it goes away,I don't know how to start it with -h.
For the second part (if that's meant for grf wizard) i can't write the path myself, i can only click on the map, but then it doesn't put it in quotation marks
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 15:07
by Ameecher
Run: "C:\Documents and Settings\Jos\Mijn documenten\ttd\" then type in "grfcodec.exe -h"
then it should give you a list of all the commands.
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 15:10
by Lakie
I only use Grfcodec manually.
Parameters are extra arguments on the program run line, generally I run through cmd.exe so the window stays.
Code: Select all
Default:
"C:\Documents and Settings\Jos\Mijn documenten\ttd\grfcodec.exe"
Help parameter
"C:\Documents and Settings\Jos\Mijn documenten\ttd\grfcodec.exe" -h
obviously you can use;
cd "\Documents and Settings\Jos\Mijn documenten\ttd"
to change the directory to it, and just refer to it as grfcodec, principle is the same for parameters;
<program> <parameters>
[Edit] note that paths may be relative from there...
~ Lakie
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 15:14
by GoneWacko
Zwaantje wrote:Umm, for the 1st part, do you mean start -> command(uitvoeren) -> and then "C:\Documents and Settings\Jos\Mijn documenten\ttd\grfcodec.exe" ?
No. A command prompt is a window which emulates a DOS prompt within Windows.
You can open it by going to Start -> Uitvoeren, and then typing:
And pressing OK. You then get the prompt. After that, follow Lakie's steps above.
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 16:24
by Zwaantje
so i made it , i got to see all the commands with that -h at the end, but i get exactly the same without the -h a the end. but i still don't know what to do then...
I tried to decode the tempset, just to see if it works, I putted it in the ttd map, just where my grfcodec.exe is, so it's not working because it's in an other map or something.

Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 17:18
by GoneWacko
As the text pretty clearly states (don't feel intimidated by all the options and scary brackets, just read from the start and it all becomes clear!), you use
to decode a grf file (you may need to add -p 2 to the command line if the colors look messed up).
To encode a grf file you use the same line but instead of -d you use -e:
It's not that hard
This only works if you're in the directory with grfcodec.exe in it, you can change to a directory with the cd command:
cd "C:\Documents and Settings\Jos\Mijn Documenten\ttd"
Re: Problem with grf wizard and grfcodec
Posted: 22 Aug 2007 18:15
by Zwaantje
GoneWacko wrote:This only works if you're in the directory with grfcodec.exe in it, you can change to a directory with the cd command:
cd "C:\Documents and Settings\Jos\Mijn Documenten\ttd"
"
thank you, that worked, i did it

Re: Problem with grf wizard and grfcodec
Posted: 10 Dec 2007 17:36
by 5245jah
Damm! I did the same way, but still the same problem.

Re: Problem with grf wizard and grfcodec
Posted: 10 Dec 2007 17:39
by 5245jah
Re: Problem with grf wizard and grfcodec
Posted: 11 Dec 2007 20:29
by Alberth
Did you type the double quotes around the path?
(otherwise, what is "but still the same problem" for you?)