Typo
[linux_from_scratch_hints.git] / OLD / tacops.txt
blob594dd4ecaeb091b6529c9bb4c00db5e2d5c48d63
1 TITLE:          Tactical Ops: Assault on Terror
2 LFS VERSION:    All (that use glibc 2.3.x)
3 AUTHOR:         Gard Spreemann <g_spreemann@yahoo.com>
5 SYNOPSIS:
6         Install, update and play "Tactical Ops: Assault on Terror" on an LFS
7         system using glibc 2.3.x.
9 HINT:
10 Version: 0.0.1 - 01/09/2003 (dd/mm!)
12 Changelog:
13 0.0.1 - 01/09/2003
14         First version.
16 Background:
17 Tactical Ops ("TacOps" from now on) was originally an Unreal Tournament mod, but
18 is today a standalone game using the Unreal Tournament engine. Luckily, this
19 makes it playable under Linux. Support for this is rather good (see
20 http://www.icculus.org/~ravage/tacops/), but systems that use glibc 2.3.x
21 (for which the Linux installer and updaters were not compiled) will run into
22 problems with the straightforward approach described on the previously mentioned
23 page. I thought I'd explain a quick and easy way to get it working.
24 If you don't know what TacOps is, check out http://tactical-ops.to - it truly
25 is a great game.
27 The problem:
28 The installer needs Wine to unpack certain files, and comes with
29 a precompiled Wine for this purpose. The problem is that this Wine is linked
30 to an older glibc, and will not work with glibc 2.3.x. The problem is
31 described at http://icculus.org/~ravage/tacticalops/faq.html where a solution
32 is also given. However, this solution did not work for me. If it works for you,
33 then you don't need to read on.
35 Notes:
36 Whatever you do related to this hint is your own responsibility. If your hard
37 drive gets wiped, or your computer explodes, that is your own responsibility.
38 I have no responsibility for whatever damages may result from following this
39 hint. Nor am I affiliated with the TacOps developers or Icculus.
41 Requirements:
42 - TacOps retail(!) CD
43 - XFree86 with OpenGL support
44 - GNU/Linux system with glibc 2.3.x
46 I. INSTALLING WINE
47   1)    We need a Wine linked against our own glibc. If you do not already have
48         Wine installed, install it now. Follow the documentation at
49         http://winehq.org or the Wine hint if you are in doubt about what to do.
50   2)    Make sure root has a working Wine configuration. As root, try:
51          wine notepad
52         If you get an error message about /root/.wine not being available, you
53         need to set up a working Wine configuration for root. This is described
54         in the good documentation provided at winehq.org.
56 II. DOWNLOADIG, FIXING AND RUNNING THE INSTALLER
57   1)    First, you will obviously need the TacOps Linux installer. Get it at
58         http://icculus.org/~ravage/tacticalops/files/tacticalops-3.1.5-install
59         -x86.run (one line).
60   2)    Mount the TacOps CD wherever you wish, e.g:
61          mount /dev/cdrom /mnt/cdrom
62   3)    Extract the files from the installer:
63          sh ./tacticalops-3.1.5-install-x86.run --keep
64         The installer will fail right away with a pretty segfault if X is not
65         available, but not to worry, the contents of the intaller is now
66         available to us (hence the --keep option). If X is available, the
67         installer will start, so just exit it if it does.
68   4)    Enter the directory created by the command in the previous step:
69          cd tacticalops-3.1.5-install
70         From here on, you have two options; your choice will depend on
71         whether X is available for the installation or not. The "b" option is
72         untested by me, and is only for those who do not have X available
73         during the install. If you're going to follow the "b" option, you still
74         need to do step 5. If you are a n00b, it is preferable not to follow
75         the "b" option.
76   5)    This is where this hint and the FAQ differ. Why? Simply because the
77         FAQ's way didn't work for me. I might have done stuff the wrong way,
78         but hey...
79         Enter the Wine directory in the dir created by the installer in step 3:
80          cd wine
81         Now, for each of the binary files here, locate your system-wide Wine's
82         equivalent. Not all files are available system-wide, but the ones that
83         are, you delete and replace with symlinks to their system-wide
84         equivalents. At least "wine" and "wineserver" should be available, or
85         something is severly b0rked with your Wine install.
86         The installer will now use your system-wide Wine, linked against
87         your glibc, which is what we want.
88   5b)   __Only if X is not available during the install! UNTESTED!__
89         The console installer itself, unlike the graphical installer, needs
90         patching to work with glibc 2.3 aswell. Enter the console installer's
91         directory and remove the installer:
92          cd setup.data/bin/Linux/x86
93          rm setup
94         Download a working (hopefully) console installer, place it in that
95         directory, and make it executable:
96          wget http://zerowing.idsoftware.com/linux/setup-RH9/setup
97          chmod 755 setup
98         Let's hope it works... if not, try the regular way, using the X-based
99         installer.
100   6)    If you did not follow the "b" option, make sure X is available to the
101         installer! This is vital. In the top level directory of the
102         tacticalops-3.1.5-install dir, run the installer:
103          SETUP_CDROM=/path/to/cd ./setup.sh
104         Install the game. If you see errors regarding the extraction of the
105         files then Wine is not doing its thing correctly, or you didn't properly
106         mount the CD, or the CD is damaged.
108 III. DOWNLOADING THE PATCHES AND PATCHING THE GAME
109   1)    Did you think you were done? Oh no! We're now moving into territory
110         which, at the time of writing, was not covered by the Icculus FAQ.
111         You may delete the directory created in step II.3.
112         Download each and every Linux patch for the game, from 3.3.2 and up to
113         the latest one. At the time of writing, you would be getting these
114         patches:
115         http://icculus.org/~ravage/tacticalops/files/tacticalops-3.3.2-x86.run
116         http://icculus.org/~ravage/tacticalops/files/tacticalops-3.4.0-x86.run
117   2)    The patches too need to some patching to work with glibc 2.3.x. They
118         do not need Wine though.
119         Extract the contents of the first patch (not inside the TacOps dir):
120          sh ./tacticalops-3.3.2-x86.run --keep
121         The patch will segfault nicely. Enter the dir left by the patch:
122          cd tacticalops-3.3.2
123         Enter the subdirectory in which the patcher program is located:
124          cd bin/Linux/x86
125         Remove the glibc 2.3 incompatible patcher:
126          rm loki_patch
127         Download the glibc 2.3 compatible patcher:
128          wget http://gspr.dyndns.org/~gspr/lfs-hints/files/loki_patch
129         (It would be very nice if someone could mirror this, as my connection is
130         not too fast, and the site from which I got the file is even slower).
131         Make it executable:
132          chmod 755 loki_patch
133   3)    Return to the top level directory (tacticalops-3.3.2) and run:
134          ./update.sh
135         It should patch your game nicely.
136   4)    Repeat step 2 and 3 for each patch up the chain. You must make sure to
137         apply every patch in the chain.
138   5)    Run the game. It damn well better work.
139   6)    Make sure to always fear "=ARNA=GoE" (me) on whatever server you're on!
142 -------
143 I hope this hint was of some help.
144 Thanks to the Icculus people for making TacOps and so many other nice games work
145 with Linux.
147 System used for testing the described approach:
148 - Kernel 2.6.0-test4
149 - XFree86 4.3.0
150 - Nvidia 4496 drivers
151 - glibc 2.3.2
153 (If you need a nice server to play on, try 62.97.225.216:7777).