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.
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.
- 1A 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.
- 2Parts sit back to backA Living Toy holds eight: poses, abilities, sprite script, sound effects, effect model, sample bank, texture and model.
- 3Familiar pieces insideModels and textures are Sony’s own formats, TMD and TIM, so once a part is found, ordinary tools can read it.
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.
- 1524 squares324 make the overworld, a 36 × 18 grid laid like bricks. The other 200 are towns, houses and dungeons.
- 2Only 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.
- 3Always 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.
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.
- 1The shapeThousands of coloured, textured triangles, with the light and shade painted straight onto them.
- 2The floorA 128 × 128 grid of heights. A small step is fine; a big one is a wall. Slopes are really tiny staircases.
- 3Zones, then paintA second grid says which music plays and which monsters appear. Last comes the small picture the triangles are painted from.
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.
- 1On or offEach switch is a single bit, eight to a byte, so your whole story fits in 64 bytes of a save.
- 2Scripts 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.
- 3Nobody named themThe game only knows numbers. Living Tool gives 320 of them names, worked out from every script that uses them.
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.
- 1One byte, one instructionEach instruction starts with a single byte and always has the same length, so a script can be read without running it.
- 2Simple decisionsA test like “is this switch on?” skips ahead to the matching ELSE, so new lines can go anywhere without breaking anything.
- 3Thousands 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.
- 0B0400IF_FLAGif switch 4 is on
- 0DBEGINthen
- 014C0DSAYshow the line stored at 0D4C
- 0EELSEotherwise
- 230B00CUTSCENEplay scene 11
- 0FENDIFend of the test
- 00ENDstop
So once switch 4 is on, this person just says their line. Until then, talking to them plays scene 11.
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.
- 1Check the discThe patch knows the exact size and checksum of the original. The wrong disc is refused before anything is written.
- 2Lay 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.
- 3PlayOpen the patched disc in an emulator such as DuckStation or PCSX-Redux. Living Tool writes the .cue file for you.
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.