Sunday, March 8, 2009

Wolfenstein on Linux

Wolfenstein 3D

Well, this is the first FPS I played on PC 386, more then 15 years back at 1993. This was extraordinary experience. Although new games are much more real and gives you better atmosphere and reality, I can't forget this little fellow. So I tried to revive him after 15 years on my linux machine.

You'll need to download source code for wolf engine:
$ wget http://www.stud.uni-karlsruhe.de/~uvaue/chaos/bins/Wolf4SDL-1.6-src.zip

Additional System Requirements:
* Original game data files
* libSDL
* libSDL_Mixer

Using YaST or any other package manager install SDL-devel and SDL_mixer-devel package.
Extract downloaded source code and copy original game files *.wl6 to extracted directory. Don't forget to put original game file names to lowercase.
$ cd /path/to/extracted/source/Wolf4SDL-1.6-src
make

If you can't find original game files, then download shareware 1.4 version from:
$ wget http://www.users.globalnet.co.uk/~brlowe/wolf3d14.zip

and copy *.wl1 files instead. Again, rename file names to lowercase representation. If you are using shareware game files you will also need to change version.h file before compiling. Define CARMACIZED and UPLOAD and comment others. It is well documented and editing won't be problem.

After compiling, start game by starting wolf3d executable:
$ ./wolf3d

Reference:
http://www.happypenguin.org/show?Wolf4SDL


Return to Castle Wolfenstein

Additional System Requirements:
* Original game data files
* libstdc++-libc6.2-2.so which you can get by installing compat package using YaST or using zypper
$ zypper in compat

Create directory structure with:
$ mkdir -p /usr/local/games/wolfenstein/main

Download installer from:
$ wget ftp://ftp.idsoftware.com/idstuff/wolf/linux/wolf-linux-1.41b.x86.run

Copy installer to main directory with:
$ sudo cp wolf-linux-1.41b.x86.run /usr/local/games/wolfenstein

Run installer with:
$ sudo sh wolf-linux-1.41b.x86.run

Copy or create links for game data files:
$ sudo ln -s /media/Wolfenstein/Main/mp_pak0.pk3 /usr/local/games/wolfenstein/main
$ sudo ln -s /media/Wolfenstein/Main/pak0.pk3 /usr/local/games/wolfenstein/main
$ sudo ln -s /media/Wolfenstein/Main/sp_pak1.pk3 /usr/local/games/wolfenstein/main

Start single player with:
$ sudo bash -c 'echo "wolfsp.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss'
$ sudo bash -c 'echo "wolfsp.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss'
$ ./wolfsp

Start multiplayer with:
$ sudo bash -c 'echo "wolf.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss'
$ sudo bash -c 'echo "wolf.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss'
$ ./wolf

Resource:
http://zerowing.idsoftware.com/linux/wolf/
http://www.happypenguin.org/show?Return%20To%20Castle%20Wolfenstein

No comments: