Ports Collection - jalopezsuarez/piback GitHub Wiki

Doom

Dependences Libraries

» SDL1 Simple DirectMedia Layer

apt-get install gcc build-essential libsdl1.2-dev libsdl1.2debian libsdl-image1.2 libsdl-image1.2-dev libsdl-mixer1.2 libsdl-mixer1.2-dev libsdl-net1.2 libsdl-net1.2-dev timidity
git clone https://github.com/rheit/zdoom.git

Sources / Repositories

mkdir /arcade/zdoom
cd /arcade/zdoom

Compile / Installation

:q
cmake -DCMAKE_BUILD_TYPE=Release
make -j4

Startup Script

#!/bin/bash
/arcade/zdoom/zdoom -iwad /arcade/ports/doom/doom.wad
#!/bin/bash
/arcade/zdoom/zdoom -iwad /arcade/ports/doom2/doom2.wad

Launch Application

root@raspberrypi:/usr/local/games# ./prboom-plus

Quake 1

Dependences Libraries

» SDL2 Simple DirectMedia Layer
apt-get install libtxc-dxtn-s2tc-bin libtxc-dxtn-s2tc-dev

Sources / Repositories

mkdir /arcade/quake1
cd /arcade/quake1
wget https://github.com/autonomous1/darkplacesrpi/archive/dprpi_v1.1.zip

Compile / Installation

unzip dprpi_v1.1.zip
mv darkplacesrpi-dprpi_v1.1/* .
dpkg -i darkplaces-rpi.deb

Data Files Location

Launch Application

/usr/bin/darkplaces-sdl

Quake 2

Dependences Libraries

» SDL1 Simple DirectMedia Layer
apt-get install libsdl1.2-dev libvorbis-dev libogg-dev zlib1g-dev libjpeg8-dev

Sources / Repositories

mkdir /arcade/quake2
cd /arcade/quake2
wget http://sheasilverman.com/rpi/raspbian/quake2Bin.zip

Compile / Installation

The sound is disabled by default due to issues in the ALSA drivers. You can reactivate it by commenting the set s_initsound 0 line in the yq2.cfg.

Data Files Location

aa

Launch Application

aa

/arcade/quake2/quake2Bin/quake2Bin

Quake 3

Dependences Libraries

» SDL1 Simple DirectMedia Layer
apt-get install git gcc build-essential libsdl1.2-dev

Sources / Repositories

mkdir /arcade/quake3
cd /arcade/quake3

Obtain the source code with this little command:

git clone https://github.com/raspberrypi/quake3.git

Compile / Installation

This lets you install the Quake 3 source code! Now the complex bit! We now have to edit the script that does the compilation. To access this script from the terminal use this command:

vi build.sh

The first line (8) you are looking for starts ARM_LIBS, if you cannot see it, press Ctrl-W and type ARM_LIBS followed by the return key. Change it so it says this:

ARM_LIBS=/opt/vc/lib

You also need to change the line (16) that starts INCLUDES, change it to this:

INCLUDES="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads"

The final line (19) to change starts CROSS_COMPILE:

#CROSS_COMPILE=bcm2708-

Save the file by pressing Ctrl-X followed by Y and finally return. Now you can begin the compilation process by typing ./build.sh the process takes approximately 30 minutes.

Once that has finished you need to download the pak files... This lets the game function! Now type:

wget http://dl.dropbox.com/u/1816557/Q3%20Demo%20Paks.zip

Data Files Location

MAKE SURE THEY ARE SAVED TO THE 'baseq3' FOLDER. OTHERWISE THE GAME WONT WORK. The directory tree should look like this (using the default Pi user). AND THEN IN THE 'baseq3' there should be your PAK files. :) Happy?

home
pi
quake3
build
release-linux-arm
baseq3

Launch Application

Running the game... In order for you to run the game you have to be in the right directory.... To get there type this command:

cd /quake3/build/release-linux-arm/

NOW to start your game.... Horay! Use this little line of code:

sudo ./ioquake3.arm

ScummVM

Install scummvm and the OpenGL software rasterizer, since the touch screen frame buffer does not support the hardware OpenGL engine that the Pi provides. This will also install dri drivers and some OpenGL utilities, such as glxgears to test performance.

sudo apt-get install mesa-utils libgl1-mesa-dri libgl1-mesa-swx11

Sources / Repositories

Get Sources

https://m.reddit.com/r/RetroPie/comments/3fi5mj/ps3_controller_and_scummvm/
mkdir /arcade/scummvm
wget https://www.scummvm.org/frs/scummvm/1.8.1/scummvm-1.8.1.zip
unzip scummvm-1.8.1.zip
root@raspberrypi:/arcade/scummvm/scummvm-1.8.1/backends/events/sdl# 
vi sdl-events.cpp

Scummvm keys

https://m.reddit.com/r/RetroPie/comments/3fi5mj/ps3_controller_and_scummvm/

Scumm con solo un juego directo

C:\Program Files\Leisure Suit Larry\scummvm.exe" -f -p "C:\Program Files\Leisure Suit Larry" lsl1 

Remap to PS3 controller

This is the mapping I chose. Feel free to adjust to suit.

Left mouse click -> Cross Right mouse click -> Circle Escape -> Square Period (skip text) -> Triangle Space (pause) -> Select F5 (in-game menu) -> Start

To remap, you need to amend lines 45 to 50 in the file /backends/events/sdl/sdl-events.cpp so run the following command:

#define JOY_BUT_LMOUSE 14
#define JOY_BUT_RMOUSE 13
#define JOY_BUT_ESCAPE 15
#define JOY_BUT_PERIOD 12
#define JOY_BUT_SPACE 0
#define JOY_BUT_F5 3
cat /arcade/scummvm/scummvm.sh
#!/bin/bash export SDL_MOUSE_RELATIVE=0 scummvm

Run the command (assuming /RetroPie-Setup is still the active folder)

./configure
./make

Configuration

Easiest way to do this is to edit ~/.scummvmrc (you have to have run ScummVM at least once for this) and edit the [scummvm] section to have these lines.

Data Files Location

mkdir /arcade/roms/scummvm

Launch Application

cd /arcade/scummvm
/arcade/scumm/scummvm --fullscreen --joystick 

Descent 1/2

Dependences Libraries

» SDL1 Simple DirectMedia Layer

apt-get install -y scons libphysfs1 libphysfs-dev libncurses5-dev 

Descent1 Textures

wget http://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa
wget http://www.dxx-rebirth.com/download/dxx/res/d1xr-sc55-music.dxa

Descent2 Textures

wget http://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa

Compile / Installation

git clone https://github.com/dxx-rebirth/dxx-rebirth
cd /arcade/dxx-rebirth
scons raspberrypi=1

Launch Application

Descent can't navigate the menus using the sticks or d-pad, which I find a bit strange. To fix it we build an application PiKeys witch simulate the keyboard using joystick. Disable all keyboards interaction keys from menu. Use PiKeys from PiBack to simulate keyboard using joystick (js0).

/arcade/piback/pikeys

Create a launch script to launch

Data Files Location

/arcade/ports/descent1
/arcade/ports/descent2

In order to play this game you need original game data. Unless you have original Descent CD (or shareware episode) you can get DRM-free version of Descent1 from Good Old Games (GOG.com) and extract game data files using "innoextract (>= 1.3)" utility.

The following files are needed to be placed to "~/.d1x-rebirth":

    DESCENT.HOG
    DESCENT.PIG

Optional multiplayer missions can be copied to "~/.d1x-rebirth/missions":

    CHAOS.HOG
    CHAOS.MSN

Configuration file

Copy configuration file template to game directory and customise it if necessary:

    mkdir ~/.d1x-rebirth ; \
    cp /usr/share/doc/d1x-rebirth/examples/*.ini ~/.d1x-rebirth/

Addons

The following addons can be downloaded from

    http://www.dxx-rebirth.com/addons/

They are to be saved to

    ~/.d1x-rebirth

High Resolution pack (recommended)

Optional high resolution pack contains enhanced (640x480) menu and briefing images and fonts.

    mkdir ~/.d1x-rebirth ; cd ~/.d1x-rebirth ; \
     wget --continue --timestamping http://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa

Soundtrack in OGG format – SC-55 Version

This AddOn Pack will add a new version of the game’s original Soundtrack to DXX-Rebirth. For an authentic gaming experience, all music was recorded with the Roland Sound Canvas SC-55 MIDI Module as they were meant to be heard in the 90s.

    mkdir ~/.d1x-rebirth ; cd ~/.d1x-rebirth ; \
    wget --continue --timestamping http://www.dxx-rebirth.com/download/dxx/res/d1xr-sc55-music.dxa

Soundtrack in OGG format – OPL3 Version

This AddOn Pack will add a new version of the game’s original Soundtrack to DXX-Rebirth. For a nostalgic gaming experience, all music was recorded with the Yamaha YMF262 OPL3 Soundchip.

    mkdir ~/.d1x-rebirth ; cd ~/.d1x-rebirth ; \
    wget --continue --timestamping http://www.dxx-rebirth.com/download/dxx/res/d1xr-opl3-music.dxa