Play Enemy Territory! (Linux, Mac, Windows)

Wolfenstein_Enemy_Territory_logoEnemy Territory is a free, Open Source multi-player first-person shooter video game set during World War II. It was created in 2003 by Splash Damage and runs great on low-end hardware.  It features a well-designed class and progression system.  I’ve run an Enemy Territory server for quite some time, you can download the game and play it for free on my server or others online.

Update: There’s a more modern, maintained Open Source fork of Enemy Territory called Enemy Territory:Legacy.  I’ve blogged about it here and how to set it up.  It’s recommended to play ET:Legacy instead, however not all ET mods are supported or working 100% yet and the older 2.60b Enemy Territory still has a player base, so it’s worth mentioning here if you have issues setting up ET:Legacy then you might try the O.G. ET instead.

How to Play Enemy Territory

  • Download and install ET 2.60 for Linux (right click, save as), Windows or Mac
  • Run installation as either root or local user (Linux local user needs to have a ~ /bin)

et_install-1

  • Download and install 2.60b patch for Linux, Windows or Mac (copy binaries to install dir)
  • Run the game from your menu or type ‘et‘ on a terminal
  • Once inside the game, you’ll need to obtain a cdkey file, this is so that you have a unique player GUID for servers to save XP and progression.  GUID generation is based on Punkbuster, though ET isn’t supported anymore it can still be used to generate one in the form of the etkey file:
    Type ~ to open the game console and type:
/pb_cl_enable
/pb_cdkeyreg
  • Now you’re ready to play!  While still in the game console to join my server type:
/connect funcamp.net:27961

There’s hundreds of other servers to pick from as well, so no hurt feelings if you don’t play here.

Linux Fix:  No 3D/LibGL Crash
This is a 32bit game so you need to have 32bit graphics libraries installed.  I use an Nvidia card so for me the fix was:

dnf install nvidia-driver-libs.i686

On my Lenovo x240 laptop using an Intel HD Graphics (i915) chipset this was:

dnf install libva-intel-driver.i686 xorg-x11-drv-intel.i686

Linux Fix:  No Sound
Enemy Territory doesn’t support ALSA (only OSS) you will need those kernel modules if you do not have sound when the game starts.  I achieved this via:

/sbin/modprobe snd-pcm && /sbin/modprobe snd-pcm-oss && \
/sbin/modprobe snd-seq-device && /sbin/modprobe snd-seq-oss

Fix:  Large Resolutions
As ET is an older game, the default resolution for full screen you want on newer hardware probably isn’t supported.  Luckily there’s a way around this.  I found the following blog post useful in solving this issue.  This should work on all operating systems.  For example, on Fedora 22 to run at a native 1920×1080 resolution I start Enemy Territory with the following command:

et +r_mode "-1" +r_customwidth "1920" +r_customheight "1080" \
+cg_fov "106.27" +set com_hunkmegs "768" +vid_restart

To make this permanent you can either alias it (or edit shortcut in other operating systems) or edit your etconfig.cfg file to contain the below seta commands.  Note: cg_fov for 16:10 resolutions (e.g. 1440×900, 1680×1050 and 1920×1200) should be 100.39 and for 16:9 (1366×768, 1920×1080) 106.27.

cat >> ~/.etwolf/etmain/etconfig.cfg <<EOF
seta r_mode “-1″
seta r_customwidth “1366”
seta r_customheight “768”
seta cg_fov “106.27”
EOF

To simply alias this command I did the following instead (should work on Linux and OSX)
Be sure to change the customwidth, customheight and cg_fov appropriately for your setup.

cat >> ~/.bashrc <<EOF
alias etstart='et +r_mode "-1" +r_customwidth "1920" \
+r_customheight "1080" +cg_fov "115" +set com_hunkmegs \
"768" +vid_restart'"
EOF

My Server Setup
My Enemy Territory server runs version 2.60b on Linux (CentOS).
It runs a few mods/addons: No Quarter and Omni-bot (AI Bot players) and XP save is enabled so you can gain military ranks, weapons and abilities.

Funcamp Gameplay Info
If you decide to play on my server the game client will auto-download any missing mods or maps and join the fray.  The bots on your team respond to medic, backup and ammo requests if you ask them. (hit v to bring up command menu).  Server status is generated every 2minutes by a shell script below.

Game Server Status:
Sometimes the below image won’t render correctly due to issues with html2ps and a lot of recent players listed, so you can always find up to date server statistics here in HTML.

About Will Foster

hobo devop/sysadmin/SRE
This entry was posted in gaming, open source and tagged , , , , , . Bookmark the permalink.

Have a Squat, Leave a Reply ..

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.