特殊:Badtitle/NS100:EnemyTerritory:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/EnemyTerritory}} | {{From|https://help.ubuntu.com/community/EnemyTerritory}} | ||
{{Languages| | {{Languages|UbuntuHelp:EnemyTerritory}} | ||
Parent: [[UbuntuHelp:Games]] | Parent: [[UbuntuHelp:Games]] | ||
第91行: | 第91行: | ||
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> | ||
killall esd | killall esd | ||
et | et | ||
第120行: | 第119行: | ||
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> | ||
gksudo echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss | gksudo echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss | ||
gksudo echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss | gksudo echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss | ||
第139行: | 第137行: | ||
---- | ---- | ||
CategoryDocumentation CategoryGames | [[category:CategoryDocumentation]] [[category:CategoryGames]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年5月14日 (一) 11:38的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/EnemyTerritory }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/af | • {{#if: UbuntuHelp:EnemyTerritory|Afrikaans| [[::EnemyTerritory/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ar | • {{#if: UbuntuHelp:EnemyTerritory|العربية| [[::EnemyTerritory/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/az | • {{#if: UbuntuHelp:EnemyTerritory|azərbaycanca| [[::EnemyTerritory/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/bcc | • {{#if: UbuntuHelp:EnemyTerritory|جهلسری بلوچی| [[::EnemyTerritory/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/bg | • {{#if: UbuntuHelp:EnemyTerritory|български| [[::EnemyTerritory/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/br | • {{#if: UbuntuHelp:EnemyTerritory|brezhoneg| [[::EnemyTerritory/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ca | • {{#if: UbuntuHelp:EnemyTerritory|català| [[::EnemyTerritory/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/cs | • {{#if: UbuntuHelp:EnemyTerritory|čeština| [[::EnemyTerritory/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/de | • {{#if: UbuntuHelp:EnemyTerritory|Deutsch| [[::EnemyTerritory/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/el | • {{#if: UbuntuHelp:EnemyTerritory|Ελληνικά| [[::EnemyTerritory/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/es | • {{#if: UbuntuHelp:EnemyTerritory|español| [[::EnemyTerritory/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/fa | • {{#if: UbuntuHelp:EnemyTerritory|فارسی| [[::EnemyTerritory/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/fi | • {{#if: UbuntuHelp:EnemyTerritory|suomi| [[::EnemyTerritory/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/fr | • {{#if: UbuntuHelp:EnemyTerritory|français| [[::EnemyTerritory/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/gu | • {{#if: UbuntuHelp:EnemyTerritory|ગુજરાતી| [[::EnemyTerritory/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/he | • {{#if: UbuntuHelp:EnemyTerritory|עברית| [[::EnemyTerritory/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/hu | • {{#if: UbuntuHelp:EnemyTerritory|magyar| [[::EnemyTerritory/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/id | • {{#if: UbuntuHelp:EnemyTerritory|Bahasa Indonesia| [[::EnemyTerritory/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/it | • {{#if: UbuntuHelp:EnemyTerritory|italiano| [[::EnemyTerritory/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ja | • {{#if: UbuntuHelp:EnemyTerritory|日本語| [[::EnemyTerritory/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ko | • {{#if: UbuntuHelp:EnemyTerritory|한국어| [[::EnemyTerritory/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ksh | • {{#if: UbuntuHelp:EnemyTerritory|Ripoarisch| [[::EnemyTerritory/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/mr | • {{#if: UbuntuHelp:EnemyTerritory|मराठी| [[::EnemyTerritory/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ms | • {{#if: UbuntuHelp:EnemyTerritory|Bahasa Melayu| [[::EnemyTerritory/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/nl | • {{#if: UbuntuHelp:EnemyTerritory|Nederlands| [[::EnemyTerritory/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/no | • {{#if: UbuntuHelp:EnemyTerritory|norsk| [[::EnemyTerritory/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/oc | • {{#if: UbuntuHelp:EnemyTerritory|occitan| [[::EnemyTerritory/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/pl | • {{#if: UbuntuHelp:EnemyTerritory|polski| [[::EnemyTerritory/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/pt | • {{#if: UbuntuHelp:EnemyTerritory|português| [[::EnemyTerritory/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ro | • {{#if: UbuntuHelp:EnemyTerritory|română| [[::EnemyTerritory/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/ru | • {{#if: UbuntuHelp:EnemyTerritory|русский| [[::EnemyTerritory/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/si | • {{#if: UbuntuHelp:EnemyTerritory|සිංහල| [[::EnemyTerritory/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/sq | • {{#if: UbuntuHelp:EnemyTerritory|shqip| [[::EnemyTerritory/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/sr | • {{#if: UbuntuHelp:EnemyTerritory|српски / srpski| [[::EnemyTerritory/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/sv | • {{#if: UbuntuHelp:EnemyTerritory|svenska| [[::EnemyTerritory/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/th | • {{#if: UbuntuHelp:EnemyTerritory|ไทย| [[::EnemyTerritory/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/tr | • {{#if: UbuntuHelp:EnemyTerritory|Türkçe| [[::EnemyTerritory/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/vi | • {{#if: UbuntuHelp:EnemyTerritory|Tiếng Việt| [[::EnemyTerritory/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/yue | • {{#if: UbuntuHelp:EnemyTerritory|粵語| [[::EnemyTerritory/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/zh | • {{#if: UbuntuHelp:EnemyTerritory|中文| [[::EnemyTerritory/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/zh-hans | • {{#if: UbuntuHelp:EnemyTerritory|中文(简体)| [[::EnemyTerritory/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EnemyTerritory | UbuntuHelp:EnemyTerritory | {{#if: | :}}EnemyTerritory}}/zh-hant | • {{#if: UbuntuHelp:EnemyTerritory|中文(繁體)| [[::EnemyTerritory/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:EnemyTerritory|:EnemyTerritory|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :EnemyTerritory/zh | | {{#ifexist: EnemyTerritory/zh | | {{#ifeq: {{#titleparts:EnemyTerritory|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EnemyTerritory|1|-1|}} | zh | | }}
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
This command might be out of date, so you can check for newer versions at 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 FileShack
or directly with the command:
wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60-update.x86.run
You may need to check on 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 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:
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.
Alternatively you can run it from a terminal with the command:
et
Troubleshooting
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
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:
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:
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:
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
.
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.
See Also
Forum Thread A useful thread in the Ubuntu Forums which may be useful if you are still having problems.