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)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://itubibygucy.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 
----
 
=[http://itubibygucy.co.cc CLICK HERE]=
 
----
 
</div>
 
 
=X-Moto on PSP=
 
=X-Moto on PSP=
  
Line 75: Line 67:
 
  cd ode
 
  cd ode
  
Edit the config/makefile.psp file and append &quot;-lpspvfpu&quot; to the LINK_OPENGL variable.
+
Edit the config/makefile.psp file and append "-lpspvfpu" to the LINK_OPENGL variable.
 
  make
 
  make
 
  sudo cp -rf include/* /usr/local/pspdev/psp/include/
 
  sudo cp -rf include/* /usr/local/pspdev/psp/include/
Line 84: Line 76:
 
  svn co svn://svn.pspdev.org/pspware/trunk/libcurl/
 
  svn co svn://svn.pspdev.org/pspware/trunk/libcurl/
 
  cd libcurl
 
  cd libcurl
  LDFLAGS=&quot;-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib&quot; \
+
  LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib" \
   LIBS=&quot;-lc -lpspnet_inet -lpspnet_resolver -lpspuser&quot; \
+
   LIBS="-lc -lpspnet_inet -lpspnet_resolver -lpspuser" \
 
  ./configure --host=psp --disable-shared --prefix=$(psp-config --psp-prefix)
 
  ./configure --host=psp --disable-shared --prefix=$(psp-config --psp-prefix)
 
  make CFLAGS=-G0
 
  make CFLAGS=-G0
Line 101: Line 93:
 
   bunzip2 X-Moto-PSP-0.2.patch.bz2
 
   bunzip2 X-Moto-PSP-0.2.patch.bz2
 
   cd xmoto-0.4.2
 
   cd xmoto-0.4.2
   patch -p1 &lt; ../X-Moto-PSP-0.2.patch
+
   patch -p1 < ../X-Moto-PSP-0.2.patch
  
 
And finally build X-Moto for the PSP :
 
And finally build X-Moto for the PSP :
Line 108: Line 100:
 
  cd ../..
 
  cd ../..
  
You should end up with a &quot;EBOOT.PBP&quot; file in the src folder, which is the PSP binary for X-Moto.
+
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==
 
==Copy X-Moto-PSP to your PSP==
Line 119: Line 111:
  
 
Edit the X-Moto-PSP/config/config.dat file to change the resolution to 480x272 fullscreen :
 
Edit the X-Moto-PSP/config/config.dat file to change the resolution to 480x272 fullscreen :
  var name=&quot;DisplayWidth&quot; value=&quot;480&quot;
+
  var name="DisplayWidth" value="480"
  var name=&quot;DisplayHeight&quot; value=&quot;272&quot;
+
  var name="DisplayHeight" value="272"
  var name=&quot;DisplayBPP&quot; value=&quot;24&quot;
+
  var name="DisplayBPP" value="24"
  var name=&quot;DisplayWindowed&quot; value=&quot;false&quot;
+
  var name="DisplayWindowed" value="false"
  var name=&quot;MenuGraphics&quot; value=&quot;Low&quot;
+
  var name="MenuGraphics" value="Low"
  var name=&quot;GameGraphics&quot; value=&quot;Low&quot;
+
  var name="GameGraphics" value="Low"
  
 
Finally, copy the X-Moto-PSP folder to your PSP in psp/game.
 
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.
 
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
 
Feel free to leave a comment if you spot any issue in this tutorial wink

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].

Installation

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

Controls:

  • 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
cd..

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.

make
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