Difference between revisions of "X-Moto on PSP"

From X-Moto
Jump to: navigation, search
m (Reverted edits by Opofefemucu (Talk) to last revision by Gaivota)
(3 intermediate revisions by 3 users not shown)
(No difference)

Latest revision as of 11:22, 26 November 2010

X-Moto on PSP

You will find on this page some work I have done for the PlayStation Portable and some games I have ported. In order to try these homebrews, you will need a PSP with a custom firmware. You can discuss about these and give feedbacks on my PSP forum. Thanks !

If you enjoy my softwares and ports, feel free to make a donation [1].


  • Download: X-Moto-PSP-0.x.zip on the xmoto website
  • Unzip and install in your PSP firmware 3/4/5.x folder.


  • up/cross: throttle
  • down/square: brake
  • left/left trigger: left flip
  • right/right trigger: right flip
  • circle: change direction
  • triangle: zoom out
  • select: enable fps and ugly mode
  • start: restart level

Known issues:

  • Very slow...
  • No sound.
  • No menus.
  • Not the latest version of X-Moto.
  • And many more...

How to build X-Moto for the PSP

Here is a quick tutorial to explain how you can build X-Moto for the PSP from source code. This is only required if you want to contribute to the development. If you just want to play, you can download the PSP port directly from the xmoto website.

I assume you are running a Debian or Ubuntu Linux system, but it should be easy to use these instructions for another Linux distribution. Basically, this will build a cross-compiler on your computer, with all the libraries needed by X-Moto. Depending on your hardware, this process can be quite long (about 2 hours)...

Build the toolchain

sudo apt-get install subversion
svn co svn://svn.pspdev.org/psp/trunk/psptoolchain
cd psptoolchain

Follow the instructions in the readme-ubuntu.txt file (install required packages for building process and edit your .bashrc file to add the path).

sudo ./toolchain-sudo.sh
cd ..

Install DA SDK

This step might be optional in the future, but currently it is needed because some libraries depend on headers and libraries not available in the standard SDK.

wget http://www.gwailos.com/downloads/401M33-2.rar
unrar x 401M33-2.rar
sudo cp SDK/include/kubridge.h /usr/local/pspdev/psp/sdk/include/
sudo cp SDK/lib/libpspkubridge.a /usr/local/pspdev/psp/sdk/lib/

Build the libraries

svn co svn://svn.pspdev.org/psp/trunk/psplibraries
cd psplibraries

Follow the instructions in the readme-ubuntu.txt file (install required packages for building process).

sudo ./libraries-sudo.sh

Build libode

svn co svn://svn.ps2dev.org/psp/trunk/ode
cd ode

Edit the config/makefile.psp file and append "-lpspvfpu" to the LINK_OPENGL variable.

sudo cp -rf include/* /usr/local/pspdev/psp/include/
sudo cp -rf lib/* /usr/local/pspdev/psp/lib/
cd ..

Build libcurl

svn co svn://svn.pspdev.org/pspware/trunk/libcurl/
cd libcurl
LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib" \
 LIBS="-lc -lpspnet_inet -lpspnet_resolver -lpspuser" \
./configure --host=psp --disable-shared --prefix=$(psp-config --psp-prefix)
make CFLAGS=-G0
sudo PATH=/usr/local/pspdev/bin/:$PATH make install
cd ..

Build X-Moto-PSP

Download X-Moto version 0.4.2 :

wget http://download.tuxfamily.org/xmoto/xmoto/0.4.2/xmoto-0.4.2-src.tar.gz
tar zxvf xmoto-0.4.2-src.tar.gz

Apply the X-Moto-PSP 0.2 patch :

 wget http://royale.zerezo.com/psp/X-Moto-PSP-0.2.patch.bz2
 bunzip2 X-Moto-PSP-0.2.patch.bz2
 cd xmoto-0.4.2
 patch -p1 < ../X-Moto-PSP-0.2.patch

And finally build X-Moto for the PSP :

cd src
make -f Makefile.psp
cd ../..

You should end up with a "EBOOT.PBP" file in the src folder, which is the PSP binary for X-Moto.

Copy X-Moto-PSP to your PSP

mkdir X-Moto-PSP
cp xmoto-0.4.2/readme.txt xmoto-0.4.2/changes.txt xmoto-0.4.2/src/EBOOT.PBP X-Moto-PSP
cp -r xmoto-0.4.2/bin/xmoto.bin xmoto-0.4.2/bin/Textures xmoto-0.4.2/po X-Moto-PSP

Copy a dummy config folder as well :

cp -rf ~/.xmoto X-Moto-PSP/config

Edit the X-Moto-PSP/config/config.dat file to change the resolution to 480x272 fullscreen :

var name="DisplayWidth" value="480"
var name="DisplayHeight" value="272"
var name="DisplayBPP" value="24"
var name="DisplayWindowed" value="false"
var name="MenuGraphics" value="Low"
var name="GameGraphics" value="Low"

Finally, copy the X-Moto-PSP folder to your PSP in psp/game. You will need a custom firmware on your PSP in order to run the game. Feel free to leave a comment if you spot any issue in this tutorial wink