GRFCODEC.EXE questions
Moderator: TTDPatch Moderators
GRFCODEC.EXE questions
1. In the guide you refer to a file called "trg1.grf" while the real name of the file is "trg1r.grf". I suppose both windows and DOS version of TTD uses the same names, so if this is simply a spelling error, it should be corrected.
2. I have decoded all GRF files from the TTD folder, however the backup file was created only for the main file, trg1r.grf. Why there are no backups for the others? (despite I know I can create them manually)
3. How can I run grfcodec.exe in the background, hiding its window? (by using the "RUN" option from Start menu plus -? command I suppose).
2. I have decoded all GRF files from the TTD folder, however the backup file was created only for the main file, trg1r.grf. Why there are no backups for the others? (despite I know I can create them manually)
3. How can I run grfcodec.exe in the background, hiding its window? (by using the "RUN" option from Start menu plus -? command I suppose).
-
- Tycoon
- Posts: 14275
- Joined: 09 Jan 2003 08:37
-
- Engineer
- Posts: 42
- Joined: 09 Jan 2003 16:55
Re: GRFCODEC.EXE questions
Just like any other program really - create a shortcut to it and set it to run minimised in the properties for the shortcut.Andrex wrote: 3. How can I run grfcodec.exe in the background, hiding its window? (by using the "RUN" option from Start menu plus -? command I suppose).
I'm building a VB GUI to manage the grfcodec.exe to automatically perform its most common tasks, as you have imagined.
The best thing would be to incorporate those EXE into my program somehow, but since I have no idea how to do that, it will be enough with hiding the window.
Another question:
The color palette settings are valid only for decoding, or it may be applied when encoding also?
The best thing would be to incorporate those EXE into my program somehow, but since I have no idea how to do that, it will be enough with hiding the window.
Another question:
The color palette settings are valid only for decoding, or it may be applied when encoding also?
HELP NOW PLZ!!!!
I am having problems when encoding with the m switch.
This is the situation:
C:\AZ\TTDXP>grfcodec.exe -e -m 0 trgcr.grf
GRFCodec version 0.9 - Copyright (C) 1999-2002 by Josef Drexler
Encoding in temporary file C:\AZ\TTDXP\trgcr.new
Agh! Getting colour 216 but it has no map!ransparency: 57%, Redundancy: 78%)
With all GRF files I've tried, I get the same error, but with differnt values for everything. Also happens with the -m 1 switch of course.
This is the situation:
C:\AZ\TTDXP>grfcodec.exe -e -m 0 trgcr.grf
GRFCodec version 0.9 - Copyright (C) 1999-2002 by Josef Drexler
Encoding in temporary file C:\AZ\TTDXP\trgcr.new
Agh! Getting colour 216 but it has no map!ransparency: 57%, Redundancy: 78%)
With all GRF files I've tried, I get the same error, but with differnt values for everything. Also happens with the -m 1 switch of course.
Re: HELP NOW PLZ!!!!
This means you're either using the wrong -m switch, or that the graphics are using the wrong palette.Andrex wrote:Encoding in temporary file C:\AZ\TTDXP\trgcr.new
Agh! Getting colour 216 but it has no map!ransparency: 57%, Redundancy: 78%)
With all GRF files I've tried, I get the same error, but with differnt values for everything. Also happens with the -m 1 switch of course.
Remember that -m is for converting between DOS and Windows graphics. This means, with -m 1, the PCX file must be in the Windows palette, and the resulting GRF file will use the DOS palette. -m 0 works the other way round.
If the palette is correct already, you don't need the -m switch.
- orudge
- Administrator
- Posts: 25218
- Joined: 26 Jan 2001 20:18
- Skype: orudge
- Location: Banchory, UK
- Contact:
Create a DLL file with the GRFCodec routines in (you'll have to modify the GRFCodec source a bit, but it's certainly possible), and call this from VB.Andrex wrote:The best thing would be to incorporate those EXE into my program somehow, but since I have no idea how to do that, it will be enough with hiding the window.
As far as I know, and tested myself. It is only possible to change new made graphics. This means up to now it is only possible to change new vehicles for windows to dos and visa versa. Sadly enough.
It is not possible to change changed buildings and new made railroadsprites or bridges.

It is not possible to change changed buildings and new made railroadsprites or bridges.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)

Still the best OS around
Still the best OS around
Are you talking about the -m switch or something? Because it is very possible to change buildings and stuff.Rob wrote:As far as I know, and tested myself. It is only possible to change new made graphics. This means up to now it is only possible to change new vehicles for windows to dos and visa versa. Sadly enough.![]()
It is not possible to change changed buildings and new made railroadsprites or bridges.
I'll leave the -m switch but with a warning message like "It may not work".
I was refering to the post above mine. So yes, i'm talking about the -m switch. 

Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)

Still the best OS around
Still the best OS around
Who is online
Users browsing this forum: No registered users and 7 guests