Page 1 of 1

Pax Britannica on Raspberry Pi

Posted: Mon Aug 17, 2015 12:26 pm
by xranby
Pax Britannica
This game uses hardware accleration and work well from both console and xorg

to run the game do:

Code: Select all

sudo modprobe snd_pcm_oss
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
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

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)