At a glance

  1. Export a scenelegaia-engine export-glb: world, NPCs, props, music and a manifest, from your disc.
  2. Make a worlds projectVRChat Creator Companion (Unity 2022.3) + glTFast + the kit.
  3. Build the sceneLegaia > Build Scene From Manifest wires the whole map.
  4. Spawn + testPoint the VRChat descriptor at the spawn marker; Build & Test.
  5. Make it aliveWandering NPCs, grabbable weapons, more scenes joined by their portals.
your discor extracted/ export-glbretail-parity kernels glb-export/town01/ town01.glb npcs/*.glb props/*.glb music/bgm_*.wav manifest.json LegaiaWorldBuilderUnity root, private upload
Everything game-derived is decoded from your disc by the exporter; the Unity kit itself carries no game data and only reads what the manifest describes.

1 · Export a scene

./legaia-engine export-glb --scene town01 --out glb-export

Reads 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:

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.

FlagEffect
--scene NAMEOne CDNAME scene; repeat for several.
--all-scenesEvery scene that assembles; failures are reported and skipped.
--itemsEvery equipment item under items/ (works without --scene).
--partyVahn, Noa and Gala's field forms under party/, with a manifest shaped like a scene's so the builder places them like villagers.
--include-skyKeep the sky-backdrop shells as horizon dressing.
--no-npcs / --no-propsSkip the villager or prop glbs.

2 · Set up a VRChat worlds project

  1. Create the projectInstall the VRChat Creator Companion and create a Worlds project (Unity 2022.3).
  2. Add glTFastSo Unity can import .glb: Window > Package Manager > + > Add package by name... → com.unity.cloud.gltfast, version 6.14.1.
  3. Copy the kitscripts/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.

3 · Import and build the scene

  1. Copy the export ine.g. Assets/LegaiaImports/town01/, keeping npcs/, props/ and manifest.json beside the world glb. glTFast imports every .glb with no material fixup.
  2. BuildMenu Legaia > Build Scene From Manifest..., browse to the copied 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:

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.

4 · Descriptor, test, upload

  1. Add the descriptorDrop the SDK's VRCWorld prefab into the scene if the template didn't already.
  2. Set the spawnIn the VRC Scene Descriptor's Spawns list, drag Legaia_town01/LegaiaSpawn into element 0. Players face the marker's +Z.
  3. Remove the grid floorDelete the template's GridFloor (or sink it far below as a fall catch) so it can't mask the real walk surface.
  4. Build & TestVRChat SDK > Show Control Panel > Build & Test, or ClientSim.
  5. Upload, privatelyA fresh world stays private until you publish it to Community Labs - leave it private (why).

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.

5 · Making it feel alive

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 playable slot machine

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.

  1. Export the machine's art and data (like every export, disc-decoded and never redistributed):
    ./asset slot-art extracted/PROT/0975_*.BIN extracted/PROT/1200_*.BIN --out "<unity project>/Assets/LegaiaImports/slot-art"
  2. Put a cabinet mesh in the scene. The repo ships none (a modelled cabinet tends to carry disc-derived art on its faces, which can't be committed) - any model works: a node named 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.
  3. Menu Legaia > Build Slot Machine..., point it at the cabinet and the art folder, Build. Accept Unity's Import TMP Essentials prompt when it appears (the HUD text is TextMeshPro), then build once more so the text picks up the font.

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.

Realism enhancements

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.

Troubleshooting

The kit's committed README carries the full troubleshooting list, including the collider, transparency and orientation deep-dives: scripts/vrchat-world/README.md.

Faithful vs. approximated

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.

See also

Guides Getting started Extracting assets Playing + viewing Modding + translation
Reference Exporter reference (docs) Unity kit README Game world VR mode (WebXR)