Still in the pink

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
amif2000
Engineer
Engineer
Posts: 3
Joined: 08 Feb 2005 19:56

Still in the pink

Post 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
User avatar
Bernhard
Transport Coordinator
Transport Coordinator
Posts: 293
Joined: 11 Mar 2004 11:26
Location: 52º31'20"N 13º17'51"O

Post by Bernhard »

you must use 0.3.6, do you?

http://prdownloads.sourceforge.net/openttd
amif2000
Engineer
Engineer
Posts: 3
Joined: 08 Feb 2005 19:56

Post by amif2000 »

Sorry for not specifying. I use the latest version (0.3.6) on WinXP SP2.

Amit
User avatar
Sionide
Director
Director
Posts: 523
Joined: 10 Oct 2004 10:54
Location: England
Contact:

Post by Sionide »

Seeing as you own the Dos version, why not just GET a copy of the windows version??
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post 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.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
amif2000
Engineer
Engineer
Posts: 3
Joined: 08 Feb 2005 19:56

Post 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
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post 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"
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
Sionide
Director
Director
Posts: 523
Joined: 10 Oct 2004 10:54
Location: England
Contact:

Post by Sionide »

sorry dom
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
ttrainz
Engineer
Engineer
Posts: 31
Joined: 14 Feb 2005 08:45

Post 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.
Ikarus-71
Engineer
Engineer
Posts: 5
Joined: 19 Feb 2005 11:05

Post 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
ttrainz
Engineer
Engineer
Posts: 31
Joined: 14 Feb 2005 08:45

Post 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.
Jaguar13
Engineer
Engineer
Posts: 1
Joined: 08 Mar 2005 12:02
Contact:

One solution

Post 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 :(.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 9 guests