python-ps3

Installation on non-linux PS3

The easiest evaluating python-ps3 is the pre-packaged mini-distribution. This contains a PS3 flash image (otheros.bld) that is smart enough to search attached devices for the main operating system (rootfs.sqf) and then for game images which are selected from a menu.

The pre-packaged image is available as a ZIP file at http://downloads.sourceforge.net/python-ps3/python-ps3-0.3.2.zip which should be decompressed to a USB stick. Then, install the boot image from GameOS under System Settings / Install Other OS and you should be ready to go.

Installation on Ubuntu for PS3

Whilst Ubuntu is my preferred method is distribution, I haven't created any updated .deb files for a while, so it's best to follow the instructions below.

This is by far the easiest method of installation, but then that's usually the case with debian based distributions!

Add the following to your /etc/apt/sources.list:

deb http://www.ranulf.net/apt ps3/

To install the library, type the following:

apt-get install python-ps3

To install the demo sources under /opt/python-ps3/demo, type the following:

apt-get install python-ps3-demo

This will automatically install python-imaging and libspe1. The latter is IBM's libspe packaged up as a debian package.

Please note that currently these .deb files are not signed, so you will be asked to confirm that you wish to install them.

-->

Binary and source releases for PS3 linux

This has been developed using Ubuntu and a pre-packaged binary is supplied. Chances are good that this will work with most 32-bit distributions that uses libspe and the source should be able to be built on any distribution as long as the PPU and SPU toolchains have been installed.

All binary and source releases can be obtained from the sourceforge.net downloads page.
The latest version at this time is 0.3.2.

Prerequisites

Source installation

Installation of PIL:

$ wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz
$ tar xvfz Imaging-1.1.6.tar.gz
$ cd Imaging-1.1.6
$ python setup.py install

Installation of python-ps3:

$ wget http://downloads.sourceforge.net/python-ps3/PS3-0.3.2.tar.gz
$ tar xvfz PS3-0.3.2.tar.gz
$ cd PS3-0.3.2 
$ python setup.py install
$ ./test.py

Binary installation of library only

$ wget http://downloads.sourceforge.net/python-ps3/PS3-0.3.2.linux-ppc64.tar.gz
$ tar xvfz PS3-0.3.2.linux-ppc64.tar.gz -C /

Using subversion

Using the subversion repository is probably the easiest way of keeping up to date with the latest release. The SVN path to checkout is:

https://python-ps3.svn.sourceforge.net/svnroot/python-ps3/trunk/

If you want to submit patches, doing it against a recent subversion checkout using the svn diff command is the preferred method for doing so.

Testing

If you've installed from source or installed the python-ps3-demo debian package, there are a couple of demos included. The simplest test is the clock demo. From the root of the source distribution, simply run:

demo/clock.py

Alternatively, there's a slightly fuller (though not really complete by any stretch of the imagination) game that uses the old style blitting code. This will be rewritten soon when I got some time... To play this game, run:

Binary and source releases for PS3 linux

As part of the stand-alone distribution, I include a non-standard bluetooth driver that provides better support for the sixaxis than the standard kernel, including motion sensing. If you want to use this under Linux, then build the bootable/sixaxis module. You will still need hcid running but hidd must not be running.

breakup/breakout.py