The engine exports any town or field scene as textured .glb files plus a manifest, and a Unity editor kit rebuilds it as a walkable, private VRChat world: the retail walk surface underfoot, villagers playing their spawn animations, doors that open as you approach and teleport you inside, the shoreline washing in and out, and the scene's music on a seamless loop. On top sits an optional realism layer (lighting, day/night, grass, wandering villagers), a grabbable equipment rack and a playable slot machine. Read the disclaimer first.
This guide is educational documentation of the project's tooling. Legend of Legaia's assets - the geometry, textures, animations and music the export decodes - are Sony's copyrighted intellectual property, and this project does not endorse distributing them in this or any other form. The tooling exists so you can study and experience content decoded from your own disc, on your own machines.
Concretely, if you follow this guide:
.glbs, no unitypackages, no built worlds, no committing them to a repository. glb-export/ is gitignored for exactly this reason.legaia-engine export-glb: world, NPCs, props, music and a manifest, from your disc../legaia-engine export-glb --scene town01 --out glb-exportReads extracted/ by default, or the disc directly with --disc "/path/to/Legend of Legaia (USA).bin". --all-scenes exports everything that assembles and reports what each scene yielded. One scene produces:
town01.glb - the assembled world: ground, terrain, buildings, every placed object at its resolved transform, with the PSX point-sampled look baked into the materials. Where the scene has one (Rim Elm does), the shoreline's wave motion rides along as a looping blendshape clip.npcs/*.glb - one animated file per catalogued villager, carrying every scene animation whose skeleton matches.props/*.glb - the animated placements: windmills, house doors, gate leaves.music/bgm_*.wav - the scene's entry BGM rendered through the engine's own SPU, cut to exactly its loop region so a looping AudioSource repeats it seamlessly.manifest.json - transforms, labels, doorway-teleport triggers and landings, door tags, the suggested spawn, and the scale/axis conventions that tie it all together.The default --scale is 1/128: one 128-unit walk tile becomes 1 m, which reads right against a real-scale player (retail's field proportions are generous; 1.0 keeps raw PSX units). NPC and prop files carry the scale baked on their root node, so one dragged into a Unity scene by hand is already world-sized.
| Flag | Effect |
|---|---|
--scene NAME | One CDNAME scene; repeat for several. |
--all-scenes | Every scene that assembles; failures are reported and skipped. |
--items | Every equipment item under items/ (works without --scene). |
--party | Vahn, Noa and Gala's field forms under party/, with a manifest shaped like a scene's so the builder places them like villagers. |
--include-sky | Keep the sky-backdrop shells as horizon dressing. |
--no-npcs / --no-props | Skip the villager or prop glbs. |
.glb: Window > Package Manager > + > Add package by name... → com.unity.cloud.gltfast, version 6.14.1.scripts/vrchat-world/world-project/Assets/LegaiaWorld/ into the project's Assets/.Pin glTFast to 6.14.1: on the VRChat-mandated 2022.3.22f1 editor, newer releases require a newer Unity than the SDK allows, so the Package Manager refuses them. Equivalently, add "com.unity.cloud.gltfast": "6.14.1" under "dependencies" in Packages/manifest.json. glTFast is a Unity-registry package, so it never appears inside the Creator Companion, and the VRChat packages live in Packages/vpm-manifest.json - Packages/manifest.json showing no com.vrchat.* entries is normal.
The kit holds the editor builder and its modules (realism, living town, weather, camp props, common prefabs, audio, the slot machine and card table), a JSON reader, its own shaders, and the UdonSharp behaviours the built world runs (doorways, doors, villager locomotion and routines, day/night and weather, pickups, torches, the settings panel, the purse). The file-by-file list is in the kit README.
Assets/LegaiaImports/town01/, keeping npcs/, props/ and manifest.json beside the world glb. glTFast imports every .glb with no material fixup.manifest.json, Build scene.One default-on option is worth knowing before you press the button. Merged + welded builds one welded, double-sided collision mesh for the whole world instead of a collider per mesh - it closes the hairline seams a player capsule slips through, and a building's undersides and interior shells stay solid from both sides.
The result is one Legaia_town01 root:
world - the full map with its collider; the shoreline morph clip and the BGM loop play from here. Semi-transparent meshes stay out of collision - they represent light (window shafts) and you walk straight through them - except water sheets, so the sea keeps its floor.npcs/ - every catalogued villager at their retail spawn tile, looping their spawn animation, capsule-collided.props/ - windmills spinning, gate leaves, and house doors. Instances the manifest tags as doors - and any prop retail parks held at spawn (interior doors, cupboards, drawers, per the bind record's own spawn pass) - open on first approach and stay open instead of looping their opening - the kit's LegaiaDoor behaviour. Only the props retail leaves free-running loop, which is what keeps the windmill turning.teleports/ - one trigger volume per retail doorway. Walk into a house door and you land in its interior facing the authored direction: house interiors sit in an unused corner of the same map, and repositioning the player is the retail door mechanism (LegaiaDoorway). The trigger boxes are sized for a player capsule, not for retail's point-player check - each one is verified reachable against the exported world mesh itself, so a door works from a normal walk-up rather than only at the exact retail contact point.LegaiaSpawn - the manifest's suggested spawn, the village centre.The builder creates the UdonSharp program assets its behaviours need, compiles them, and syncs every wired field - so a plain copy of the kit's .cs files is enough; no manual UdonSharp setup.
VRCWorld prefab into the scene if the template didn't already.Legaia_town01/LegaiaSpawn into element 0. Players face the marker's +Z.GridFloor (or sink it far below as a fall catch) so it can't mask the real walk surface.Moving a spawn marker does nothing until the descriptor's list references it. Doors and teleports react to players, so flying the editor scene camera through a trigger does nothing.
LegaiaNpcWander behaviour to any NPC the builder placed and tune radius/speed. Movement is computed per player: fine for ambience, use synced variables if everyone must agree.export-glb --items exports every equipment item in the game (all four characters' weapons, Ra-Seru, armour, headgear, footwear). Copy the items/ folder into Assets/, point the builder's Equipment props section at its manifest, and Place equipment rack near spawn lines every weapon up grounded on the world collider - scaled (half the world ratio by default: they are battle-mode models, oversized against field proportions), wrapped in a tight convex hull collider cooked from its rest pose, and wired as VRC Pickup physics props, so you can walk to the rack and hold Vahn's sword. Props spawn frozen on the rack and only go physical the first time someone drops one, so world load can't scatter them or drop them through the ground. Untick Weapons only to also rack the armour and Ra-Seru.Legaia_map01, say) exists, walking out the town gate teleports you onto the world map.record_N takes; retarget the generated Animator at any of them.The builder goes further than this page walks: a Living town pass (default on) gives the villagers a routine - meeting and talking in pictogram speech bubbles, visiting errand stops, going indoors at night - a synced weather schedule, a Common prefabs foldout (mirror, video TV, card table, posters, the slot cabinet) and a persistent per-player coin purse. Each is documented in the kit README.
The kit also rebuilds the Sol casino's slot minigame as a cabinet you walk up to and play. The rules are an UdonSharp port of the engine's Ghidra-traced kernel - the retail RNG and reel strips, the five-payline evaluation, the feature odds, the bonus rounds - and the screen is the retail scene itself: the reel drums re-derived per frame on the retail ellipse, the glass furniture, the dot-matrix marquee and the paytable, composed directly onto the cabinet's screen face through the retail software projection read off your disc.
./asset slot-art extracted/PROT/0975_*.BIN extracted/PROT/1200_*.BIN --out "<unity project>/Assets/LegaiaImports/slot-art"screen (a flat face looking along the cabinet's +Z) lets the builder snap and size the display automatically, three button nodes become the reel-stop buttons, and every part has a fallback - missing buttons get generated pads, no screen node means hand placement, and no cabinet at all still builds a playable machine at the scene root. A Blender-baked cabinet often fails glTFast's import with UVMulti errors; the kit's fix-glb-uvsets.py repairs the file losslessly.In an instance, one player holds the machine per session - ownership only changes hands while it sits idle, and outcomes plus both RNG streams sync, so onlookers watch the same spin the player sees. Two editor menus keep the port honest: Legaia > Verify Slot Rules replays a committed rules-parity fixture (generated by the engine's own test suite, pure arithmetic, no game data) against the actual UdonSharp class, and Legaia > Slot Screen Snapshot saves the composed screen as a PNG to eyeball against the minigames page's browser port of the same machine.
The builder window's Realism enhancements foldout layers a set of passes over the built root. Every pass defaults on - untick them all for the faithful retail-shaded scene. Everything the passes create is generated from scratch (shaders, dome and grass geometry, synthesized audio), so no game data is produced beyond what the export already decoded. An apply to the already-built root button reruns just these passes, so tuning a slider doesn't force a rebuild.
Lighting, sky and fog are per-Unity-scene render settings: the last applied root wins, and turning the options off later doesn't revert them - reset via Window > Rendering > Lighting. Grass plus realtime shadows is a PC-world budget; trim density and shadow strength for Quest.
manifest.json and the glb came from the same export.npc_prop_units flag and handles both).--all-scenes reports what each yielded.world_anim, Animate world morphs should be on, and the glb's import inspector's Animation tab must keep animations enabled.The kit's committed README carries the full troubleshooting list, including the collider, transparency and orientation deep-dives: scripts/vrchat-world/README.md.
The geometry, textures, shading, placements, floor heights, walk surface, doorway trigger/landing data, shoreline morph deltas and the music render are the engine's own retail-parity kernels - the same code this site's field-scene viewer draws with. What a static export approximates: NPCs loop a clip instead of running their scripts, non-door props free-run instead of waiting for script triggers, a door's full choreography collapses to open-on-approach + teleport, and script-door variants are frozen at the fresh-game story state. The manifest already carries each NPC's role and first dialog line, so dialog and shop counters are the natural next Udon layer to build yourself.