Repository navigation
Home
OpenLua is a clean-room, OneLua-API-compatible Lua 5.1 engine for the Sony PlayStation Portable (PSP), built with PSPSDK.
It runs a single script.lua on the console and exposes game-oriented Lua
modules on top of the PSP hardware: graphics, images, fonts, 3D, audio, input,
storage, archives, savedata, networking, camera, UMD and system telemetry.
| I want to… | Read |
|---|---|
| Install a prebuilt release on my PSP | Installation |
| Write and run my first script | Quick Start |
| Look up a Lua function | API Reference |
| See which modules exist and their status | Modules |
| Test every module on real hardware | Hardware Test Menu |
| Build OpenLua from source | Building |
| Fix a boot or runtime problem | Troubleshooting |
| Understand the internals | Architecture |
| Publish a release | Releasing |
| Contribute code or docs | Contributing |
| Get answers quickly | FAQ |
git clone https://github.com/epr-ds/openlua.git
cd openlua
bash docker/build.shThe output is EBOOT.PBP. Copy it, your script.lua and any assets into
PSP/GAME/OpenLua/, then launch OpenLua from the XMB or PPSSPP.
Or download the latest versioned release from
GitHub Releases — the tester ZIP
already contains a working EBOOT.PBP, script.lua and assets/.
| Area | State |
|---|---|
Lua 5.1 host, color, screen, draw
|
Implemented |
| Images, sprite frames, transforms | Implemented |
Fonts: fixed-cell PNG, SFont, screen.print
|
Implemented |
| PGF system fonts | Host and opt-in PSP builds only (see note below) |
3D: amg, cam3d, texture3d, model3d
|
Implemented (static textured models) |
| Splash, OSK, PBP metadata/artwork | Implemented |
| Sound (WAV/VMA), timers, math helpers | Implemented |
| Storage, archives (ZIP/TAR/GZIP/BZIP2), INI, JSON, savedata, tilemaps | Implemented |
| Battery, power, OS, hardware info/audio | Implemented with documented fallbacks |
| Camera, UMD, USB, serial/IR | Implemented; absent hardware is safe |
| Networking: WLAN, TCP, HTTP, FTP, adhoc | Documented subsets; no TLS |
Hardware test menu (demos/tester.lua) |
Implemented; PPSSPP batch 225 checks, 0 fail |
Verification levels used in this wiki:
-
Host-tested — deterministic C/Lua tests run on a PC with
bash test/host/run.sh. - PPSSPP-verified — exercised in the PPSSPP emulator.
- Hardware-reported — reported by a user on a physical PSP. Reported, not independently reproduced by the maintainer.
Real-hardware report (2026-11-10): OpenLua
v0.1.3boots on a PSP-1001 (Fat) running 6.61 PRO-C (Infinity). Its live-demo pages trapped Circle/back;v0.1.4fixes that (PPSSPP-verified, hardware retest pending). The full batch report is still pending. See Hardware Test Menu.
-
PGF fonts are disabled in the standard PSP build. On real firmware
sceLibFontis provided by each game'slibfont.prxuser module, not by a flash0 kernel module. A static import made the EBOOT fail with8002013C. The standard build usesassets/font.pngor the built-in 5x7 font instead. - No TLS. HTTP and FTP are plaintext, synchronous subsets.
-
No destructive defaults.
os.exit,os.restart,power.suspend/off/lock, flash writes and the FTP server only run on an explicit user action in the tester; they are never called automatically. -
OneLua compatibility, clean-room. No OneLua source was used. The
reference notes live in
docs/onelua-reference.
- Code: https://github.com/epr-ds/openlua
- Releases: https://github.com/epr-ds/openlua/releases
- Issues: https://github.com/epr-ds/openlua/issues
- Project board: https://github.com/users/epr-ds/projects/4
-
In-repo docs:
docs/
OpenLua is released under the MIT license.