Testing in PCSX-Redux
Start PCSX-Redux from Living Tool, or attach to one you started, then push your edited files into the running game and warp to the map you changed.
What you need
Living Tool can start PCSX-Redux itself (below), or attach to a PCSX-Redux you start yourself. Either way it talks to Redux through its web server on 127.0.0.1. From there it can push the files your project changed, reload the map, warp and take a screenshot.
| Emulator | PCSX-Redux. Living Tool starts it, or you start it with its web server on |
| BIOS | A US PlayStation BIOS (512 KB), when Living Tool starts Redux |
| Disc | Guardian's Crusade (USA), SLUS-00811. Living Tool loads a build, or your base, when it starts Redux |
| Lua file | livingtool-redux.lua, for reloads, warps and save states. It comes with Living Tool: a Redux that Living Tool starts loads it, and the emulator chip gives you the command for one you start |
| Living Tool | the same disc open, and a project with edits |
An emulator view inside Living Tool, quick actions and boot tests aren't built yet.

Start Redux from Living Tool
Set it up once in Settings → Emulator: choose the PCSX-Redux program and a BIOS. Living Tool checks both; the BIOS must be 512 KB and from a US console. The emulator card on Build & test says what's missing until both are set.
- Launch PCSX-Redux starts it on a build's image (on a base, the base's image) and attaches. Each build in the list has Launch in PCSX-Redux, so you can play that build.
- On a base that ships a boot save state, Launch Redux and start here starts Redux on the base's disc and loads the state, so you land in free roam in about 8 seconds.
- Stop and Relaunch are on the card. Quitting Living Tool closes the Redux it started.
Redux runs in a profile of its own, inside Living Tool's app data, with its own settings and memory cards. Your own PCSX-Redux settings and memory cards are never touched. Its web server answers only on 127.0.0.1, and Living Tool stops it if it answers anywhere else.
Attach to a Redux you started
- Open the emulator chip. Emulator off, at the right of the title bar.
- Choose Copy Redux command. It copies a command line that starts Redux with its web server on the port in the popover and Living Tool's Lua file. The folder button beside it shows the Lua file in Finder or Explorer instead.
- Start Redux with it, and boot the game. Add
-isowith retail's or a build's.cue, and-run, or open the disc from Redux's menu. - Enter the port and choose Connect. 8080 by default, remembered.
pcsx-redux -webserver -webserver-port 8080 \
-iso "Guardian's Crusade (USA).cue" -run \
-dofile "$HOME/Library/Application Support/app.livingtool.desktop/emu/livingtool-redux.lua"
Living Tool writes the Lua file into its app data when you open the emulator chip, and when it starts Redux. On Windows it's %APPDATA%\app.livingtool.desktop\emu\livingtool-redux.lua, and on Linux ~/.local/share/app.livingtool.desktop/emu/livingtool-redux.lua. The path stays the same when Living Tool updates, so a saved command keeps working.
Living Tool checks that Redux answers and has SLUS00811 loaded, and refuses any other disc with EMU_WRONG_DISC. While attached, it checks Redux every 3 seconds. The chip reads Emulator live with the port, and the popover shows the chunk the game is on.
Push changes while it runs
Rebuilding a 437 MB image for every dialogue tweak is slow. A push writes your project's version of each file over its own extent in the image Redux has loaded, so you can read a fixed line in-game within seconds. Two buttons push:
- Push to emulator in the World editor sends the chunk and its NPC pack, then shows Redux's screen in the Game camera.
- Push changes on the Overview's Emulator card sends every file your project changed.

- Patch each file's sectors.
cd/patch, 64 sectors per request, zero-padded to the extent. - Wait for the game to be idle. No warp pending, no transition, every chunk slot loaded.
- Re-enter the current chunk. A warp to the same chunk re-reads it and its NPC pack.
- Wait for the game to arrive. Up to 8 seconds.
Redux recomputes EDC/ECC for every patched sector and keeps the change in memory as a PPF. The image file is never written. With the reload, a push took 1.7 to 6.6 seconds in testing, because it waits for the game to be idle. Some files are skipped, and the push says why:
| Code | Skipped when |
|---|---|
EMU_PUSH_GREW | The file outgrew its extent. Build a disc image to test it. |
EMU_PUSH_EXE | It's the EXE, which the game reads once at boot. |
EMU_PUSH_PAST_END | It sits past the end of the image Redux has loaded, like a new area on retail. Build an image with it and load that. |
Warp to a chunk
In World map, select a chunk and choose Warp emulator here. Living Tool writes the warp request (ctx+0x50 = chunk | 0x8000) and waits up to 8 seconds for the game to arrive. It works only from a field map, and takes retail chunks 0–523 and new areas from 1328.
The Knight keeps his x and z, so he can land off the walkable ground. In an interior (chunks 324–523) he may stand outside the rooms.
Warp to a spot
To land the Knight on a particular spot, right-click it in a 3D view: World map in 3D (Chunk or Overworld scope), or the World editor in 3D. The menu names the chunk and the spot, and the view marks where the Knight will land, with a ring on the ground and a Knight lands here tag. Choose Warp emulator here.
- The spot is one he can stand on. A click on a wall, a roof or ground he can't reach moves to the nearest floor within 1024 units, and the menu says nearest floor. A grey line runs back to where you clicked. With no floor that close, the menu reads no floor near here and the item is greyed out.
- The heights are the project's. Living Tool takes the floor height from the chunk as your project has it. Push height edits first, or the game may put him on its own ground.
- On another chunk, the game warps first. Once it's idle there, Living Tool writes his x, height and z (
0x80146600on retail). On the chunk he's already on, he moves without a warp. - The Baby follows on foot. He catches up along the Knight's trail once the Knight walks.
A Redux you started before this version runs an older livingtool-redux.lua and answers EMU_LUA_OLD. Restart it with Copy Redux command.
Agents do the same by passing x and z to emulator_warp.
AI agents can do the same through the MCP tools emulator_launch, emulator_load_base_state, emulator_stop, emulator_connect, emulator_push, emulator_warp and emulator_screenshot. See AI agents.
Troubleshooting
| Problem | What to do |
|---|---|
EMU_UNREACHABLE | Redux didn't answer on that port. Check it runs with -webserver and the port matches. Living Tool stays attached, so a restarted Redux is picked up. |
EMU_WRONG_DISC | Redux has another disc, or none. Load Guardian's Crusade (USA). |
EMU_NOT_CONNECTED | Connect from the emulator chip first. |
| A push doesn't show | Without livingtool-redux.lua, the game reads pushed files the next time it loads the chunk. Leave the map and come back, or restart Redux with Copy Redux command. |
EMU_RELOAD_TIMEOUT | The files were pushed, but the game didn't re-enter the chunk in time. It reads them the next time it loads the chunk. |
EMU_NOT_ON_FIELD | Warps need a field map and livingtool-redux.lua. Leave the battle or menu first, or restart Redux with Copy Redux command. |
EMU_LUA_OLD | Redux runs a livingtool-redux.lua from before Warp to a spot. Restart Redux with Copy Redux command. |
EMU_NO_GROUND | No floor the Knight can stand on within 1024 units of the spot. Right-click closer to walkable ground. |
EMU_NO_STATE_RAW | Redux runs without livingtool-redux.lua, so the base's save state can't load. Restart Redux with Copy Redux command. |
Endpoints Living Tool uses
All HTTP to Redux happens in Living Tool's Rust core, and the app's web view never talks to the emulator. Redux closes every connection, so each request opens a new one.
| Endpoint | Method | Used for |
|---|---|---|
/api/v1/execution-flow | GET | Connect and status checks |
/api/v1/cd/info | GET | The loaded disc's serial and size |
/api/v1/cd/files?filename=SLUS_008.11;1 | GET | The loaded disc's EXE: where its RAM keeps the chunk slots, and which image Redux runs |
/api/v1/cd/patch?sector=N&mode=M2_FORM1 | POST | Push |
/api/v1/lua/lt_field?slots=… | GET | Where the game is (livingtool-redux.lua) |
/api/v1/lua/lt_warp?slots=…&chunk=N&reload=… | POST | Reload and warp, only when the game is idle |
/api/v1/lua/lt_place?slots=…&knight=…&x=…&h=…&z=… | POST | Put the Knight on a spot, only when the game is idle |
/api/v1/lua/lt_load_state?path=… | POST | The base's boot save state |
/api/v1/lua/lt_quit | POST | Stopping a Redux Living Tool started |
/api/v1/screen/still | GET | The screenshot after a push |