个人工具

UbuntuHelp:EnemyTerritory

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:45的版本 (New page: {{From|https://help.ubuntu.com/community/EnemyTerritory}} {{Languages|php5}} Parent: UbuntuHelp:Games == Requirements == * You will need an accelerated 3D graphics card driver. If ...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


Parent: UbuntuHelp:Games


Requirements

  • You will need an accelerated 3D graphics card driver. If you have an Nvidia or ATI graphics card, and an accelerated driver was not enabled by default, then you can read instructions for obtaining a proprietary driver in BinaryDriverHowto
  • libgtk1.2 must also be installed. You can install it by running this command in a terminal: sudo apt-get install libgtk1.2

Download

Full game

Download the game either from FileShack

or directly with the command:

wget -c http://38.118.213.164/buajzponan+/pub2/Return_to_Castle_Wolfenstein_Enemy_Territory/Official_Demos/Linux/et-linux-2.55.x86.run
</code>
This command might be out of date, so you can check for newer versions at [http://www.fileshack.com/browse.x?cat=1773 FileShack] or your favourite download site.

=== Patch ===

If you have already installed an older Enemy Territory version then you can download a patch to update it.
Patches are available for download from [http://www.fileshack.com/browse.x?cat=1774 FileShack]

or directly with the command:
<pre>
wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60-update.x86.run
</code>
You may need to check on [http://www.fileshack.com/browse.x?cat=1774 FileShack] to see if a newer version is available than this.
 
== Installation ==

=== Full Game ===

The file you have downloaded is an installer, which can be run from a terminal with the command (adjusting versions where necessary):
<pre>
sudo sh ./et-linux-2.60.x86.run
</code>
and a GUI should appear to help you through the process. (By default Punk Buster is selected. This is needed to join a lot of servers). If it does not run then you may need to check the ''Troubleshooting'' section below.

=== Updating Old Versions If Necessary ===

To apply the patch you have downloaded, you should run the file from where you have downloaded it with the command:
<pre>
sudo sh ./et-linux-2.60-update.x86.run
</code>
(Adjusting the version where necessary). If it does not run then you may need to check the ''Troubleshooting'' section below.

== Running The Game ==

The installer will create a menu entry called ''Applications->Other->Enemy Territory''. You can either use this as it is, or put it in a more sensible location (such as ''Applications->Games->Enemy Territory'') with the Alacarte Menu Editor which you can find in ''Applications->Accessories''.

Alternatively you can run it from a terminal with the command: 
<pre>
et
</code>

== Troubleshooting ==

=== Permission Errors ===

Downloaded files do not have permission to execute by default, but you can change this with these commands:
<pre>
sudo chmod +x et-linux-2.60.x86.run
sudo chmod +x et-linux-2.60-update.x86.run
</code>
(Adjusting the version as necessary).

=== Downloading Maps ===

Verify that the directory for downloaded maps is accessible and writable by your user. If you do not do this, you will be unable to download and install the maps and other files you need to join games!
<pre>
sudo chown -R user:group ~/.etwolf/
</code>
Replace <code>user:group</code> with your own username and group (usually these are the same).

=== Sound Issues ===

There are a few methods you can try if you are having problems with sound:

==== Method 1 ====

You can try stopping the ESD sound server before running the game by running:
<pre>
killall esd; et; esd
</code>
If this works for you then you can create a script to run it. To do this create a new text file called <code>start-et</code> and add these lines to it:
<pre>
#!/bin/sh
killall esd
et
esd
exit 0
</code>
Now save the file and you will need to run these commands to make it executable and to put it somewhere in your user's $PATH variable (so that it can be executed by just typing it's name):
<pre>
chmod a+x start-et
sudo cp start-et /usr/local/games
</code>
If you don't want to put it in <code>/usr/local/games</code> you don't have to, but remember to specify whatever path you decide to give it whenever you execute it (some paths can use shortcuts, like <code>./start-et</code> for the current directory, <code>~/start-et</code> for your Home directory, etc.)

==== Method 2 ====

If you don't hear any sound and see the following error message in a terminal:
<pre>
/dev/dsp: Input/output error
Could not mmap /dev/dsp
</code>
You will need to do the following in addition to the steps above:
<pre>
sudo -i
echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
exit
</code>
This makes the script slightly more complicated, since parts of it will need to be run with superuser priviledges. To use the above commands in the <code>star-et</code> script described in ''Method 1'' you should make it look like this:
<pre>
#!/bin/bash
gksudo echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
gksudo echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
killall esd
et
esd
exit 0
</code>
Then use the commands to give it execute permissions and to put it in <code>/usr/local/games</code>.

==== Making Startup Scripts More Friendly ====

If either of the above scripts fix your problem then you can add them to the system's menu using the Alacarte Menu Editor in ''Applications->Accessories''. Go to a suitable location such as ''Games'' and make a new entry. It's ''Command'' should be <code>start-et</code> (as long as it is in /usr/local/games. If you put it somewhere else then put the whole path), set the icon, name, etc. to what you want then press OK. To avoid confusion you should also disable the old ''Enemy Territory'' entry which was added by the installer by unticking the box next to it in Alacarte.

== See Also ==

[http://www.ubuntuforums.org/showthread.php?t=5246&highlight=territory Forum Thread] A useful thread in the Ubuntu Forums which may be useful if you are still having problems.

----
CategoryDocumentation CategoryGames

[[category:UbuntuHelp]]