HOWTO: Install and setup Wolfenstein Enemy Territory

Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated.

HOWTO: Install and setup Wolfenstein Enemy Territory

Postby tangram » 05 May 2009, 11:33

[SIZE="3"]Update 26/03/2012:[/SIZE]
Step 3 is no longer required as the port as a specific dependency on [FILE]linux-f10-xorg-libs[/FILE].
[SIZE="3"]Update 25/05/2012:[/SIZE]
Ever since EvenBalance stopped supporting Enemy Territory step 5 should be ignored. Please refer to HowTo: Get etkey and Punbuster files on Enemy Territory.
________________________________________________________________________

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 canceled, 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.

[SIZE="2"]1) Install and update Enemy Territory[/SIZE]

Become the superuser:

Code: Select all
% su


And install the required port:

Code: Select all
# 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.

[SIZE="2"]2) Enable the Linux Compatibility Environment[/SIZE]

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 [port]games/linux-enemyterritory[/port] pulls in [port]emulators/linux_base-fc4[/port] so we just need to load the Linux kernel module at boot time. To do so run:

Code: Select all
# echo 'linux_enable="YES"' >> /etc/rc.conf


[SIZE="2"]3) Fixing library issues[/SIZE]

It was verified that at times library issue crop up upon starting the game.

To check if you have a library issue run:

Code: Select all
# ldd /usr/local/lib/enemyterritory/et.x86


If the output is:

Code: Select all
# ldd /usr/local/lib/enemyterritory/et.x86
/usr/local/lib/enemyterritory/et.x86:
        libdl.so.2 => /lib/libdl.so.2 (0x281e4000)
        libX11.so.6 => not found
        libXext.so.6 => not found
        libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x281e9000)
        libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x2820f000)
        /lib/ld-linux.so.2 (0x281c7000)


You have library issues and need to install [port]x11/linux-xorg-libs[/port]:

Code: Select all
# cd /usr/ports/x11/linux-xorg-libs ; make install clean


Re-run [cmd=]ldd[/cmd] and you should have the following output:

Code: Select all
# ldd /usr/local/lib/enemyterritory/et.x86
/usr/local/lib/enemyterritory/et.x86:
        libdl.so.2 => /lib/libdl.so.2 (0x281e6000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x281eb000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282be000)
        libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x282cd000)
        libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x282f3000)
        /lib/ld-linux.so.2 (0x281c7000)


[SIZE="2"]4) Install the ET Pro mod[/SIZE]

Next let's install Enemy Territory's best mod: ET Pro.

Code: Select all
# cd /usr/ports/games/linux-enemyterritory-etpro
# make install clean


Now ET Pro will show under the Mods options in the games' main menu.

[SIZE="2"]5) Update PunkBuster[/SIZE]

Now start the game, create a player profile and quit. By doing so a [file].etwolf[/file] 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 [file]pbsetup.run[/file] and:

Code: Select all
# 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.

[SIZE="2"]6) Install XQF[/SIZE]

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:

Code: Select all
# 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.

[SIZE="2"]7) Fix sound issues[/SIZE]

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:

Code: Select all
% 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.

And we're done!

(The above HOWTO is a copy of my blog post)
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby neurosis » 01 Jun 2009, 12:57

Can anyone tell me why when I try to launch et I get the following error?

Code: Select all
 et
./et.x86: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory


I love the writeup! I just cant seem to get past this error. I am running FreeBSD 7.2-RELEASE
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby ale » 01 Jun 2009, 13:09

neurosis wrote:Can anyone tell me why when I try to launch et I get the following error?

Code: Select all
 et
./et.x86: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory


I love the writeup! I just cant seem to get past this error. I am running FreeBSD 7.2-RELEASE


What is the brand of your gpu?
If nvidia, are you using a linux_base different than fc4 and/or compat.linux.osrelease > than 2.4.2?
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby tangram » 01 Jun 2009, 13:22

neurosis wrote:Can anyone tell me why when I try to launch et I get the following error?

Code: Select all
 et
./et.x86: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory


I love the writeup! I just cant seem to get past this error. I am running FreeBSD 7.2-RELEASE


I've also ran into this issue once. At the time I rebuild all my ports through [cmd=#]portmaster -af[/cmd] and didn't pin point the exact source of the issue.

Mind you that I use linux_base-fc4.
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby ale » 01 Jun 2009, 13:40

@tangram
Do you have x11/linux-xorg-libs installed
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby tangram » 01 Jun 2009, 14:48

V51!

(That means yes in Enemy Territory speak :D)
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby ale » 01 Jun 2009, 15:02

And do you have /usr/compat/linux/usr/X11R6/lib/libX11.so.6 ?
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby tangram » 01 Jun 2009, 15:20

[cmd=%] ldd /usr/local/lib/enemyterritory/et.x86[/cmd]:
Code: Select all
/usr/local/lib/enemyterritory/et.x86:
        libdl.so.2 => /lib/libdl.so.2 (0x281e6000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x281eb000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282be000)
        libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x282cd000)
        libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x282f3000)
        /lib/ld-linux.so.2 (0x281c7000)


[cmd=#]locate libX11.so.6[/cmd]:
Code: Select all
/usr/compat/linux/usr/X11R6/lib/libX11.so.6
/usr/compat/linux/usr/X11R6/lib/libX11.so.6.2
/usr/local/lib/libX11.so.6


[cmd=%]ls -l /usr/compat/linux/usr/X11R6/lib/libX11*[/cmd]:
Code: Select all
lrwxrwxrwx  1 root  wheel      13 Apr  2 12:37 /usr/compat/linux/usr/X11R6/lib/libX11.so.6@ -> libX11.so.6.2
-rwxr-xr-x  1 root  wheel  862428 Apr  2 12:37 /usr/compat/linux/usr/X11R6/lib/libX11.so.6.2*



@ neurosis

Run the same commands and post the results.
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby ale » 01 Jun 2009, 16:02

@tangram
maybe there was a misunderstanding...is et working for you?
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby tangram » 01 Jun 2009, 16:17

Of course it is (else I wouldn't post the HOWTO).

I did say that I once ran into the same problem and that I've since fixed it. At the time I fixed it by running [cmd=#]portmaster -af[/cmd] (yeah... I killed the fly with a cannon) and ET is running ever since.

The commands I've posted should help neurosis troubleshooting ;).
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby ale » 01 Jun 2009, 16:27

tangram wrote:Of course it is (else I wouldn't post the HOWTO).
Gosh, sorry!
I got confused twice. Probably I'm doing too many things together.
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby neurosis » 01 Jun 2009, 22:22

Code: Select all
# ldd /usr/local/lib/enemyterritory/et.x86
/usr/local/lib/enemyterritory/et.x86:
        libdl.so.2 => /lib/libdl.so.2 (0x281e4000)
        libX11.so.6 => not found
        libXext.so.6 => not found
        libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x281e9000)
        libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x2820f000)
        /lib/ld-linux.so.2 (0x281c7000)



Code: Select all
# locate libX11.so.6
/usr/jails/web/usr/local/lib/libX11.so.6




Code: Select all
# ls -l /usr/compat/linux/usr/X11R6/lib/libX11*
ls: /usr/compat/linux/usr/X11R6/lib/libX11*: No such file or directory


Code: Select all
# pkg_info |grep linux_base
linux_base-fc-4_14  Base set of packages needed in Linux mode (for i386/amd64)



I see my issue must be in there somewhere. missing directory. I will look back later. I am pressed for time right at the moment.
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby ale » 01 Jun 2009, 22:48

Do you have x11/linux-xorg-libs installed ?
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby neurosis » 01 Jun 2009, 23:44

I installed the linux-xorg libs and et tries to start now. But now I get this error.

Code: Select all
...loading libGL.so.1: Initializing OpenGL display
...setting mode 4: 800 600
Using XFree86-VidModeExtension Version 2.2
XF86DGA Mouse (Version 2.0) initialized
XFree86-VidModeExtension Activated at 800x600
Using 8/8/8 Color bits, 24 depth, 0 stencil display.
X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 155
  Minor opcode of failed request: 5
  Serial number of failed request: 48
ERROR: couldn't create font (glGenLists)
GL_RENDERER: (null)
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: Q_strncpyz: NULL src


Then it locks my screen in to a bad resolution.

:(
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby ale » 01 Jun 2009, 23:51

Do you have Load "glx" in /etc/X11/xorg.conf, in the Section "Module" part?
What is the brand of your gpu?
What is the output of glxinfo | grep vendor and glxinfo | grep render ?
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby neurosis » 02 Jun 2009, 00:06

I have the glx line in my xorg.conf

My gpu is nvidia. I am running the nvidia drivers "i believe" not sure how to make sure but I have the line
Driver "nvidia"

in my xorg.conf as well. There is no splash screen as I am used to seeing however.

I have no command glxinfo.. I get command now found.
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby ale » 02 Jun 2009, 00:28

Can you try starting X with [cmd=$]startx -- -logverbose 6[/cmd] and add as attachment /var/log/Xorg.0.log ?
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby neurosis » 02 Jun 2009, 02:22

Ok... here it is. It was very big so I had to archive it.
Attachments
Xorg.0.log.tar.gz
(9.93 KiB) Downloaded 14 times
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby ale » 02 Jun 2009, 02:38

This could be a problem:
Code: Select all
(II) LoadModule: "glx"
(II) Loading /usr/local/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.6.1, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX disabled
If you installed the nvidia driver, the vendor should be NVIDIA.
In fact you have an error about that.

Maybe your driver is not correctly installed and/or your xorg.conf is not configured correctly.
I'd try removing the driver with kldunload nvidia && pkg_delete -ix nvidia-driver and reinstalling again with cd /usr/ports/x11/nvidia-driver && make install clean && kldload nvidia.

Then read
/usr/local/share/doc/NVIDIA_GLX-1.0/html/chapter-04-section-02.html
to check is xorg.conf is configured correctly or install and run x11/nvidia-xconfig.
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby neurosis » 02 Jun 2009, 02:53

I installed the nvidia driver from nvidia's site. Is it as simple to remove? Ive tried to remove it in the past with no luck unfortunately as I dont believe it comes with an uninstall option.
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby ale » 02 Jun 2009, 02:59

This is IMHO, one of the reasons why the port should be used.
If you want to remove it, try looking at [thread=2171]this thread[/thread].
Maybe another option could be reinstalling the same version again.

@tangram
sorry for polluting you howto with posts about xorg and driver configuration, hopefully a moderator could help moving them to a new thread
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby neurosis » 02 Jun 2009, 03:10

yes.. very sorry as well. maybe if someone has this issue they can find it useful.

(I figured this part out ;))

Can we move this conversation somewhere else? Maybe to that other thread?
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Postby tangram » 02 Jun 2009, 07:40

@ale
No problem. We just need to solve this issue. It also happened to me a few months ago, now to neurosis and on the PC-BSD forum there are some posts stating the same kind of problems.

But yeah... hopefully a moderator can move slice and dice this thread ;).

@neurosis
That crash on ET as it starts up is most likely due to graphic drivers not being well installed. Try to deinstall NVIDIA's drivers and reinstall. There's an HOWTO on this forum subsection.
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby tangram » 04 Jun 2009, 11:02

I've just installed a fresh copy of FreeBSD with the X distribution to simulate the problem.

I've started with [cmd=#]pkg_add -r linux-enemyterritory[/cmd], enabled Linux compatibility layer and ran [cmd=#] ldd /usr/local/lib/enemyterritory/et.x86[/cmd] which gave me the same results as neurosis.

A simple [cmd=#]pkg_add -r linux-xorg-libs[/cmd] fixed the library problem.
User avatar
tangram
Member
 
Posts: 524
Joined: 17 Nov 2008, 10:22
Location: Portugal

Postby neurosis » 04 Jun 2009, 15:18

Thanks tangram and ale! I Was able to get it working! I found that I did have a very bad Nvidia driver install and they were not working properly. The driver was difficult to get rid of but is working now.

Tangram, I found the same. Once I installed the linux-xorg-libs the issue of the missing library went away. Maybe that should be added to the HOWTO. :) Ive installed ET in past versions of FreeBSD and did not have this same issue. I am not sure what has changed.

Thanks again. Too bad we cant get a moderator to clean the fat out of this thread now. Sorry for making a mess in here.
neurosis
Junior Member
 
Posts: 63
Joined: 16 Nov 2008, 18:17

Next

Return to Howtos & FAQs (Moderated)

Who is online

Users browsing this forum: No registered users and 1 guest