Showing posts with label gaming. Show all posts
Showing posts with label gaming. Show all posts

Tuesday, March 10, 2009

Doom on Linux

Doom 1 and 2

Prerequisites:
* SDL-32bit
* SDL_mixer-32bit

Download Doom legacy engine from:
$ wget http://prdownloads.sourceforge.net/doomlegacy/legacy_142_win32.zip

Copy *.wad files (doom.wad, doom2.wad, etc.) to extracted directory.

Start game with:
$ ./lsdldoom -opengl -IWAD doom.wad

where doom.wad is the name of *.wad file which you want to start.

Doom3 and RoE

Download doom3 installer from
$ wget ftp://ftp.idsoftware.com/idstuff/doom3/linux/

Create directory structure with:
$ mkdir -p /usr/local/games/doom3/base
$ mkdir -p /usr/local/games/doom3/d3xp

Now copy installer to doom3 directory with:
$ sudo cp doom3-linux-1.3.1.1304.x86.run /usr/local/games/doom3/

Start installer and install doom3
$ cd /usr/local/doom3
$ sudo sh doom3-linux-1.3.1.1304.x86.run

Start game with:
$ ./doom3 +set s_driver oss
$ ./doom3 +set s_driver oss +set fs_game d3xp

Create symbolic links with:
$ sudo ln -s /media/doom3/base/pak000.pk4 /usr/local/games/doom3/base
$ sudo ln -s /media/doom3/base/pak001.pk4 /usr/local/games/doom3/base
$ sudo ln -s /media/doom3/base/pak002.pk4 /usr/local/games/doom3/base
$ sudo ln -s /media/doom3/base/pak003.pk4 /usr/local/games/doom3/base
$ sudo ln -s /media/doom3/base/pak004.pk4 /usr/local/games/doom3/base

$ sudo ln -s /media/doom3/d3xp/pak000.pk4 /usr/local/games/doom3/d3xp

Resource:
http://zerowing.idsoftware.com/linux/doom/

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

Friday, January 30, 2009

Quakes on Linux

Quake I

Make your destination directory:
$ sudo mkdir -p /usr/local/games/quake/id1

Download latest stable official release of darkplaces engine and mod from:
http://icculus.org/twilight/darkplaces/download.html

Engine is enough but if you want some improved lighting effects then you'll need mod too.
$ wget http://icculus.org/twilight/darkplaces/files/darkplacesengine20090128.zip
$ wget http://icculus.org/twilight/darkplaces/files/darkplacesmod20080808.zip

After extracting to ~/Quake directory copy one of darkplaces executabile files which suits your system:
$ sudo cp ~/Quake/darkplacesengine20081004/darkplaces-linux-x86_64-sdl /usr/local/games/quake

Now copy files from original windows Quake CD or destination directory of windows installation:
$ sudo cp -rv /media/Quake/ID1/* /usr/local/games/quake/id1/ > ~/Desktop/files.txt
After coping make shure all files specified in files.txt are in small case.

Make your launch script with:
$ joe ~/Desktop/quake

Add this content:
$ cd /usr/local/games/quake
./darkplaces-linux-x86_64-sdl

Save and make this file executable:
$ sudo chmod 775 quake

Any mission packs or downloaded mods needs just to be extracted in destination directory /usr/local/games/quake/. Activate installed mods with "Browse mod" menu option inside game.

Quake II

Make your destination directory:
$ sudo mkdir -p /usr/local/games/quake2/baseq2

Download binary RPM engine from http://www.chez.com/colinf/rpms/quake2/ :
$ wget http://www.chez.com/colinf/rpms/quake2/quake2-r0.16.1-io1.i386.rpm
$ sudo rpm -Uvh quake2-r0.16.1-io1.i386.rpm


From original QuakeII windows CD or destination directory of windows installation copy content of baseq2 folder to /usr/local/games/quake2/baseq2 :
$ sudo cp -rv /media/win/games/quake2/baseq2/* /usr/local/games/quake2/baseq2
Make sure all copied files are in small case.

To start game execute:
$ /usr/local/games/quake2/quake2.sh

For any mission packs you just need to extract pkg files in destination directory for example /usr/local/games/quake2/rogue.
After extracting start quake2 with set game 'value' parameter:
$ ./sdlquake2 +set basedir /usr/local/games/quake2 +set game rogue

Quake III

Make your destination directory:
$ sudo mkdir -p /usr/local/games/quake3/baseq3

From original QuakeIII windows CD or destination directory of windows installation copy pak0.pk3 from content of baseq3 folder to /usr/local/games/quake3/baseq3 :

$ sudo cp /media/win/games/quake3/baseq3/pak0.pk3 /usr/local/games/quake3/baseq3


Download Quake3 installer:
$ wget ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-1.32b-3.x86.run

Move it to destination directory:
$ mv ~/Desktop/linuxq3apoint-1.32b-3.x86.run /usr/local/games/quake3

Start installation and follow instructions on your screen (you can answer “Yes” to every question you are asked during the installation)
$ cd /usr/local/games/quake3
$ linux32 sh /usr/local/games/quake3/linuxq3apoint-1.32b-3.x86.run

Download patch:
$ wget ftp://ftp.idsoftware.com/idstuff/quake3/quake3-1.32c.zip

After extracting copy content of linux directory over files in quake3 destination path
$ sudo cp ~/Desktop/linux/* /usr/local/games/quake3

To start game execute:
$ /usr/local/games/quake3/quake3

If you experience problems with sound use:
$ sudo bash -c 'echo "quake3.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss'
$ sudo bash -c 'echo "quake3.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss'

If you experience hangs during play start quake3 with:
$ ./quake3.x86 +set s_musicvolume -1

Quake 4

Download installer with:
$ cd ~/Desktop
$ wget ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-1.4.2.x86.run
Make your destination directory:
$ mkdir -p /usr/local/games/quake4/q4base

Quake4 has is very big in size so you may want to create links instead of coping:
$ sudo ln -s /media/win/games/quake4/Setup/Data/q4base/*.pk4 /usr/local/games/quake4/q4base
$ sudo chmod -Rv 775 q4base/*.pk4

Move installer to your destination directory and execute:
$ cd /usr/local/games/quake4
$ sudo mv ~/Desktop/quake4-linux-1.4.2.x86.run .
$ sudo sh quake4-linux-1.4.2.x86.run

Start quake with:
$ ./quake4 +set s_driver oss