Repository navigation
FAQ
A clean-room, OneLua-API-compatible Lua 5.1 engine for the PlayStation
Portable, built with PSPSDK. It runs a single script.lua and exposes
game-oriented modules for graphics, fonts, 3D, audio, input, storage, savedata,
networking, camera, UMD and system telemetry.
No. OpenLua targets the OneLua API but is an independent, clean-room implementation. No OneLua source was used. See Compatibility & Status.
PSP-1000, PSP-2000/3000, PSP-E1000 and PSP Go, with a CFW/HEN that can launch homebrew. See Compatibility & Status.
Yes. OpenLua v0.1.3 has been reported to boot and run on a PSP-1001 (Fat)
with 6.61 PRO-C (Infinity). Its live-demo pages trapped Circle/O; that is
fixed in v0.1.4 and verified in PPSSPP, with a real-hardware retest pending.
See Hardware Test Menu → Known issues. Other
models are expected to work but are not yet verified on physical hardware.
Earlier builds statically imported sceLibFont, which is a per-game user
module on real firmware, not a flash0 kernel module. v0.1.3 removed that
import. See
Troubleshooting → 8002013C.
The standard PSP build defines OPENLUA_NO_PGF to avoid the 8002013C boot
failure. Use font.new("assets/font.png", 8, 16) or sfont.load(...), or build
an opt-in PGF build that ships libfont.prx. See
Troubleshooting → PGF.
For portable scripts, a bundled fixed-cell PNG (font.new) or a classic SFont
(sfont.load). If no font is set, the engine uses a built-in 5x7 bitmap font.
The tester falls back to assets/font.png and then the built-in font.
No. Lua 5.1.5 is vendored and built in. Write script.lua with Lua 5.1 syntax.
Download openlua-tester-<version>.zip from
Releases, extract PSP/ to the
root of your Memory Stick (ms0:) or PSP Go storage (ef0:), and launch
OpenLua. See Installation.
EBOOT.PBP runs script.lua from its own folder. Paths are relative to that
folder, so keep assets/ next to EBOOT.PBP and use paths like
assets/font.png.
No. PSPSDK has no TLS client; http:// and ftp:// only. HTTP is a synchronous
plaintext HTTP/1.x subset with a 16 MB body cap and four redirects. Do not send
credentials over untrusted networks.
The API has os.restart(), power.suspend() and power.off(), but the tester
never calls them automatically. They only run on an explicit key press, and
power.off() is a standby request rather than a guaranteed shutdown. See
Hardware Test Menu.
It is intentionally anonymous and read-only, with path-traversal protection. It
has no authentication, so run it only on a trusted LAN and stop it with
ftp.term().
No. They share the USB port. Call cam.term() before usb.mstick(), or
usb.stop() before cam.init().
Raw UART and IR byte streams need a kernel-mode driver. The modules keep their signatures but return documented safe values in the user-mode build.
bash test/host/run.sh
bash tools/check_repo_hygiene.shFor the on-device menu, see Hardware Test Menu.
bash docker/build.shDocker is recommended; a local PSPSDK works too. See Building.
Every push to main runs the host tests and PSP build, then publishes a
versioned GitHub Release with a tester ZIP, a standalone EBOOT, a boot probe and
checksums. See Releasing.
Open an issue with your PSP
model/firmware or PPSSPP version, a minimal script, and openlua.log. See
Contributing.
No. OpenLua is an independent homebrew project and is not affiliated with or endorsed by Sony. The PSP is a trademark of Sony Computer Entertainment.