Difference between revisions of "TTDWineDave"

From TTWiki
Jump to navigationJump to search
m (5 revisions)
 
(Reformat and update)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
  +
I have managed, previously using Red Hat 8, and latterly on SuSE 8.2, to get TTD to run with the patch. Here's a brief how-to:
 
  +
# Ensure [http://www.winehq.org/ Wine] is installed. Versions up to 20041201 or after 20050531 (lastest CVS snapshot) work.
I have managed, previously using Red Hat 8, and latterly on SuSE 8.2, to get TTD to run with the patch.  Here's a brief how-to:
 
  +
# Copy the necessary TTD files to <tt>~/.wine/fake_windows</tt> i.e. where your virtual C: drive for Wine resides, or to some other directory that can be reached by Wine. Ensure files are in a writable directory.
# Ensure [http://www.winehq.org/|Wine] is installed. Versions up to 20041201 or after 20050531 (lastest CVS snapshot) work.
 
# Copy the necessary TTD files to -+~/.wine/fake_windows+- i.e. where your virtual C: drive for Wine resides, or to some other directory that can be reached by Wine. &nbsp;Ensure files are in a writable directory.
 
 
# Install TTDPatch 2.01 alpha 46 or higher
 
# Install TTDPatch 2.01 alpha 46 or higher
#To start TTD, simply run (from the TTD directory), -+wine ttdpatchw.exe+-
+
#To start TTD, simply run (from the TTD directory), <tt>wine ttdpatchw.exe</tt>
   
 
and that should be it!
 
and that should be it!
   
If TTDPatch shows a warning and wants you to press &quot;Y&quot; to continue, you must add the &quot;-y&quot; option to the command line or &quot;alwaysyes on&quot; to the configuration file since Wine does not accept console input directly.
+
If TTDPatch shows a warning and wants you to press "Y" to continue, you must add the "-y" option to the command line or "alwaysyes on" to the configuration file since Wine does not accept console input directly.
   
Normally, TTDPatch 2.5 and up should run fine without any registry entries, as long as registry.ini (automatically created if missing) is correct. This is the preferred way of starting TTDPatch on Wine, but if you do need to use the TTD registry keys, the following may serve as template for the entry in -+~/.wine/system.reg+-:
+
Normally, TTDPatch 2.5 and up should run fine without any registry entries, as long as registry.ini (automatically created if missing) is correct. This is the preferred way of starting TTDPatch on Wine, but if you do need to use the TTD registry keys, the following may serve as template for the entry in <tt>~/.wine/system.reg</tt>:
   
<pre>~pp~[Software\\\\FISH Technology Group\\\\Transport Tycoon Deluxe] 1074205274
+
<pre>[Software\\\\FISH Technology Group\\\\Transport Tycoon Deluxe] 1074205274
  +
"DisplayModeNumber"=dword:00000003
 
  +
"ForceDIBSection"=dword:00000000
&quot;DisplayModeNumber&quot;=dword:00000003
 
  +
"FullScreen"=dword:00000001
 
  +
"HDPath"="C:\\\\MPS\\\\TTWin95\\\\"
&quot;ForceDIBSection&quot;=dword:00000000
 
  +
"Installed"=dword:00000003
 
  +
"Language"=dword:00000000
&quot;FullScreen&quot;=dword:00000001
 
  +
"MidiType"=dword:00000001
 
  +
"MousePointer"=dword:00000000
&quot;HDPath&quot;=&quot;C:\\\\MPS\\\\TTWin95\\\\&quot;
 
  +
"RetraceSync"=dword:00000000
 
  +
"SafeMode"=dword:00000000
&quot;Installed&quot;=dword:00000003
 
  +
"UpdateMode"=dword:00000001</pre>
 
&quot;Language&quot;=dword:00000000
 
 
&quot;MidiType&quot;=dword:00000001
 
 
&quot;MousePointer&quot;=dword:00000000
 
 
&quot;RetraceSync&quot;=dword:00000000
 
 
&quot;SafeMode&quot;=dword:00000000
 
 
&quot;UpdateMode&quot;=dword:00000001~/pp~</pre>
 
   
 
(change the HDPath as appropriate if that isn't where you installed TTD)
 
(change the HDPath as appropriate if that isn't where you installed TTD)
   
-=If you are trying this method, let us know how you did=-
+
==If you are trying this method, let us know how you did==
   
  +
===OpenSuSE 10.2===
---
 
   
 
Works fine on OpenSUSE 10.2 (and below) with Wine 0.9.20 and above - only, since Wine 0.9.30 (inclusive) the fullscreen switch doesn't work anymore. According to Wine Weekly News a large scale change in D3D code took place around the 0.9.29+ versions.
 
Works fine on OpenSUSE 10.2 (and below) with Wine 0.9.20 and above - only, since Wine 0.9.30 (inclusive) the fullscreen switch doesn't work anymore. According to Wine Weekly News a large scale change in D3D code took place around the 0.9.29+ versions.
   
  +
===Ubuntu Linux 5.10 ("Breezy Badger"), kernel 2.6.12, alpha 68, Fujitsu===
'''++'''
 
 
'''Ubuntu Linux 5.10 (&quot;Breezy Badger&quot;), kernel 2.6.12, alpha 68, Fujitsu'''
 
 
'''++'''
 
   
 
Game works fine, but there is no audio at all. A lack of MIDI is understandable (as I do not have any MIDI sequencers available), but the loss of sound effects is a mystery...
 
Game works fine, but there is no audio at all. A lack of MIDI is understandable (as I do not have any MIDI sequencers available), but the loss of sound effects is a mystery...
   
  +
===Ubuntu Linux 5.10 (on vmware player) kernel 2.6.12, alpha 66c, wine 9.3 (winehq deb) eis_os===
---
 
 
'''Ubuntu Linux 5.10 (on vmware player) kernel 2.6.12, alpha 66c, wine 9.3 (winehq deb) eis_os'''
 
 
'''++'''
 
   
 
No audio, mci errors, Game seems to works fine, the mouse works abit odd because of double emulation. Versionsinfo collecting works, the keyboard handling on console is broken, starteing with wineconsole (keyboard input will work) but will not start the overlay file.
 
No audio, mci errors, Game seems to works fine, the mouse works abit odd because of double emulation. Versionsinfo collecting works, the keyboard handling on console is broken, starteing with wineconsole (keyboard input will work) but will not start the overlay file.
   
  +
===Gentoo Linux 1.4, kernel 2.6.1, alpha 16, alpha 18, Han===
---
 
 
'''Gentoo Linux 1.4, kernel 2.6.1, alpha 16, alpha 18, Han'''
 
 
'''++'''
 
   
 
This works fine with Gentoo Linux 1.4 with kernel 2.6.1. Much easier than Winex, and works just as good.
 
This works fine with Gentoo Linux 1.4 with kernel 2.6.1. Much easier than Winex, and works just as good.
 
'''--'''
 
   
 
And indeed, music is not working (I play without anyway, and if I wanted it, I'd play MP3s). Stations are fine with me.
 
And indeed, music is not working (I play without anyway, and if I wanted it, I'd play MP3s). Stations are fine with me.
   
  +
===Fedora Core 1, alpha 11 and alpha 14, Dave===
---
 
   
  +
As of 2.01 Alpha 11 critical errors appear. at startup on the test machine. This was not fixed by Alpha 14 ([[File:icon_frown.gif]])
'''Fedora Core 1, alpha 11 and alpha 14, Dave'''
 
   
  +
[This has been fixed in alpha 16. This was due to the ttdpatchw.exe file being malformed enough that wine couldn't run it.]
'''--'''
 
   
  +
If you are suffering segfaults, or getting <tt>error=21</tt>, you need to disable prelinking and exec-shield.
As of 2.01 Alpha 11 critical errors appear. at startup on the test machine. &nbsp;This was not fixed by Alpha 14 (:frown:)
 
   
  +
Disable prelinking by editing <tt>/etc/sysconfig/prelink</tt> in the obvious place, and then running <tt>prelink -ua</tt> to remove prelink information. Disable exec-shield by changing the value in /proc to 0 (hint: <tt>find /proc -name exec-shield</tt>).
<nowiki><nowiki>[This has been fixed in alpha 16. &nbsp;This was due to the ttdpatchw.exe file being malformed enough that wine couldn't run it.]</nowiki></nowiki>
 
   
  +
===Debian unstable, kernel 2.6.2, Wine 20040213, TTDPatch 2.0.1 alpha 16, Robert Norris===
If you are suffering segfaults, or getting -+error=21+-, you need to disable prelinking and exec-shield.
 
 
Disable prelinking by editing -+/etc/sysconfig/prelink+- in the obvious place, and then running -+prelink -ua+- to remove prelink information. &nbsp;Disable exec-shield by changing the value in /proc to 0 (hint: -+find /proc -name exec-shield+-).
 
 
---
 
 
'''Debian unstable, kernel 2.6.2, Wine 20040213, TTDPatch 2.0.1 alpha 16, Robert Norris'''
 
 
'''++'''
 
   
 
Works
 
Works
   
'''--'''
 
 
* I had to do LANG=en_US, because my machine uses the C locale by default. No big deal.
 
* I had to do LANG=en_US, because my machine uses the C locale by default. No big deal.
* Sound effects work, music doesn't. Wine spits out errors about their being no MCI handler for type &quot;MUSIC&quot;. I added a line to system.ini using Wine's &quot;mciseq.drv&quot;, which silenced the errors, but still gave no music. Installing dxmci.dll causes a rather spectacular crash.
+
* Sound effects work, music doesn't. Wine spits out errors about their being no MCI handler for type "MUSIC". I added a line to system.ini using Wine's "mciseq.drv", which silenced the errors, but still gave no music. Installing dxmci.dll causes a rather spectacular crash.
   
  +
===Mandrake 9.0, Wine 20040309, TTDPatch 2.0.1 alpha 24, Owen Rudge===
---
 
 
'''Mandrake 9.0, Wine 20040309, TTDPatch 2.0.1 alpha 24, Owen Rudge'''
 
 
'''++'''
 
   
 
Works
 
Works
   
  +
* Sound effects work, music doesn't. Wine spits out errors about their being no MCI handler for type "MUSIC". I don't have MIDI working under Linux without using something like Timidity anyway.
'''--'''
 
* Sound effects work, music doesn't. Wine spits out errors about their being no MCI handler for type &quot;MUSIC&quot;. I don't have MIDI working under Linux without using something like Timidity anyway.
 
 
* If the game runs in full screen, I can't move the mouse, and I have to kill X remotely to get out of it.
 
* If the game runs in full screen, I can't move the mouse, and I have to kill X remotely to get out of it.
   
  +
===RedHat 8.0, Wine 20030115, TTDPatch 2.0.1 Alpha 25, Phil Veale===
---
 
 
'''RedHat 8.0, Wine 20030115, TTDPatch 2.0.1 Alpha 25, Phil Veale'''
 
   
 
It Works :)
 
It Works :)
Line 124: Line 82:
 
It all plays really quite well.
 
It all plays really quite well.
   
'''Gentoo Linux kernel 2.6.8'''
+
===Gentoo Linux kernel 2.6.8===
   
  +
Works great using standard Wine. Here's some proof: [http://home.wanadoo.nl/uln/notsite/windowspwn.jpg screenshot]. It's windowed here but it also runs fullscreen without problems. In fact, it's running really smooth.
'''++'''
 
   
  +
The fact that the music didn't work (I didn't even bother to try music, by the way) was solved by downloading [http://users.tt-forums.net/jfs/ JFS's mp3 files] which still have the old synthetic midi sound just like back in the old days when I first played TTDX.
Works great using standard Wine. Here's some proof: [http://home.wanadoo.nl/uln/notsite/windowspwn.jpg|screenshot]. It's windowed here but it also runs fullscreen without problems. In fact, it's running really smooth.
 
 
'''--'''
 
 
The fact that the music didn't work (I didn't even bother to try music, by the way) was solved by downloading [http://users.tt-forums.net/jfs/|JFS's mp3 files] which still have the old synthetic midi sound just like back in the old days when I first played TTDX.
 
   
 
(note: still running, now on kernel 2.6.9 with xorg instead of X11)
 
(note: still running, now on kernel 2.6.9 with xorg instead of X11)
   
  +
===FreeBSD 5.3===
---
 
 
'''FreeBSD 5.3'''
 
   
 
Works great using wine 20041201 from ports, was using patch 2.0.1 alpha 41.
 
Works great using wine 20041201 from ports, was using patch 2.0.1 alpha 41.
   
 
Not linux, but didn't see point in listing it elsewhere.
 
Not linux, but didn't see point in listing it elsewhere.
  +
[[Category:TTD on Linux]]

Latest revision as of 13:19, 30 July 2011

I have managed, previously using Red Hat 8, and latterly on SuSE 8.2, to get TTD to run with the patch. Here's a brief how-to:

  1. Ensure Wine is installed. Versions up to 20041201 or after 20050531 (lastest CVS snapshot) work.
  2. Copy the necessary TTD files to ~/.wine/fake_windows i.e. where your virtual C: drive for Wine resides, or to some other directory that can be reached by Wine. Ensure files are in a writable directory.
  3. Install TTDPatch 2.01 alpha 46 or higher
  4. To start TTD, simply run (from the TTD directory), wine ttdpatchw.exe

and that should be it!

If TTDPatch shows a warning and wants you to press "Y" to continue, you must add the "-y" option to the command line or "alwaysyes on" to the configuration file since Wine does not accept console input directly.

Normally, TTDPatch 2.5 and up should run fine without any registry entries, as long as registry.ini (automatically created if missing) is correct. This is the preferred way of starting TTDPatch on Wine, but if you do need to use the TTD registry keys, the following may serve as template for the entry in ~/.wine/system.reg:

[Software\\\\FISH Technology Group\\\\Transport Tycoon Deluxe] 1074205274
"DisplayModeNumber"=dword:00000003
"ForceDIBSection"=dword:00000000
"FullScreen"=dword:00000001
"HDPath"="C:\\\\MPS\\\\TTWin95\\\\"
"Installed"=dword:00000003
"Language"=dword:00000000
"MidiType"=dword:00000001
"MousePointer"=dword:00000000
"RetraceSync"=dword:00000000
"SafeMode"=dword:00000000
"UpdateMode"=dword:00000001

(change the HDPath as appropriate if that isn't where you installed TTD)

If you are trying this method, let us know how you did

OpenSuSE 10.2

Works fine on OpenSUSE 10.2 (and below) with Wine 0.9.20 and above - only, since Wine 0.9.30 (inclusive) the fullscreen switch doesn't work anymore. According to Wine Weekly News a large scale change in D3D code took place around the 0.9.29+ versions.

Ubuntu Linux 5.10 ("Breezy Badger"), kernel 2.6.12, alpha 68, Fujitsu

Game works fine, but there is no audio at all. A lack of MIDI is understandable (as I do not have any MIDI sequencers available), but the loss of sound effects is a mystery...

Ubuntu Linux 5.10 (on vmware player) kernel 2.6.12, alpha 66c, wine 9.3 (winehq deb) eis_os

No audio, mci errors, Game seems to works fine, the mouse works abit odd because of double emulation. Versionsinfo collecting works, the keyboard handling on console is broken, starteing with wineconsole (keyboard input will work) but will not start the overlay file.

Gentoo Linux 1.4, kernel 2.6.1, alpha 16, alpha 18, Han

This works fine with Gentoo Linux 1.4 with kernel 2.6.1. Much easier than Winex, and works just as good.

And indeed, music is not working (I play without anyway, and if I wanted it, I'd play MP3s). Stations are fine with me.

Fedora Core 1, alpha 11 and alpha 14, Dave

As of 2.01 Alpha 11 critical errors appear. at startup on the test machine. This was not fixed by Alpha 14 (Icon frown.gif)

[This has been fixed in alpha 16. This was due to the ttdpatchw.exe file being malformed enough that wine couldn't run it.]

If you are suffering segfaults, or getting error=21, you need to disable prelinking and exec-shield.

Disable prelinking by editing /etc/sysconfig/prelink in the obvious place, and then running prelink -ua to remove prelink information. Disable exec-shield by changing the value in /proc to 0 (hint: find /proc -name exec-shield).

Debian unstable, kernel 2.6.2, Wine 20040213, TTDPatch 2.0.1 alpha 16, Robert Norris

Works

  • I had to do LANG=en_US, because my machine uses the C locale by default. No big deal.
  • Sound effects work, music doesn't. Wine spits out errors about their being no MCI handler for type "MUSIC". I added a line to system.ini using Wine's "mciseq.drv", which silenced the errors, but still gave no music. Installing dxmci.dll causes a rather spectacular crash.

Mandrake 9.0, Wine 20040309, TTDPatch 2.0.1 alpha 24, Owen Rudge

Works

  • Sound effects work, music doesn't. Wine spits out errors about their being no MCI handler for type "MUSIC". I don't have MIDI working under Linux without using something like Timidity anyway.
  • If the game runs in full screen, I can't move the mouse, and I have to kill X remotely to get out of it.

RedHat 8.0, Wine 20030115, TTDPatch 2.0.1 Alpha 25, Phil Veale

It Works :)

At first it worked absolutely perfectly, with the exception of music. After playing around with the registry settings a bit trying to get it to work though, I seem to have broken it. I also managed to get this working on WineX and there are some screenshots here: TTDWinexPhil

I managed to get KMidi to play the TTD Midi files, but on trying to run Wine at the same time the system starts to lock up, it runs out of memory or something. So trying this is not recommened.

Wine, unlike WineX, doesn't draw this in a window - it just draws over the top 640x480 of the screen. I just hit CTRL-ALT-MINUS and X resizes to fit.

It all plays really quite well.

Gentoo Linux kernel 2.6.8

Works great using standard Wine. Here's some proof: screenshot. It's windowed here but it also runs fullscreen without problems. In fact, it's running really smooth.

The fact that the music didn't work (I didn't even bother to try music, by the way) was solved by downloading JFS's mp3 files which still have the old synthetic midi sound just like back in the old days when I first played TTDX.

(note: still running, now on kernel 2.6.9 with xorg instead of X11)

FreeBSD 5.3

Works great using wine 20041201 from ports, was using patch 2.0.1 alpha 41.

Not linux, but didn't see point in listing it elsewhere.