*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1]
Print
Author Topic: Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.  (Read 8540 times)

Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.

MenThal
New

Posts: 3


June 14, 2008, 11:52:06 PM

Magic Maze is a simple, low-tech monster-bashing maze game implemented
in Ruby using SDL.

It has been modified to work better on the OLPC XO, and wrapped in an
activity that you can download from Rubyforge

See also the Wiki page at:
http://wiki.laptop.org/go/Magic_Maze

Some of the changes done for the OLPC:
* Make the "dead-monster-goo" green instead of red, to be more kid
friendly.
- "is it blood? it's not! it is snot!"
* OLPC keymapping - gamepad keys for in-game play.
* Speed up fading in/out.
* Scaling support; Scale up graphics for the OLPC.
- Linear scaling done manually for sprites; slower but blocky and
non-SGE.
* More command line options for OLPC integration;- volume, fullscreen,
scaling etc. 
* Activity wrapping in Sugar (icon, launcher, etc)
Logged

#1 Re: Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.

Stacy and Felix
Commenter

Posts: 9


June 17, 2008, 10:32:42 PM

I loaded this on to the XO (easy) but it wouldn't run. The icon just flashes endlessly and won't go away. Huh Did I do something wrong?
Logged

#2 Re: Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.

MenThal
New

Posts: 3


June 20, 2008, 05:31:04 AM

Might be that I've forgotten some implicit dependancies, although most of it should be included in the Activity bundle.

Please make sure that you are using the latest (MagicMaze-1.4.2-alpha2.2-olpc-sugar-1.xo or newer), as I did catch a small error just after releasing it that is fixed there.

If that does not work, please let me know your OLPC build number (I've only tested on 656 so far) and if possible the output of the Sugar logs for Magic Maze (available at /home/olpc/.sugar/default/logs/org.rubyforge.MagicMaze-1.log or similar).
Logged

#3 Re: Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.

Stacy and Felix
Commenter

Posts: 9


July 03, 2008, 10:45:54 PM

I checked my system (bit of a newbie) and it says

OLPC build 656 (stream ship .2; variant devel_jffs2)

Have no idea what the stream ship ... etc means.

I reinstalled Magic Maze (newest version), and now it flashes that it is starting, then disappears. it doesn't freeze the computer.

Logged

#4 Re: Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.

MenThal
New

Posts: 3


July 03, 2008, 11:12:44 PM

Then I would expect it to work out-of-the-box, unless I installed some dependancy so early on that I forgot it... I thought Ruby and SDL were already installed, but you might want to give it a try to do it manually.

That is, open the Terminal, and run:

 su
 yum install sdl
 yum install ruby

If neither of those install anything, please see if you can't find anything in the log output of Magic Maze:
  cat /home/olpc/.sugar/default/logs/org.rubyforge.MagicMaze-*.log

Not sure how easy it is to send the file contents directly from the XO. You can always copy it  to an external USB memory stick or something and send the file to me. Start Magic Maze in Sugar as normal and then copy it over:
  cp /home/olpc/.sugar/default/logs/org.rubyforge.MagicMaze-*.log  /media/DISKNAME/

Sorry I can't help you further, but I've given my XOs to some kids in the family, so I only have the Sugar emulator to test on at the moment. Smiley
Logged

#5 Re: Magic Maze in Ruby/SDL, sugar-wrapped in activity for the XO.

Stacy and Felix
Commenter

Posts: 9


July 03, 2008, 11:26:38 PM

I found this post where someone was having similar problems. Will try and update you on my progress.

http://olpcnews.com/forum/index.php?topic=2024.0

Try this for the journal problem:

1. Switch display to Developers terminal
Press CTRL/ALT/NEIGHBORHOOD

2. Hit Enter

3. Type root and hit Enter

4. Enter rm /home/olpc/.sugar/default/datastore/store/index/config; reboot

Thanks to neuralis and Phil_Bordelon for this suggestion

XO help - [email protected]
Logged
Pages: [1]
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 26
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 15
Total: 15