Wednesday, January 30, 2019

Wolfenstein: Enemy Territory 2.60b on Ubuntu 18.04 (and 22.04)





If you are using 64-bit, then it is recommended to install the following file:
sudo apt-get install libglu1-mesa:i386 libSDL1.2debian:i386
You can download the game from the terminal using this command:
wget -c https://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60.x86.run
And then we make the downloaded file executable:
wget -c https://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60-update.x86.run
And then we make the downloaded file executable:
chmod +x et-linux-2.60.x86.run
chmod +x et-linux-2.60-update.x86.run
And we run the file with admin rights
sudo ./et-linux-2.60.x86.run
Now you should see a enemy territory icon in your menu .
sudo ./et-linux-2.60-update.x86.run
And now your game is up to date.

Enjoy

If you have sound problems

A lot of Ubuntu users can't get the old classic Wolfenstein ET to work with sound, but I have good news - I know a fix that works every time.

First of all we need to go fetch the file we need, run this command in the terminal:

wget -q -O - http://nullkey.kapsi.fi/et-sdl-sound/et-sdl-sound.gz | gzip -d > et-sdl-sound && chmod a+x et-sdl-sound
(IF you can't download the file due to the server being down, then you can get my modified version from here)(Still remember to use "chmod a+x et-sdl-sound")

then we need to edit the file from the old alsa sound system to our new pulse sound system:

sudo gedit /home/yourusername/et-sdl-sound

Go to line 40 and the change the line from this:

SDL_AUDIODRIVER="alsa"

to this:
SDL_AUDIODRIVER="pulse"
 and also add this:
LIBSDL="/usr/lib/i386-linux-gnu/libSDL-1.2.so.0.11.4"
save the file and close and then you need to make a symbol link, so you can play the game:

/home/yourusername//et-sdl-sound

If you can't type in the game (keyboard issue)

If you can't type inside the game, then you need to disable "shifted keys". Edit the /.etwolf/etmain/etconfig.cfg-file and change "seta in_shiftedkeys" from "0" to "1" (line 365).

If you want to change the screen resolution

Wolfenstein ET is not exactly a new game and you might want to change the resolution so it fits your screen.

You will need to create a new file and name it autoexec.cfg and it should contain the following:

set name ^$Playername
bind "i" dropclip
bind "k" kill
bind "rightarrow" "vsay Thanks"
bind "," say_team ^3Please Wait...^4Bar is Recharging!
bind "leftarrow" say ^WMy^1 HP^W is now [s]
bind "downarrow" say Thanks for the ^1Revive! [r]
bind "uparrow" vsay Welcome
bind "h" toggle cg_draw2d
bind "p" toggle cg_atmosphericEffects
bind "m" vsay EnemyDisguised
bind "ins" vsay Thanks
bind "del" vsay Cheer
bind "home" vsay_team FollowMe
set cg_fov "120"
seta com_soundMegs "64"
seta snaps "40"
seta rate "25000" // was 16000
seta com_hunkMegs "250"
seta r_customwidth "1366"
seta r_customheight "768"
seta r_fullscreen "1"
seta r_mode "-1"
seta cg_drawFPS "1" //DISPLAY FRAMES PER SECOND
seta cg_drawGun "1" //DISPLAY SELECTED WEAPON
seta com_zoneMegs "64"
seta s_volume "0.9"
seta s_musicvolume "0"
seta s_khz "22"
seta s_bits "16"
seta s_channels "2"
vid_restart
Insert the above and also remember to change "Playername" to your playername in the game.

gedit ~/.etwolf/etmain/autoexec.cfg 

and you will also need to change a line in your playerfile to allow your user to use the custom screen resolution, do that with:

gedit ~/.etwolf/etmain/profiles/Playername/ 

If you don't have a profile yet, then open the game and make one. Change "seta r_mode" from the default value to "-1" save the file and close it.

That is it

I hope it works for you, enjoy.

No comments: