Help - Search - Members - Calendar
Full Version: Guide to playing TS under Wine on GNU/Linux
TiberiumWeb.org Community Forums > Tiberian Sun > TS Discussion
snow93
Well seeing as I mentioned it on the topic I created yesterday, I thought I outght to write a firendly guide to running TS with Wine (and also, importantly, making it not too hard to work with).

First load up winecfg, and make sure you've auto-detected all your drives. If you want to make things easier, you can execute:
CODE
$ ln -s ~/.wine/drive_c ~/c

So you can easily access your pseudo-C-drive by going into the "c" subdirectory in your home directory.

Nothing special to say about installing TS: just enter your CD folder (probably /cdrom, or /media/cdrom, or /media/TSGDI01 or whatever).

So now you have TS isntalled in c/Westwood/SUN.

To make it run at an acceptable speed, you need to do the following:

- Load up regedit.
- Go to HKEY_CURENT_USER -> Software -> Wine
- If it doesn't already exist, create the "key" (looks like a folder) called "AppDefaults".
- Inside AppDefaults create another key caleld "Game.exe"
- Inside *that*, make one called "Direct3D"
- In Direct3D, create two String Values:
- DirectDrawRenderer --- with a value of "opengl"
- RenderTargetLockMode --- with a value of "readtex"

Now edit SUN.INI and put AllowHiResModes=true in the Video section, and anything else you want to change.

Now update TS to version 2.03 - in the SUN directory, do the following:

CODE


That's vanilla TS now sorted, now onto managing your mods.

I've tried Stu's Mod Manager, and it works fairly well, but it's not a "perfect" solution -- a much better way of ensuring your mods don't get confused is to take advantage of Unix's "symlinks" -- these are not like Windows shortcut files -- the application doesnt' notice that the file is a symlink, and treats it as just like any other file. This way you can make a copy of your SUN directory for each mod withotu using up any extra disk space.

What you need to do is install a handy symlink-making program called "lns". Execute the following:
CODE
$ wget http://www.chiark.greenend.org.uk/~sgtatham/utils/lns.tar.gz
$ tar xvf lns.tar.gz
$ cd lns
$ sudo make install
<put in your password>
(alternatively:
$ su
<put in your root password>
$ make install
)


Now go to your Westwood directory (.wine/drive_c/Westwood)
and create a symlinked copy of your TS directory tree: (using TS Retro as an example)
CODE
$ lns -r TS TSR
$ cd TSR
$ wget http://www.habotsteel.com/tumsun/1.21FULL.zip
$ unzip 1.21FULL.zip


Now your installation of TS Retro will not get in the way of normal TS or any other mods(!)

Have fun.

(if you are confused (it's badly written, so you probably will be) just ask and I will help!)
Orac
Thanks! biggrin.gif I've fulfilled the first couple of steps, but I'm a bit confused now (Not being a programmer may be a factor)

Would you be able to be a little more specific with this part?:
QUOTE (snow93 @ Jun 10 2009, 11:50 PM) *
In the SUN directory, do the following:

CODE

Do you mean just patch it to 2.03, or is there some magic voodoo to be done too?


EDIT: Having updated to 2.03, I proceeded to run Tiberian Sun.
The menus are fine. But when I click on "Skirmish" or "Internet" or "Options" I get given a very pretty error.
I'm pretty sure it has something to do with these render strings which I set up, as per instructions, but I don't know exactly what is wrong with it. I'll triple check.
snow93
Yes, it was just making sure that the installation was patched (I've edited the post to make this clearer roll.gif )

That seems like a very strange screenshot... do you have hardware 3D acceleration working on your computer? (does the command "glxgears" come up with some rotating gears?)
Orac
Yes, 3 rotating gears.
it couldn't be to do with the SUN.INI, could it?
snow93
Maybe...try removing the AllowHiResModes line temporarily.
Orac
Commenting ;HighResMode= stopped me from getting as far as the main menu.
But if I remove either string the game runs. With either one it runs extremely slowly, but with both I cannot start a game, and get that odd screen, above, in the screenshot.
[EDIT: With neither string, ie: both deleted, TS runs slowly. It seems, however, to fluctuate in speed between very slow and normal.
I cannot shed any light on the matter, but these strings seem to be effecting the game badly when combined.]
[EDIT2: It seems that mouse movement is the cause of the slowdown. I notice that this has been reported at WineHQ]

It runs with either but not both, and while running does so very slowly. Odd, isn't it.
I've tested each of things I've changed, each string and the SUN.INI, but still seem unable to run TS.

Still, better than before. It wouldn't start previous to this.
Clazzy
Does WOL work without problems now? I remember doing this a couple of years ago and I don't think it added the registry entries for WOL so TS couldn't detect it. This was back around 0.9.10 though so things may have changed. I would test but I left my TS disc at home, I could try RA2 though.
Clazzy
Sorry to double post, WOL/XWIS works fine (to the lobby anyway) but I didn't try any games. RA2 should almost certainly work with no problem as well. To my knowledge, Renegade works fine (I have RenAlert working with no problems, think I installed Renegade once and it was fine).
snow93
Yes, I can confirm that Renegade & XWS works perfectly for me (TS still says I need to install a patch before I can connect - a rtp patch which it then fails to apply (I can see the file in the Westwood/Internet/Patches directory, but don't know how to apply it)).
Clazzy
I had to download the 2.03 patch manually then it installed a second update afterwards when connecting to the server. Maybe delete it and try running again? I have a bug with the updater (the one you can call from outside the game) where it freezes on 99% but if you cancel and restart it then it will install just fine.

Also, this apparently works too. Finally, I saw a recommendation on the WINE page for RA2 about using the modified ddraw.dll. I can't find the topic right now but didn't this cause more reconnection errors online?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.