Editing game files
Most game files are in a binary format called CR2W: data only the game and modding tools can read. REDcode opens them in the CR2W editor: a tree of what’s in the file on the left, and the selected part’s properties on the right, ready to change. WolvenKit’s own reader and writer do the work, through REDbridge, so what you save is a file WolvenKit and the game understand.
| On this page | |
|---|---|
| Which files open in it | About forty file types |
| Reading the tree | What you’re looking at |
| Changing values, Undo, redo and save, Search in a file | The everyday work, and going to a path |
| Try it: change one value | A light’s radius |
| Localization files: the table view | The game’s texts |
| Atlases: the atlas view | Interface pictures |
| Sectors: nodeData and instanced meshes | What a placement points at, and what is inside a mesh buffer |
| The Properties view | The same grid, in the sidebar |
| Why a value looks different after saving | Three rules of the format |
| Editing as JSON | The whole file as text |

Which files open in it
Clicking a game file in the Project view or Game Assets opens the CR2W editor. That covers about forty file types, including entities (.ent, .app), meshes, atlases (.inkatlas), materials (.mi, .mt, .mlsetup, .mlmask), animations, rigs, interface widgets, scenes, quests, journals and the world’s streaming sectors. The file types you’ll meet says what the common ones are.
- A
.meshopens on its 3D view first, an.animsfile on its Animations view, and a.streamingsectoron its 3D view of the sector. Tree switches to the editor, and the 3D view is as you left it when you come back. - A texture (
.xbm) opens in the texture viewer. Open in CR2W Editor in the Project view’s right-click menu shows it in the editor instead, with the image above the grid and the texture’s settings (format, compression, flags) in the grid. .jsonand.csvfiles that are CR2W inside, such as the game’s localization files, offer the editor under Open With….
Files from Game Assets open read-only, with a banner: This is the game’s copy and is read-only. Add the file to the project to edit it. Add to Project in the editor’s header does that: it copies the file into your project at its game path and selects it in the Project view. Open the project’s copy to edit it. If the project has the file already, it asks first: open the project’s copy, or replace it with the game’s. See Add to Project.
Reading the tree
A game file is a nest of named things. The tree on the left shows them:
- The top entry is the file itself, with its type.
- Under it are its properties: named values. Some hold a single value, such as a number or a name. Some hold a list. Some hold another object with properties of its own, which you can open in turn.
- Click any entry (the docs call it a node) and the grid on the right shows its properties, each with its type and its value.
In an entity (.ent), the list you’ll use most is components: the parts the object is made of, such as a mesh, a light or a collision shape. Open components, click a component, and its settings are in the grid.
Changing values
Select a node in the tree, and its properties show in the grid. Every kind of value has its own control:
| Value | How you edit it |
|---|---|
| Numbers | Type the new number and press Enter. It’s stored as the game stores it (see Why a value looks different after saving) |
| Names and paths | Edit the text |
| A fixed list of choices (an enum) | Pick from a dropdown |
| On or off | A checkbox |
| Lists (arrays) | Add, remove, and move items up and down |
| An empty place for an object (a handle) | Create the object, with the game’s default values |
The footer says what each edit did, such as Set components.0.radius. Large files open quickly, because the editor reads only the part you’re looking at.
You can drag the line between the tree and the grid to resize them. Double-click it to reset.
Undo, redo and save
The CR2W editor works like any VS Code editor:
Ctrl+ZandCtrl+Yundo and redo.- The tab shows a dot while you have unsaved changes.
Ctrl+Swrites the file through WolvenKit’s writer and refreshes the view.- If VS Code closes with unsaved changes, they’re backed up and restored next time.
Search in a file
The search box in the editor’s footer finds values and property names anywhere in the file. Press Enter to search, click a hit to jump to it in the tree, and press Esc to clear the results. A hit far down a long list, past its first 200 entries, opens the tree at that entry and scrolls to it, as Show in Tree in the 3D views does.
On a sector’s 3D view, the same box selects what it finds in the view: see Search on the sector view’s page.
Go to a path
The same box also goes straight to a place in the file. Paste a path, such as nodes.179.Data.buffer.Data or nodes[179].Data, and press Enter: the tree opens there and selects it, switching from the 3D view if you were on it. Text that isn’t a path searches as before.
Paths are written as in WolvenKit’s JSON, dotted from the top, which is how assistants, scripts and error messages name places in a file.
Try it: change one value
This changes the reach of a light the game uses in photo mode. It needs a project open (make one if you have none).
- In Game Assets, press Filter Game Assets and type
photomode_arealight. - On
base\entities\lights\photomode_arealight.ent, press Add to Project. - In the Project view, click the file under Archive. It opens in the CR2W editor.
- In the tree, open
componentsand click the first component. - In the grid, find
radius, type12and press Enter. - Press
Ctrl+S.
| After | You should see |
|---|---|
| Step 2 | The file selected under Archive in the Project view |
| Step 5 | Set components.0.radius in the footer, and a dot on the tab |
| Step 6 | The dot gone. Close and reopen the file: radius is 12 |
Clicking compiledData in the tree |
A yellow banner and greyed-out fields. See the rules |
The edit itself was tested this way. What the bigger radius looks like in the game’s photo mode has not been checked, so treat this as practice with the editor. Delete the file from your project afterwards (right-click, Delete) if you don’t want it in your mod.
Localization files: the table view
The game’s text files, such as onscreens.json and the subtitle files, open as a Table: one row per text, with its key.
- Type in the filter box to narrow the rows by key or text.
- Click a text to edit it in place. Most entries keep their text in
femaleVariantand leavemaleVariantempty. - Drag the edge of a column header to resize a column. Double-click it to fit the column to its keys. The key columns start as wide as their widest key, and REDcode keeps the widths you set for every localization file.
- Add row adds a new entry and scrolls to it. Each row has a delete button.
- Tree shows the same file as the normal tree.
To find a text by its words across the whole game, use the LocKeys view. Its Add to Project Onscreens copies an entry into your project’s file and opens this table on its row.

Atlases: the atlas view
An atlas (.inkatlas) is one texture cut into many small pictures, called parts, that the game’s interface uses: icons, for example. It opens in the Atlas view: the texture with every part drawn over it as a rectangle.
- Click a rectangle, or a part in the list, to select it. The list has its own filter.
- Edit a part’s rectangle in pixels. REDcode also updates the coordinates the game itself reads, so the two always agree.
- Add and delete parts.
- An atlas can hold the same pictures at more than one size, each in its own slot: usually one texture for 4K screens and one for 1080p. The view shows one slot at a time and lets you switch.
- Fit, 1:1, Pixels and Labels change how the texture shows. Tree is one click away.

Sectors: nodeData and instanced meshes
A streaming sector keeps what it places in two lists. nodes holds each thing’s definition: its mesh, its appearance, how it’s drawn. nodeData holds each placement: where it stands and how it streams, with nodeIdx naming its node. Following those numbers by hand meant scrolling between the two lists. Now the editor follows them for you.
Select an entry under nodeData > Data. Below its own fields:
| Section | Shows |
|---|---|
| 26 copies → nodes[251] transforms 1541 to 1566 | For an entry that places many copies of one mesh: every copy, first, one line each, with its number as the 3D view names it, where it stands in metres, its turn and its scale. open on a line goes to that copy’s own transform. A banner above the entry’s fields says it places copies, with Show the copies |
| nodeIdx 179 → nodes[179] | The node it names, with its fields. In a project’s copy of the sector you can edit them here: the edit lands on that node, and Ctrl+Z takes it back |
| instanceIndex 541 → InnerNodes[541] | For an instanced mesh: the instance it names, from the node’s buffer, with its mesh |
Show in tree on any section goes to that place in the tree. Show in Tree on one copy in the sector view marks that copy’s line and scrolls to it.
Instanced mesh buffers. Some nodes draw one mesh many times, such as railings or ceiling panels. Their copies live in buffers, buffer and cookedWorldTransformsBuffer. They open as a tree like any list: the inner nodes, the transform ranges and the transforms, 200 at a time with Load more. A transform’s row says where the copy stands, such as 1541 at -1299.93, 1212.94, 61.55 m.
Positions in metres. The game keeps some world positions as whole numbers, not metres. Such a position, a copy’s transform or the same type anywhere else, shows in metres in the tree and the grid, with metres above the raw Bits. In a project’s copy of the sector you type it in metres too: the copy moves there. Changing a copy’s place needs REDbridge 0.20.0 or later (REDcode: Update REDbridge); with an older one the field is read-only.
Try it. In Game Assets, open base\worlds\03_night_city\_compiled\default\exterior_-6_4_0_2.streamingsector, press Tree, and type nodeData.Data.2579 in the search box, then Enter. Above the entry’s fields, a banner says it places 26 copies; below them, the copies are listed first, copy 0 at -1299.93, 1212.94, 61.55 m. Press open on copy 0: the tree goes to its transform, and the grid shows x, y and z in metres.
Tested by REDcode’s developer and by script.
The Properties view
The Properties view, the last view in the REDcode sidebar, shows the selected node of the editor you’re in, in the same grid, and you can edit it there. That lets the editor stay on the table, the atlas or the 3D view while the values sit in the sidebar. An edit in either place shows in the other.
Why a value looks different after saving
The format has three rules that explain almost every surprise:
| Rule | What you see |
|---|---|
| The game stores numbers to about seven digits | 0.22 reads back as 0.219999999, which is the same number to the game. A change in the eighth digit or later is lost |
An .ent or .app file holds its components twice: in components, the list you edit, and in compiledData, a ready-to-load copy that is rebuilt from components every time the file is saved |
REDcode shows compiledData read-only, with a note. Edit the component under components and compiledData follows |
| Values at their default aren’t stored | Setting a value back to its default makes the file smaller. Nothing is lost |
Editing as JSON
Every game file can also be read as WolvenKit JSON: the same tree, written out as text. Use it to read a whole file at once, to compare two files, to change many values with find and replace, or to hand the file to an AI assistant. For a single value, the tree is quicker and safer.
- Open as JSON, in the right-click menu of the Project view or Game Assets, opens the file as JSON in a normal text tab.
- On a file from your project, change the JSON and press Save JSON to Project, the button in the editor’s title bar. REDcode asks to confirm, rebuilds the game file in
source/archivefrom the JSON, and reads it back into the tab. - A message then says whether the file reads back exactly as saved. If a value didn’t survive, it names it; the rules above are almost always why.
- Plain
Ctrl+Sonly saves the JSON text, which REDcode keeps in its own storage folder, outside your project. It isn’t part of your mod and never touches the game file, so a half-finished edit can’t break anything.
In the JSON, an edit inside compiledData vanishes on save, for the reason above. In the CR2W editor that part is read-only, so you can’t make that mistake there.
