purple color problems

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
ttttttbd
Engineer
Engineer
Posts: 1
Joined: 29 Dec 2004 23:40

purple color problems

Post by ttttttbd »

Hi!

The colors are wrong for me (there is a lot of purple where it shouldn't be), see the attached image.

I've just download, compiled and started the most recent OpenTTD (0.3.5). I use Linux (Debian Woody). I have the DOS version of TTD, I don't have the Windows version. I've copied the *.cat and *.grf files, I've renamed the *.grf files to match the file names OpenTTD required. OpenTTD starts up nicely, the game is playable, but the colors are wrong.

Any suggestions?

Thanks,

Dan
Attachments
Screen shot describing the problem
Screen shot describing the problem
t.jpg (76.53 KiB) Viewed 3760 times
Kebabrov
Engineer
Engineer
Posts: 39
Joined: 20 May 2004 18:36

Post by Kebabrov »

maybe try using the windows grf files.

theres a link to where you can download them somewhere in these forums

do a search for 'ttd graphics'
User avatar
Colonel32
President
President
Posts: 951
Joined: 25 Apr 2004 18:41
Location: Prague, Czech rep.
Contact:

Post by Colonel32 »

using a DOS GRF instead of a WIN GRF will very probably be the problem.
Image
User avatar
tmesisbob
Engineer
Engineer
Posts: 79
Joined: 26 Mar 2004 19:17

Post by tmesisbob »

Apparently 0.3.5 has:
- Feature: OpenTTD runs with the grf files of the DOS version
So perhaps this new feature is a bit buggy??
Mek
TTDPatch Developer
TTDPatch Developer
Posts: 417
Joined: 13 Apr 2004 13:35
Location: Eindhoven, Netherlands
Contact:

Post by Mek »

tmesisbob wrote:Apparently 0.3.5 has:
- Feature: OpenTTD runs with the grf files of the DOS version
So perhaps this new feature is a bit buggy??
it's not buggy, you just must NOT rename any files, just copy the dos files as they are, and everything will work fine (at least for me it does)....
ledow
Engineer
Engineer
Posts: 32
Joined: 08 Sep 2004 10:36
Contact:

Post by ledow »

Delete the files you renamed, otherwise OpenTTD thinks they are the windows version and will load them automatically. Then put the DOS files STRAIGHT into that directory, don't rename them and then run it. It should all work then.
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

Alternatively you could use the "-i" switch, as described when you run "openttd -h":

Code: Select all

  -i                  = Force to use the DOS palette (use this if you see a lot of pink)
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Are there any plans for the game to check automatically for what version of the graphics are there?
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

lucaspiller wrote:Are there any plans for the game to check automatically for what version of the graphics are there?
It does check automatically. The files of the DOS version have a different name than the ones of the Windows version. Depending on the names of the files it choses the appropriate mode. Of course it does not work correctly if you rename the DOS files to the Windows file names. :wink:
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Well it doesn't for me with 0.3.5, so unless it is in a later revision there is something wrong:

Code: Select all

bash-2.05b$ ls /usr/share/games/openttd/data/
canalsw.grf   sample.cat    trgc.grf  trgt.grf       used.grf
openttd.grf   signalsw.grf  trgh.grf  trkfoundw.grf
opntitle.dat  trg1.grf      trgi.grf  ttd.map
bash-2.05b$ openttd
Error: Cannot open file '/usr/share/games/openttd/data/trg1r.grf'
bash-2.05b$ openttd -i
ALSA lib pcm_hw.c:1172:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
warning: leaving MCOP Dispatcher and still 146 types alive.
:?
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

If I understood you right you have Open TTD in Dos-version..
Why do you have two files for windows then? Signalsw.grf and trkfoundw.grf are for windows.. Try and get them in dos and try again :wink:
Currently working on:

Norwegian (NSB) Trainset
Topic | Website
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Aren't they OTTD files?
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

lucaspiller wrote:Well it doesn't for me with 0.3.5, so unless it is in a later revision there is something wrong:
Quote from the Readme:
(Alternatively you can use the TTD GRF files from the DOS version: TRG1.GRF,
TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF. Those filenames have to be uppercase
to be detected correctly. A few minor graphical glitches with the DOS
graphics remain. E.g. the autorail button in the rail toolbar doesn't look
as nice as with the Windows graphics.)
The filenames must remain uppercase as they have been in the original DOS version. :D
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Ah, so you are supposed to actually read the readme file. :P

For some reason when I moved them from Windows to Linux over Samba they turned lowercase - wierd....
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
ledow
Engineer
Engineer
Posts: 32
Joined: 08 Sep 2004 10:36
Contact:

MD5 Checking

Post by ledow »

There is now a patch on sourceforge that checks the MD5 of the files to make sure that renaming like this is noticed by the user.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: Ahrefs [Bot] and 11 guests