[OLPC-Games] Help with porting pygame code to sugar

Mike C. Fletcher mcfletch at vrplumber.com
Sat Dec 15 18:05:52 EST 2007


Tim Wintle wrote:
...
> I'm not running sugar-jhbuild, Just running a straight disk image under
> qemu.
>
> I should have clarified, I was using the buildskel script to generate my
> base class (as on the wiki).
>   
That's probably a good thing.  Next clarification; have you downloaded
the 1.3 version of OLPCGames?  There are fixes in there to the buildskel
script versus the 1.2 release.
> I ran buildskel *on Ubuntu* (if that's a problem) 
Nope, that's perfectly fine, buildskel just copies files, no
Sugar-specific code at all.
> and then scp'd the
> entire test.activity directory across to my emulator (including the
> linked OLPCGames folder).
> I didn't initially run buildmanifest, but I have run it since. I also
> ran ./setup.py dev
>   
Try just unzipping the .xo into the ~/Activities folder instead of using
dev, if that works, then we know we've got a problem with dev.
> When I couldn't get my own code to run I tried running the plain
> blue-screen generated by buildskel. It runs fine on Ubuntu and if I run
> the "run.py" script from python on the emulator (without any tie-ins to
> the system like the menu or listing it on the home screen), but not when
> it's launched from sugar.
>   
Try the following:

    http://dev.laptop.org/~mcfletch/testactivities/

all of those have been tested on a real OLPC-XO running build 649, so
they *should* work on an emulator (though video-test won't likely work
due to the lack of a camera in the emulator).
> I had a look and do have sugar-activities, so it's not been scrapped. I
> also don't have sugar-launch, so I guess that is still in the planning
> phase (or not in the devel image yet).
>
> I'm just a bit stuck :(
>   
If you haven't got anything proprietary or the like in it, feel free to
just email me the code and I can try to figure out what's going wrong so
I can try to make the project generation more robust.

Take care,
Mike

-- 
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com



More information about the Games mailing list