User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Pax Britannica on Raspberry Pi

Mon Aug 17, 2015 12:26 pm

Pax Britannica
This game uses hardware accleration and work well from both console and xorg
Image

to run the game do:

Code: Select all

sudo modprobe snd_pcm_oss
wget http://labb.zafena.se/jogamp/vc4/libgdx-demo-pax-britannica-1.6.3-armhf.jar
java -jar libgdx-demo-pax-britannica-1.6.3-armhf.jar
Pax Britannica is a one-button real-time strategy game by No Fun Games
http://paxbritannica.henk.ca/
The Raspberry Pi port here is using Stefan Wagner's libgdx java port of the original game that is now found in the demo examples of the RPi libgdx game development framework
viewtopic.php?f=81&t=112806




Troubleshooting on Raspberry Pi:

If you see "* failed to add service - already in use?" this originate from the bcm Raspberry Pi OpenGL ES driver failed to allocate memory.
fix it by runing
sudo raspi-config
inside raspi-config select advanced -> memorysplit and change it to 64Mb or more.

If OpenAL fail to initialize
"AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory"
this originate from that the libopenal sound library, bundled with JOAL, failed to find your raspberry pi soundcard
then you have two options:
A) load the linux kernel driver
sudo modprobe snd_pcm_oss
B) disable the OpenAL soft oss driver:
edit /etc/openal/alsoft.conf
and make sure that the drivers list contains -oss (it disables the OSS backend that tries to use the non existant dsp file)
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

Return to “Gaming”