Living Tool
How it works

Inside the disc,
in seven drawings.

Guardian's Crusade fits a whole world onto one CD: towns, monsters, music and every line of dialogue. This is how it's stored, how the game reads it, and how a mod changes it. No programming needed.

catalogue
The hidden index as a card drawer. Point at a card to pull its entry.
01 · The hidden file system

The disc keeps a secret

Put the disc in a computer and you’ll find one program and 13 folders, all empty. They’re a decoy: the game never opens them. The real list of files is hidden inside the program itself.

  1. 1
    A secret indexBaked into the program is a table of 493 entries, one per file. No names, only numbers.
  2. 2
    Each entry is eight bytesThree say where the file starts, written like a clock: minutes, seconds, frames. Four say how many 2 KB blocks to read.
  3. 3
    Files are known by their slotSo Living Tool names each one by position: npc/7 is the eighth character pack, the people and scenes of one place.

Decoding one entry

Eight bytes from the hidden table, exactly as they sit in the program.

entry #70 · npc/7
190863
Where it starts19 min · 08 s · 63 framesA time, like a CD player's clock: 75 frames a second, one 2 KB block per frame, counted after a 2-second lead-in.
(19 × 60 + 8) × 75 + 63 − 150= block 86,013
00
SpareAlways 0Padding, so each entry is a tidy 8 bytes.
60000000
How long it is96 blocksA count of blocks, smallest byte first. 60 is how a computer writes 96 in hexadecimal.
96 × 2,048 bytes= 192 KB

So the game jumps to block 86,013, reads 96 blocks, and has npc/7. No file names were ever needed.

bento
One Living Toy’s file as a divided box. Point at a compartment to lift its part.
02 · Containers

Files inside files

Open one of those files and there’s no single thing inside. Most are packed boxes: a short contents list at the front, then the parts, back to back, with no gaps between them.

  1. 1
    A contents list up frontThe file begins with a few numbers, each saying how far in a part begins. The first one also tells you how long the list is.
  2. 2
    Parts sit back to backA Living Toy holds eight: poses, abilities, sprite script, sound effects, effect model, sample bank, texture and model.
  3. 3
    Familiar pieces insideModels and textures are Sony’s own formats, TMD and TIM, so once a part is found, ordinary tools can read it.
8 partsin every Living Toy file
7 partsin every enemy, ending with its stats and drops
0 labelsno names, sizes or markers: only the list of where parts begin
In the docsFile formats
quilt
The overworld as a quilt of squares. Move the pointer and the four around it load.
03 · World chunks

A world made of squares

The world isn’t one big map. It’s cut into squares called chunks, each stored in its own same-sized slot on the disc, so the game always knows exactly where the next one is.

  1. 1
    524 squares324 make the overworld, a 36 × 18 grid laid like bricks. The other 200 are towns, houses and dungeons.
  2. 2
    Only four at a timeThe PlayStation has 2 MB of memory, so the game keeps the square you’re on and its neighbours, and loads more as you walk.
  3. 3
    Always in the same placeChunk n starts at block 20,011 + n × 125. New areas you build in Living Tool go past the end of the disc, from chunk 1,328.
524 chunksin the retail game, before any new areas
125 blocksper chunk, about 250 KB, whether it needs it or not
4 at onceone per memory slot, which also decides where its picture goes
In the docsChunk format
layers
One square pulled apart. Sweep across to open the layers; move up and down to pick one.
04 · Walk heights

What you see isn’t what you walk on

Each square is really four layers stacked together. The ground you see is only paint: your character walks on a hidden grid of heights underneath it.

  1. 1
    The shapeThousands of coloured, textured triangles, with the light and shade painted straight onto them.
  2. 2
    The floorA 128 × 128 grid of heights. A small step is fine; a big one is a wall. Slopes are really tiny staircases.
  3. 3
    Zones, then paintA second grid says which music plays and which monsters appear. Last comes the small picture the triangles are painted from.
16,384 cellsof floor in every square, each 32 units wide
32 unitsthe tallest step you can climb; over 96 is a wall to slide along
1 pictureper square, drawn in 16-colour palettes
In the docsChunk format
switches
The story flags as a pegboard. Point at a hole to see its switch.
05 · Story flags

512 switches remember your story

The game doesn’t remember what you’ve done in sentences. It uses 512 switches, each on or off: met this person, opened that chest, beat that boss.

  1. 1
    On or offEach switch is a single bit, eight to a byte, so your whole story fits in 64 bytes of a save.
  2. 2
    Scripts check them“If switch 4 is on, say this line. If not, play the scene.” That’s how towns change as the story moves on.
  3. 3
    Nobody named themThe game only knows numbers. Living Tool gives 320 of them names, worked out from every script that uses them.
512 switchesnumbered 0x000 to 0x1FF; the first 64 are reused by each area
64 byteshold the entire story so far
320 namedwith 623 meanings, each marked confirmed, likely or a guess
In the docsEvent scripts
musicbox
A script as a music-box strip. Sweep across to feed it through the reader.
06 · Event scripts

Every scene is a tiny program

Conversations, chests, shops and cutscenes are written in a little language of 74 instructions. The game reads them one at a time, like a music box reading a punched strip.

  1. 1
    One byte, one instructionEach instruction starts with a single byte and always has the same length, so a script can be read without running it.
  2. 2
    Simple decisionsA test like “is this switch on?” skips ahead to the matching ELSE, so new lines can go anywhere without breaking anything.
  3. 3
    Thousands of them3,770 character scripts and 488 scene starts. Living Tool shows each one as readable rows you can edit with a right-click.

Reading one script

Thirteen bytes from a townsperson, read left to right, one instruction at a time.

7 instructions · 13 bytes
  1. 0B0400IF_FLAGif switch 4 is on
  2. 0DBEGINthen
  3. 014C0DSAYshow the line stored at 0D4C
  4. 0EELSEotherwise
  5. 230B00CUTSCENEplay scene 11
  6. 0FENDIFend of the test
  7. 00ENDstop

So once switch 4 is on, this person just says their line. Until then, talking to them plays scene 11.

74 instructionsin the game’s little language, each one byte long to start
3,770 scriptsfor characters, plus 1,930 doors and 488 scene starts
1,732 decisionsevery one with its ELSE, which is what lets them nest
In the docsEvent opcodes
tracing
A patch as a sheet of tracing paper. Bring the pointer to the disc to lay it down.
07 · Patches

Share the changes, not the game

You can’t share the game, and you don’t need to. A mod travels as a patch: a small file holding only what changed, plus the fingerprint of the disc it fits.

  1. 1
    Check the discThe patch knows the exact size and checksum of the original. The wrong disc is refused before anything is written.
  2. 2
    Lay the changes over itOnly changed blocks are written. A file that grew moves to the end of the disc, and the hidden index from 01 is updated to match.
  3. 3
    PlayOpen the patched disc in an emulator such as DuckStation or PCSX-Redux. Living Tool writes the .cue file for you.
437 MBthe whole disc image, which never leaves your computer
cdc72c62the checksum a patch expects, from the North American disc
.bpsthe patch format, applied in Living Tool or any BPS patcher
In the docsBuilding a patch
Now try it

See every layer on your own disc.

Living Tool opens your copy of Guardian's Crusade and shows all of this by name: the hidden index, the squares, the switches and every script.