Here's a really lame video I shot of Pydance on the XO:
Here's the songs I've created so far to use with Pydance on the XO:
I tried a few other DDR clones, and they either take a lot of work to get running on the XO, or need high-end hardware features.
I've created a first pass at a XO Activity that can be downloaded and installed. I would very much appreciate people trying it out and letting me know if it works for them. I don't think it requires any software packages installed before it to run, but I could be mistaken, as my XO now has a lot of stuff installed on it, so it is hard for me to tell.
I inclulded a couple of songs and dance tracks with the Activity so you can use it right away. But that does make the download larger, over 8 MB. Both songs are now Creative-Commons licensed; the song "Wolfie" is one that I created, with profound apologies to W. A. Mozart.
The Pydance Activity ".xo" file can be installed via the standard Journal method, but for now I advise using the Terminal and doing it by hand.
Also, the installed Pydance Activity can be run from the "Activity launcher" screen, but it currently has some issues. It is better to run it from the Terminal.
So, without further ado, here is one way to get and run 'pydance' on the XO:
- Fire up wifi networking on your XO.
- Start up the Terminal activity.
- In the terminal activity, type in this:
wget 'http://joviko.net/download/pydance.xo'
- This will take a while, since the file is over 8 MB. If it finishes really quickly, you probably don't have wifi working on your XO.
- Type in this:
sugar-install-bundle pydance.xo
- This will also take a couple of minutes. You should see lots of information about things being extracted, inflated, created, etc.
- At the end, you should see:
/usr/bin/sugar-install-bundle: 'pydance.xo' installed.
- That's it! You're ready to play Pydance!
python Activities/pydance.activity/PydanceActivity.pyHINT: The Terminal program has a very handy "typing autocompletion" feature. You can just type in part of a filename or program name, and press the "tab" key (|<-- over -->| on the XO keyboard). This makes typing in the above line faster ("{tab}" means "press the tab key"):
pyt{tab}{space}Ac{tab}pyd{tab}Py{tab}{enter}
When Pydance starts, it should begin by playing music and displaying a menu. (If it doesn't do this, let me know!) The mouse cursor will disappear. You can move between the menu items with the up and down arrow keys. Go ahead and select "Play Game" by pressing the "enter" key.
On the XO, you'll want to select a "4 panel" pad (so you can use the arrow keys on the keyboard or on the XO's display bezel). Use the up and down arrow keys to move to "4 panel" and then press "enter". Do this again to select "Single" mode (just one player, not two), and "Normal" (not repeating).
Another screen will appear, with the two songs that are available. Select either one using the up and down arrow keys and "enter". You can change the difficulty level by pressing the left and right arrow keys.
Now get ready! Notice that there are 4 "empty" arrows at the top of the screen. Arrows will slide up from the bottom of the screen and fill the empty arrows. When one of the empty arrows is filled, press the corresponding arrow key on the keyboard (or on the display bezel). Repeat over and over until the song ends. You want to press the key at the exact moment that the arrow at the top of the screen is filled in. The more accurate the timing of the presses, the higher your score.
When you are done playing, press the "solid X" key in the upper-left corner of the keyboard (the Escape key). Do this several times to completely exit from the game.
NOTE: If you run Pydance from the "Activity launcher" screen, there currently are some problems:
- The game doesn't completely exit correctly. The icon for the game will be stuck in the "Activity ring". To fix this, you must restart Sugar (press the "ctrl", "alt", and "erase" keys at the same time) which will kill ALL the Activities that are currently running, or restart the XO.
- The game is really sluggish and stutters when the "DJ" speaks. This still happens a bit when run from the Terminal, but it isn't nearly so bad.
- The game's icon isn't quite perfect yet. Nobody ever accused me of being a great artist.
Here are some things to try if Pydance doesn't seem to be working:
- The "pydance.xo" file might have been corrupted during download. You can check this by running 'md5sum' on the file:
md5sum pydance.xo
The result should look like this (for the old version, no longer available):e50f202a82013cb3f9e752be5b6cfdce pydance.xo
or like this (for version 2):df93ea251a1a1708037897434489d8c3 pydance.xo
- It could be that the 'sugar-install-activity' didn't finish right. You can try to manually reinstall Pydance from the ".xo" file like this:
cd
cd Activities
unzip -o ../pydance.xo
cd
7 comments:
Thanks for porting this.
Two things:
1. I would tell folks to su before they try installing it.
2. When I ran the install, it failed. I'm running os 653. I will email you the error if you would like.
Hi Grant,
Thanks for the feedback!
As for 'su', people really shouldn't need to do it, since this is a standard Sugarized Activity install. In fact, it might break things since the permissions might be set wrong.
Please do send me the error you got. I have a sneaking suspicion that there's an 'sudo yum install SDL' missing from the instructions...
for me it says...
Searching for songs in /home/olpc/.pydance/songs
Searching for songs in /home/olpc/Activities/pydance.activity/pydance/songs
Searching for courses in /home/olpc/.pydance/courses
Searching for courses in /home/olpc/Activities/pydance.activity/pydance/courses
You don't have any songs. Check http://icculus.org/pyddr/get.php#songs
When I load the game, it also informs me that I don't have any songs installed, what should I do? I am definitely not an expert in linux.
Hi Daniel,
Hmmm. That is very odd. The ".xo" installer file has 2 songs (and artwork and dance steps) included, and they are both installed into /home/olpc/Activities/pydance.activity/pydance/songs when you run the 'sugar-activity-installer' step, so I'm not sure why it doesn't see them.
They are the very last files that are installed, so if there was an error in the installation before they were reached, that might have caused the problem you're seeing.
I'll add some troubleshooting steps to the instructions in the blog; see if they help for you.
great work - i like your blog, even though i am still stuck in olpc-xo-delivery-limbo. just wondering: have you seen any updates/interested in making an activity of a linux NES emulator?
thanks,dt
DT,
Thanks!
Oh, yeah, there are some busy folks over on the OLPC News Forum. SNES, MAME, SCUMM, take your pick.
http://olpcnews.com/forum/index.php?board=43.0
And hang in there on Pydance. I've been working on a new version that works better on the XO. I've got it so that it uses the whole screen now. I still need to find a Creative Commons-licensed equivalent of "Peanut Butter Jelly Time" and do the steps for it, then Sugar-ize Pydance. I hope to get it done in the next week or two.
I've updated the Pydance Activity. It still doesn't launch correctly from Sugar--you still need to run it from the command line in Terminal. But it is a lot closer to being XO-friendly. It now uses the entire screen during gameplay, and is a lot less jerky (but not perfectly smooth yet). I've replaced "Peanut Butter Jelly Time" with a song called "Wolfie" that I created / ripped off from W. A. Mozart, so now the entire Activity is OK in terms of OLPC licensing.
Post a Comment