Saturday, 4 August 2012

Magnetic Scrolls Interpreter on RPi

Magnetic Scrolls adventure games can be played on a variety of platforms using the Magnetic interpreter. Here's how I got it running on the RPi.

Prerequisites

We need the Magnetic source from here. The GTK version seems like the best to run under LXDE, so we also need the GTK 2.0 development files.
$ sudo apt-get install libgtk2.0-dev

Building

Create a directory called Magnetic and unzip the source into it.
$ mkdir Magnetic
$ cd Magnetic
$ unzip ~/Downloads/Magnetic23Src.zip
There were a couple of tweaks necessary to get it to build. Firstly, there's a typo in Gtk/main.c at the end of line 307.
...(type8s *) hints_filename), NULL)
Should be:
...(type8s *) hints_filename, NULL))
I also edited the Makefile as I don't have the sound libraries installed. It now reads:
# SOUND_SYSTEM = SMPEG
# SOUND_SYSTEM = SDL_MIXER
# SOUND_SYSTEM = XMMS
SOUND_SYSTEM = NONE
Then you just need to build the Gtk directory.
$ cd Gtk
$ make
If everything works you should have a binary called gtkmagnetic.

Running

After building, just run:
$ gtkmagnetic&
The games can all be downloaded here. Just unzip them somewhere and load them via the GUI.

Monday, 16 July 2012

Raspberry Pi

I now have 2 Raspberry Pis (one from each supplier) and I've been trying out various things with them. The next few posts will chronicle my experiments and hopefully provide some useful information.

Hardware

Let's start off with the hardware. There's an official compatibility list at [1] but here's my personal list of stuff.

  • Raspberry Pi
  • BlackBerry micro-USB charger
  • HDMI cable £1.15 from Amazon [2]
  • Unbranded USB WiFi adaptor £5.49 from 7-day shop (Ralink RT5370 chipset)
  • Various USB keyboard/mouse
  • Various SDHC cards (Transcend, Sandisk, 7-day shop [3])

I've tried the Pi with 3 TVs around the house. None were quite right first time! This is the config.txt file that fixes most things.
sdtv_mode=2
hdmi_drive=2
hdmi_group=1
config_hdmi_boost=4
disable_overscan=1
I also turned off the Overscan option on a Panasonic TV which made the picture too big for the screen.

Software

I started off with the recommended Debian build [4]. Following the instructions worked fine.

Next time

I'll go into more detail on setting up the software.

References

[1] http://elinux.org/RPi_VerifiedPeripherals
[2] http://www.amazon.co.uk/Wired--up-v1-3A-Plated-Connectors-Cable/dp/B0017RW94A/ref=sr_1_1?ie=UTF8&qid=1342427017&sr=8-1
[3] http://www.7dayshop.com/catalog/product_info.php?cPath=777_6&products_id=112854
[4] http://downloads.raspberrypi.org/images/debian/6/debian6-19-04-2012/debian6-19-04-2012.zip

Monday, 27 July 2009

Welcome!

Welcome to the KstC blog. Hopefully I'll find interesting stuff to write about here.

For a first attempt, have a look at Halvar's blog for some interesting ideas about bugs in libraries.