DOS Graphics
Moderator: OpenTTD Developers
DOS Graphics
Is there a particular reason why OpenTTD uses only the Windows version of the GRF files? From running the game it appears to be a palette difference, but as we know apparences can be deceptive.
If the reason it doesn't work is either A) No-one has done it yet, or B) None of the dev's have the DOS version, then I'm looking to take it on. I really love the original TTD and would love to play a version with all the features I'd wished it had.
If the reason it doesn't work is either A) No-one has done it yet, or B) None of the dev's have the DOS version, then I'm looking to take it on. I really love the original TTD and would love to play a version with all the features I'd wished it had.
-
- Tycoon
- Posts: 3849
- Joined: 20 Jan 2003 14:51
- Location: Broadstone, Dorset
- Contact:
Re: DOS Graphics
A) There have been two attempts that I know of. One from Pasky and the other from Tron. If I remember correctly there were some problems with the palette animations, and thus it didn't work perfectly.Wizarth wrote:Is there a particular reason why OpenTTD uses only the Windows version of the GRF files? From running the game it appears to be a palette difference, but as we know apparences can be deceptive.
If the reason it doesn't work is either A) No-one has done it yet, or B) None of the dev's have the DOS version, then I'm looking to take it on. I really love the original TTD and would love to play a version with all the features I'd wished it had.
You can of course give it a try. Best thing to do though is to use grfcodec to convert the DOS graphics to WIN graphics, or obtain the windows version of ttdlx.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
I have had a look around for the DOS graphics. The best thing to would be to use a modified grfcodec ( http://www.ttdpatch.net/grfcodec/ ) to convert the DOS files to WINDOWS files. Most of the functionality is already present there. Decode the files with "grfcodec -d <file>", then encode them (and converting to windows) with "grfcodec -e -m0 <file>". The file is not yet fully working because grfcodec doesn't convert the company palettes. Thus:
- TRG1.GRF: fails!
- TRGC.GRF: works
- TRGH.GRF: works
- TRGI.GRF: works
- TRGT.GRF: fails! (toyland crap).
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
-
- Tycoon
- Posts: 14275
- Joined: 09 Jan 2003 08:37
Thanks for the advice guys. I played with TTDPatch, but since I'm having to emulate DOS (I'm using Linux or WinXP) ttdpatch tends to crash a little too much. OpenTTD runs native to Linux, so I'm happier with that.
With grfcodec, I got it to compile (your patch file was missing a few things, want the diff's?) and it appears to sucessfully convert most of the files, except TRGI(R).GRF. Running this through the converter caused OpenTTD to crash.. Unfortauntely, my GUI text is all the same color as whatever its on (or all the text is transparent? Except for the Euro sign).
So if no-one objects I think I'll look into grfcodec and see if I can't improve it some.
With grfcodec, I got it to compile (your patch file was missing a few things, want the diff's?) and it appears to sucessfully convert most of the files, except TRGI(R).GRF. Running this through the converter caused OpenTTD to crash.. Unfortauntely, my GUI text is all the same color as whatever its on (or all the text is transparent? Except for the Euro sign).
So if no-one objects I think I'll look into grfcodec and see if I can't improve it some.
Yes, grfcodec screws up cause it was not meant for all the special stuff that's in trgr1.grf. You have to somehow fix the colour of the letters, since they are all transparent now.Wizarth wrote:So if no-one objects I think I'll look into grfcodec and see if I can't improve it some.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
-
- TTDPatch Developer
- Posts: 417
- Joined: 13 Apr 2004 13:35
- Location: Eindhoven, Netherlands
- Contact:
With WinXP you can just run ttdpatch natively if you enable support for win2k (and use the windows version of ttd)...Wizarth wrote:Thanks for the advice guys. I played with TTDPatch, but since I'm having to emulate DOS (I'm using Linux or WinXP) ttdpatch tends to crash a little too much. OpenTTD runs native to Linux, so I'm happier with that.
No, grfcodec was made for ttdpatch. So any changes you make are your own changes . If it works perfectly it will probably be included in ottd as a seperate executable so that dos people can convert their graphics to windows format.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
@Darkvater
What does the grfcodec patch change (besides \ vs. / issues and makefiles) ?
I doubt it is a good idea to have different versions floating around,
at least not at the moment.
Are your changes to the nfo format documented, or only in the patch?
(I refer to info.cc "inforeader" with "quoted byte"
and writing nfo version 5)
I fear the moment patchman uses version 5 in an incompatible way
Having a completely new grf format for OTTD in the future
a completely independent tool will of course be necessary.
When I have time I plan to take a look at reintegrating grfcodec.
What does the grfcodec patch change (besides \ vs. / issues and makefiles) ?
I doubt it is a good idea to have different versions floating around,
at least not at the moment.
Are your changes to the nfo format documented, or only in the patch?
(I refer to info.cc "inforeader" with "quoted byte"
and writing nfo version 5)
I fear the moment patchman uses version 5 in an incompatible way
Having a completely new grf format for OTTD in the future
a completely independent tool will of course be necessary.
When I have time I plan to take a look at reintegrating grfcodec.
Well, I got it so that it works, it still needs work (at the moment it's a special build just for TRG1.GRF, needs to be an option). And I've changed the palette OpenTTD is using slightly (the first 15 or so colors from hot-pink to the DOS greyscale). The changed palette was to make the windows (option etc) and toolbar show up right, I couldn't find their graphics to convert/re-map them.
My alterations after the patch fixed an error with an anonymous union containing struct's (gcc didn't like that) and with a missing lib in the Makefile (stdc++). I didn't examine what the patch I was given did though, only enough to realise I had to change the line endings before it would apply.
My alterations after the patch fixed an error with an anonymous union containing struct's (gcc didn't like that) and with a missing lib in the Makefile (stdc++). I didn't examine what the patch I was given did though, only enough to realise I had to change the line endings before it would apply.
Who is online
Users browsing this forum: No registered users and 47 guests