特殊:Badtitle/NS100:EnemyTerritory:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
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 ...
 
Wikibot留言 | 贡献
无编辑摘要
 
(未显示2个用户的11个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/EnemyTerritory}}
{{From|https://help.ubuntu.com/community/EnemyTerritory}}
{{Languages|php5}}
{{Languages|UbuntuHelp:EnemyTerritory}}
Parent: [[UbuntuHelp:Games]]
Parent: [[UbuntuHelp:Games|Games]]
 
 
 
== Requirements ==
== 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 [[UbuntuHelp:BinaryDriverHowto|BinaryDriverHowto]]
* 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 if you want to install with a GUI. You can install it by running this command in a terminal: <code><nowiki>sudo apt-get install libgtk1.2</nowiki></code>
* libgtk1.2 must also be installed. You can install it by running this command in a terminal: <code><nowiki>sudo apt-get install libgtk1.2</nowiki></code>
 
== Download ==
== Download ==
=== Full game ===
=== Full game ===
 
Get the torrent from [http://zerowing.idsoftware.com:6969/torrents/243223ae5a39909db07a338980f00dd868251f05.torrent idsoftware]
Download the game either from [http://www.fileshack.com/browse.x?cat=1773 FileShack]
You can also get the game from [http://www.fileshack.com/browse.x?cat=1773 FileShack]
 
or directly with the command:  
or directly with the command:  
<pre><nowiki>
<pre><nowiki>
wget -c http://38.118.213.164/buajzponan+/pub2/Return_to_Castle_Wolfenstein_Enemy_Territory/Official_Demos/Linux/et-linux-2.55.x86.run
wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60.x86.run
</nowiki></code>
</nowiki></pre>
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 ===
=== Patch ===
If you have already installed an older Enemy Territory version then you can download a patch to update it.
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]
Get the torrent (patch) from here [http://zerowing.idsoftware.com:6969/torrents/1f9d3519bb1a05a740918ca36820e83e3ddbcd3c.torrent idsoftware]
 
You can also get the patch from [http://www.fileshack.com/browse.x?cat=1774 FileShack]
or directly with the command:
or directly with the command:
<pre><nowiki>
<pre><nowiki>
wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60-update.x86.run
wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60-update.x86.run
</nowiki></code>
</nowiki></pre>
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.
=== New Versions ===
The full list of torrents for Linux, Mac, and Windows as well as patches are available here.  New version should also be posted here.
[http://zerowing.idsoftware.com:6969/]
You can also check [http://www.fileshack.com/browse.x?cat=1774 FileShack] to see if a newer version is available than this.
== Installation ==
== Installation ==
=== Full Game ===
=== Full Game ===
The file you have downloaded is an installer, which can be run from a terminal with the command (adjusting versions where necessary):
The file you have downloaded is an installer, which can be run from a terminal with the command (adjusting versions where necessary):
<pre><nowiki>
<pre><nowiki>
sudo sh ./et-linux-2.60.x86.run
sudo sh ./et-linux-2.60.x86.run
</nowiki></code>
</nowiki></pre>
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.
and a GUI should appear (if you have libgtk1.2) 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.
 
NOTE: To avoid permissions issues DO NOT RUN the game from the installer.  (Once installed do not click Start ET, exit the installer)
=== Updating Old Versions If Necessary ===
=== 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:
To apply the patch you have downloaded, you should run the file from where you have downloaded it with the command:
<pre><nowiki>
<pre><nowiki>
sudo sh ./et-linux-2.60-update.x86.run
sudo sh ./et-linux-2.60-update.x86.run
</nowiki></code>
</nowiki></pre>
(Adjusting the version where necessary). If it does not run then you may need to check the ''Troubleshooting'' section below.
(Adjusting the version where necessary). If it does not run then you may need to check the ''Troubleshooting'' section below.
== Running The Game ==
== 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'' or ''System->Preferences->Main Menu''.
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:  
Alternatively you can run it from a terminal with the command:  
<pre><nowiki>
<pre><nowiki>
et
et
</nowiki></code>
</nowiki></pre>
 
== Troubleshooting ==
== Troubleshooting ==
 
=== Punkbuster update ===
If you cannot update punkbuster and you get kicked out every time, try the graphical user interface (GUI) application:
http://www.evenbalance.com/index.php?page=pbsetup.php
You have to extract the .zip file, run pbsetup.run, "Add a Game" > Enemy territory. Then hit "Check for updates".
=== Permission Errors ===
=== Permission Errors ===
Downloaded files do not have permission to execute by default, but you can change this with these commands:
Downloaded files do not have permission to execute by default, but you can change this with these commands:
<pre><nowiki>
<pre><nowiki>
sudo chmod +x et-linux-2.60.x86.run
sudo chmod +x et-linux-2.60.x86.run
sudo chmod +x et-linux-2.60-update.x86.run
sudo chmod +x et-linux-2.60-update.x86.run
</nowiki></code>
</nowiki></pre>
(Adjusting the version as necessary).
(Adjusting the version as necessary).
=== Downloading Maps ===
=== 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!
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><nowiki>
<pre><nowiki>
sudo chown -R user:group ~/.etwolf/
sudo chown -R user:group ~/.etwolf/
</nowiki></code>
</nowiki></pre>
Replace <code><nowiki>user:group</nowiki></code> with your own username and group (usually these are the same).
Replace <code><nowiki>user:group</nowiki></code> with your own username and group (usually these are the same).
=== Sound Issues ===
=== Sound Issues ===
 
If you're not hearing any sound from Enemy Territory, then the ESD sound server may be having problems. You may need to install extra files for this to work. Install the esound package like so:
There are a few methods you can try if you are having problems with sound:
<pre><nowiki>
 
sudo apt-get install esound
</nowiki></pre>
If this does not work there are a few methods you can try:
==== Method 1 ====
==== Method 1 ====
You can try stopping the ESD sound server before running the game by running:
You can try stopping the ESD sound server before running the game by running:
<pre><nowiki>
<pre><nowiki>
killall esd; et; esd
killall esd; et; esd
</nowiki></code>
</nowiki></pre>
If this works for you then you can create a script to run it. To do this create a new text file called <code><nowiki>start-et</nowiki></code> and add these lines to it:
If this works for you then you can create a script to run it. To do this create a new text file called <code><nowiki>start-et</nowiki></code> and add these lines to it:
<pre><nowiki>
<pre><nowiki>
第96行: 第81行:
esd
esd
exit 0
exit 0
</nowiki></code>
</nowiki></pre>
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):
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><nowiki>
<pre><nowiki>
chmod a+x start-et
chmod a+x start-et
sudo cp start-et /usr/local/games
sudo cp start-et /usr/local/games
</nowiki></code>
</nowiki></pre>
If you don't want to put it in <code><nowiki>/usr/local/games</nowiki></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><nowiki>./start-et</nowiki></code> for the current directory, <code><nowiki>~/start-et</nowiki></code> for your Home directory, etc.)
If you don't want to put it in <code><nowiki>/usr/local/games</nowiki></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><nowiki>./start-et</nowiki></code> for the current directory, <code><nowiki>~/start-et</nowiki></code> for your Home directory, etc.)
==== Method 2 ====
==== Method 2 ====
If you don't hear any sound and see the following error message in a terminal:
If you don't hear any sound and see the following error message in a terminal:
<pre><nowiki>
<pre><nowiki>
/dev/dsp: Input/output error
/dev/dsp: Input/output error
Could not mmap /dev/dsp
Could not mmap /dev/dsp
</nowiki></code>
</nowiki></pre>
You will need to do the following in addition to the steps above:
You will need to do the following in addition to the steps above:
<pre><nowiki>
<pre><nowiki>
第117行: 第100行:
echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
exit
exit
</nowiki></code>
</nowiki></pre>
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><nowiki>star-et</nowiki></code> script described in ''Method 1'' you should make it look like this:
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><nowiki>star-et</nowiki></code> script described in ''Method 1'' you should make it look like this:
<pre><nowiki>
<pre><nowiki>
第127行: 第110行:
esd
esd
exit 0
exit 0
</nowiki></code>
</nowiki></pre>
Then use the commands to give it execute permissions and to put it in <code><nowiki>/usr/local/games</nowiki></code>.
Then use the commands to give it execute permissions and to put it in <code><nowiki>/usr/local/games</nowiki></code>.
 
==== Method 3 ====
If "echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss" fixed it when run as root, this is how to add it at startup.
Create File
<pre><nowiki>
sudo nano /etc/init.d/makeETwork.sh
</nowiki></pre>
Add This to File
<pre><nowiki>
#!/bin/sh
echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
</nowiki></pre>
Exit nano and make it executable
<pre><nowiki>
sudo chmod uog+x makeETwork.sh
</nowiki></pre>
Make it run at bootup
<pre><nowiki>
sudo update-rc.d makeETwork.sh defaults
</nowiki></pre>
Reboot and try to play
=== Method 4 ===
The thread http://ubuntuforums.org/showthread.php?t=362231 has a script that uses the libsdl1.2debian-alsa package to launch ET with sound.
To get install the package
<pre><nowiki>
sudo apt-get install libsdl1.2debian-alsa
</nowiki></pre>
To get and make the script installable
<pre><nowiki>
wget -q -O - http://nullkey.ath.cx/~stuff/et-sdl-sound/et-sdl-sound.gz | gzip -d > et-sdl-sound && chmod a+x et-sdl-sound
</nowiki></pre>
==== Making Startup Scripts More Friendly ====
==== 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><nowiki>start-et</nowiki></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.
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><nowiki>start-et</nowiki></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.
 
== Uninstalling ==
The installer downloaded above offers no uninstall method, so to uninstall the game, it must be done manually through the command line.
Below will remove the game, the shortcut to the game and your personal preferences:
<pre><nowiki>
sudo rm -rf /usr/local/games/enemy-territory/ && sudo rm -f /usr/local/bin/et && rm -rf $HOME/.etwolf
</nowiki></pre>
== See Also ==
== 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.
[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:CategoryGames]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2009年11月17日 (二) 19:03的最新版本

{{#ifexist: :EnemyTerritory/zh | | {{#ifexist: EnemyTerritory/zh | | {{#ifeq: {{#titleparts:EnemyTerritory|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EnemyTerritory|1|-1|}} | zh | | }}

Parent: 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 if you want to install with a GUI. You can install it by running this command in a terminal: sudo apt-get install libgtk1.2

Download

Full game

Get the torrent from idsoftware You can also get the game from FileShack or directly with the command:

wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60.x86.run

Patch

If you have already installed an older Enemy Territory version then you can download a patch to update it. Get the torrent (patch) from here idsoftware You can also get the patch from FileShack or directly with the command:

wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60-update.x86.run

New Versions

The full list of torrents for Linux, Mac, and Windows as well as patches are available here. New version should also be posted here. [1] You can also check 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):

sudo sh ./et-linux-2.60.x86.run

and a GUI should appear (if you have libgtk1.2) 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. NOTE: To avoid permissions issues DO NOT RUN the game from the installer. (Once installed do not click Start ET, exit the installer)

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:

sudo sh ./et-linux-2.60-update.x86.run

(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 or System->Preferences->Main Menu. Alternatively you can run it from a terminal with the command:

et

Troubleshooting

Punkbuster update

If you cannot update punkbuster and you get kicked out every time, try the graphical user interface (GUI) application: http://www.evenbalance.com/index.php?page=pbsetup.php You have to extract the .zip file, run pbsetup.run, "Add a Game" > Enemy territory. Then hit "Check for updates".

Permission Errors

Downloaded files do not have permission to execute by default, but you can change this with these commands:

sudo chmod +x et-linux-2.60.x86.run
sudo chmod +x et-linux-2.60-update.x86.run

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

sudo chown -R user:group ~/.etwolf/

Replace user:group with your own username and group (usually these are the same).

Sound Issues

If you're not hearing any sound from Enemy Territory, then the ESD sound server may be having problems. You may need to install extra files for this to work. Install the esound package like so:

sudo apt-get install esound

If this does not work there are a few methods you can try:

Method 1

You can try stopping the ESD sound server before running the game by running:

killall esd; et; esd

If this works for you then you can create a script to run it. To do this create a new text file called start-et and add these lines to it:

#!/bin/sh
killall esd
et
esd
exit 0

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

chmod a+x start-et
sudo cp start-et /usr/local/games

If you don't want to put it in /usr/local/games 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 ./start-et for the current directory, ~/start-et for your Home directory, etc.)

Method 2

If you don't hear any sound and see the following error message in a terminal:

/dev/dsp: Input/output error
Could not mmap /dev/dsp

You will need to do the following in addition to the steps above:

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

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 star-et script described in Method 1 you should make it look like this:

#!/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

Then use the commands to give it execute permissions and to put it in /usr/local/games.

Method 3

If "echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss" fixed it when run as root, this is how to add it at startup. Create File

sudo nano /etc/init.d/makeETwork.sh

Add This to File

#!/bin/sh
echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss

Exit nano and make it executable

sudo chmod uog+x makeETwork.sh

Make it run at bootup

sudo update-rc.d makeETwork.sh defaults

Reboot and try to play

Method 4

The thread http://ubuntuforums.org/showthread.php?t=362231 has a script that uses the libsdl1.2debian-alsa package to launch ET with sound. To get install the package

sudo apt-get install libsdl1.2debian-alsa

To get and make the script installable

wget -q -O - http://nullkey.ath.cx/~stuff/et-sdl-sound/et-sdl-sound.gz | gzip -d > et-sdl-sound && chmod a+x et-sdl-sound

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 start-et (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.

Uninstalling

The installer downloaded above offers no uninstall method, so to uninstall the game, it must be done manually through the command line. Below will remove the game, the shortcut to the game and your personal preferences:

sudo rm -rf /usr/local/games/enemy-territory/ && sudo rm -f /usr/local/bin/et && rm -rf $HOME/.etwolf

See Also

Forum Thread A useful thread in the Ubuntu Forums which may be useful if you are still having problems.