REDBRIDGE / DOCS

REDbridge docs

REDbridge hosts WolvenKit’s engine in a local process and exposes it over JSON-RPC to REDcode, EDGEdeck, REDnode, other Edgemodders tools and AI assistants. The latest release is 0.12.0, for game 2.5 (0.10.0 for game 2.31).

Document What it covers
README How to get REDbridge, every method by group, how a client talks to it, what a mesh or texture import keeps
Changelog What changed in each release, with each method’s parameters
Dev setup Every tool and step needed to build REDbridge on a new machine
Linux A future task: what already runs on Linux, what does not, and the plan

Get REDbridge

You rarely install it by hand: REDcode (REDcode: Install REDbridge), EDGEdeck (Get REDbridge) and REDnode (the Mod Manager’s Get REDbridge) each fetch the latest release for you, and REDnode also uses the copy EDGEdeck or REDcode fetched. By hand: unzip REDbridge-<version>-win-x64.zip from Releases; it needs Windows x64 and the .NET 10 runtime.

The architecture is in the REDcode design document (section 06, Architecture, with its bridge protocol table).

Roadmap status

Phase Status
C0 Decide Done. WolvenKit’s headless libraries build on the reference machine; findings in Dev setup
C1 Bridge MVP Done. The bridge answers every planned method over stdio; verified against a game install with tools/probe.py
C2 Browse Done on the bridge side: archive.tree (folder index over 583,798 files, built in about 1 s), archive.extractMany, cr2w.fileToJson
C3 Edit Done. texture.fileToPng for the texture viewer. Document sessions for the CR2W editor (0.5.0): cr2w.open parses once and keeps the file in memory, cr2w.getNode reads one node with arrays paged (60,303 localization rows open in about 0.4 s and page in under 1 ms), cr2w.patch applies JSON Patch operations atomically and returns the inverse for undo, cr2w.save writes through WolvenKit’s writer, cr2w.describeType and cr2w.createInstance drive the property grid, cr2w.search finds values and property names (60,303 rows in about 0.2 s), cr2w.getNodes reads several nodes in one call. 0.5.1: texture.toPng and texture.fileToPng flip the image vertically as WolvenKit does, so textures come out the right way up and atlas rectangles line up
For REDcode’s world editing On main (issue #24): the CR2W document methods walk into parsed buffers (a cooked node’s inner nodes and its world transforms), so they read, search and patch inside them; checked by the probe on game 2.5 (a patch to an instanced mesh’s inner node and to a transform saves and reads back). On main (issue #23): sector.find lists a sector’s variants by name with their ranges (variants: true; 21,079 variants in 5,190 of 2.5’s sectors) and adds the sectors mods add through ArchiveXL streaming: blocks: (sources: ["mods"], from archive\pc\mod, or "project"), and sector.nodes gives each entry its range (ranges: true); checked by the probe on game 2.5, and against an EDGEbuilder bake installed in the game
For EDGEdeck Done: archive.openMod (0.4.0) lists the resources inside any .archive on disk without loading a game, so the mod manager can show conflicts between mod archives
For EDGEbuilder Done (0.6.0): mesh.info and mesh.infoMany read a mesh’s bounding box and appearance names, or an entity template’s mesh components with their offsets and the union of their boxes; sector.build bakes an EDGEbuilder scene into a worldStreamingSector (mesh, entity and light nodes with node data), a worldStreamingBlock with the streaming box, and an ArchiveXL <name>.archive.xl that adds the block to the world under streaming: blocks:, written into a REDcode project. Verified by the probe: WolvenKit reads the files back. EDGEbuilder’s bake probe loaded a sector in game 2.5 with that form (ArchiveXL 1.28.6); REDbridge writes it since 0.12.0 (issue #13). Since 0.12.0 both also read mods (issue #12): archive (a mod’s .archive anywhere on disk) and root (a folder of loose files, such as a project’s source\archive) are searched before the game’s archives, and sector.build takes a resource found nowhere when the scene gives its bounds, with a warning. Since 0.12.0 (issue #11): sector.find lists the world’s 26,347 streaming sectors with their boxes, and sector.nodes a sector’s placed things with world transforms, resources and references, each instanced copy placed; checked by the probe on game 2.5 (every instanced copy lies in the box the sector keeps for it). Since 0.12.0 (issue #15): solid: true on a scene’s mesh bakes a node that stops V and cars, and mesh.info says hasCollision. On main (issue #18): removals writes ArchiveXL node deletions for node-data entries of the game’s own sectors, each checked against its sector (entry, class, global id), an entity with its proxy meshes, with removed and refused in the answer; checked by the probe on game 2.5 against EDGEbuilder’s D0 door (its proxy found where D0 found it); the form is the one D0 saw work in game, a bake through sector.build not yet tried there
C4 Ship Done. project.pack (0.6.1) packs a folder into <modName>.archive through WolvenKit’s packer and reports the paths with capital letters or spaces, the same warning WolvenKit gives. 0.7.0: project.export and project.import over WolvenKit’s Modkit, on a project’s layout (source/archive to source/raw and back), each returning the files it wrote. Export refuses types WolvenKit has no export for instead of dumping their buffers, and clears WolvenKit’s per-process cache of exported files first, which skipped a second export of the same file. Import of an image gives the existing texture’s setup to WolvenKit, as its app’s import dialog does, and puts back the flags WolvenKit’s settings have no place for: a re-imported texture keeps all ten setup fields and comes back the right way up. 0.11.0 (issue #8, for EDGEmat): a new texture can be given a texture setup, the preset color, normal or grayscale or the setup’s fields, and the import reports the setup it wrote. Not yet tried in the game. 0.13.0 (part of issue #14, for REDcode’s animation viewer): project.export takes rig or rigs for a mesh skinned on its skeleton, appearance for a whole .ent in one appearance on one skeleton (skinned meshes, and rigid ones under their bones), and rootMotion for an .anims with its root motion on Root
C5 View Done on the bridge side: sound.events (0.7.2) for REDcode’s audio player, tweakdb.* (0.8.0) for its TweakDB view, loc.* (0.10.0) for its LocKeys view, mesh.items (0.11.0) for Find Items in its mesh viewer: the item records whose look shows a mesh. No script host: REDcode dropped its script runner
For EDGEwave Done (0.9.0): sound.importWavs overrides game sound effects in a project from <hash>.wav files
Game 2.5 Done (0.11.0, issue #10): built with WolvenKit 10.0.0-beta.1. All 3,041 quest streaming sectors of 2.5 read, with the right node index in nodeData, which has new field names (see the changelog). sector.build writes 2.5 sectors. Game 2.31 sectors no longer read right; other 2.31 files do. The probe and REDcode’s smoke test pass on 2.5 and 2.31. Not yet tried in the game
For EDGEquest Done on the bridge side (0.11.0, issue #9): loc.lines looks spoken lines up by stringId (a scene line’s locstringId.ruid) with their subtitle texts, file and row, .wem voice-over files and lengths; loc.searchLines finds them by words (an index of 104,895 en-us lines from 3,800 subtitle files, built on first use in about 1.3 s, then a few milliseconds a search); loc.newLinesFile gives a project an empty subtitle file named in its .xl. Checked by the probe and against sq030_01_dam_meetup.scene (63 of its ruids have text, 50 a voice and a length). Not yet tried in the game
Animations (issue #14) 0.13.0: project.export puts a mesh on its rig, an entity in one appearance, and an .anims with its root motion. 0.14.0: anims.info, and an export of chosen clips. 0.15.0: project.import of a <name>.anims.glb writes the .anims, over the set at the target, or new from a template or a game rig. On main (issue #19): anims.sync reads a synced clip’s partner tracks, the export keys spline root motion in seconds, and the import stores it as linear, which WolvenKit can write. Rig import from glTF is still to do
Keys (K4a) On main: keys.get, keys.set, keys.delete, keys.info, keys.list on the shared key store, decrypted in .NET; off unless started with --keys. Checked by tools/keys-check.mjs (23 checks, both ways against REDnode’s keys.mjs) and against the dev PC’s own store. For REDcode’s Keys (its #33)
Game view (issue #22) On main: window.find, window.dock, window.undock, window.state and their notifications keep the game’s window on a VS Code webview; off unless started with --windows. REDcode’s three asks from its 2026-11-23 test (an inset, the owner cleared while the window is hung, the release key’s Alt tap and second of unclipping) and the frame put back at undock built on 2026-11-25. Released in 0.20.0. Issue #26 (2026-11-29, in 0.22.0): window.reclip({ holdMs }) clears the region and sets it again, to call before the game changes its resolution, and a change of the game window’s size does it by itself; per-monitor DPI on every window call’s thread. Checked by tools/window-check.mjs (37 checks, two Electron stand-ins, one of which stops answering for 9 s); not yet tried with the game and VS Code. For REDcode’s Game view (G1, G2)

Source code and issues: github.com/Edgemodders/REDbridge