IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> Guide to playing TS under Wine on GNU/Linux, + managing mods the easy way!
snow93
post Jun 10 2009, 11:50 AM
Post #1


Grenadier
Group Icon

Group: Members
Posts: 32
Joined: 21-October 06
From: Cambridge, England
Member No.: 72
Alliance: GDI
Favorite game: Tiberian Sun



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!)

This post has been edited by snow93: Jun 11 2009, 11:39 AM


--------------------
Use GNU/Linux Everyone!

New Website: www.ugnus.uk.eu.org

Go to the top of the page
 
: | +Quote Post
Orac
post Jun 11 2009, 07:30 AM
Post #2


Flamethrower Infantry
Group Icon

Group: Members
Posts: 132
Joined: 15-January 09
From: New Zealand - Land of slow Broadband
Member No.: 1,264
Alliance: GDI
Favorite game: Tiberian Sun



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.

This post has been edited by Orac: Jun 11 2009, 08:13 AM
Attached image(s)
Attached Image
 


--------------------

QUOTE (jadems)
[TS] is a once in a while game. You can go away, but you can never leave.
Go to the top of the page
 
: | +Quote Post
snow93
post Jun 11 2009, 11:42 AM
Post #3


Grenadier
Group Icon

Group: Members
Posts: 32
Joined: 21-October 06
From: Cambridge, England
Member No.: 72
Alliance: GDI
Favorite game: Tiberian Sun



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?)


--------------------
Use GNU/Linux Everyone!

New Website: www.ugnus.uk.eu.org

Go to the top of the page
 
: | +Quote Post
Orac
post Jun 11 2009, 09:03 PM
Post #4


Flamethrower Infantry
Group Icon

Group: Members
Posts: 132
Joined: 15-January 09
From: New Zealand - Land of slow Broadband
Member No.: 1,264
Alliance: GDI
Favorite game: Tiberian Sun



Yes, 3 rotating gears.
it couldn't be to do with the SUN.INI, could it?


--------------------

QUOTE (jadems)
[TS] is a once in a while game. You can go away, but you can never leave.
Go to the top of the page
 
: | +Quote Post
snow93
post Jun 12 2009, 11:49 PM
Post #5


Grenadier
Group Icon

Group: Members
Posts: 32
Joined: 21-October 06
From: Cambridge, England
Member No.: 72
Alliance: GDI
Favorite game: Tiberian Sun



Maybe...try removing the AllowHiResModes line temporarily.


--------------------
Use GNU/Linux Everyone!

New Website: www.ugnus.uk.eu.org

Go to the top of the page
 
: | +Quote Post
Orac
post Jun 13 2009, 03:07 AM
Post #6


Flamethrower Infantry
Group Icon

Group: Members
Posts: 132
Joined: 15-January 09
From: New Zealand - Land of slow Broadband
Member No.: 1,264
Alliance: GDI
Favorite game: Tiberian Sun



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.

This post has been edited by Orac: Jun 13 2009, 09:00 PM


--------------------

QUOTE (jadems)
[TS] is a once in a while game. You can go away, but you can never leave.
Go to the top of the page
 
: | +Quote Post
Clazzy
post Jun 19 2009, 01:02 PM
Post #7


Karma Police
Group Icon

Group: Global Moderators
Posts: 375
Joined: 2-October 06
From: Algae Colony On Mars (UK)
Member No.: 7
Alliance: Nod
Favorite game: Tiberian Dawn



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.


--------------------
QUOTE
And you run and you run to catch up with the sun but it's sinking, racing around to come up behind you again... - Pink Floyd
Go to the top of the page
 
: | +Quote Post
Clazzy
post Jun 20 2009, 11:48 PM
Post #8


Karma Police
Group Icon

Group: Global Moderators
Posts: 375
Joined: 2-October 06
From: Algae Colony On Mars (UK)
Member No.: 7
Alliance: Nod
Favorite game: Tiberian Dawn



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).


--------------------
QUOTE
And you run and you run to catch up with the sun but it's sinking, racing around to come up behind you again... - Pink Floyd
Go to the top of the page
 
: | +Quote Post
snow93
post Jun 21 2009, 09:55 AM
Post #9


Grenadier
Group Icon

Group: Members
Posts: 32
Joined: 21-October 06
From: Cambridge, England
Member No.: 72
Alliance: GDI
Favorite game: Tiberian Sun



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)).


--------------------
Use GNU/Linux Everyone!

New Website: www.ugnus.uk.eu.org

Go to the top of the page
 
: | +Quote Post
Clazzy
post Jun 21 2009, 12:23 PM
Post #10


Karma Police
Group Icon

Group: Global Moderators
Posts: 375
Joined: 2-October 06
From: Algae Colony On Mars (UK)
Member No.: 7
Alliance: Nod
Favorite game: Tiberian Dawn



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 post has been edited by Clazzy: Jun 21 2009, 12:25 PM


--------------------
QUOTE
And you run and you run to catch up with the sun but it's sinking, racing around to come up behind you again... - Pink Floyd
Go to the top of the page
 
: | +Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 29th March 2024 - 12:22 PM


XGhozt.com