Page 1 of 1

Still in the pink

Posted: 08 Feb 2005 20:42
by amif2000
I have the DOS version of TTD.
If I copy the GRF files as is to the data directory, I get an error code about "TRG1R.GRF" missing.
If I rename the files to the windows names, I get all those pink rails and roads even when using the '-i' switch.

Please help.
Amit

Posted: 09 Feb 2005 07:20
by Bernhard
you must use 0.3.6, do you?

http://prdownloads.sourceforge.net/openttd

Posted: 09 Feb 2005 07:37
by amif2000
Sorry for not specifying. I use the latest version (0.3.6) on WinXP SP2.

Amit

Posted: 09 Feb 2005 13:50
by Sionide
Seeing as you own the Dos version, why not just GET a copy of the windows version??

Posted: 09 Feb 2005 22:59
by dominik81
Please disregard Sionide's post. I didn't spend time to make the DOS graphics work nicely just so that people illegally download TTD Win instead. ;)

@amif2000: First make sure which version of OpenTTD you have installed please. You can tell by looking at the title bar of the start screen menu or by clicking the question mark icon and choosing "About OpenTTD". I am 95% certain that you are not using 0.3.6 or a newer version, because OpenTTD 0.3.6 and higher does not check only the file names any more. It also checks the integrity of files and if you simply rename them, the MD5 checksum won't be correct and it would spit out an error message. If you are running 0.3.6 on Linux though, then please make sure that you copy the DOS files over to the data folder and that they are either completely uppercase letters or completely lowercase letters.

Posted: 10 Feb 2005 05:01
by amif2000
dominik81:

I've double checked and it is 0.3.6 for sure

This is the debug session when running with renamed files:

MD5 of TRG1R.GRF is ****INCORRECT**** - File Corrupt.
MD5 of TRGIR.GRF is ****INCORRECT**** - File Corrupt.
MD5 of TRGCR.GRF is ****INCORRECT**** - File Corrupt.
MD5 of TRGHR.GRF is ****INCORRECT**** - File Corrupt.
MD5 of TRGTR.GRF is ****INCORRECT**** - File Corrupt.
dbg: DirectMusic driver: LoadMIDI: SetSearchDirectory failed

dbg: DirectMusic driver: PlaySegment failed

dbg: DirectMusic driver: LoadMIDI: SetSearchDirectory failed

dbg: DirectMusic driver: PlaySegment failed


This is the debug session with the original DOS names:

MD5 of TRGT.GRF is ****INCORRECT**** - File Corrupt.

The error messagebox says that TRG1R is missing.


Looks like there is an issue with the TRGT file that confuses OTTD into thinking it is a Windows install.

My TTDLX disk says Copyright 1995 and the readme file has no special version info.

Amit

Posted: 10 Feb 2005 09:47
by dominik81
Your TRGT.GRF is definately not the usual file. Did you modify it in any way? If not, I would be glad if you could send me a copy of it and if you could tell me the exact version of TTD. You can find this information in the About Window.

For now, here is an (ugly) solution:
1.) Rename them all to Windows names.
2.) Start OpenTTD with "openttd -i"

Posted: 10 Feb 2005 12:57
by Sionide
sorry dom

Posted: 14 Feb 2005 08:52
by ttrainz
I have exactly the same problem - I've downloaded the latest version twice, and run it on both win 98 and win 2000. Note that it is only the map that shows pink in place of blues greys etc. All other pictures have the correct colours.

'I have the DOS version of TTD.
If I copy the GRF files as is to the data directory, I get an error code about "TRG1R.GRF" missing.
If I rename the files to the windows names, I get all those pink rails and roads even when using the '-i' switch. "

help please.

Posted: 19 Feb 2005 11:23
by Ikarus-71
Hello!

I followed exactly everything what ist desribed above, but nothing helped except this illegal downloading of the windows files.

System: AMD Duron 1300, Win98SE, GEForce 2 MX400

Posted: 21 Feb 2005 03:34
by ttrainz
Thanks Ikarus-71,
I downloaded the Win graphics files only and openttd works now. How ethical is this? I think not too bad - I bought the original version of TT, then the Dos version of TTDLX - its not as though I havent bought the game in the first place. Even so, it would be better if version 0.3.6 worked without having to do this. I went back to the original grf files on disc and have tried using the -i parameter with no luck. As it is my first attempt at using openttd, perhaps that is the problem compared to those who succesfully upgraded from the previous version. By the way, one of the windows files is definitely larger than the dos file.

One solution

Posted: 09 Mar 2005 06:50
by Jaguar13
How I solve this problem with ping colors (if using dos grf files):

1. Download GRFencoder: http://www.divxland.org/ttd/ttdsolutions.htm
2. Copy TRG1.GRF TRGC.GRF TRGH.GRF TRGT.GRF files to encoder dir.
3. Decode files:
grfcodec -d TRG1.GRF
grfcodec -d TRGC.GRF
grfcodec -d TRGH.GRF
grfcodec -d TRGT.GRF
4. Encode files in win-pallete:
grfcodec -e -m 0 TRG1.GRF
grfcodec -e -m 0 TRGC.GRF
grfcodec -e -m 0 TRGH.GRF
grfcodec -e -m 0 TRGT.GRF
5. Rename files:
TRG1.GRF -> trg1r.grf
TRGC.GRF -> trgcr.grf
TRGH.GRF -> trghr.grf
TRGT.GRF -> trgtr.grf
TRGI.GRF -> trgir.grf (original in dos-palette)
At this moment I have new problem with letters (dancing colors).
It can be solved by coping letters sprites from dos- palette grf file:

1. Copy TRG1.GRF (in dos- palette) to encoder dir.
2. Run grfdiff:
grfdiff -l 2-674 TRG1.GRF
it will make TRG1.GRD
3. And merge it to win- palette grf file (trg1r.grf):
grfmerge.exe TRG1.GRD trg1r.grf

Then copy all created files to data dir of openttd (don't forget simple.cat)

This make game playable but some ping colors in main icons and some dialogs are remained :(.