EDGEBUILDER / DOCS

The scene file

A scene is the contract between EDGEbuilder’s two halves and the input to REDbridge’s sector.build. Format 1, pinned 2026-10-13. It lives in any folder of the Library, at source/scenes/<name>.scene.json in a REDcode project, or in EDGEbuilder’s data folder (“This PC”); B3-2 lets the player choose. The file name is the scene’s name by the bake’s rule (lowercase, every character but a letter or digit an _).

{
  "format": 1,
  "name": "My Alley",
  "game": "2.31",
  "groups": [
    { "id": "grp_crates", "name": "Crates", "parent": null }
  ],
  "objects": [
    {
      "id": "crate_a",
      "kind": "mesh",
      "resource": "base/environment/decoration/containers/cargo/cargo_crate/cargo_crate_a.mesh",
      "appearance": "default",
      "transform": { "position": [-1200.0, 1500.0, 20.0], "rotation": [0, 0, 0.3826834, 0.9238795], "scale": [1, 1, 1] },
      "streaming": { "primary": 60, "secondary": 48 },
      "ref": "edgebuilder/my_alley/crate_a",
      "bounds": { "min": [-0.58, -0.73, 0.0], "max": [0.58, 0.73, 1.24] },
      "group": "grp_crates",
      "props": {}
    },
    {
      "id": "lamp",
      "kind": "light",
      "transform": { "position": [-1199.0, 1500.0, 23.0], "rotation": [0, 0, 0, 1], "scale": [1, 1, 1] },
      "props": { "type": "spot", "color": [255, 200, 120], "intensity": 800, "radius": 12, "innerAngle": 30, "outerAngle": 60 }
    }
  ]
}
Field Meaning
format Always 1 for this page
name The scene’s name. The bake lowercases it and keeps letters, digits and _ for file names
id Optional: the scene’s own id, so other tools (EDGEdir’s sets, a Library bake) find it after a rename or a move. EDGEbuilder makes it (16 hex digits) the first time it saves a scene without one, keeps it through every later save, a rename and a move, and makes a new one for Save as, which is a new scene. A program writing scenes may set its own; EDGEbuilder keeps it. A copy made outside EDGEbuilder keeps the id too, so a tool that finds two files with one id should prefer the path it knew
game The game version the scene was made against, for information
groups The scene tree: id, name and parent id. Groups organise the editor; the bake flattens them into one sector
objects[].id Unique in the scene. Letters, digits, _ and -
objects[].kind mesh, entity or light. More kinds come with phase B5
objects[].resource The game path of the mesh or entity template. Forward or backward slashes. None for a light
objects[].appearance The appearance name, default default
objects[].solid For a mesh, optional: true bakes a node that stops V, bullets and cars (REDbridge 0.12.0 and later). A mesh with no collision data stays draw-only. EDGEbuilder sets it on new meshes; absent means not solid
objects[].transform position [x, y, z] in metres, world space; rotation a quaternion [x, y, z, w]; scale [x, y, z]
objects[].streaming primary: the distance in metres the node streams in at; secondary: a second distance, from the node’s secondary reference point (its middle, as REDbridge writes it). The game hides the node beyond either, so the nearer one is how far it is seen (measured in game on 2026-11-08: 120/96 reached 96 m). EDGEbuilder’s Seen from writes both the same. Both optional: the bake derives them from the object’s size
objects[].ref The node reference, unique in the scene. Generated as edgebuilder/<scene>/<id> when missing
objects[].bounds The resource’s local bounding box, from the asset index, so the bake need not read the game. Read from the game when missing
objects[].group The group the object belongs to
objects[].props The kind’s own fields. Lights: type (point, spot, area), color [r, g, b] 0 to 255, intensity, radius, innerAngle, outerAngle, ev, temperature
generator Optional, for a scene a program wrote: { "name", "version", "build" }, only name required. EDGEbuilder keeps it when it saves and never reads it
objects[].meta Optional, the writer’s own: any JSON (a room id, a rule name). Kept untouched by a save, copied to a duplicate, never read and never baked

Positions are the game’s world coordinates in metres: X east, Y north, Z up. A rotation of [0, 0, 0, 1] is no rotation.

The schema, and the rule for change

Each format has a JSON Schema, written from the code that checks scenes, so the two cannot differ:

Format Schema
1 schema/scene-1.schema.json
2 schema/scene-2.schema.json
3 (a draft) schema/scene-3.schema.json

The schemas allow fields they do not name, since a later EDGEbuilder may add optional ones. The command line’s check warns about a field this EDGEbuilder does not read, which catches a misspelt name.

Change What happens
A new optional field that an older reader can ignore safely Same format number. Listed in the format changelog below with the EDGEbuilder version that first reads it
A new kind, a new list, or a field an older reader must not ignore A new format number. EDGEbuilder writes the new number only for a scene that uses the new thing
An older format Every later EDGEbuilder reads it and bakes it the same. Promised for formats 1 and 2, which are pinned; format 3 joins when it is pinned
Removing or renaming a field Never within a format

The same rule binds the names of the tools EDGEbuilder’s service offers (scenes, refs, select, focus, scenesEditing) and the command line’s report: a name or a field is not removed or renamed without the new one beside it for at least one release, and the changelog says so under Changed.

Format changelog

Date Format Change EDGEbuilder REDbridge that bakes it
2026-10-13 1 Pinned: mesh, entity, light 0.1.0 0.6.0
2026-11-08 1 objects[].solid 0.8.0 0.12.0
2026-11-08 1 streaming also sets a mesh’s own hide distance (Seen from) 0.8.1 0.12.1
2026-11-12 2 Pinned: the npc kind with record or resource 0.10.9 Never baked
2026-11-19 3 (draft) worldEdits with remove 0.12.0 0.16.0
2026-11-23 3 (draft) worldEdits with door 0.13.0 Never baked
2026-11-27 1, 2, 3 generator and objects[].meta, kept and never baked 0.14.0 Any
Not released 1, 2, 3 id, the scene’s own id (EDGEbuilder #6), never baked After 0.14.0 Any

What the bake makes of it

REDbridge’s sector.build turns the objects into one worldStreamingSector with a node per object (worldMeshNode, worldEntityNode, worldStaticLightNode), one worldStreamingBlock whose descriptor holds a streaming box around every node, and an ArchiveXL file that patches the block into the world. The files land in the REDcode project under source/archive/edgebuilder/<name>/ and source/resources/archive/pc/mod/<name>.xl. Every node’s reference goes into its node data, so the game can find it by name.

Format 2 draft: NPCs

Drafted on 2026-10-23 for phase B3c. Pinned on 2026-11-12, when B3c passed in game on EDGEbuilder 0.10.9 (the heading keeps its name, so links to it hold): EDGEbuilder writes format: 2 only for a scene that holds a person, format 1 otherwise, and REDbridge still gets format 1 (a bake leaves people out). EDGEbuilder writes record, never resource, for the people it places, and props.behaviour: "idle". REDnode 0.40.1 already reads this draft in world.load (H2c-b passed in game on 2026-10-26): it takes format up to 2, an npc with exactly one of record and resource, and notes any props.behaviour other than idle; it ignores ref, groups, streaming, bounds and an entity’s scale. A change to these fields goes to REDnode’s reader in step. Agreed with the owner the same day, with REDnode’s H2c (World API, H2c): REDnode reads scene files itself (world.load), so EDGEquest and other packages can load a scene without EDGEbuilder running, and the format stays EDGEbuilder’s to pin.

Format 2 adds one kind and changes nothing else. A format 1 file is a valid format 2 file once its format says 2.

{
  "id": "wakako_spot",
  "kind": "npc",
  "record": "Character.CitizenRichFemale",
  "appearance": "default",
  "transform": { "position": [-1200.0, 1502.0, 20.0], "rotation": [0, 0, 1, 0], "scale": [1, 1, 1] },
  "ref": "edgebuilder/my_alley/wakako_spot",
  "props": { "behaviour": "idle" }
}
Field For npc
record The character’s TweakDB record (Character.*). One of record and resource
resource An entity template (.ent) instead of a record
appearance The appearance name; the record’s own when missing
transform As for every kind. scale is ignored
props.behaviour idle (the default): stands where it was placed and stays friendly to V. Other behaviours (walk, talk, fight) are a later phase

Baking NPCs is open. The game places people through community and population spawner nodes, not worldEntityNode, and nothing here has been tried. Until a bake is planned, an npc object loads in the running game (EDGEbuilder’s previews, REDnode’s world.load) and the bake skips it with a warning.

Format 3 draft: world edits

Drafted on 2026-11-19 for D1, the Doors slice (World objects, “Doors first”); built in EDGEbuilder 0.12.0 (D1a), not pinned until D1 passes in game. A scene can change the game’s own world: D1 removes doors, painted-on doors and meshes the game placed. EDGEbuilder writes format: 3 only for a scene with at least one world edit, and format 2 or 1 otherwise, as before. Format 3 adds one list, worldEdits, and changes nothing else.

"worldEdits": [
  {
    "id": "remove_single_door",
    "action": "remove",
    "what": "door",
    "label": "Door single_door.ent (doors_single_kitsch_g_frameless)",
    "node": {
      "sector": "base\worlds\03_night_city\_compiled\default\exterior_-22_19_1_0.streamingsector",
      "sectorHash": "0x3c9117867951bc5a",
      "entry": 288,
      "node": 271,
      "type": "worldEntityNode",
      "globalId": "6132383399567759307"
    },
    "fingerprint": { "resource": "base\gameplay\devices\doors\final\single_door.ent", "appearance": "doors_single_kitsch_g_frameless", "position": [-1388.56, 1271.94, 123.07] },
    "ref": "$/03_night_city/c_watson/little_china/.../#q001_door_v_flat"
  }
]
Field Meaning
id Unique in the scene
action remove (D1) or door (D2: a door’s state, below). Later edits (move, rescale, an appearance) get their own actions
what The picker’s kind: door, fakeDoor or mesh
label What the Scene tab shows
node.sector, node.sectorHash The sector’s depot path (empty if REDbridge did not name it) and its path hash, as REDnode’s world node registry gives it
node.entry The node data entry: what ArchiveXL’s nodeDeletions names, and what REDnode’s registry calls the instance. ArchiveXL counts a sector’s entries, not its nodes (D0)
node.node, node.type The node the entry places and its class; ArchiveXL checks the class
node.globalId The node’s global id in decimal, when it has one; for a door, its entity’s id (D0)
fingerprint The file, appearance and place, to find the node again if a game patch renumbers the sector
proxies An entity’s proxy meshes seen in the game (worldEntityProxyMeshNodes whose ownerGlobalId is the entity): the bake removes them too, and finds them itself when absent
ref The node’s reference, when it has one: a quest can address a node that has one
door door only: the state the scene keeps, open and locked, each true, false or absent (as the game has it)
before door only: how the door was when the scene first set it (open, locked, closesItself), which Restore puts back

A door’s state (D2, EDGEbuilder 0.13.0). A door edit keeps an interactive door open, closed, locked or unlocked while the scene is open or on. It names the door’s worldEntityNode as a removal does, and has no proxies:

{
  "id": "door_single_door",
  "action": "door",
  "what": "door",
  "label": "Door single_door.ent (doors_single_kitsch_g_frameless)",
  "node": { "sector": "...", "sectorHash": "0x3c9117867951bc5a", "entry": 288, "node": 271, "type": "worldEntityNode", "globalId": "6132383399567759307" },
  "fingerprint": { "position": [-1388.56, 1271.94, 123.07] },
  "door": { "open": true },
  "before": { "open": false, "locked": false, "closesItself": true }
}

A bake cannot set a door’s state (D0’s D5: ArchiveXL’s node mutations do not reach a node’s instance data), so the bake leaves door edits out and EDGEbuilder sets them in the running game: when the scene opens, after a save loads, and when the door comes into the world again. A door kept open does not close itself while it is kept (its setup’s automaticallyClosesItself is switched off). The door’s state is the door’s own, so it is also in the player’s save.

Who reads it. EDGEbuilder hides each removal live through REDnode’s world node registry (world.setVisible) while the scene is open or on, and the bake (D1b) writes them as ArchiveXL node deletions through REDbridge’s sector.build. REDnode’s own reader (world.load) takes formats 1 and 2, so EDGEbuilder hands it a format 2 copy without worldEdits for the scenes that are on; other packages loading a format 3 scene through REDnode need its reader to take format 3 (REDnode #51).