Showing posts with label Enemy Territory. Show all posts
Showing posts with label Enemy Territory. Show all posts

Sunday, May 20, 2012

HowTo: Enemy Territory on x86_64 CentOS 6.2 / SL 6.2

Update 21/05/2012:
I'm getting Punkbuster kicked out of the game by random game integrity violations. I'm trying to identify a solution, until then I figure what's wrong I can't recommend following this how-to.
If you're reading this and manage to fix the problem, please let me know in the comments.
Update 04/06/2012:
Installed ET on Ubuntu 12.04 x86_64 both the manual way and using the get-deb package and the result is the same: random PB kick on servers running Punkbuster.

Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.

In this post I'll detail the steps required to install and update Enemy Territory on 64-bit CentOS, namely:
1) Download the necessary files
2) Install i686 libraries
3) Install and update Enemy Territory
4) Install updated Punkbuster files
5) Generate an etkey
6) Fix sound problem
7) Setup widescreen resolution
8) Bonus section: troubleshooting

It should be noted that the steps were performed on CentOS 6.2 x86_64 thus should translate to RHEL and Scientific Linux..

1) Download Enemy Territory 2.60 and 2.60b update

Download et-linux-2.60.x86.run, et-2.60b.zip update, updated Punkbuster and the et-sdl-sound.gz sound fix: 
  1. $ wget -c http://ftp.freenet.de/pub/4players/hosted/et/official/et-linux-2.60.x86.run
  2. $ wget -c ftp://ftp.idsoftware.com/idstuff/et/ET-2.60b.zip
  3. $ wget -c http://etkey.org/et_linux.zip
  4. $ wget -c http://nullkey.kapsi.fi/~stuff/et-sdl-sound/et-sdl-sound.gz

2) Install i686 libraries

Enemy Territory is a 32-bit application as such for a 64-bit CentOS a few i686 libraries are needed:
  1. # yum install glibc.i686 libX11.i686 libXext.i686 libstdc++.i686 pulseaudio-libs.i686

Enemy Territory requires 3D acceleration which commonly implies NVIDIA or AMD/ATI graphic cards and associated proprietary drivers.

User of NVIDIA cards are required to install nvidia-x11-drv-32bit which provides the compatibility 32-bit files for the 64-bit proprietary NVIDIA driver:
  1. # yum install nvidia-x11-drv-32bit

I'd assume that users of AMD/ATI graphics card need to install fglrx-x11-drv-32bit which provides similar files for the proprietary AMD driver, however I don't have an AMD/ATI card to verify.

3) Install and update Enemy Territory

Change to root, attribute execute permissions to the installer, install Enemy Territory 2.60, install the 2.60b update, create a profile and check the game's version:
  1. $ su
  2. # chmod +x et-linux-2.60.x86.run
  3. #./et-linux-2.60.x86.run

Press OK in the popup. Agree with the License Agreement by pressing ENTER at the License Agreement prompt and choosing YES on "Do you agree with the license?" popup that follows. Choose NO at the "Would you like to read the CHANGES file?" popup. You can always read the CHANGES file latter on if you want. Choose the installation path and press OK in the Symlink Path popup. Install both Enemy Territory and Punkbuster. Choose to install the startup menu entries. After this the game installs. Don't choose to start the game immediately as we haven't finished installing everything.

Install the 2.60b update:
  1. # unzip et-2.60b.zip
  2. # cp Enemy\ Territory\ 2.60b/linux/* /usr/local/games/enemy-territory/
  3. # exit

Now start the game, create a player profile identifying profile name, connection speed and clicking on Enable Punkbuster; exit the game. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.

Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
 ]\version  
 "version" is:"ET 2.60b linux-i386 May 8 2006" default:"ET 2.60b linux-i386 May 8 2006"  

4) Install updated Punkbuster files

Remove old Punkbuster files, extract the last Punkbuster update and place it in the created profile:
  1. $ rm -rf ~/.etwolf/etmain/pb
  2. $ unzip et_linux.zip -d pb
  3. $ cp -R pb ~./etwolf/etmain/

5) Generate an etkey

Point to http://etkey.org/pages/etkey-home.php, press the Get an ETKEY button, download the file and store it under ~./etwolf/etmain/.

6) Fix sound problem

The most dreadful any Linux Enemy Territory player can witness:
 ------- sound initialization -------  
 /dev/dsp: No such file or directory  
 Could not open /dev/dsp  
 ------------------------------------  
Luckily we can use the SDL backend which Enemy Territory will use as audio device replacing /dev/dsp and OSS.

Install SDL, extract the et-sdl-sound script, make it executable and accessible to all and edit the et launcher to have Enemy Territory use SDL instead of OSS:
  1. # yum install SDL.i686
  2. # gzip -d et-sdl-sound.gz
  3. # chmod a+x et-sdl-sound
  4. # chown root:root et-sdl-sound
  5. # mv et-sdl-sound /usr/local/games/enemy-territory/
  6. # vim /usr/local/games/enemy-territory/et

 #!/bin/sh  
 # Needed to make symlinks/shortcuts work.  
 # the binaries must run with correct working directory  
 cd "/usr/local/games/enemy-territory/"  
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.  
 ./et-sdl-sound "$@"  

The et-sdl-sound script needs to be edit so that PulseAudio is used has the SDL audio driver.
  1. # vim /
    usr/local/games/enemy-territory/et-sdl-sound
 Replace  
 SDL_AUDIODRIVER="alsa"  
 with  
 SDL_AUDIODRIVER="pulse"

7) Setup widescreen resolution

If you have a widescreen monitor follow the instructions on my previous blog post HowTo: Widescreen resolutions on Enemy Territory.

And we're done installing Enemy Territory!

Lately I've been playing at [fp].:Demolition_Centre as tangram"FreeBSD~ or tangram"GNU/Linux~. See you on the battlefield :D

8) Bonus section: troubleshooting

Error:
 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory  
  1. # yum install glibc.i686

Error:
 ./et.x86: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory  
  1. # yum install libX11.i686

Error:
 ./et.x86: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory  
  1. # yum install libXext.i686

Error:
 ----- Client Initialization Complete -----  
 ----- R_Init -----  
 ...loading libGL.so.1: QGL_Init: dlopen libGL.so.1 failed: libGL.so.1: cannot open shared object file: No such file or directory  
 failed  
 ----- CL_Shutdown -----  
 RE_Shutdown( 1 )  
 -----------------------  
 ----- CL_Shutdown -----  
 -----------------------  
 Sys_Error: GLimp_Init() - could not load OpenGL subsystem  
  1. # yum install nvidia-x11-drv-32bit

or
  1. # yum install fglrx-x11-drv-32bit

Tuesday, April 24, 2012

HowTo: Enemy Territory on CentOS 6.2 / SL 6.2

Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.

In this post I'll detail the steps required to install and update Enemy Territory, namely:
1) Download the necessary files
2) Install and update Enemy Territory
3) Install updated Punkbuster files
4) Generate an etkey
5) Fix sound problem
6) Setup widescreen resolution

These steps can be pretty much be reproduced in any Linux distribution, though some such as Gentoo and Arch Linux have Enemy Territory packages in their package management systems. It should be noted that the steps were performed on CentOS 6.2 but should translate to future CentOS 6.x releases.

1) Download Enemy Territory 2.60 and 2.60b update

Download et-linux-2.60.x86.run, et-2.60b.zip update, updated Punkbuster and the et-sdl-sound.gz sound fix:

  1. $ wget -c http://ftp.freenet.de/pub/4players/hosted/et/official/et-linux-2.60.x86.run
  2. $ wget -c http://darkstar.ist.utl.pt/games/et-2.60b.zip
  3. $ wget -c http://etkey.org/et_linux.zip
  4. $ wget -c http://nullkey.kapsi.fi/~stuff/et-sdl-sound/et-sdl-sound.gz

 

2) Install and update Enemy Territory

Change to root, attribute execute permissions to the installer, install Enemy Territory 2.60, install the 2.60b update, create a profile and check the game's version:

  1. $ su
  2. # chmod +x et-linux-2.60.x86.run
  3. #./et-linux-2.60.x86.run

Press OK in the popup. Agree with the License Agreement by pressing ENTER at the License Agreement prompt and choosing YES on "Do you agree with the license?" popup that follows. Choose NO at the "Would you like to read the CHANGES file?" popup. You can always read the CHANGES file latter on if you want. Choose the installation path and press OK in the Symlink Path popup. Install both Enemy Territory and Punkbuster. Choose to install the startup menu entries. After this the game installs. Don't choose to start the game immediately as we haven't finished installing everything.

Install the 2.60b update:

  1. # unzip et-2.60b.zip
  2. # cp Enemy\ Territory\ 2.60b/linux/* /usr/local/games/enemy-territory/
  3. # exit

Now start the game, create a player profile identifying profile name, connection speed and clicking on Enable Punkbuster; exit the game. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.

Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
 ]\version  
 "version" is:"ET 2.60b linux-i386 May 8 2006" default:"ET 2.60b linux-i386 May 8 2006"  

3) Install updated Punkbuster files

Remove old Punkbuster files, extract the last Punkbuster update and place it in the created profile:

  1. $ rm -rf ~/.etwolf/etmain/pb
  2. $ unzip et_linux.zip -d pb
  3. $ cp -R pb ~./etwolf/etmain/

4) Generate an etkey

Point to http://etkey.org/pages/etkey-home.php, press the Get an ETKEY button, download the file and store it under ~./etwolf/etmain/.

5) Fix sound problem

The most dreadful any Linux Enemy Territory player can witness:
 ------- sound initialization -------  
 /dev/dsp: No such file or directory  
 Could not open /dev/dsp  
 ------------------------------------  
Luckily we can use the SDL backend which Enemy Territory will use as audio device replacing /dev/dsp and OSS.

Install SDL, extract the et-sdl-sound script, make it executable and accessible to all and edit the et launcher to have Enemy Territory use SDL instead of OSS:

  1. # yum install SDL -y
  2. # gzip -d et-sdl-sound.gz
  3. # chmod a+x et-sdl-sound
  4. # chown root:root et-sdl-sound
  5. # mv et-sdl-sound /usr/local/games/enemy-territory/
  6. # vim /usr/local/games/enemy-territory/et

 #!/bin/sh  
 # Needed to make symlinks/shortcuts work.  
 # the binaries must run with correct working directory  
 cd "/usr/local/games/enemy-territory/"  
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.  
 ./et-sdl-sound "$@"  

6) Setup widescreen resolution

If you have a widescreen monitor follow the instructions on my previous blog post HowTo: Widescreen resolutions on Enemy Territory.

And we're done installing Enemy Territory!

Lately I've been playing at [fp].:Demolition_Centre as tangram"FreeBSD~ or tangram"GNU/Linux~. See you on the battlefield :D

Friday, April 13, 2012

HowTo: Get etkey and Punbuster files on Enemy Territory

As of October 2011 EvenBalance ended it's Punkbuster support for Wolfenstein: Enemy Territory. As such, fresh installs of Enemy Territory are without the required etkey file and new Punkbuster GUID aren't generated.

What does this mean to the end user?

On a fresh install you'll need:
  1. etkey
  2. updated Punkbuster files
To circumvent these issues the community came up with the following solutions:
  1. point to http://etkey.org/pages/etkey-home.php, press the Get an ETKEY button, download the file and place it in ~/.etwolf/etmain/
  2. download the last up to date Punkbuster files from here, extract the files and placed them in a directory named pb in ~/.etwolf/
I'll update or create HowTo on how to install and setup Wolfenstein: Enemy Territory in a near future.

Thursday, April 12, 2012

Tip: Enemy Territory Master Server is back online!

Wolfenstein: Enemy Territory is once again online as announced at the Splash Damage Forum. The post can be found here.

Paul's interim master server is still working and most likely will continue to do so. So if you've used my tip to use the interim master server you are advised to remove the interim server address from the /etc/hosts file.

Happy fragging!

Sunday, March 18, 2012

Tip: Fix Enemy Territory empty server list

Ever since my desktop's northbridge fan died I stopped playing Enemy Territory. Luckily I've finally replaced the fan so fired ET up and noticed that no server was listed.

It seems that as of late the Enemy Territory's masterlist is down. As a workaround edit the hosts file and add a new masterlist provided by etmaster.net.

In FreeBSD and Linux distributions, run the following command:
# echo "91.220.53.73 etmaster.idsoftware.com" >> /etc/hosts

Fire up ET as a new list of servers will be available.

Major thanks Paul at the Splash Damage forums for providing a solution ;)

Monday, May 4, 2009

HowTo: Enemy Territory on FreeBSD

Update 26/03/2012:
With the introduction of Fedora 10 Linux compatibility environment, step 3 isn't required.
Update 10/05/2012:
Ever since EvenBalance stopped supporting Enemy Territory step 5 should be ignored. Please refer to HowTo: Get etkey and Punbuster files on Enemy Territory. If time permits I'll create a new post on how to install Enemy Territory for FreeBSD 9, until then ignore steps 3 and 5.

Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.

The game was originally going to be a retail expansion pack for Return To Castle Wolfenstein but the project was cancelled, Activision however decided to release it during 2003 for free.

In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on FreeBSD.

1) Install and update Enemy Territory

Become the superuser:
% su
And install the required port:
# cd /usr/ports/games/linux-enemyterritory
# make install clean
This will pull Enemy Territory's installer from the web. If any port options pop up stick with the defaults and choose OK to continue.

If you don't have the Linux Compatibility Environment proceed to step 2, otherwise jump to step 3.

2) Enable the Linux Compatibility Environment

Enemy Territory needs both FreeBSD's Linux kernel module and near-minimal installation of a Linux distribution. By default, FreeBSD 7.x uses Fedora Core Linux 4.

The linux-enemyterritory port pulls in linux_base-fc4 so we just need to load the Linux kernel module at boot time. To do so run:
# echo 'linux_enable="YES"' >> /etc/rc.conf
3) Install Linux X.Org libraries

Wolfentein: Enemy Territory requires Linux X.Org libraries to load properly. To install them run the following command:
# cd /usr/ports/x11/linux-xorg-libs
# make install clean
4) Install the ET Pro mod

Next let's install Enemy Territory's best mod: ET Pro.
# cd /usr/ports/games/linux-enemyterritory-etpro
# make install clean
Now ET Pro will show under the Mods options in the games' main menu.

5) Update PunkBuster

Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.

Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.

Change directory to where you've downloaded the pbsetup.run and:
# su
# chmod +x pbsetup.run
# exit
% cp pbsetup.run ~/.etwolf/pb
% ./pbsetup.run
PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option", choose Enemy Territory and its installation path.

On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.

6) Install XQF

One can use the in game browser to search for server. However I recommend installing and using the XQF Game Server Browser as it a lot more flexible and complete:
# cd /usr/ports/games/xqf
# make install clean
XQF should identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.

I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)

7) Fix sound issues

ET uses Linux's OSS sound infrastructure so you might come across issues. Here's how to enable sound on Enemy Territory under FreeBSD 7.x:
% su
# sysctl hw.snd.compat_linux_mmap=1
# echo "hw.snd.compat_linux_mmap=1" >> /etc/sysctl.conf
# exit
With the above commands sound will be enabled immediately and also at boot time.

8) Setup widescreen resolution

If you have a widescreen monitor follow the instructions on my previous blog post HowTo: Widescreen resolutions on Enemy Territory.

And we're done!

See you on the battlefield I'll be the one with the tangram"FreeBSD~ name :D

Friday, April 24, 2009

HowTo: Enemy Territory on Gentoo Linux

Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.

In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Gentoo Linux.

1) Install and update Enemy Territory

Become the superuser:
$ su
And emerge the needed package:
# emerge enemy-territory
The game's License Agreement will appear to which you must press the q key so that the following prompt appears:
Do you accept the terms of this license (RTCW-ETEULA)? [yes/no]
Type yes.

Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.

Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
]\version
"version" is:"ET 2.60 linux-i386 Mar 10 2005" default:"ET 2.60 linux-i386 Mar 10 2005"
2) Install the ET Pro mod

To do so run:
# emerge enemy-territory-etpro
Now ET Pro will show under the Mods options in the games' main menu.

3) Update PunkBuster

Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.

Change directory to where you've downloaded the pbsetup.run and:
# su
# chmod +x pbsetup.run
# exit
$ cp pbsetup.run ~/.etwolf/pb
$ ./pbsetup.run
PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option", choose Enemy Territory and its installation path (/opt/enemy-territory).

On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.

4) Install XQF

To browse and filter server I recommend installing and using the XQF Game Server Browser:
$ su
# emerge xqf
XQF will identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.

I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)

5) Fix sound issues

ET uses Linux's OSS sound infrastructure so you might come across issues. If so please consult the Gentoo Linux Alsa Guide.

And we're done! See you on the battlefield :D

Wednesday, April 22, 2009

HowTo: Enemy Territory on Debian Linux

Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.

In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Debian GNU/Linux. As a bonus I'll also describe how to workaround sound problems with Enemy Territory on Debian 5.

These steps can be pretty much be reproduced in any Linux distribution. It should be noted that the steps were performed on Debian Lenny but should translate to newer releases.

1) Install and update Enemy Territory

Let's start by fetching the games' installer, make the downloaded file executable and run it to install the game:
$ wget -c http://ftp.freenet.de/pub/4players/hosted/et/official/et-linux-2.60.x86.run
$ su
# chmod +x et-linux-2.60.x86.run
#./et-linux-2.60.x86.run
Press OK in the popup.

Agree with the License Agreement by pressing ENTER at the License Agreement prompt and choosing YES on "Do you agree with the license?" popup that follows.

Choose NO at the "Would you like to read the CHANGES file?" popup. You can allways read the CHANGES file latter on if you want.

Choose the installation path. And press in the Symlink path popup press ENTER.

Install both Enemy Territory and Punkbuster by pressing the TAB key to move to the OK option.

The License Agreement for Punkbuster shows up. Press ENTER twice.

Choose to install the startup menu entries.

After this the game installs. Don't choose to start the game imediatlely as we haven't finished installing everything.

Now download its update:
$ wget -c http://darkstar.ist.utl.pt/games/et-2.60b.zip
Unzip the file:
$ unzip et-2.60b.zip
Change directory of the unziped directory and copy the update files to games' directory:
$ cd Enemy\ Territory\ 2.60b/linux
$ su
# cp * /usr/local/games/enemy-territory/
Logout from the root account:
# exit
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.

Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
]\version

"version" is:"ET 2.60b linux-i386 May 8 2006" default:"ET 2.60b linux-i386 May 8 2006"
2) Install the ET Pro mod

Next let's install Enemy Territory's best mod: ET Pro.
$ wget -c http://bani.anime.net/etpro/etpro-3_2_6.zip
$ unzip etpro-3_2_6.zip
$ et
$ cp -R etpro ~/.etwolf
Now ET Pro will show under the Mods options in the games' main menu.

Note: If have other users using ET I suggest copying etpro to /usr/local/games/enemy-territory instead thus making the mod available to every user.

3) Update PunkBuster

Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.

Change directory to where you've downloaded the pbsetup.run and:
# su
# chmod +x pbsetup.run
# exit
$ cp pbsetup.run ~/.etwolf/pb
$ ./pbsetup.run
PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option" and choose Enemy Territory. Punkbuster will point the installation path to your username's .etwolf directory.

Note: If you want all your users to have Punkbuster updated run the above steps as root and point to the game's install directory which should be /usr/local/games/enemy-territory.

On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.

4) Install XQF

To browse and filter server I recommend installing and using the XQF Game Server Browser:
$ su
# aptitude install xqf
XQF will identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.

I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)

5) Fix sound issues

ET uses Linux's OSS sound infrastructure. If you don't have sound here's how to enable the needed kernel module at boot time:
$ su
# echo "snd_pcm_oss" >> /etc/modules
# modprobe snd_pcm_oss
And we're done! See you on the battlefield :D

Bonus section: etpro launch script

If you play etpro if can repeat the following steps to launch etpro directly (I'm assuming your shell is Bash):
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
$ mkdir ~/bin
$ touch ~/bin/et-pro
$ chmod +x ~/bin/et-pro
$ vim ~/bin/et-pro
Add the following lines:
#!/bin/sh
cd "/usr/local/games/enemy-territory/"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
exec ./et.x86 "$@" +set fs_game etpro
Now you can launch etpro simply by:
$ et-pro

Friday, December 5, 2008

Tip: Enable sound on Enemy Territory under FreeBSD

Enemy Territory is available in FreeBSD's ports system under /usr/ports/games/linux-enemyterritory. The port's Makefile makes no mention that if you install the game and run it you'll be playing without sound.
Here's a quick tip on how to enable sound on Enemy Territory under FreeBSD 7.0:
  1. % su
  2. # sysctl hw.snd.compat_linux_mmap=1
  3. # echo "hw.snd.compat_linux_mmap=1" >> /etc/sysctl.conf
  4. # exit
Step 2 enables sound immediately and with step 3 sound will be enabled at boot time.
And that's it. Now hurry and go play the world great first-person shoot ever.
d^.^b

Wednesday, November 19, 2008

HowTo: Logitech MX500 under FreeBSD

I have both a Logitech MX500 and a MX518, however I've loaned the MX518 to my brother. So I took my previous post on MX518 and mirrored it to MX500.

Being an Enemy Territory (ET) old timer I need to make full use of the MX500 mouse under FreeBSD, which means having the Back, Forward and the other weird button below the wheel working as available binds while playing ET.

The bellow xorg.conf settings were tested under FreeBSD 7.0 and X.Org X Server 1.4.2.
  • % su
  • # vim /etc/X11/xorg.conf

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7 8 9 10 4 5"
Option "Emulate3Buttons" "false"
EndSection
With these settings you're free to bind MOUSE4, MOUSE5 and KP_EQUALS to Enemy Territory.

As a bonus, you can now use the Back and Forward buttons under Opera.

Friday, August 29, 2008

HowTo: Widescreen resolutions on Enemy Territory

One of the most often technical questions posed on ET servers are "How do I get ET to use a widescreen resolution?" "I have an new monitor but ET sucks on it. How do I fix it?".

ET, Quake 3, SOF2, RTCW, RTCW-demo and Tremulous use the same game engine, more precisely Quake 3's engine. So the bellow instructions also apply to those games.

Assuming you using a 19" monitor with a native resolution of 1440x900, add the following cvars to your autoexec.cfg:
set r_mode "-1"
set r_customwidth "1440"
set r_customheight "900"
If your want a different resolution change the r_customheight and r_customwidht accordingly, e.g. on a 22" monitor with a native resolution of 1680x1050 you'd get r_customwidth "1680" and r_customheight "1050".

In alternative type the above commands in ET's console. Pull the console by pressing \ on an European keyboard or press ~ if you are using an US keyboard (or run the game under Linux or BSD).

When typing on the console make sure that there is a \ before typing or else when you hit enter it will come out as global chat instead of a command. Also when using the console there is no need for set or the ". A simple vid_restart command will get you up and running with the new resolution.

In a future post I'll explain the purpose of autoexec.cfg which is one of the cornerstones of setting up a proper config and scripting.

Happy frags. :D

Saturday, August 16, 2008

HowTo: Logitech MX518 under FreeBSD

I have both a Logitech MX500 and a MX518. Being an Enemy Territory old timer I need to make full use of the MX518 mouse under FreeBSD, which means having the Back, Forward and the other weird button below the wheel working.

The bellow xorg.conf settings were tested under FreeBSD 7.0 and X.Org X Server 1.4.2.
  • % su
  • # vim /etc/X11/xorg.conf
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "Buttons" "10"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7 8 9 10 4 5"
Option "Emulate3Buttons" "false"
EndSection
With these settings you're free to bind MOUSE4, MOUSE5 and KP_EQUALS to Enemy Territory.

The sensitivity buttons work as their intended purpose: change the sensitivity on-the-fly. It was possible under Windows XP to change their behavior and bind them to keyboard keys however I'm not aware of how to do this under a *NIX system.

As a bonus, you can now use the Back and Forward buttons under Opera.