StandAlone Lua Programs

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

StandAlone Lua Programs

Post by Bob535 »

I know there has to be a way to do this since I have seen it done, I am just not sure how.

I would like to be able to have my program just be a selection in the game menu of my memstick.

I assume to do this you just use the lua player code directed to initially load your file instead of lowser?

Anyone got a quick writeup on how to accomplish this feat?
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

Take a look at PSP Millionaire 1.01. It is a stand-alone game in Lua. A good example how to make one.

Ref: http://psp-news.dcemu.co.uk/pspmillionaire.shtml

Have fun!
Geo Massar
Retired Engineer
cybercouf
Posts: 6
Joined: Sat Nov 05, 2005 7:22 am

Post by cybercouf »

from luaplayer readme:
Put your lua app files (either a Lowser-compatible folder or package, or just loose files with a main script.lua) in standalone/app folder.
Modify the Makefile.psp-standalone makefile to match your app name, change title-icon.png, and run
$ make -f Makefile.psp-standalone standalone10 -- for firmware 1.0
or
$ make -f Makefile.psp-standalone standalone15 -- for firmware 1.5
from the luaplayer directory.
i've cygwin, psptoolchain and pspsdk installed, i follow this tuto : http://wiki.ps2dev.org/psp:lua_player:compiling
but i've dependance problems with libpng building :(

can someone give all build library (png, zlib...) needed to build a stand-alone lua game using "make -f Makefile.psp-standalone"
User avatar
JoshDB
Posts: 87
Joined: Wed Oct 05, 2005 3:54 am

Post by JoshDB »

This is pretty simple, guys.

Download and extract Lua Player 0.11. Change [system\system.lua] in the extracted LuaPlayer folder to go to your file. Mine (from Concept) is:

Code: Select all

System.currentDirectory("Core")
appsDir = System.currentDirectory()
dofile("DESKTOP.lua")
Therefore, it will go into the folder named Core (in the LuaPlayer folder, not the system folder), and then launch [DESKTOP.lua]

To change the title and icon of the game (in your PSPs game menu), download PBP Unpacker and open up the EBOOT.PBP in the LuaPlayer% folder.
Post Reply