Skip to content
OpenLua Bot edited this page Nov 11, 2026 · 2 revisions

FAQ

What is OpenLua?

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.

Is this the same as OneLua?

No. OpenLua targets the OneLua API but is an independent, clean-room implementation. No OneLua source was used. See Compatibility & Status.

Which PSP models are supported?

PSP-1000, PSP-2000/3000, PSP-E1000 and PSP Go, with a CFW/HEN that can launch homebrew. See Compatibility & Status.

Does it work on real hardware?

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.

Why did my older build fail with 8002013C?

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.

Why does font.load("flash0:/font/ltn0.pgf") return nil?

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.

Which font should I use?

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.

Do I need a special Lua version?

No. Lua 5.1.5 is vendored and built in. Write script.lua with Lua 5.1 syntax.

How do I install it?

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.

Where do I put my script and assets?

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.

Does it support HTTPS?

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.

Can scripts restart or power off the PSP?

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.

Why is the FTP server read-only?

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().

Can I use USB storage and the camera at the same time?

No. They share the USB port. Call cam.term() before usb.mstick(), or usb.stop() before cam.init().

Why are sio and ir inactive?

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.

How do I run the tests?

bash test/host/run.sh
bash tools/check_repo_hygiene.sh

For the on-device menu, see Hardware Test Menu.

How do I build it?

bash docker/build.sh

Docker is recommended; a local PSPSDK works too. See Building.

How do releases work?

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.

Where do I report a bug?

Open an issue with your PSP model/firmware or PPSSPP version, a minimal script, and openlua.log. See Contributing.

Is OpenLua affiliated with Sony?

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.

Clone this wiki locally