Problem with grf wizard and grfcodec
Moderator: Graphics Moderators
Problem with grf wizard and grfcodec
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.
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
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
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
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."
Re: Problem with grf wizard and grfcodec
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.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"?
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
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.
then it should give you a list of all the commands.
Re: Problem with grf wizard and grfcodec
I only use Grfcodec manually.
Parameters are extra arguments on the program run line, generally I run through cmd.exe so the window stays.
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
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
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
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."
Re: Problem with grf wizard and grfcodec
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:
Code: Select all
cmd
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
Re: Problem with grf wizard and grfcodec
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.

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
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"
Code: Select all
grfcodec.exe -d blablabla.grf
To encode a grf file you use the same line but instead of -d you use -e:
Code: Select all
grfcodec.exe -e blablabla.grf

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"
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
Re: Problem with grf wizard and grfcodec
"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
Damm! I did the same way, but still the same problem. 

Youtube.com-Broadcast yourself
Re: Problem with grf wizard and grfcodec
and my address to the file is: C:\Documents and Settings\Lembitu\My Documents\ttd\




Youtube.com-Broadcast yourself
Re: Problem with grf wizard and grfcodec
Did you type the double quotes around the path?
(otherwise, what is "but still the same problem" for you?)
(otherwise, what is "but still the same problem" for you?)
Who is online
Users browsing this forum: No registered users and 19 guests