Tests
Every test run on EDGEmat so far: how to run it again, what to expect, and what it showed. Each phase ends with a test on the dev PC (design, “Phases”); new tests are added here when they are first run.
Last updated 2026-10-26.
At a glance
| Test | Kind | Phase | Last run | Result |
|---|---|---|---|---|
| Type check and build | Automated | M1 | 2026-10-16 | Pass |
| Core package | Automated by hand, a scratch folder | After 0.3.1 (#7) | 2026-11-12 | Pass (Claude): packed and installed in a scratch project; require gives 144 exports, import works, EDGEfab’s imports type-check against its types, no powershell or SecureString in it |
| Smoke test | Automated, needs the game | M1 to M3 | 2026-10-26 | Pass, with the Desk’s six checks (entries, variations, the move from the old Desk), and the items that wear a mesh look (2026-10-26: the slim-fits’ leather look, Items.Pants_01_basic_01; index in 11 s), and microblends in the color map (the slim-fits’ leather: base 87.1%, denim with lint 0.5%, piping 6.7%) |
| MCP server | By hand, over stdio | M1 to M3 | 2026-10-20 | Pass. 2026-10-25: 11 tools listed; mat_desk adds, refuses a .ent, lists and clears, in a scratch cache. 2026-10-26: mat_desk add twice reuses the unedited entry (same id); remove of an unknown id is refused. mat_find with the slim-fits mesh and look leather: worn_by Items.Pants_01_basic_01 (feminine) with its cet command; with item Items.Pants_01_basic_01, cet |
| Game Materials view | By hand, F5 | M1 | 2026-10-17 | Pass (as the Library view) |
| Game Materials name | By hand, F5 | After 0.3.1 | 2026-11-13 | Pass (owner, laptop: steps 1 to 9); then the magnifier became Filter Game Materials, a funnel (2026-11-13, the owner: search and filter are different actions), and a filter opens the groups down to what it found: steps 2 to 4 and 7 rerun and passed the same day (owner, laptop). On the way: step 6 reworded (each title bar button by its look and tooltip); step 9 added after the owner saw a microblend’s tooltip had no picture (fixed the same day) |
| Surface page | By hand, F5 | M2 | 2026-10-17 | Pass |
| Setup editor | By hand, F5 | M2 | 2026-10-17 | Pass |
| Find view | By hand, F5 | M2 | 2026-10-19 | Pass |
| View in 3D | By hand, F5, with REDcode | M2 | 2026-10-19 | Pass |
| Setup editor: editing and Save to Project | By hand, F5, with REDcode | M3 | 2026-10-20 | Pass |
| New Material | By hand, F5, with an image service key | M3 | 2026-10-20 | Pass |
| Generate round trip | In the game, with REDcode and Claude Code | M3 | 2026-10-20 | Pass on the owner’s V |
| Tiling check | In the game, from npm run tiling-check |
M3 | 2026-10-20 | Done: LayerTile repeats the textures |
| Reshape check | From node scripts/reshape-check.mjs, with Gemini and Tripo keys; then in the game |
W3 | 2026-11-02 | Passed (owner, in the game): the cowboy hat with a brim about 1.8 times as wide, from GPT Image 2.5’s picture, sits on V’s head, one brim, the badge in front. Before it: V’s head through the crown (fixed: the crown centred on the game’s) and two brims (Gemini’s picture) |
| Materials from a model | Automated by hand, with the game’s files | M4 (#4, #6) | 2026-11-04 | Pass outside the game: EDGEfab’s glowing vending machine (one material, four maps, glow strength 3) gave five textures and a .mi that reads back with every value (EV 5.585 under the first rule; 2.585 since 2026-11-05); texture files on a game screen mesh took its xx_screen entry only, the other four named as kept; mat_from_model over stdio. Smoke: the .mi’s glow values |
| Glow check | From npm run glow-check, then in the game |
M4 (#6) | 2026-11-05 | Partly run (owner, in the game, screenshots, strength 1, EV 4): it glows and follows the map, but very bright in a dark room: the middle washes out to white, with cyan only at the edges and in the halo. Too bright for small lit details (owner); it depends on the use. Strength 0.25 (EV 2) looks the same to the owner, in the installed archive and loaded by the game. Strength 0.0625 (EV 0): EV does act: the halo is much tighter and V’s vest loses its tint, but the middle is still white, as a game sign in the same shot looks. EV -4, EV -2 and EV 0 with the color at a sixteenth: all black, which no dimming explains well. The owner’s control, strength 1 again: the glow returned, so nothing else interferes and the drop is real. The ladder at EV 0: the whole hat dark. The ladder at EV 1 (read back from the game folder): all six levels show, in a dark room and in daylight, no wide bloom. So EV 0 and below is off; the rule is now 1 + log2(strength), never below 1. The color dimming passed too (EV 1, the color at a quarter). Passed; the vending machine in the game stays with EDGEmat #6 |
| Paint check | From npm run paint-check, with a Tripo key; then in the game |
W2 | 2026-10-31 | Passed (owner, dev PC): Tripo keeps the garment’s vertices and UVs, and its paint shows in the game as painted. It paints no repeating pattern |
| M3 in-game round trip | In the game, with REDcode and Claude Code | M3 | 2026-10-20 | Pass on the owner’s V; the deploy needed a separate step |
| M2 phase test | Against WolvenKit’s reading, and by the owner | M2 | 2026-10-19 | Pass |
| The Desk | By hand, F5, with REDcode | After 0.3.1 | 2026-11-13 | Pass (owner, laptop, 2026-11-13: all 24 steps). On the way: clearer wording for steps 2, 6, 10, 11, 14 and 18; step 14’s project now opens in REDcode (owner’s ask); step 18 first gave no Replace or Keep question because the new material went on another look than the one edited (no clash; the test now uses leather throughout); step 23 failed with ENOTEMPTY on desk\items (a held file), fixed the same day and passed on the rerun. Earlier: 2026-11-13 (owner, laptop): run up to step 19, with no failure reported before step 18 (results of steps 15 to 17 not yet reported), after clearer wording (steps 2, 6, 10, 11, 14, 18) and a change: step 14’s project now opens in REDcode. Step 18 first showed no Replace or Keep question: the new material went on another look than the one edited in step 7, which is no clash (the step now says to use **leather throughout). Rerun on leather: the question shows.** Replayed the same day on the dev PC with the core (leather edited on the Desk, added, the blue variation added, a material put on leather in the project): the conflict is found. Still to run: 19 to 24. Earlier: Partly run by the owner after the rework, 2026-10-26: steps 1 to 3, 5 to 11, 13, 14, 16, 17 and the first part of 21 pass. Still to run: 3b (new: Add to Desk in Find), 4, 12, 15, 18 to 20, the rest of 21, and 22 to 24. Earlier runs: 2026-10-25, two failures. Step 12 said “0 files written” in a project that already had its own slim-fits (pointed at other materials), and the edit stayed on the Desk with only a log line; Add and Clear would have deleted it. After the add, the game’s mesh in Game Assets showed the Desk’s edit in 3D. Both fixed 2026-10-26. A second run the same day: a second pair of slim-fits from Game Assets showed the first pair’s edit (the Desk kept one edit per setup for all entries), and a project file kept reading “the project’s copy” after the project was closed. Reworked 2026-10-26 into entries with their own edits, variations and a + per entry, with new steps |
| Microblends and worn looks | By hand, F5, with REDcode | After 0.3.1 | 2026-11-13 | Pass (owner, laptop: steps 1 to 7; step 1 reworded to use Game Assets’ Filter, not its Search pick list, which cannot be right-clicked). Earlier: Steps 2 to 6 passed (owner, 2026-10-27). Step 1 opened the look green (worn by 1 item, and before leather in the mesh), not leather: the Desk took the first look any item wears. Changed the same day to the look the most items wear, and Find got a + (Add to Desk) on each mesh: rerun step 1, and step 7 (new). The smoke test checks the slim-fits’ leather shares (base 87%, denim with lint 0.5%, piping 6.7%) |
| Which item: In the game | By hand, F5, then in the game with REDnode’s Console | After 0.3.1 | 2026-11-13 | Pass (owner, laptop, 2026-11-13: steps 1 to 6, in the game with REDnode’s Console: V got the jeans in the Desk’s color). On the way: CET gave way to REDnode’s Console (Copy REDnode Command, addItem); step 1 finds the jeans by name in Find; step 2 says where Copy is. Earlier: Not run yet. Built 2026-10-26; the smoke test checks the lookup on the slim-fits, and mat_find over stdio returns worn_by |
| Open Mesh in EDGEmat | By hand, F5, with REDcode | After 0.3.1 | 2026-11-13 | Pass (owner, laptop, 2026-11-13: every step, 1 to 7 and 4b). On the way: step 2’s tooltip paths were cut off, so they wrap now; step 7 seemed to do nothing, so the look’s layered material now opens in the setup editor. Earlier: Partly run by the owner: steps 1 to 3 pass; step 4 failed (the edit vanished from view after a tab switch, and Save to Project pointed the citizen jeans’ meshes, not the project’s). Both fixed the same day. Since 2026-10-25 the mesh goes on the Desk: run The Desk first, then this test from step 3 |
| Open Material in EDGEmat | By hand, F5 | After 0.3.1 | 2026-11-13 | Pass (owner, laptop, 2026-11-13: steps 1 to 6). Reworded on the way: a click already opens the setup editor (the default editor for .mlsetup); step 3 names REDcode CR2W Editor; step 6 expects Open in EDGEmat on a mesh. Earlier: Not run yet. Type check and build pass (2026-10-21) |
| Keys in VS Code | By hand, F5, then Claude Code | After 0.3.1 | 2026-11-13 | Pass (owner, laptop: steps 1 to 7). Step 6 first failed: the copied command had no -e for the key (Copy skipped the keys; the same in 0.3.1); fixed the same day and passed on the rerun. Built 2026-11-11 (EDGEmat #10); the packaged VSIX has no PowerShell decryption, and mat_generate’s no-key answer over stdio passes. It replaces Shared keys, withdrawn unrun when the shared key store was shelved |
| Wardrobe Designer W0 | By hand, in the game with REDnode and REDagent | W0 | 2026-10-30 | Passed (owner, every step): 6 worn items read in 4.6 s (with the item index of 2,074 clothing items); V’s Pants’ 12 layers in 2.1 s over REDnode’s REDbridge, the window over the inventory screen taking clicks; three plans in 3.0 to 6.2 s for $0.09 in all, with real presets of the right color (checked with mat_colors) |
| Wardrobe Designer W1 | By hand, in the game with REDnode and REDagent | W1 | 2026-10-30 | Passed (owner, every step: step 3 after the preview fix, REDnode #28; step 7 after the Restore fix, REDnode #29). Built 2026-10-30; checked outside the game: V’s Pants restyled into a scratch project twice (the second from the copy), packed (2 files), and mat_restyle over stdio |
| Wardrobe Designer W2 patterns | By hand, in the game with REDnode, REDagent and a Gemini key | W2 | 2026-11-01 | Passed (owner, rerun from step 4): yellow dots, bigger dots staying yellow, the world look, red leather taking the pattern off, Restore. Faded dots near the tile edges: EDGEmat’s seamless blend, not Gemini. Gemini refused one image once (IMAGE_RECITATION); pressing again worked |
| Wardrobe Designer W2 pattern fixes | By hand, in the game with REDnode, REDagent and a Gemini key | W2 | 2026-11-02 | Passed (owner, in the game): the same picture kept at a new size and shine, no Gemini call; a picture that tiled across only shows faded dots in bands where it was blended down. Built 2026-11-01; checked outside the game on V’s Pants with two saved Gemini pictures: the same words at a new repeat, then a new shine, made no image call and left only the new repeat’s files; a picture that tiles across only was blended down only. Smoke: tiling, and the IMAGE_RECITATION retry against a stand-in |
| Wardrobe Designer Reshape and keys | By hand, in the game with REDnode 0.56.1 or later, REDagent, OpenAI and Tripo keys | W3 | 2026-11-03 | Steps 1 and 2 as expected (owner): with every key set and allowed already, it opened on the main view. Two fixes the same day, from the log and the owner: Equipment-EX’s slots were not read (the app’s TweakDB check for them failed with Equipment-EX 1.2.10 installed), and the white pictures clashed with the dark window (now shown on a dark background). Then the owner saw an item Equipment-EX’s outfit no longer wore listed as Outer torso (still equipped in the base slot, hidden): with the outfit on, the app now reads only its slots. Rerun from step 3 after Restart. Since 2026-11-27 the app picks clothing from a Clothing dropdown, not buttons: steps 3 and 10 say so. REDnode’s log shows Equipment-EX’s slots read in every run since 2026-11-11 (6 items in the outfit, 4 of them in Equipment-EX’s own slots, on 2026-11-27): Wardrobe Designer: the Clothing dropdown checks it |
| Wardrobe Designer: the Clothing dropdown | By hand, in the game with REDnode 0.68.0 or later, Equipment-EX and REDagent | W3 | 2026-11-27 | Passed (owner: every step works; REDnode 0.76.2, Equipment-EX 1.3.3). Two findings from a Reshape the owner tried after it, both in Wardrobe Designer: window fixes: Back after Make it left the made cap on V (it took the change away from the pictures only; the log, 14:29:11), and the app’s own key (F11) showed the closed picture window “As it is” again (REDnode shows a Node mod’s closed windows again with its key, as documented; the window fixes show the picture in the main window, so the app has one window) |
| Wardrobe Designer: window fixes | By hand, in the game with REDnode 0.68.0 or later and an OpenAI key | W3 | Not run yet. Built 2026-11-27 (owner’s ask): the Reshape test’s other faults (the window’s size, following V’s clothes, the larger picture in the window, the see-through lower part), and from the dropdown test’s day: Back takes a made change off V, one window for the app’s key, a progress bar while it works; built into the app 2026-11-27. 2026-11-28: the list follows V’s clothes again after the window is closed and shown with F11, and a Refresh the list button (owner’s finding; steps 10 and 11) | |
| Wardrobe Designer patterns with GPT Image | By hand, in the game with REDnode, REDagent and an OpenAI key | W2 | 2026-11-02 | Passed (owner, in the game): sharp, even dots front and back, none faded (“much better than Gemini”); REDnode asked for the OpenAI key once; the switch works and is saved. Not seen: a restart with Gemini chosen |
| Parts check | From node scripts/parts-check.mjs |
#12 | 2026-11-18 | Passed (Claude, outside the game, on a copy of EDGEfab’s vending machine): 9 parts listed; red car paint on one (a one-layer setup, nothing embedded, tiling 5.9 from the part’s size); 331 of the game’s 10,660 materials suit any shape (read in 9 s); bulletproof glass on another; a decal refused; a third back on the model’s texture; packed |
| Game materials on a prop’s parts | By hand, F5, with REDcode; then in the game with EDGEbuilder | #12, before EDGEfab 0.1.0 | 2026-11-18 | Passed, all 11 steps (owner) |
| Desk parts check | From npm run desk-parts-check |
Desk part commands | 2026-11-25 | Passed (Claude, outside the game, on the s1_055 sneakers with a scratch Desk and project) |
| Keep check | From npm run keep-check |
#13 | 2026-11-25 | Passed (Claude, outside the game, on EDGEfab’s neon_vending_box2 Tripo model: 70 materials; a new glow with every slot kept in 0.1 s against 60.7 s, no texture written) |
| Messages name EDGEmat | By hand, F5, with REDcode | #15, before 0.4.0 | 2026-11-27 | Pass, by script (the EDGEweb session: steps 2 to 4 on 2026-11-26; steps 1 and 5 again on 2026-11-27, on e5ab604, as expected). #15 closed. Since then (2026-11-28): after a search, the list’s first match is chosen, not the path box, so Enter takes it; as expected by script on 8a49d9f (2026-11-29), but with no match the no-match row came above the path box, fixed 2026-11-30 (Nothing found) |
| Game materials on a Desk mesh | By hand, F5, with REDcode; then in the game | Desk part commands, before 0.4.0 | 2026-12-04 | Passed (owner, 2026-12-04: steps 1, 2, 4 and 9 in the editor, then 11 and 12 in the game; EM6). Before it, by script: steps 1 to 10 as expected (the EDGEweb session; steps 3, 6 and 7 again on 2026-11-28 on 9eb2f5d with REDcode main 178ca04, as expected, the eye opening the look clicked; steps 11 and 12, in the game, are the owner’s). Before (steps 1 to 10, on e5ab604; see the section): steps 2 and 4 to 10 as expected; step 1’s text was wrong (three icons; the tooltip goes on after the sentence), reworded; step 3 differed: the eye opens REDcode’s 3D view on the mesh’s first look, not on red (REDcode can’t be told the look: REDcode #38), reworded to pick the look until then. REDcode built openMesh on its main (178ca04) on 2026-11-28; EDGEmat uses it the same day, so step 3 opens on red with that REDcode. Step 7’s notice said “It changed on the Desk” after going back, fixed 2026-11-28. Steps 11 and 12, in the game, are the owner’s |
| Reshape with the game’s materials | From node scripts/reshape-check.mjs (no credits: the hat made in the Reshape and keys test), then in the game |
W3, before Wardrobe Designer 0.1.0 | 2026-11-18 | Passed (owner, steps 3 to 5, the three cowboy hats): the textures are the game’s own, bright, not Tripo’s paint. Finding: the band is a little distorted on the new shape (“not terrible”); it is the game’s band bent by EDGEmat’s fit (transfer.ts), not Tripo, so it can be improved later |
| The bake: color | By hand, F5, with REDcode; then in the game | M5’s first part, before Wardrobe Designer 0.1.0 | 2026-11-18 | Passed, all 4 steps (owner). Built 2026-11-16; smoke passes (the slim-fits’ leather: median 50 against the flat map’s 8, with grain). Claude drew the Cowboy hat’s Reshape views with it: median 158 (was 81), light grey felt; black specks and peach patches remain |
| Zoom on the setup map | By hand, F5 | The setup editor | 2026-11-18 | Passed (owner) |
| Bumps the right way round | By hand, F5, with REDcode; then in the game | The bump fix (#11), and bumps on a garment, before 0.3.3 | 2026-11-18 | Passed (owner, rerun). The first run failed (white dots, no bumps: on a garment New Material kept the garment’s own normal map and dropped Bumps); fixed the same day, the bumps laid over the folds. In the rerun, with photo mode’s depth of field off, each stud is raised (a shadow along the edge away from the sun) and the seams still show |
| View in 3D follows a part’s change | By hand, F5 or Ctrl+F5, with REDcode | The fix after 0.3.3 | 2026-11-22 | Passed (owner, all 6 steps; step 6 failed first and was fixed the same day: New Material Here now refreshes the Desk’s copy). Built 2026-11-19 |
| Shared keys | By hand, F5 “Run EDGEmat with REDcode main”, REDbridge 0.18.0, then Claude Code | #18, before 0.3.4 | 2026-11-22 | Passed (owner, all 7 steps; step 7, Don’t Allow, added and run the same day). Built 2026-11-22. The key store client was checked against REDbridge 0.18.0 the same day (each service’s keys.info; keys.get; REDbridge 0.12.1 gives the “needs 0.18.0” words; a wrong exe gives words, not a hang) |
| Glow and tint in the 3D view | By hand, F5 or Ctrl+F5, with REDcode | After 0.3.3, before 0.3.4 | 2026-11-22 | Passed (owner, all 4 steps). Built 2026-11-22. Checked outside the game the same day: z emissive blue on a scratch copy of EDGEmat_PropParts draws (0, 138, 255); the smoke test’s sneakers draw dec_lights amber (255, 187, 0) |
| Shine in the 3D view | By hand, Ctrl+F5, with REDcode 0.10.15 or later | Before 0.4.0 | 2026-12-04 | Passed (owner, 2026-12-04: the look judged, EM9). Before it: run by script, every step as expected (the EDGEweb session, pictures for the owner, EM9): the front reflects with hard-edged white patches (REDcode’s room light mirrored by an even metal 1, roughness 0.4: the owner judges); the leather glossier than the canvas, the sole matte; step 4 (reworded 2026-12-02: the canvas has no preset glossier than its texture) turns the red latex matte before a save and back. Repeated preset labels now show their range. Built 2026-11-30: roughness and metal maps sent with the colors. npm run shine-check and the smoke test pass |
| Smooth mask edges | By hand, Ctrl+F5 | Before 0.4.0 | 2026-12-01 (scripted) | Passed by script (the EDGEweb session, on 99a1433, all 4 steps): smooth rounded patch edges on the white sneakers, smooth areas on the setup map, Remove’s question names the unsaved setup, Cancel keeps it, Remove closes its tabs. Built 2026-12-01 from EDGEweb’s run of 2026-11-30. The smooth edges confirmed by the owner’s eye 2026-12-04 (REDcode’s step M6; RC17 closed) |
| Open in EDGEmat on meshes only | By hand, Ctrl+F5, with REDcode 0.10.5 or later | Before 0.4.0 | 2026-12-01 (scripted) | Passed by script (the EDGEweb session, on e429550, all 4 steps): on the jacket’s .mesh and .mlsetup, not on its .ent, .mlmask or _n01.xbm |
| Bumps in the 3D view | By hand, Ctrl+F5, with REDcode 0.10.15 or later | Before 0.4.0 | 2026-12-04 | Passed (owner, 2026-12-04: the look judged, EM9). Before it: run by script, every step as expected (the EDGEweb session; pictures for the owner, EM9): the normal check’s blue dots raised and red dented, as in the game; folds, seams, stitching and the jacket’s wrinkle creases as relief; nothing inside out. At Light 2.5× the jacket and jeans come out near white: brightness for the owner to judge. Built 2026-12-01 (microblends’ own bumps the same day). Open question (owner, 2026-12-04): on the jeans’ default look (step 2), striping on one leg at the upper leg seam, not seen before. The game’s own normal map (l1_012_wa_pants__jeans_tight_n01.xbm) has the same streaks as EDGEmat’s bake (stretched strips at the waistband’s islands and along island edges), and the live shader matches the bake there (npm run live-check on the jeans: bumps 0.7° apart), so most likely the game’s texture; the owner’s picture did not come through, so where exactly is still to match |
| Closest colors in the setup editor | By hand, Ctrl+F5 | #20, before 0.4.0 | 2026-12-02 (scripted) | Passed by script (the EDGEweb session, on acf9690, all 6 steps): red on a road gives a note and the 24 closest greys; gray finds all 72; zzz names dark grey, grey, light grey. Built 2026-12-02 |
| Glass and glow in the 3D view | By hand, Ctrl+F5, with REDcode 0.10.18 or later | M5 step 4, before 0.4.0 | 2026-12-04 | Passed (owner, 2026-12-04: the look judged, EM9). Before it: run by script, every step as expected (the EDGEweb session, rerun on e651ebc; pictures for the owner, EM9): the vending machine’s back an even pale cyan, far brighter than the lit parts, dimming a fifth at Light 0.5× (Light is the view’s exposure); the glass see-through; the sole strip amber. The first run (2f59e9a) found a strong glow clipped to white: fixed by capping the viewer’s glow. Built 2026-12-03; npm run shine-check and the smoke test pass. REDcode’s own #42 steps then found neon signs (device_diode.mt) white: fixed in 13d9f07; the rerun of G1, G2 and G4 by script on 9f2a17c as expected (cyan, orange, yellow and blue tubes). Found by the owner (step 4): the amber strip is brighter but flat; it does not give off light (no glow spreading round it, as light would). Known: REDcode’s view has no bloom, and a glow lights nothing near it; that is M5’s step 3 (the light) |
| Live check | Automated, npm run live-check, needs Chrome |
M5 step 2, before 0.4.0 | 2026-12-03 | Passed (Claude): the shader against the bake on the jacket and the sneakers, 2.2 to 3.4 of 255 apart on average, bumps 1 to 3° apart; an edit keeps the shape and draws as a new bake does; a new surface changes the shape |
| Live shader in the 3D view | By hand, Ctrl+F5 “Run EDGEmat with REDcode main” | M5 step 2 (REDcode #43), before 0.4.0 | 2026-12-04 | Passed (owner, 2026-12-04: the look judged, EM9). Before it: run by script, every step as expected (the EDGEweb session, on 9f2a17c with REDcode main): sharp up close, each number edit shown in under half a second with no render, a new surface rendered again, off and broken fall back. Two faults it found fixed 2026-12-04 (the Tiling box losing focus; the swatches over the map in a narrow editor): retests R1 and R2 as expected by script (64bf5dd). Their run found the first edits after opening rendered fully, and a setup from Game Assets not showing on the game mesh (REDcode’s L2): both fixed, and retests R3 and R4 as expected by script (634e09b), with REDcode’s L2 and L3’s edit half |
| The Desk’s edits in the 3D view | By hand, F5 or Ctrl+F5, with REDcode | #17, before 0.3.4 | 2026-11-22 | Passed (owner, all 8 steps). Built 2026-11-21. The no-library half of #17 is in the smoke test (passed 2026-11-21) |
| Normal check | From npm run normal-check, then in the game |
#11, before Wardrobe Designer 0.1.0 | 2026-11-15 | Done: the game reads green down (DirectX). The owner, laptop, midday sun from above: the blue rows (green down) look raised and the red rows (green up, EDGEmat until then) dented, clearest where the light falls fullest (the hip); some dots on the curving sides read either way. Claude’s enlargement of the knee agrees: blue dots bright on top, red dots bright at the bottom. It matches EDGEfab’s evidence. Fixed the same day: normalMap() green down by default, materialsFromModel flips glTF’s by default; smoke checks the direction |
| Wardrobe Designer install | By hand, in the game, from the release zip | Each Wardrobe Designer release | Not run yet. Added 2026-10-30 with the release scaffolding; the draft zip builds (65 KB, the game-folder layout) | |
| Connect an assistant | By hand, in a normal VS Code, with Claude Code | Each release | 2026-12-04 | 0.3.4: passed (owner, 2026-12-04, EM1: steps 1 to 6 in a normal VS Code). 0.3.4, by script: partly run (the EDGEweb session, 2026-11-24, in EDGEkit 1.143.1 with a scratch profile; see the section): steps 1 and 2 pass; step 3 said claude was not on the PATH (it is in %USERPROFILE%\.local\bin, not on the Windows PATH), fixed 2026-11-25 (Connect Claude Code looks there), and passed by script on e5ab604, 2026-11-27 (claude off the PATH, a scratch CLAUDE_CONFIG_DIR: “claude is not on the PATH; using ….local\bin\claude.exe”, the server added, “EDGEmat is connected to Claude Code, reading your image service and Tripo keys from REDcode’s Keys”, no key asked; claude mcp list: edgemat Connected); step 4 found no server; 5 skipped; 6 EDGEkit has no MCP list. The owner’s run in a normal VS Code is open. 0.3.2: pass (owner, laptop, 2026-11-13: steps 1 to 6, on this release’s code: Connect Claude Code’s edgemat server lists 14 tools). Found: the EDGE plugin’s own EDGEmat server (npm 0.3.1, 10 tools) runs beside it, so Claude Code has two. Earlier: Not run yet (0.3.1). The bundled server was checked over stdio under Node and VS Code’s binary on 2026-10-21: all 10 tools, mat_library reads the library |
| Install of the release | By hand, in a normal VS Code | Each release | 2026-12-04 | 0.3.4 from the Marketplace: passed (owner, 2026-12-04, EM1: installed from the Marketplace on 2026-11-23, the version, Game Materials, Find and New Material checked; released 2026-11-22; its test build’s VSIX was not installed before the run). 0.3.4 by script: pass for what fits (the EDGEweb session, 2026-11-24, EDGEkit 1.143.1, scratch profile, no game: installed from Open VSX over EDGEkit’s built-in 0.3.3, version 0.3.4, Desk, Game Materials (REDbridge not found, as expected), Find and New Material open without an error). 0.3.3 from the Marketplace: not run (0.3.4 replaces it). 0.3.2’s test build: pass (owner, laptop, 2026-11-13: the VSIX from release run 43449615746, installed over 0.3.1 in a normal VS Code; version 0.3.2, Desk, Game Materials with its filter, Find and New Material open). 0.3.2 is on the Marketplace since 2026-11-13: its install there is open. 0.3.1 from the Marketplace: installs and opens (owner, laptop, 2026-11-13), with its Library view, as 0.3.1 has. The next release: its test build’s VSIX before it, then the Marketplace after it. Earlier: 0.3.0 from the Marketplace: not run yet |
| Spec checks 1 to 10 | Reading game files | M0 | 2026-10-14/15 | Done |
| In-game round 1 | In the game | M0 | 2026-10-15 | Done |
| In-game round 2 | In the game | M0 | 2026-10-15 | Done |
Automated
Type check and build
npm install
npm run typecheck
npm run build
Expected: no errors; extensions/edgemat/dist, packages/edgemat-mcp/dist and packages/edgemat-core/dist written.
Core package
Added 2026-11-12 (EDGEmat #7): @edgemodders/edgemat-core works for a tool that installs it from npm, as EDGEfab will. In a terminal at the repository root, with a scratch folder outside it.
| Step | Do | Expect |
|---|---|---|
| 1 | npm run build --workspace packages/edgemat-core, copy LICENSE into packages/edgemat-core, npm pack --pack-destination <scratch> there, then delete the copy |
edgemodders-edgemat-core-<version>.tgz: dist/index.cjs, its map, dist/types/*.d.ts, README, LICENSE, package.json, about 216 KB |
| 2 | In an empty scratch folder: npm init -y, npm install <the .tgz> typescript @types/node |
pngjs and vscode-jsonrpc come with it |
| 3 | node -e "const c=require('@edgemodders/edgemat-core'); console.log(Object.keys(c).length, typeof c.materialsFromModel)", and the same with node --input-type=module -e "import { materialsFromModel } from '@edgemodders/edgemat-core'; ..." |
A count (144 on 2026-11-12) and function, both ways |
| 4 | A .ts file with EDGEfab’s imports (bridgeOver, materialsFromModel, projectAt, BridgeClient, isGameFolder, resolveBridge, resolveGame, vscodeUserSettings, readPng, writePng and the types BridgeCall, FromModelMaterial, ModelGlow, Image), tsc --noEmit with module Node16 and strict |
No errors |
| 5 | Search node_modules/@edgemodders/edgemat-core/dist/index.cjs for powershell and SecureString |
None |
| 6 | Read dist/index.cjs.map’s sources |
Each ../src/core/<file>.ts, inside the package, with sourcesContent for each. Added 2026-11-13 after EDGEfab found 0.3.2’s paths led out of the package |
Last run 2026-11-12 by Claude: every step as expected.
Smoke test: the library against the game
npm run smoke
Needs the game and REDbridge, found from the VS Code settings as the extension finds them (dev setup, section 4). It builds the library into %LOCALAPPDATA%\EDGEmat and checks it.
| Check | Expected on game 2.31 |
|---|---|
| Surfaces read, against the game’s listing | 386 of 386 |
| Microblends read, against the game’s listing | 131 of 131 |
| Setups and mask sets counted | 17,734 and 5,722 |
| Thumbnails | 343; 4 surfaces have none (unused, two flat plastics, one whose texture the game lacks) |
| Files that failed to read | None. One texture the game itself lacks is listed apart, as missing: graphics_logos_001_d.xbm |
| Time | About 22 to 25 s; 4 s when thumbnails are cached |
| Surface page data (M2) | Every surface described with a default color and roughness, metal and bump presets; all 155,099 colors with a plain name and swatch; 139 distinct names |
| Typed colors (M2) | “dark red” on leather_bull_01_30 finds a dark red preset (c2162c_69039f, distance 0.032); “banana” is refused; #a03030 reads back as itself |
| Setup editor data (M2) | On ml_s1_055_pma_shoe__red_yellow_graphic.mlsetup: 20 layers, 19 shown, layer 11 hidden (opacity 0); mask set ml_s1_055_pma_shoe__converse_masksset (20 masks) found beside it, of 2 in the folder; layer 7 (the sole, in-game test R1-B) is rubber bumper damaged, 11.3% of the texture; every surface found, no warnings; the 0.0.1 and oldest JSON shapes (made from the current one) read the same layers. Read in about 0.3 s with the masks cached |
| Find (M2) | 1,997 clothing items with in-game names (8.5 s the first time, then cached); “sunny ammo high-tops” finds Items.CasualShoes_01_basic_01 and “Pants_03_basic_01” finds Items.Pants_03_basic_01; the sneakers walk to two bodies (_pwa_ and _pma_ meshes), each with red_yellow_graphic’s setup and the converse mask set; the jeans’ feminine body wears l1_066 pants; the jacket mesh’s body and bags share one setup and no_bags hides them with mesh_decal.mt; a found setup opens with the mask set its material names. Each item walk takes about 0.15 to 0.35 s |
| 3D view colors (M2) | The sneakers’ red_yellow_graphic as a 512 px color map, in about 0.5 s; dec_lights left out (no color texture). The jacket’s default look: 5 materials, the two layered ones as color maps and three decals as their own textures (decals_arasaka_d01.xbm, garment_decals_d01.xbm), in about 1 s |
| Edit and save (M3) | On the Arasaka jacket’s setup (ml_t2_078_ma_jacket__samurai.mlsetup): unedited, it writes back byte for byte; written fresh (as from an older JSON shape) it reads back the same. “dark red” on its biggest layer picks c2162c_69039f; “leather standard clean” and “glossy” on the next one pick that surface and a glossy preset, with no warnings. Refused: None as a preset, a color the surface lacks, opacity 9. The meshes using the setup are found in about 0.5 s: t2_078_ma, _mb and _mm (the body and bags materials). Saved into a scratch project at a new path in about 2 s: the setup reads back with the edits, and all 3 mesh copies name it and no longer the game’s; saving again finds the project’s copies |
| A textured material (M3, Generate’s first slice) | A 256 px test pattern imported as a texture takes the color settings of the game texture copied first (TCM_QualityColor, gamma 1); a metal_base .mi at LayerTile 4 names it; the slim-fits’ leather material, pointed at the .mi, reads metal_base.remt with that texture; an unknown material name is refused with the mesh’s names. Under 1 s |
| Generate: a material from an image (M3) | A colour ramp (301 px, odd on purpose) made seamless: its wrap seam goes from 255 to about 1 times the step inside. Made into a material and put on the slim-fits’ flames_blue_pink (a garment): the repeat (3) baked into a 2048 px texture at LayerTile 1, the garment’s own normal map kept; the plain material at LayerTile 3 with its own normal (TEXG_Generic_Normal) and roughness (TEXG_Generic_Grayscale) maps; the image and its record in source\raw. About 14 s |
| Generate: image services (M3) | Against a stand-in server, no network or key: Gemini’s model list keeps the 2 image models (not text or Imagen), newest first; an image comes back after one retry without a size; a blocked prompt says why. OpenAI lists the gpt-image models; quality is sent; a bad key reads “OpenAI refused the key: …”; no answer within the limit reads “No answer from OpenAI in 0.3 s …” |
| The Desk (2026-10-25) | In a scratch Desk: the slim-fits mesh put on twice is one entry; its setup (the citizen jeans’, ml_l1_012_wa_pants__jeans_tight.mlsetup) edited to red and saved on the Desk is the one edit there, and the 3D view’s color map changes with it. Added to a scratch project in about 0.1 s: the setup as ..._desk_project.mlsetup reads back with the edit, and the mesh copied in names it (2 files). Added again: only the setup is written, the mesh still counted. With the mesh taken off, the edit stays on the Desk with a note; Clear empties it |
| Page images (M2) | 3 of 3 for leather_bull_01_30: the first in about 1.6 s while the bridge warms up, the rest in well under half a second, then instant from the cache |
The counts change after a game patch. A patch that adds surfaces is fine as long as “read” matches “listing”.
By hand in VS Code
Game Materials name
Added 2026-11-06 (EDGEmat #8): the Library view is now Game Materials. Step 8 added 2026-11-10: a Desk entry’s Add to Project has EDGEfab’s new-file icon. Step 9 added 2026-11-13: a microblend’s tooltip shows its picture, as a surface’s does (the owner saw only a path). Only names changed, and the view’s id is the same, so this checks the names and that its buttons still work.
- Open this repo in VS Code, run
npm run build, press F5 and choose Run EDGEmat. - In the second VS Code window that opens, check:
| # | Do | Expected |
|---|---|---|
| 1 | Click EDGEmat’s icon in the activity bar (left edge) | The views are DESK, GAME MATERIALS and FIND, in that order. None is called Library. Your open and folded views are as you left them |
| 2 | Hover the GAME MATERIALS header, then hold the pointer over its funnel icon and its refresh icon | Their tooltips say Filter Game Materials and Rebuild Game Materials |
| 3 | Fold Surfaces and Microblends first (click their arrows). Then press the funnel, type leather, press Enter |
The box is titled Filter Game Materials; the view shows 7 surfaces, unfolded down to each one: Surfaces, the categories that hold a match, and Microblends if one matches. Clear the filter: your folding is as before. 2026-11-13: only the folded group showed (the owner); fixed and passed the same day |
| 4 | Press the funnel again, type zzzz, press Enter |
The view says Nothing in Game Materials matches your filter, with a Clear Filter button. Press it: the full list returns |
| 5 | Press the refresh icon (Rebuild Game Materials), then the view’s … menu › Show Log | The view shows progress. The log (Output › EDGEmat) has a line Game Materials built in ... |
| 6 | Hover the GAME MATERIALS header again. Its title bar has, from left to right: a sparkle (tooltip New Material…), a page with an arrow pointing into it (tooltip Open Setup…), the funnel, the refresh icon, and three dots at the right end (tooltip More Actions…). (a) Press the sparkle. (b) Go back to EDGEmat’s view, press the page with the arrow. (c) Press the three dots | (a) A New Material tab opens; close it. (b) A box titled Open Setup at the top of the window, with From the game… and A file on disk…; press Esc. (c) A menu with Set Game Folder, Show Log and Connect an Assistant (MCP)…; press Esc |
| 7 | Press Ctrl+Shift+P and type EDGEmat: |
The list has EDGEmat: Filter Game Materials and EDGEmat: Rebuild Game Materials, and nothing named Library |
| 8 | Put something on the Desk if it is empty (Find › a garment › its mesh line › +, Add to Desk), then hover the entry’s line on the DESK | Its Add to Project button is a page with a corner folded and a small plus (VS Code’s new-file icon, as on EDGEfab’s Desk), with the tooltip Add to Project…. The Desk’s title bar keeps its + (Add the Desk to Project…) |
| 9 | In GAME MATERIALS, unfold Microblends (the second group, below Surfaces) and hold the pointer over one, such as dirt stains. Then unfold Surfaces, a category in it, and hold the pointer over a surface, to compare | Both tooltips have the same shape: the picture, the name in bold, a line saying what it is (for a microblend: “a small detail texture that breaks up a layer’s mask edge”), and the game path in a box. Before the fix, a microblend showed only its path |
Game Materials view in VS Code
Run 2026-10-16 and again 2026-10-17 by the owner: all pass.
- Open this repo in VS Code, run
npm run build, press F5 and choose Run EDGEmat. A second VS Code window opens with EDGEmat loaded from source. - In that window, check:
| # | Check | Expected |
|---|---|---|
| 1 | The activity bar | The EDGEmat icon (corner brackets around two layers): yellow when inactive, white when active, in the REDnode HUD theme |
| 2 | Game Materials on first open | “386 surfaces · 131 microblends · built |
| 3 | Surfaces | Grouped by category (fabric, metal, plastic and so on), each with a thumbnail |
| 4 | Hover a surface | A larger thumbnail, its color count and its game path |
| 5 | Microblends: the second top-level group, below all the surface categories (Collapse All in the view’s title bar shows both groups) | Listed with thumbnails when opened |
| 6 | Filter (funnel) for leather |
7 surfaces. Clear Filter restores the full list |
| 7 | Rebuild (refresh) | Progress in the view; done in a few seconds |
| 8 | Output › EDGEmat | Names the bridge used: “Using REDcode’s REDbridge” when REDcode is active with the same game, otherwise “Starting REDbridge from …”. The first line was added after the 2026-10-16 run; before it, only EDGEmat’s own bridge was named |
Surface page
Run 2026-10-17 by the owner: all pass. Before that it was rendered in headless Chrome with real library data and a stand-in for VS Code, to catch layout and script errors.
Where things are: the Copy buttons sit after the game path at the top, beside Preset, RGB and Swatch in the color panel under the image, and under each texture image. Below about 760 px wide the page is one column, with the image and color panel above Colors.
npm run build, then F5 (Run EDGEmat), as for the Game Materials view.- In the development host, check:
| # | Check | Expected |
|---|---|---|
| 1 | Click a surface in Game Materials, such as fabric › leather bull 01 30 | An editor tab opens with its title and a small icon. The page shows “Surface · fabric › leather”, the game path with Copy path, an image (the thumbnail at once, a sharper one within a second or two), and the default color selected |
| 2 | Click another surface | The same tab shows it; no new tab |
| 3 | Keep open, then click a third surface | The kept tab stays; a new tab opens for the third |
| 4 | Click swatches | The image is tinted with each color; the panel under it shows a plain name, the preset name, RGB and the swatch hex, each with Copy. Untick “Tint with the selected color” to see the detail map alone |
| 5 | Type red in Filter |
Only reds; “n of 750 colors” |
| 6 | Type dark red in Closest to, or pick a color with the color box |
The swatches reorder, closest first. A word EDGEmat does not know marks the box red |
| 7 | Copy buttons | The status bar says “Copied …”; the clipboard holds the value |
| 8 | Raw values | Preset names and scale and bias appear beside roughness, metal and bumps; color mask levels appear under Textures |
| 9 | Roughness, metal, bumps | Plain words such as “glossy to rough”, “not metal”, “strong bumps”, one marked default |
| 10 | Textures | Detail, bumps and roughness images; “Shared default: none of its own” where the surface has no map |
| 11 | Click a microblend | Its mask image, name and path, and a line on what a microblend does |
| 12 | Switch to another tab and back | The page keeps the selected color, filter and raw-values setting |
| 13 | Try another theme (Dark Modern, Light Modern) | Readable; headings and the selection use the theme’s link color |
Setup editor
Run 2026-10-17 by the owner: all pass, including opening from REDcode’s Game Assets. Before that it was rendered in headless Chrome with real data, and run outside VS Code on a game setup, a project file and a mod archive. During the test the buttons got a clearer outline (the first ones did not read as buttons).
npm run build, then F5 (Run EDGEmat).- In the development host, check:
| # | Check | Expected |
|---|---|---|
| 1 | Open Setup (in the Game Materials title bar, hover the header: the page with an arrow pointing into it, second from the left) › From the game › s1_055 red yellow › ml_s1_055_pma_shoe__red_yellow_graphic |
A tab “ml_s1_055_pma_shoe__red_yellow_graphic”, “Setup · game file”, “19 of 20 layers show · ratio 1”. A color map of the sneaker’s texture (yellow canvas, red panels, black sole) and 20 layers |
| 2 | The layers | Each with its index, color swatch, surface thumbnail, “Surface · color”, finish words, and its share of the texture with a bar. Layer 11 is dimmed: “not shown: opacity 0” |
| 3 | Click layer 7 | Its details open: surface (rubber bumper damaged, with Open), color, roughness, metal, bumps, tiling ×10.1, opacity, microblend, “Shows on 11% of the texture”. The map switches to Selected layer, with the sole and rubber band lit in yellow |
| 4 | Click spots on the map: a red panel, the yellow canvas, the sole | The layer that shows there is selected and scrolled into view |
| 5 | Under the map, the two-part switch All layers / Selected layer | All layers shows the whole color map; Selected layer dims it and lights the selected layer’s area |
| 6 | Click layer 10 (cotton shirt clean 02 30, red) to open its details. In the details table, press the small Open after the surface name in the Surface row, then the Open after “graphics logos 004” in the Microblend row | The surface page, then the microblend page, in the reused tab |
| 7 | Tick Raw values (top right, beside Hide unused slots), with a layer’s details open | The game’s names and values in light blue beside the plain words: the surface’s path, the color’s preset name and RGB, each preset’s name with its scale and bias, matTile, opacity, the microblend’s path and offsets. The header adds useNormal and the WolvenKit JSON version. The layer list itself does not change |
| 8 | Under the map, the line “Mask set: ml_s1_055_pma_shoe__converse_masksset (found beside the setup)” has a Change button. Press it | A list with ml_s1_055_pma_shoe__converse_masksset (in use) and ml_songbird_masksset, plus Search and a file on disk. Picking songbird redraws the map with other shapes; pick converse again to go back |
| 9 | Open Setup › A file on disk › Projects\EDGEmat_M0\source\archive\...\ml_s1_055_pma_shoe__red_yellow_graphic.mlsetup |
“Setup · project file”, 18 of 20 show. Layer 4 has ⚠: its color “edgemat_unknown” shows white. Layer 9: “not shown: all presets set to None”. Layer 7 is dark red: the M0 round 1 edits |
| 10 | Open Setup › A file on disk › Projects\EDGEmat_M0\tests\round2\archive\pc\mod\EDGEmat_M0_round2_ratio.archive › a setup |
“Setup · from the mod EDGEmat_M0_round2_ratio.archive”, ratio 4 |
| 11 | In REDcode’s activity bar view, open Game Assets and go to a garment’s textures folder (for example base\characters\garment\player_equipment\feet\s1_055_shoe__converse\textures). Open any .mlsetup there |
VS Code asks which editor to use, or opens REDcode’s. To switch: right-click the editor tab (or press Ctrl+Shift+P) › Reopen Editor With… › EDGEmat Setup Editor. The setup shows as in step 1 |
| 12 | Open a setup with unused slots: Open Setup › From the game › type t2_078 samurai, pick any. Then untick and tick Hide unused slots (top right, beside Raw values) |
The header counts the unused slots. Unticked, they appear in the list as dimmed “unused” layers; ticked, they disappear |
| 13 | Another theme | Readable; the lit mask uses the theme’s link color |
Setup editor: editing and Save to Project
Built 2026-10-20 (M3). Run 2026-10-20 by the owner on the laptop: all 14 pass, after four fixes found during it: mask sets named by meshes (3336eb7), the dialog saying why no mesh was found (adea83d), a second save keeping the meshes (a948baf) and Open Setup searching as you type (2dacd66). Before that: the smoke test’s “edit and save” checks pass (the jacket’s setup edited, saved at a new path, three meshes repointed, all read back), and mat_edit was run over stdio.
Before you start, in your normal VS Code with REDcode: REDcode: New Project (Ctrl+Shift+P), named EDGEmat_M3, in E:\Modding\Cyberpunk 2077\Projects. Leave it open in REDcode: Save to Project uses REDcode’s open project, and offers REDcode’s Pack and Play after saving. Then in this repo: npm run build and F5 (Run EDGEmat). In the development host, open the same project folder (File › Open Folder) so REDcode has it open there too. Every step below happens in the development host (the window F5 opened, titled “[Extension Development Host]”), not the window you pressed F5 in. After git pull and npm run build, restart it (Shift+F5, then F5): it keeps the code it started with.
| # | Do | Expected |
|---|---|---|
| 1 | EDGEmat’s activity bar icon › the Find header (below Game Materials) › its magnifier › type rocker's heart › open the item › your V’s body (Feminine or Masculine) › t2_084_pw?__short_sleeves.mesh › click the material black_red_glossy |
The setup editor opens ml_t2_084_pma_jacket__short_sleeves_black_red_glossy. Under the title: “Select a layer to change it.” and a line saying Ctrl+S saves it into a project. Top right: Hide unused slots, Raw values, and a filled Save to Project button. The editor’s title bar (top right of the tab) has a Save to Project icon |
| 2 | Click the layer with the biggest share (the top of the bars on the right) | Its details open with controls: Change… in the Surface row; a filter box and a grid of swatches under Color, the current one outlined; drop-downs for Roughness, Roughness contrast, Metal, Metal contrast, Bumps; number boxes for Tiling, Offset U and V, Opacity; Change… and three number boxes in the Microblend row |
| 3 | In the Color row’s filter box type blue, then click a strong blue swatch |
The grid narrows to blues. The layer turns blue in the list and on the map. The tab shows the unsaved dot, and the header says “Edited, not saved yet.” |
| 4 | Click an empty part of the page (not a box), then Ctrl+Z, then Ctrl+Y | Ctrl+Z puts the old color back; Ctrl+Y makes it blue again. Keep it blue: it is what you look for in the game |
| 5 | Roughness drop-down: pick a different finish, such as one with “glossy” | The layer’s line in the list changes its finish words |
| 6 | Pick a second visible layer. Surface row › Change… › type leather standard › pick leather standard clean 01 30 |
A list at the top of the window, searchable. After picking: a line under the header, “New surface, leather standard clean 01 30: its … were set to the surface’s defaults”, and the layer’s thumbnail and color change |
| 7 | Opacity box of that layer: type 0, press Enter. Then Ctrl+Z |
At 0 the layer dims (“not shown: opacity 0”) and leaves the map; Ctrl+Z brings it back |
| 8 | Tick Raw values | The drop-downs also show the presets’ game names |
| 9 | Save to Project (the button top right) | A list titled “Save to Project: EDGEmat_M3” with As a new setup (recommended), In place of the game’s setup (it says that needs Material Texture Override), and At a game path you choose…. Pick As a new setup |
| 10 | The path box shows ...\ml_t2_084_pma_jacket__short_sleeves_black_red_glossy_edgemat_m3.mlsetup. Press Enter |
“Finding the meshes that use this setup”, then a list with t2_084_pma__short_sleeves.mesh and t2_084_pwa__short_sleeves.mesh, both ticked, each naming black_red_glossy. Press OK (or Enter) |
| 11 | Wait for the save | A message “Saved into EDGEmat_M3: the setup and 2 meshes pointed at it.” with Pack and Play and Open the Saved Setup. The unsaved dot goes; a line under the header says where it was saved. In the project: source\archive\base\characters\garment\player_equipment\torso\t2_084_jacket__short_sleeves\ has the two meshes, and its textures folder the new setup. Do not pack yet |
| 12 | Open the Saved Setup (in that message; or open the new .mlsetup from the project with EDGEmat). Change one more thing, then press Ctrl+S |
“Setup · project file”, with your edits. Ctrl+S saves straight into that file: no list, no question, and the unsaved dot goes |
| 13 | Open any game setup: Open Setup (the Game Materials title bar) › From the game… › type s1_055 red yellow (results appear as you type) › pick ml_s1_055_pma_shoe__red_yellow_graphic. Change a color, press Ctrl+S, then Esc in the list |
Ctrl+S on a game file opens the Save to Project list (game files are never written). After Esc the tab stays unsaved, with no error message. Close it with Don’t Save |
| 14 | Another color theme: with a layer’s details open, press Ctrl+K then Ctrl+T, and arrow through the list (VS Code previews each). Try at least Light Modern and Dark Modern; Esc goes back to yours | In each: the swatches show and the current one is outlined; the filter box, drop-downs and number boxes are readable; Save to Project stands out; the share bars and map show |
M3 in-game round trip
The phase test (design, “Phases”): recolors made in EDGEmat, by asking Claude, and from a setup opened outside the project, each saved into a REDcode project, packed and deployed by REDcode, and seen in the game. Run 2026-10-20 by the owner on the laptop: pass. The jacket, the jeans and the sneakers showed their new materials in the game. The sneakers were recolored from the game’s setup and saved both ways (as a new setup, and in place with Material Texture Override); with both in the project, the mesh copies point at the new setup, so the game shows that one. Two things got in the way, neither in EDGEmat: with Red Hot Tools installed, Pack and Play sends the archive to archive\pc\hot, which Red Hot Tools reads only while the game runs, so with the game closed it stayed there and a separate Deploy from REDcode was needed; and the project packed as a REDmod (redcode.pack.redmod on), into mods\, which loads only when the game starts with -modded. Not checked: the other body, and screenshots (F). Before that, B’s saving part passed: Claude saved both jeans, and the saved setups and meshes show dark green in EDGEmat and in REDcode’s 3D view, after fix 3336eb7 (the feminine jeans’ mask set sits in another folder). Saving as a new setup needs no other mod; Material Texture Override can stay installed or not.
All three go into the EDGEmat_M3 project from the test above, on three garments V can wear, so they do not clash.
| # | Do | Expected |
|---|---|---|
| A | The jacket from the setup editor test above (the Rocker’s Heart crystaljock bomber, saved in step 11) | Saved already |
| B | Register EDGEmat’s MCP server for Claude Code if it is not (dev setup, section 4; build it first with npm run mcp:build; register with --scope user, or only the folder it was run in sees it). Start a new Claude Code session and ask: “Using EDGEmat, make the Sturdy-stitched punk jeans dark green on both bodies, and save it into my project E:\Modding\Cyberpunk 2077\Projects\EDGEmat_M3.” |
Claude finds the item (mat_find), sees that the two bodies wear different meshes with their own setups (l1_066 feminine, l1_062 masculine), looks at the layers (mat_describe) and recolors both (mat_edit), and says which files it saved: a new setup and a mesh for each body. To look at them: right-click a saved .mlsetup › Open With… › EDGEmat Setup Editor (REDcode’s tree also opens .mlsetup), and open a saved .mesh from the project in REDcode’s 3D view with the black_punk appearance chosen (it opens on the first one) |
| C | In the development host: Open Setup (the Game Materials title bar) › A file on disk… › E:\Modding\Cyberpunk 2077\Projects\EDGEmat_M0\source\archive\base\characters\garment\player_equipment\feet\s1_055_shoe__converse\textures\ml_s1_055_pma_shoe__red_yellow_graphic.mlsetup. It is the M0 round 1 setup: the sole red, the collar lining white, the toe cap layer hidden. Save to Project › EDGEmat_M3 › As a new setup › Enter › both sneaker meshes ticked › OK |
“Setup · project file” (of the M0 project); saved into EDGEmat_M3 as ..._edgemat_m3.mlsetup, with s1_055_pma_shoe__converse.mesh and s1_055_pwa_shoe__converse.mesh |
| D | In REDcode with EDGEmat_M3 open: Pack and Play (or Pack and Install). Answer Deploy all if REDcode asks. Start the game. With Red Hot Tools installed, Pack and Play only sends the archive to archive\pc\hot for a running game: with the game closed, use Pack and Install (or Deploy) instead |
The project packs with no errors and is installed: <game>\archive\pc\mod\EDGEmat_M3.archive exists (folder mod, singular). If it went to mods\EDGEmat_M3\ instead, redcode.pack.redmod is on, and the game must start with -modded (REDcode’s Run Game does) |
| E | In the game, with Cyber Engine Tweaks’ console: Game.AddToInventory("Items.Jacket_01_old_01", 1), Game.AddToInventory("Items.Pants_03_basic_01", 1), Game.AddToInventory("Items.CasualShoes_01_basic_01", 1). Equip all three; look in third person (photo mode or a mirror) and at your arms in first person |
The jacket shows your blue and leather layer; the jeans are dark green; the sneakers have a red sole, a white collar lining and no black toe cap |
| F | Screenshots before and after | Kept outside the repo |
New Material
Built 2026-10-20 (M3, Generate’s first slice). Run 2026-10-20 by the owner on the laptop: all pass, with a real image service key (the first live calls). Before that: the page rendered in headless Chrome with a take (stubbed service), the smoke test’s Generate checks, and mat_from_image and mat_apply over stdio. You need a REDcode project open (EDGEmat_M3 is fine) and, for steps 4 to 8, an API key for Google Gemini (aistudio.google.com › Get API key) or OpenAI (platform.openai.com › API keys; GPT Image may ask you to verify your organization first). Each Generate spends a few cents of your credits. npm run build, then F5; every step happens in the development host.
| # | Do | Expected |
|---|---|---|
| 1 | EDGEmat’s activity bar icon › the Game Materials header › the sparkle icon (New Material…, leftmost) | A New Material tab: “Where it goes” says not on a mesh yet; 1. The image with two tabs, From words (AI) and From an image file; a text box, Detail, the service (Google Gemini), the model (“Newest (listed when you generate)”), List models, a line on credits and the key, and Generate |
| 2 | Close it. Find › comfy rocker › the item (Comfy rocker aramid-weave slim-fits) › your body › l1_012_pw?_pants__jeans_tight.mesh › hover the material leather › the sparkle icon at its right (or right-click › New Material Here…) |
The tab opens titled “New Material: leather”. “Where it goes” names leather on both meshes, l1_012_pwa_... and l1_012_pma_... (both bodies), and says the garment keeps its own folds |
| 3 | Type worn brown leather with fine creases. Open The words sent |
The words EDGEmat sends: a seamless texture of your words, flat light, no text or logos, and the detail size. Edit them and Back to the standard words appears |
| 4 | Pick your service. Press Generate | A password box asks for the key the first time (it says where to make one). Then a notification “EDGEmat: generating with …” with Cancel, and within about a minute 2. Takes shows Take 1, selected, and 3. The material shows it tiled 3 × 3. The model menu now lists your key’s image models |
| 5 | Press Generate again, then Cancel in the notification while it runs | The page says “Cancelled.” in red; no take is added; nothing is charged for a cancelled call (unverified: the service may still count it) |
| 6 | Generate once more, and click between the takes | The tiled view and the line under it follow the take you click. Look for seams in the 3 × 3 view: there should be none |
| 7 | Under 3. The material: name worn leather, Repeat 6, Bumps Moderate, Shine Satin. Press Add to Project |
A notification “writing worn_leather into EDGEmat_M3”, then “Saved worn_leather into EDGEmat_M3 and put on 2 mesh materials.” with Pack and Play and Show Files. The page lists both meshes with “repeat in the texture, garment folds kept”. In the project: source\archive\edgemat\materials\worn_leather\ (textures and .mi files), the two slim-fits meshes, and source\raw\edgemat\materials\worn_leather\ with the image and worn_leather.edgemat.json (service, model, prompt) |
| 8 | From an image file › Choose an image… › any photo of a material on your PC | A take from the file, no key used |
| 9 | Ctrl+Shift+P › EDGEmat: Clear Image Service Key… › your service | “the … API key is cleared”; the next Generate asks again |
Generate round trip
The M3 phase test’s last row (design, “Phases”): a material generated from words goes on part of a garment and shows in the game, through the UI and by asking Claude. Run 2026-10-20 by the owner on the laptop: pass. Both pairs showed their new material on the owner’s V, front, back and side. What the screenshots show:
| Worn leather (the page, Repeat 6, satin) | Snakeskin (asked of Claude) | |
|---|---|---|
| Folds | The pants’ own, at their normal size: knees, the backs of the thighs, the ankles. Not the small repeated wrinkles of the tile-4 pair | The same |
| Scale | Fine creases and cracks, even over both legs | Scales of a believable size, even over both legs |
| Repeat | Not visible at a glance | Not visible at a glance |
| Seams | The panel lines read as stitching (owner: “totally fine”) | The pattern breaks at the front thigh panel line, as expected at a UV border |
| Bumps and shine | Creases catch the light; a soft sheen on the knees and seat | A wet-look sheen on the seat and thighs; the scales show as relief |
| Color | A warm tan brown, lighter than “brown” may suggest | Dark green with black scale edges |
Not checked: the other body; the normal map’s green convention (the bumps read right, so no sign it is flipped).
| # | Do | Expected |
|---|---|---|
| A | The material from the New Material test, step 7 (worn leather on the Comfy rocker slim-fits) | Saved already |
| B | Register the MCP server with your key (-e GEMINI_API_KEY=...; dev setup, section 4), start a new Claude Code session, and ask: “Using EDGEmat, make a dark green snakeskin material and put it on the Light Azure composite-lined slim-fits, both bodies, in my project |
Claude finds the item’s material (mat_find: flames_blue_pink on both meshes) and calls mat_generate with both targets; it says which files it wrote |
| C | REDcode: Pack and Install with the game closed (or Pack and Play with the game running) | Packed and installed |
| D | In the game: Game.AddToInventory("Items.Pants_01_basic_01", 1) and Game.AddToInventory("Items.Pants_01_basic_02", 1). Equip each; photo mode front, back and side |
The first pair worn leather, the second snakeskin, at a fine repeat, with the pants’ own folds at their normal size (not the small repeated wrinkles of the tiling check’s tile-4 pair). Note how the bumps and shine look, and any seams |
| E | Screenshots of both | Shared with the session; kept outside the repo |
Tiling check
The open question “A tiled texture on a game garment” (design, “Open questions”): how a texture lies across a garment’s UVs, and what metal_base’s LayerTile does. Its answer shapes how Generate puts a material on a garment. Run 2026-10-20 by the owner on the laptop (feminine body), with screenshots from the front, back and side: done. Tile 1: upright, even scale, no visible stretch; one leg mirrored (the front of V’s right leg reads “5a”, “E3”); the pattern breaks down each leg and across the top of the thighs. Tile 4: the squares a quarter the size, repeating across (column 8 beside column 1) and down (row 8 above row 1); the folds repeat with them: finer wrinkles down the legs, mostly at the front (the owner, in the game; darker creases at the same rows in the screenshots). Findings in the design’s open questions.
npm run tiling-check writes a project from your own game: a UV test pattern (8 × 8 colored squares, each labelled with its column and row: 11 top left, 81 top right, 18 bottom left), two metal_base materials using it with the slim-fits’ own normal map, at LayerTile 1 and 4, and the slim-fits pants’ meshes for both bodies with one look on each.
| Item | Look | Material |
|---|---|---|
Items.Pants_01_basic_01, Comfy rocker aramid-weave slim-fits |
leather | The pattern, LayerTile 1 |
Items.Pants_01_basic_02, Light Azure composite-lined slim-fits |
flames_blue_pink | The pattern, LayerTile 4 |
| # | Do | Expected |
|---|---|---|
| 1 | In the repo: git pull, npm run build, then npm run tiling-check -- "<your Projects folder>\EDGEmat_Tiling" |
Four ok lines (two looks on each body’s mesh), then “packed 5 files into …\EDGEmat_Tiling.archive” |
| 2 | With the game closed, install it: in REDcode, open the EDGEmat_Tiling folder and run Pack and Install (Pack and Play goes to Red Hot Tools’ hot folder, which only a running game reads). Or copy packed\archive\pc\mod\EDGEmat_Tiling.archive into <game>\archive\pc\mod |
The archive is in the game |
| 3 | In the game, Cyber Engine Tweaks’ console: Game.AddToInventory("Items.Pants_01_basic_01", 1) and Game.AddToInventory("Items.Pants_01_basic_02", 1). Equip the first; look in photo mode from the front, the back and each side |
The colored squares on the pants. Note which numbers show on the front of the thighs, the back, the waist; whether the numbers read normally, mirrored or upside down; whether squares stay square or stretch; where the seams cut squares |
| 4 | Equip the second | Unknown, which is what the test finds out: the squares four times smaller and repeated (LayerTile tiles the texture), the same as the first (it does nothing here), or something else. Also whether the folds from the normal map repeat too |
| 5 | Screenshots of both pants, front and back | Shared with the session; kept outside the repo |
Reshape check
Added 2026-11-02 (owner: W3 next): design, “Reshape: a garment’s shape changed by words”, “A reshape check first”. Can a garment’s shape be changed by words, through pictures, on a stiff garment? extensions\edgemat\scripts\reshape-check.mjs runs Reshape’s steps one at a time, keeping each step’s files in the project’s source\raw\edgemat\reshape\<item> folder and reusing them, so each can be looked at before paying for the next:
| Step | What it does | --until |
Cost |
|---|---|---|---|
| 1. Views | Exports the item’s meshes as .glb, draws them front, left, back and right (orthographic, the look’s colors from EDGEmat’s color maps, soft light, white), the garment half the square so a change has room. views.png (two by two) and views.json (scale, centre, box) |
views (default) |
None |
| 2. Change | Sends views.png to Gemini with the words; cuts the answer into four views; prints each view’s outline before and after, in metres |
edit |
A few US cents. The same words reuse the picture; --again asks again; --model picks Gemini’s model |
| 3. Model | Uploads the four changed views to Tripo’s multiview to model (v3.1-20260211), downloads the .glb and Tripo’s preview, and draws the model the same way |
model |
30 credits (US$0.30) on 2026-11-02 |
| 3b. Fewer faces | Tripo’s retopology of that model to --faces (default 6000), its texture baked on |
model |
30 credits |
| 4. Fit | For a garment on one bone (a hat). Drops stray pieces (wholly outside the model’s main box, or under 0.5% of it); turns Tripo’s model (it faces +X) to the garment’s front; places it on the box the changed views show, by their scale; writes a .glb shaped as WolvenKit’s export (the armature and skin kept, one part, every vertex on the bone, tangents from the UVs) at the mesh’s raw path; imports it over the mesh; Tripo’s color and roughness as a textured material on the look’s first material; packs |
fit |
None |
Run it as node extensions\edgemat\scripts\reshape-check.mjs "<your Projects folder>\EDGEmat_ReshapeCheck" --until edit --what "cowboy hat" after npm run build in extensions\edgemat. The game’s export is kept as <mesh>.original.glb in the work folder. Since 2026-11-02 the steps live in EDGEmat’s core (src/core/reshape.ts, with glb.ts and tripo.ts), as Wardrobe Designer will run them, and the script is a thin wrapper. The work folder keeps reshape.json (the views, each change, whether the garment can be fitted) and fitted.json (the meshes it fitted); the views are drawn once (--redraw starts over); each change builds on the last (--from game starts from the game’s look); --picture <file> adds a picture made before as the change, with no image service asked. Rerun through the core on a new project (EDGEmat_ReshapeCore) with GPT Image’s picture and Tripo task e2727342-… reused (no new cost): the same outlines, the crown moved 0.4 cm, imported, 4 files packed. Before, the fit’s mark file sat beside the mesh and was packed too.
| # | In the game | Expected | |
|---|---|---|---|
| 1 | With the game closed, copy <project>\packed\archive\pc\mod\EDGEmat_ReshapeCheck.archive into <game>\archive\pc\mod |
||
| 2 | Start the game, load a save with a feminine V. F10 › REDnode’s launcher › Console: addItem("Items.Hat_02_basic_01"). Inventory › Head: equip the Cowboy hat with hardened-leather band |
The inventory’s preview shows the wide-brimmed hat | |
| 3 | Photo mode: front, each side, back, and a look up and down | The hat sits on the head as the game’s did: not floating, not sunk into the forehead; hair not through the crown; the brim about 1.6 times as wide; the band dark with the lit badge at the front; the texture the right way up (as fit_..._views.png). It moves with the head |
|
| 4 | Screenshots; take the archive out of archive\pc\mod afterwards |
Shared with the session | Defaults: the Cowboy hat with hardened-leather band (Items.Hat_02_basic_01, h1_021_pwa_hat__cowboy_sheriff.mesh, look white), feminine, “make the brim twice as wide”. |
Run 2026-11-02 by Claude on the dev PC, steps 1 to 3. The hat: 1 mesh, 4 parts, 2,538 triangles, 0.31 × 0.19 × 0.35 m. WolvenKit names the most detailed level LOD_1. The .glb faces +Z (the front brim dips, the buckle is at the back).
| Try | Model | What came back |
|---|---|---|
| 1 | Nano Banana 2 Lite (picked by mistake: the “mini” in “Gemini”, fixed) | Brim 14% wider, not twice; the back’s buckle copied onto the front |
| 2 | Nano Banana Pro, prompt “the same size” | Nearly unchanged (the hat filled 80% of each square, and the prompt said to keep its size) |
| 3 | Nano Banana Pro, the hat half the square, “the same camera and scale; it may grow” | Brim 1.6 times as wide in all four views, the crown unchanged, the views in step; the buckle only at the back. 14 s |
Tripo, task 080581f8-…, from try 3: 130 s, 30 credits. A believable cowboy hat with the wide brim, the band and the back buckle, in the hat’s colors; a small loose piece beside it. 1,484,202 triangles (the game’s: 2,538): the next run asks for fewer. Tripo’s model faces +X, scaled to 1 m.
Step 4, the same day (Claude): the hat is on one bone, Head, and has one level of detail; its export’s vertex colors are all zero. Tripo’s retopology (task b220c41f-…, 145 s, 30 credits) to 8,475 triangles, then a loose piece of 390 triangles beside the hat dropped (it had widened the fit), leaving 8,085 triangles and 6,890 vertices (the game’s hat: 2,538 triangles). The fitted model drawn as the changed views matches them. Tripo’s model came out rounder than Gemini drew it, so the fit stretches it a third more front to back than across (0.66 against 0.50). WolvenKit’s import worked: the mesh now has 1 part on Head (the game’s had 4: hat, band piece, emissive, glass), every look keeps its first material (white now Tripo’s texture, 2048 px, with Tripo’s roughness), box 0.50 × 0.55 m, the crown’s top at the game hat’s height. Packed: EDGEmat_ReshapeCheck.archive.
In the game, the same day (owner, six screenshots: photo mode from below and above, the inventory from both sides, behind and the front three-quarter): the hat sits on the head at the right height and moves with it, the brim wide, the dark band, Tripo’s texture the right way up. V’s head showed through the front of the crown: a skin-colored dome where the crown’s front should be, from the side, the front and above. From behind it looked right. Not the faces: they all face out (the shell’s signed volume is positive, winding agrees with the normals). The crown, measured along the centre line, sat 4 to 6 cm off the game’s: the fit placed the whole outline’s box, and Tripo’s brim reaches further one way than Gemini drew, so the crown slid off the head. Fixed: the top 30% (the crown) is centred where the game’s crown is (--anchor); moved 5.7 cm. Now along the centre line it runs −0.10 to +0.14 m around the game’s −0.09 to +0.12 m. Also found: WolvenKit’s export faces −Z (the lit badge on the band is the hat’s front, not the back): --front is now −z by default, and this run’s files, made with +z, are rebuilt with --front +z. Rebuilt and packed; steps 1 to 4 again. The owner also saw two brims, as if merged with the game’s hat: Gemini’s picture (Nano Banana Pro) has them, the game’s upturned brim tips standing inside the wider brim, and Tripo and the fit kept them. So the 3D steps are faithful to the pictures, and the pictures are where a reshape goes right or wrong (owner: “better news”): the player refining the pictures before Tripo is paid for (design, Reshape step 2) is the right place for the effort. The prompt likely caused it: “the parts the words do not change stay the same size and place” and “it may grow” read as keep the old brim, add a new one.
A new prompt, 2026-11-02 (Claude): “a changed part replaces the old one: the old part is gone, not kept inside, under or beside the new one”, and the hat’s real front (--front -z). Nano Banana Pro: one brim now, but hardly wider (17% in front, the side views unchanged) and front and back unlike each other (curled up in front, flat and wide behind). The script now takes --service openai (OpenAI’s gpt-image-2.5-sunburst by default: OpenAI’s guide shows its edits endpoint taking pictures, up to four in its examples, with this model) and keeps each model’s picture apart (edit_<words>_<model>.png; --edit <picture> picks one for the next steps). GPT Image 2.5 (gpt-image-2.5-sunburst, the owner’s key, the same prompt and views, 1536 px, 32 s): the best so far. One brim, about 1.8 times as wide and alike from every side (0.58 m in front, 0.57 m from the sides, 0.59 m behind; the game’s 0.32 m), the crown and its pinch unchanged, the lit badge in front only. Gemini’s: one brim with the new prompt, but barely wider and unlike from front to back.
Built from GPT Image’s picture (Claude, the owner’s go): Tripo task e2727342-… (145 s, 30 credits), its retopology a0729f5c-… (121 s, 30 credits) to 7,190 triangles, no loose pieces. Tripo’s model matched the views’ proportions (stretched 0.584, 0.586, 0.578). The crown moved 0.3 cm when centred, and along the centre line it holds the game’s crown at every height. The top is 3.4 cm above the game hat’s: GPT Image drew the crown about 2 to 2.5 cm taller and the band 0.6 cm (front) to 1.8 cm (back) higher, measured on the front and back views, so the hat may sit about 1 cm higher on the head. Imported and packed. Steps 1 to 4 again.
Result, 2026-11-02: passed (owner, in the game: “much better”; six screenshots read by Claude). From below: one brim, smooth, nothing through it. Behind: the wide brim, crown and band, hair below. Both sides: the lit badge in front, the brim over V’s visor, no skin through the crown. In front: the badge centred, the brim curling up at the sides as GPT Image drew it, the band just above the visor, no gap showing. From above: one brim, the badge in front; its outline a rounded trapezoid, wider behind (Tripo had no top view). The owner’s decision: GPT Image 2.5 is the default image service for Reshape (the script’s --service is now openai by default). Not done: the masculine mesh, the other looks’ materials, Tripo’s normal map. Not done: the masculine mesh, other looks’ materials (the other looks show the hat in their old material on Tripo’s UVs), Tripo’s normal map.
Materials from a model
Added 2026-11-04 (EDGEmat #4 and #6, for EDGEfab): materialsFromModel in the core, mat_from_model, and the API’s materialsFromModel. Run outside the game with REDbridge, in a scratch project.
| Step | Do | Expect |
|---|---|---|
| 1 | materialsFromModel on EDGEfab’s vending machine (test 8’s vending_glow.glb: one Tripo material with color, metal and roughness, normal and glow maps, emissiveFactor 1, KHR_materials_emissive_strength 3), folder edgemat\tests\vending |
Five textures (_d01, _r01, _m01, _n01, _e01) and a .mi; read back, the .mi is on metal_base with BaseColor, Roughness (scale 1), Metalness (scale 1), Normal, Emissive, EmissiveEV 2.585 (1 + log2 3) and EmissiveColor 255, 255, 255. Notes: the normal maps’ direction is unverified |
| 2 | The same with texture files for large_wall_screen_a_screen_aa.mesh’s xx_screen (a color image, roughness 0.4) and glow [0.2, 0.6, 1] strength 2 with no map, and a glow for a material that does not exist |
The mesh copied into the project, xx_screen pointing at the new .mi (local instance, no values of its own); the .mi has Emissive white.xbm, EV 2, color 124, 203, 255, RoughnessBias 0.4; notes name the glow left out and the four entries that kept their material |
| 3 | mat_from_model over stdio, the vending machine with a glow override (orange, strength 3, EDGEfab’s mask) and a folder with forward slashes |
Listed among the tools; glow EV 2.585, color 255, 188, 0, from the map; six files; “Nothing was put on a mesh” (no mesh given) |
Last result: 2026-11-04, every step as expected (17 s for the vending machine’s five 2048 px textures, 4 s for step 2).
Glow check
Added 2026-11-04 (EDGEmat #6): how bright glTF’s glow strengths look in the game. EDGEmat turns a strength into the material’s EmissiveEV as 1 + log2(strength), never below 1, from this test’s results (design, “How glow works in the game”). npm run glow-check makes every material of the cowboy hat’s look dark grey with a cyan glow in eight bands across its texture (a glow map), packed into the project’s packed folder.
| Step | Do | Expect |
|---|---|---|
| 1 | In a terminal in extensions\edgemat: npm run build, then node scripts/glow-check.mjs "E:\Modding\Cyberpunk 2077\Projects\EDGEmat_GlowCheck" --strength 1 |
The hat’s materials listed with “EV 1, color 124, 231, 255, in bands”, then “packed 5 files” and the archive’s path |
| 2 | With the game closed, copy EDGEmat_GlowCheck.archive from the project’s packed\archive\pc\mod into <game>\archive\pc\mod. Make sure EDGEmat_ReshapeCheck.archive is not there (its hat would win). Start the game, load a save, F10 › REDnode’s Console: addItem("Items.Hat_02_basic_01"), put the hat on |
|
| 3 | Look at the hat at night (or in a dark room), then in daylight; photo mode, front and side. Screenshots | Cyan bands that glow, dark grey between them. Note how bright: a lit screen, too dim, or glaring |
| 4 | Close the game, run step 1 again with a lower strength (below 1, EV stays 1 and the color dims; add --ladder for six map levels at once), copy, start the game (it reads archives only at its start), look again in the same place |
Dimmer than step 3 (each EV is half as bright). Check whether the middle shows cyan instead of white, and whether it would suit a small lit detail |
| 5 | Optional: --whole for the whole hat glowing |
The whole hat cyan and lit |
| 6 | Tell Claude: which strength looked like a lit screen | Claude sets the EV rule (GlowEV.base) from it and records the result |
| 7 | With the game closed, delete EDGEmat_GlowCheck.archive from <game>\archive\pc\mod |
The hat is the game’s again. Left there, it changes the same hat as Wardrobe Designer’s Reshape test |
Last result: 2026-11-05, the owner at strength 1 (EV 4), two screenshots in a dark interior: it glows; lit and dark areas follow the map (patches, not straight bands: the hat’s UVs are in pieces); the lit areas wash out to white with cyan only at the edges and in the halo. “Very bright, maybe too bright for accent lit details, but it depends on the application, where it appears and how much of it there is.” V’s vest looks tinted by it (from the glow’s own light or the bloom: not told apart). This map is white at full brightness, a harder case than the game’s screens. GlowEV.base stays 4 until a lower strength is seen. Strength 0.25 (EV 2), the same evening: the owner sees no difference from strength 1. Read back from the archive in the game folder, its materials say EV 2, and the game started after it was copied, so it was the one shown. Either the glow is still washing out, or EmissiveEV does not act as the rule assumes: unsettled. Strength 0.0625 (EV 0), the same evening, two screenshots in the same place: the owner sees it “might be a bit dimmer”. Compared with strength 1: the halo shrinks from a wide bloom to a thin rim, and V’s vest no longer looks cyan, so EmissiveEV does control the brightness and the earlier look was washing out. The lit areas are still white with cyan only at the rim. A game sign in the second shot looks alike (white letters, a green rim; out of focus, so a rough comparison). The blue patch and the blue NPC behind V do not change, so they are not the hat’s. Not seen yet: any strength in daylight. Strength 0.00390625 (EV -4), the same evening: the owner sees the hat all black, no glow; EV -4 confirmed in the archive the game loaded. Either that is too dim to see, or a negative EV switches the glow off (no game material surveyed goes below EV 0). Strength 0.015625 (EV -2): three screenshots, a dark spot, a roofed plaza, the inventory screen: all black, no lit parts, and the inventory’s light shows only the dark grey base. Four times dimmer than EV 0, which still washes out to white, cannot do that, so a negative EV seems to switch the glow off. So EV stops at 0 in the code and the color dims below it (glowDim). Strength 0.00390625 (EV 0, the color at a sixteenth, 29, 63, 71; read back from the installed archive): the owner sees solid black. So two different ways of dimming both go straight to black, while the game has glowing materials at EV 0 with a white map and colors such as 88, 123, 165, which casts doubt on “a negative EV switches it off” and on dimming as the cause. The glow map in the archive is intact (the eight bands read 255 and 0 in turn). The control, at the owner’s suggestion, in case another change interferes: strength 1 (EV 4) again, the same values as the first run: the light returned. So the hat, the archive and the other mods are fine, and the glow really goes from lit at EV 0 to black at a quarter of it, by the EV or the color. Step 4b, one launch for many levels: --strength 0.0625 --ladder (EV 0, full color, the map in stripes of six levels, full down to an eighth), to see where it dies and whether the map can dim what the EV and the color could not. Result: the whole hat dark, with the archive in the game folder read back as EV 0, full color, ladder map. So the full-level stripes, the same values as the earlier EV 0 run that glowed, are dark. Unexplained contradiction: that earlier run’s archive was not read back at the time, so it may not have been EV 0 (unverified). New idea, unverified: EV 0 and below is simply off, whatever the map or color, for example if the shader uses 2^EV - 1. It fits every dark run (EV -4, -2, 0), metal_base’s default of EV 0, and the survey: no material with a color sits between EV 0 and 1.45. The ladder at EV 1 (--strength 0.125 --ladder under the old rule): four screenshots; the archive read back from the game folder says EV 1, full color, the ladder map. All six levels show, on the crown and brim, in a dark room and in overcast daylight, with hard edges, no wide bloom and no tint on V’s clothes. The top levels are pale, the lower ones hold their cyan, and the dimmest is close to the base. So EV 0 and below is off, and the map dims smoothly above it. The early EV 0 run was brighter than this confirmed EV 1, so it was probably still the EV 2 archive (its copy not read back). The rule became 1 + log2(strength), never below 1, with the color dimming below strength 1 (glowDim). Strengths earlier in this record use the old rule, 4 + log2. --strength 0.25 --ladder (EV 1, the color at a quarter, 63, 124, 137; read back from the game folder): five screenshots, a dark room, neon streets, and under a street light. The color dims it: the top stripes hold saturated cyan instead of going pale, and two to four levels show before fading into the base, so about an eighth of strength 1 is the limit. Under direct light the base’s shine is stronger and the lower stripes wash out. The test’s question is answered; left for later, not worth the busy work: the exact point between EV 0 and 1, the shader’s formula, and how ray tracing changes it.
Paint check
Added 2026-10-31 (owner’s ask): can Tripo paint a garment from words, on the garment’s own shape? Tripo’s Texture task takes a model and a prompt and paints it in 3D, following seams and shape, where Generate tiles a flat picture. If Tripo keeps the garment’s vertices and UVs, its paint goes straight onto the game’s mesh and W2’s patterns need no mask and no Generate. The design’s open question “Paint a garment by words”.
npm run paint-check exports an item’s garment from your game as .glb, keeps the parts with layered materials (positions, normals and UVs only: no bones, shape keys or garment data), sends them to Tripo with your words, and compares what comes back with what went out. If the vertices and UVs are kept, it writes Tripo’s color and roughness as a textured material with the garment’s own normal map, puts it on the garment and packs the project. The Tripo key comes from TRIPO_API_KEY, else (on the dev PC) the shared key store through REDnode’s checkout (scripts/devKey.mjs), and is never printed. One run is 10 credits (US$0.10). --task <id> reruns on a finished task without paying again. --style <image> sends a picture beside the words as Tripo’s style image. With options, run it as node extensions\edgemat\scripts\paint-check.mjs <folder> --task <id>: PowerShell drops the -- in npm run paint-check -- ..., and npm then refuses --task as one of its own flags.
Defaults: V’s Pants (Items.Q001_Pants) on the feminine body (l1_066_pwa_pants__rogue.mesh, look default: its layered material on 2 chunks is painted, pants_stitches is kept), words “yellow with black polka dots”. --item, --body and --words change them.
| # | Do | Expected |
|---|---|---|
| 1 | Make a Tripo API key: Tripo’s developer console, API Keys. The account needs at least 20 credits. Tripo has two regions with their own accounts and keys, global (tripo3d.ai) and China (tripo3d.com); the check tries global, then China | A key |
| 2 | Save it in PowerShell (it asks for the key and does not show it): New-Item -ItemType Directory -Force "$env:APPDATA\Edgemodders\keys" \| Out-Null; Read-Host 'Key' -AsSecureString \| ConvertFrom-SecureString \| Set-Content "$env:APPDATA\Edgemodders\keys\tripo.txt" |
%APPDATA%\Edgemodders\keys\tripo.txt exists |
| 3 | In the repo: git pull, npm run build, then npm run paint-check -- "<your Projects folder>\EDGEmat_Paint" (or ask Claude to run it) |
“sent: 2 parts, 9701 vertices”; Tripo’s task going from queued to success; its preview image saved in source\raw\edgemat\tripo. Then KEPT or NOT KEPT. KEPT: one line for the painted material and “packed … EDGEmat_Paint.archive”. NOT KEPT: Tripo’s paint needs a bake onto the game’s UVs, and the check ends here |
| 4 | Only after KEPT. With the game closed, copy packed\archive\pc\mod\EDGEmat_Paint.archive into <game>\archive\pc\mod |
The archive is in the game |
| 5 | In the game, a feminine V: Cyber Engine Tweaks’ console Game.AddToInventory("Items.Q001_Pants", 1), equip them, photo mode front, back and each side |
The pants painted as Tripo’s preview shows, with their own folds. Note: dots that follow the legs or break at the seams; anything upside down (rerun with --task <id> --flip); stretched or smeared spots; how the shine looks. If the pants look unchanged, WardrobeDesigner.archive may hold the same mesh (from a Restore): move it out of archive\pc\mod for the test (which archive wins is unverified) |
| 6 | Screenshots, front and back | Shared with the session; kept outside the repo |
Run 2026-10-31 by the owner on the laptop, steps 1 to 3: KEPT. The first try got “Invalid API key”: the script called Tripo China’s API with a global key (fixed: global first). Then task 281f6bfd-…: 45 s, 10 credits. The result: 2 parts, 9,694 vertices (7 duplicates merged), 15,490 triangles, scaled to 1 m tall and moved (Tripo returned no normalize values for a Texture task, so the check fits the result’s box); 100% of its vertices on the garment’s, 100% with the same UV. 2 materials and 6 images: Tripo gives each part its own material and textures, and the first build put the first part’s on both. Fixed the same day: one game material over several parts gets one texture, each texel from the part that covers it (checked on a made-up two-color result: the second part is small islands, pockets or trims, about 5% of the texture). Also: file names shortened, since a long project path went past Windows’ 260 characters. Rerun with --task 281f6bfd-b6c2-4d7c-9620-038e02187d28 (no new credits) before steps 4 and 5. The rerun: Tripo’s two parts’ maps differ in size (fixed: the smaller scaled to 2048 px). Its preview and color texture (owner’s images): every island of the pants’ UV layout painted in place, folds and pocket flap following the shape; but the dots are few and small (scattered, mostly down the front of the legs, not an all-over pattern), and Tripo added its own details (a black object at the hip pocket, a tan buckle, dark smudges along the bottom strips). Everything outside the islands is black, which the game’s smaller mip levels would blend into dark seams (and glossy ones, from the roughness map). Fixed: the islands’ edge colors pushed 16 texels out (11 s at 2048 px). Rerun with every fix (owner, laptop): material 0 (2048 px) covers 53.0% of the texture, material 1 (Tripo made it 256 px, scaled up, so blurry) 2.2%; no black left between islands. Material 1’s islands are the black object Tripo painted at the hip pocket, two dark buttons and a few spots near the buckle. In the game on the laptop, the inventory screen only (the install there had trouble): the pants “looked perfectly fine” (owner), the dots very tiny. The full look in the world (step 5) is to finish on the dev PC. To try after the game test: stronger words or --quality detailed for the pattern.
On the dev PC, 2026-10-31 (Claude, with the owner’s key saved there): the pattern. The laptop’s task rebuilt with --task 281f6bfd-… into EDGEmat_Paint (no credits; same numbers). Then two new tasks, 10 credits each, both KEPT (100% / 100%):
| Project | Words | Style image | What Tripo painted |
|---|---|---|---|
EDGEmat_PaintDots |
“bright yellow fabric covered all over in large, evenly spaced black polka dots, each dot about the size of a coin” | none | Plain yellow; about five scattered dots on the whole texture. Fewer than the first run |
EDGEmat_PaintStyle |
“yellow fabric with large black polka dots all over, like the style image” | a yellow swatch with large black dots in a grid (--style, new) |
A warmer yellow, a black waistband, black buttons, belt loops and hems; no dots |
So Tripo paints a believable garment (its colorway, a color per part, details at seams, buttons and hems) and does not lay a repeating pattern, from words or from a style image. Patterns come from EDGEmat itself (design, W2 step 6). Not tried: --quality detailed, and Tripo’s image mode (one picture of the whole garment as wanted, which would need such a picture). Each of the three projects replaces the same mesh: put one archive in the game at a time.
Steps 4 to 6 passed 2026-10-31 (owner, dev PC, EDGEmat_Paint, task 281f6bfd-…): “It looks good to me”. The owner’s three screenshots, read closely: right way up (no --flip); the folds and pocket shapes from the garment’s own normal map; the game’s stitching (pants_stitches, kept) on top; no dark lines between UV islands (the padding works); a matte cloth shine. Tripo’s own details show where its preview has them: the black object at the hip pocket, a tan buckle on a thigh strap. The dots are on one leg only (owner): the color texture has them on one leg’s islands and none on the other’s, so it is Tripo’s paint, not the build. Tripo seems to paint from a few views and does not keep a garment’s two sides alike.
Dry run, 2026-10-31 (--dry: steps up to the upload, no key): V’s Pants, feminine. 2 parts, 9,701 vertices, 15,490 triangles, 0.42 × 1.03 × 0.26 m. The UVs use 55% of the square, 2.8% of that twice (mirrored or stacked: those spots get one paint). The matching, run on the upload file itself: 100% found, 100% same UV. The masculine jeans (l1_062_pma_pants__jeans.mesh), measured the same way: 1.2% shared on the jeans; the stitching’s UVs repeat about 40 times along a strip, so a stitching material is never painted.
Find view
Built 2026-10-17. Last run 2026-10-19 by the owner through F5: all 10 checks pass. The walks behind it were also run outside VS Code on the test set (smoke test, and mat_find over stdio).
npm run build, then F5 (Run EDGEmat).- In the development host, open EDGEmat’s activity bar container. Find is the last view, a FIND header below Game Materials, often collapsed at the bottom of the sidebar: click its header to expand it, and collapse Game Materials (click its header) if Find is squeezed. The magnifier at the top of the Library is Search Library, not Find; Find’s own magnifier shows only when you hover over Find’s header.
| # | Check | Expected |
|---|---|---|
| 1 | The Find view before any search | A short text on what Find does, with a Find… button. The same command is the magnifier in Find’s title bar (hover the view’s header to see it) |
| 2 | Press Find… and type sunny ammo |
The first time, a progress bar runs along the top of the Find view for several seconds while the item list is read from TweakDB (later searches are instant). Then an Items group with “Sunny Ammo synthetic high-tops”, described “Feet · Items.CasualShoes_01_basic_01”, first. The view’s header line says "sunny ammo": 3 items, 0 meshes |
| 3 | Expand “Sunny Ammo synthetic high-tops” (click the arrow) | “Feminine body” (s1_casual_01.app › basic_01_w) and “Masculine body” (› basic_01_m). Each holds its mesh, s1_055_pwa_shoe__converse.mesh and s1_055_pma_shoe__converse.mesh, described “look red_yellow_graphic · 1 multilayered of 2”, and under it two materials: red_yellow_graphic (layers icon, “multilayered · ml_s1_055_pma_shoe__red_yellow_graphic.mlsetup”) and dec_lights (“metal_base.remt”) |
| 4 | Hover red_yellow_graphic | A tooltip with its setup and mask paths |
| 5 | Click red_yellow_graphic under Feminine body | The setup editor opens. Its top line reads “Setup · game file · from Sunny Ammo synthetic high-tops, feminine”. Under the map: “Mask set: ml_s1_055_pma_shoe__converse_masksset (named by the mesh’s material)” |
| 6 | Find punk jeans, expand “Sturdy-stitched punk jeans” |
The feminine body wears l1_066_pwa_pants__rogue.mesh with ml_l1_066_black_punk.mlsetup; the masculine body wears l1_062_pma_pants__jeans.mesh with ml_l1_062_black_punk.mlsetup: two different garments for one item |
| 7 | Find t2_078 samurai |
A Meshes group with the samurai jacket meshes. Expand t2_078_ma_jacket__samurai.mesh: its appearances (default, no_bags and others). Expand default: two multilayered materials (the body and the bags) that share one setup. Expand no_bags: the bags’ materials are mesh_decal.mt, which hides them |
| 8 | Right-click a mesh or a multilayered material › Copy Game Path (also the copy icon that appears on hover) | The mesh’s path, or the material’s setup path, on the clipboard |
| 9 | Find nothing like this |
One line: Nothing matches, with a hint |
| 10 | Clear Find (the clear icon in Find’s title bar) | The view goes back to its first text |
View in 3D
Built 2026-10-19. Last run 2026-10-19 by the owner through F5: all 7 checks pass, colors the right way up on the sneaker and the jacket. The colors behind it are also checked outside VS Code (smoke test, “3D view”). Needs REDcode installed in the development host’s VS Code (it is, when REDcode is installed in your normal VS Code), with its REDbridge running.
npm run build, then F5 (Run EDGEmat).- In the development host, open EDGEmat’s activity bar container, expand FIND below Game Materials, press Find… and type
sunny ammo. - Expand “Sunny Ammo synthetic high-tops”, then Feminine body. Under it is the mesh row
s1_055_pwa_shoe__converse.mesh.
| # | Check | Expected |
|---|---|---|
| 1 | Hover the mesh row s1_055_pwa_shoe__converse.mesh |
Two icons at its right end: an eye (View in 3D) and copy (Copy Game Path) |
| 2 | Click the eye | REDcode’s editor opens the mesh in a new tab, on its 3D view. The status bar (bottom of the window) says: EDGEmat: pick the look “red_yellow_graphic” in the 3D view |
| 3 | In the 3D view’s toolbar, pick red_yellow_graphic in the appearance list | The sneaker shows its colors: black sole, red trim, an orange-brown upper, as in the setup editor’s color map. The 3D view says “EDGEmat: approximate”. Nothing shiny or bumpy yet: colors only |
| 4 | Rotate the sneaker (drag in the view) | The colors sit where they belong on the shoe: the sole is black, the laces area matches the map. If the colors look scrambled or upside down, tell me: it means the map’s orientation is off |
| 5 | Find t2_078 samurai, expand Meshes, right-click t2_078_ma_jacket__samurai.mesh › View in 3D |
The jacket opens in 3D. On its first look it is near-black (the Arasaka jacket is black), with the Arasaka decals and stitches showing as textures |
| 6 | Switch the 3D view’s appearance list to no_bags | The bags change to a flat color or disappear (their material is mesh_decal.mt without a texture) |
| 7 | Show Log (the Game Materials ... menu) |
Lines like 3D view: 5 of 5 materials for base\...\t2_078_ma_jacket__samurai.mesh, look default, in 1055 ms |
M2 phase test
Passed 2026-10-19. The test in the design: a game jacket shows the same layers WolvenKit shows, and Claude describes it correctly; a setup from a mod archive outside any project opens and reads the same.
| Part | How | Result |
|---|---|---|
| The same layers as WolvenKit | The Arasaka samurai jacket’s setup (ml_t2_078_ma_jacket__samurai.mlsetup, the material ml_t2_078_ma_jacket__samurai_masksset on t2_078_ma_jacket__samurai.mesh, look default), read by EDGEmat and compared field by field with WolvenKit’s own JSON of the file (REDbridge’s toJson runs WolvenKit’s reader) |
20 of 20 layers; all 360 fields equal (surface, color, tiling, offsets, opacity, levels, microblend and its settings); no field EDGEmat ignores; ratio and useNormal equal |
| Claude describes it correctly | mat_describe over stdio, as Claude Code calls it, and Claude’s description from it |
14 of 20 layers shown, with their surfaces, colors, finishes and shares. The owner: “100% accurate”. The white stitching is not in the setup but a separate decal material on the mesh (pasted__decal_stitches, garment_decals_d01.xbm), which mat_find lists: a whole-garment description combines the two |
| A setup from a mod archive | The setup editor hand test, step 10 (2026-10-17) | Pass |
The Desk
Added 2026-10-25: the Desk view, Open in EDGEmat from REDcode’s views, saving on the Desk, and + to put it in a project. Reworked 2026-10-26: entries with their own edits, variations, a + per entry. In the development host (F5), with REDcode, and a WolvenKit project open in REDcode (a fresh one is best, such as one made with REDcode’s New Project). The slim-fits mesh is a good one: base\characters\garment\player_equipment\legs\l1_012_pants__jeans_tight\l1_012_pwa_pants__jeans_tight.mesh. A Desk from before 2026-10-26 is moved over on the first start: each entry keeps its edits (an older pair that shared an edit now has a copy each; take one off and open it again for a fresh one).
| Step | Do | Expect |
|---|---|---|
| 1 | Click EDGEmat’s icon in the activity bar (left edge); if the Desk has entries, hover its title bar › Clear the Desk… | Three views: Desk at the top, then Game Materials and Find. The Desk is empty and says how to put something on it |
| 2 | Click REDcode’s icon in the activity bar › hover the Game Assets header › the funnel icon (Filter Game Assets; not the magnifier, whose pick list cannot be right-clicked) › type l1_012_pwa_pants__jeans_tight.mesh, Enter: the tree narrows to it (or browse to base\characters\garment\player_equipment\legs\l1_012_pants__jeans_tight\). That one file is “the slim-fits” in every step below (the feminine body’s; pwa) › right-click it |
Open in EDGEmat in the menu, beside Open in Editor |
| 3 | Choose Open in EDGEmat | EDGEmat’s activity bar opens on the Desk. The mesh is there, selected and open: its looks, with the first look an item wears open on its materials (since 2026-10-26; on the slim-fits, leather) |
| 3b | EDGEmat’s Find view: search comfy rocker, open the item and its body, right-click the slim-fits mesh › Add to Desk |
The Desk comes forward with the mesh selected, its look leather open on its materials. The same line as step 3 when it has no edits yet (no second one) |
| 4 | Right-click a .ent or .app in Game Assets |
No Open in EDGEmat on it (since 2026-12-01, with REDcode’s file kinds, #15). Before, the entry was there and a message said it takes a mesh, a setup or a surface |
| 5 | Open in EDGEmat on the slim-fits again | The same line is selected; no second one (it has no edits yet) |
| 6 | On the Desk, click the multilayered material under the look leather (it opens unfolded; use leather in every later step, since step 18 checks the same look: on the Desk, a mesh line has looks under it, such as leather, each with a palette icon; click a look’s arrow › to unfold it, and its materials show under it: the one whose grey text says multilayered · …mlsetup, with a stacked-sheets icon) | The setup editor opens. Under the title: “on the Desk (l1_012_pwa_pants__jeans_tight.mesh), as in the game” and “Ctrl+S saves it on the Desk” |
| 7 | Change a layer’s color (click a layer in the list, then a swatch), then press Ctrl+S | Saved with no question. The tab’s unsaved dot goes. On the Desk the mesh line and the material read “edited on the Desk” |
| 8 | Hover the mesh line › the eye icon (View in 3D) | The pants show the new color. The tab’s path runs through EDGEmat\desk\items\ |
| 9 | REDcode’s Game Assets view: double-click the same slim-fits .mesh (its 3D view) |
The game’s look: the Desk’s edit does not show. Also with the setup editor still open and changed, not saved |
| 10 | First check the jeans line on the Desk reads edited on the Desk (step 7 saved; without an edit, EDGEmat reuses the line, as in step 5). Then REDcode’s Game Assets › right-click l1_012_pwa_pants__jeans_tight.mesh › Open in EDGEmat, a third time (not the + or a right-click on the Desk’s own line, which select that line) |
A second line, l1_012_pwa_pants__jeans_tight.mesh, variation 2, selected and open; the status bar says it is a fresh copy. Its material opens with the game’s colors, and its View in 3D shows the game’s look |
| 11 | Recolor variation 2 differently: on the Desk, under the line l1_012_pwa_pants__jeans_tight.mesh, variation 2, unfold its look leather (the arrow › before it) and click the material line under it whose grey text says multilayered · …mlsetup (a stacked-sheets icon). In the setup editor, click a layer in the list, pick another color than step 7’s, Ctrl+S. Then right-click that top line itself, l1_012_pwa_pants__jeans_tight.mesh, variation 2 (the mesh’s own line, not a look or material under it) › Rename… › a box at the top titled “Rename l1_012_pwa_pants__jeans_tight.mesh on the Desk” › type blue, Enter |
Both lines read “edited on the Desk”; the second now reads …, blue. Each line’s View in 3D shows its own color |
| 12 | Close VS Code’s development host and press F5 again; open EDGEmat | Both lines are still there with their edits and names |
| 13 | Hover the first line › its new-file icon (Add to Project…) | Project pick if REDcode has none open. A dialog: “Add l1_012_pwa_pants__jeans_tight.mesh to |
| 14 | Choose Add to Project | When REDcode had the project open: “Added … to |
| 15 | Pack and Play (or Pack and Install), then look at V in the slim-fits in the game | The pants in the first line’s color, with no other mod |
| 16 | Hover the Desk’s title bar (the word DESK) › the + (Add the Desk to Project…) | A pick first: “The Desk has 2 variations of l1_012_pwa_pants__jeans_tight.mesh”, listing both and Skip this one |
| 17 | Pick …, blue › Add to Project | “1 file written” (the setup, now blue; the mesh already points at it). The project’s slim-fits shows blue in its 3D view |
| 18 | Give the project’s own jeans another material, so they differ from the Desk’s. The project must be open in REDcode (it is since step 14). (a) In EDGEmat, the FIND view (below Game Materials) › hover its header › the magnifier (Find…) › type comfy rocker, Enter. (b) Unfold the item Comfy rocker aramid-weave slim-fits whose grey text ends Items.Pants_01_basic_01 (arrow ›), then Feminine body, then the mesh line l1_012_pwa_pants__jeans_tight.mesh (“look leather”). Find shows the game’s lines here, not the project’s; the new material still goes onto the project’s copy, since the project has one. (c) Hover the material line under it, leather (grey text multilayered · leather.mlsetup, a stacked-sheets icon): a sparkle icon shows at its right end (New Material Here…; or right-click the line › New Material Here…). Click it. (d) A New Material tab opens; its “Where it goes” names the project’s jeans. Under 1. The image, the tab From an image file › Choose an image… › any photo on your PC (no key needed). (e) Under 3. The material, a name such as test photo, then Add to Project: “Saved … and put on … mesh materials”. (f) Back on the DESK: hover the first jeans line (not …, blue) › its new-file icon (Add to Project…). The question comes only when the look you gave a new material is the one edited on the Desk in step 7 (leather); a material on another look is no clash |
Before the confirm, a question: “ |
| 19 | Choose Keep the Project’s, then Add and Remove from the Desk | “nothing new to write … 1 mesh stayed on the Desk with its edits”. The line is still on the Desk, still “edited on the Desk”; the project’s slim-fits still wears the new material |
| 20 | Its new-file icon (Add to Project…) again › Replace with the Desk’s › Add to Project | The mesh is written again and the log says the project’s copy was replaced. The project’s slim-fits wears the first line’s color in its 3D view |
| 21 | REDcode’s Project view: right-click the project’s .mesh › Open in EDGEmat |
It goes on the Desk as a new line marked **from |
| 22 | Hover a line › the × icon (Remove; Take Off the Desk before 2026-11-22) | If the line has edits, it asks first: “Remove … from the Desk?” with Remove. Then the line is removed; the other lines stay |
| 23 | Hover the Desk’s title bar › Clear the Desk… › Clear the Desk | The Desk is empty. The project keeps its files. If a setup tab or 3D view of a Desk file is still open, Windows may keep that file a moment: then a note says EDGEmat deletes it when it next starts, and the Desk is empty all the same. 2026-11-13 (owner): an error, ENOTEMPTY on desk\items; fixed the same day, rerun |
| 24 | Optional, with Claude Code connected: ask “put the slim-fits on EDGEmat’s Desk, then list the Desk” | mat_desk adds it with an id, and the Desk view shows it within a second or two |
Microblends and worn looks
Added 2026-10-26, after the owner’s in-game check of a leather recolor on the slim-fits: the color map drew the leather maroon (a denim layer the game hides through its lint microblend), and the Desk opened the default look, which no item wears. In the development host (F5), with REDcode. Take the slim-fits off the Desk first (hover its line › ×), so it comes on fresh.
| Step | Do | Expect |
|---|---|---|
| 1 | REDcode’s icon in the activity bar › hover the Game Assets header › the funnel icon (Filter Game Assets; not the magnifier, whose pick list cannot be right-clicked) › type l1_012_pwa, Enter. In the tree, unfold down to l1_012_pwa_pants__jeans_tight.mesh and right-click it › Open in EDGEmat |
The Desk opens with the mesh. The first time builds the item index (about ten seconds): the looks show at once, then again with marks. Its look leather is open (the one most items wear, 2), not default or green (1 item) |
| 2 | Read the looks’ descriptions on the Desk | leather: “worn by 2 items” (the Comfy rocker and a test item). default, disco, npc_mama_welles: “no item”. Close and open the Desk’s mesh line again: the marks show at once |
| 3 | Under leather, click its material leather | The setup editor: the color map at the right is mostly the leather’s red, with solid black piping and waistband; no maroon cast. Layer 5 (denim clean, “cool dark grey”) shows under 1% of the texture |
| 4 | Hover the mesh line › the eye (View in 3D) | The pants mostly the leather’s red with black piping, close to the game’s color under its lighting. With REDcode 0.10.4 or later (REDcode #16), no seam on the lower left leg; with 0.10.3 or earlier, the seam is still there |
| 5 | In the setup editor, click layer 5 › Microblend › pick default |
Within a second or two its share stays near 0 (its mask is under the default’s threshold). Ctrl+Z puts lint back |
| 6 | EDGEmat’s Find view: search comfy rocker, open the item and its body, right-click the slim-fits › Add to Desk |
It opens on leather (the look it was found under), as before |
| 7 | Take the slim-fits off the Desk (×). In Find, the same search: hover the slim-fits mesh line | A + beside the eye and the copy button; its tooltip says Add to Desk. Click it: the same as step 6 |
Which item: In the game
Added 2026-10-26 (owner’s ask): after changing a mesh’s material, which game item to give V to see it, with REDnode’s Console (CET until 2026-11-13, when the owner dropped it). In the development host (F5), with REDcode and a project open. The slim-fits mesh again: its leather look is the Comfy rocker aramid-weave slim-fits, Items.Pants_01_basic_01, worn on the feminine body.
| Step | Do | Expect |
|---|---|---|
| 1 | Put the jeans on the Desk: EDGEmat’s FIND view › the magnifier (Find…) › comfy rocker › unfold the item ending Items.Pants_01_basic_01 › Feminine body › hover l1_012_pwa_pants__jeans_tight.mesh › its + (Add to Desk). (Or REDcode’s Game Assets › the funnel (Filter Game Assets) › l1_012_pwa › right-click the .mesh › Open in EDGEmat: Game Assets knows file paths, not in-game names.) On the Desk, open the look leather and click its multilayered material |
The setup editor opens. Under the header, In the game, folded (▸). Click it: first “Finding the items that wear … (about ten seconds)” the first time, then In the game (1) and “Comfy rocker aramid-weave slim-fits”, addItem("Items.Pants_01_basic_01"), “feminine body”, and Copy. The note above them says REDnode’s Console (F10 › the launcher › Console) |
| 2 | In the setup editor tab, near the top: below the title and the line “Select a layer to change it.”, the heading In the game (1) (unfold it with its ▸ if it is folded). Its row reads the item’s name, the command addItem("Items.Pants_01_basic_01"), “feminine body”, and a Copy button at the row’s right end. Click Copy, and paste in any text box (Notepad, or VS Code’s search box). Then change a layer’s color, and close and reopen the setup |
The command, exactly as shown. The section stays open after the edit; a setup opened later starts folded again |
| 3 | On the Desk, hover the look leather | The tooltip ends with “Worn in the game by:” and the item with its id. Hover default: “No clothing item in the game wears this look” |
| 4 | Right-click the look leather › Copy REDnode Command (there is no Copy CET Command any more) | Copied straight away (one item); the status bar says so. On the mesh line itself: a pick of the items for every look |
| 5 | In Find, search slim-fits, right-click an item › Copy REDnode Command |
That item’s command, such as addItem("Items.Pants_01_basic_01") |
| 6 | Edit the leather look’s color on the Desk, put it in the project (+), Pack and Play. In the game, press F10, open REDnode’s launcher › Console, paste the command, Enter, and put the pants on V (a feminine V) | V gets the slim-fits, in the Desk’s color |
Open Mesh in EDGEmat
Added 2026-10-23: from a mesh in 3D to its materials in EDGEmat, and the 3D view drawing them again after a save. In the development host (F5), with REDcode, and a WolvenKit project holding a game .mesh under source\archive (REDcode’s Asset Browser › right-click a mesh › Add to Project). The Comfy rocker slim-fits’ l1_012_pwa_pants__jeans_tight.mesh is a good one: its leather material is multilayered.
| Step | Do | Expect |
|---|---|---|
| 1 | VS Code’s Explorer: right-click the project’s .mesh › Open in EDGEmat |
Since 2026-10-25: EDGEmat’s Desk opens with the mesh on it, “from |
| 2 | Open a look (its arrow ›) › hover the material whose grey text says multilayered · …mlsetup (a stacked-sheets icon) | Its setup and mask in the tooltip, each path whole, wrapping onto a second line where it is long (none cut off at the right edge); a click opens the setup editor. 2026-11-13: the paths were cut off (the owner); fixed and passed the same day |
| 3 | Open the mesh in REDcode (click it in REDcode’s Project view), switch to its 3D view, keep the tab open | The mesh in 3D with EDGEmat’s colors |
| 4 | In the setup editor from step 2, change a layer’s color, then Save to Project › As a new setup (recommended) › accept the game path › keep the project’s mesh ticked › Enter | Saved, and the project’s mesh pointed at the new setup. Within a few seconds the 3D view from step 3 draws its materials again with the new color. Unverified: how REDcode’s open tab takes its mesh file changing on disk (redraws, asks to reload, or keeps its copy). In place of the game’s setup needs the Material Texture Override mod in the game; At a game path you choose changes no mesh, so the 3D view would not change |
| 5 | In Find, right-click a look’s material › New Material Here…, make a material (or From an image file), Add to Project | Saved and put on the mesh; the 3D view draws again with the new material’s color |
| 6 | In Find, right-click the mesh › View in 3D | REDcode’s 3D view opens the project’s copy, not the game’s |
| 4b | With the 3D view and the setup editor both open: change a color without saving, then Ctrl+Z, then Ctrl+Y | The 3D view follows each within about a second: the new color, back, and again. Close the editor tab, Don’t Save: the 3D view goes back to the saved setup |
| 7 | When REDcode has the button: in the 3D view of a mesh, pick a look, press Open in EDGEmat | As step 1, with the look on screen open, and its layered material’s setup tab in front. 2026-11-13: the mesh went on the Desk, but no tab came forward, so it looked as if nothing happened (the owner); changed and passed the same day |
Open Material in EDGEmat
Added 2026-10-21, when REDcode marked .mlsetup files in its Project view for EDGEmat (REDcode docs/api.md, “Menus in the Project view”). In the development host (F5), with a WolvenKit project open that holds a .mlsetup under source\archive:
| Step | Do | Expect |
|---|---|---|
| 1 | VS Code’s Explorer (Ctrl+Shift+E): click the .mlsetup once |
It opens straight in EDGEmat’s setup editor, since EDGEmat is VS Code’s default editor for .mlsetup files: layers in plain words, the Save to Project button in the tab’s title bar |
| 2 | Right-click the same .mlsetup in the Explorer |
Open Material in EDGEmat…, the menu’s first item. Choose it: the setup editor’s tab comes forward. The entry is for bringing a file back into EDGEmat after another editor opened it (step 3) |
| 3 | Open the same file in REDcode’s editor: in the Explorer, right-click the .mlsetup › Open With… › in the list at the top of the window, REDcode CR2W Editor. A second tab opens with the file’s raw fields. Right-click that tab’s name in the tab bar |
Open Material in EDGEmat… in the tab’s menu. Choose it: EDGEmat’s setup editor tab comes forward |
| 4 | With REDcode 0.10.3 or later: REDcode’s Project view, right-click the .mlsetup |
Open Material in EDGEmat…; it opens the setup editor |
| 5 | Right-click a .mltemplate under source\archive (in the Explorer) › Open Material in EDGEmat… |
Its surface page, when the surface is in the library; else “not in the library” |
| 6 | Right-click a .mesh, then an .xbm (in the Explorer or REDcode’s Project view) |
The .mesh: Open in EDGEmat (it goes on the Desk), and no Open Material in EDGEmat…. The .xbm: no EDGEmat entry at all. 2026-11-13: reworded; the step predated Open in EDGEmat for meshes (2026-10-24) |
Wardrobe Designer W0
Added 2026-10-30: the first build of Wardrobe Designer, a REDnode app in apps/wardrobe-designer (design, “Wardrobe Designer”). It reads and plans, and changes nothing. It checks W0’s open rows: its window over the inventory screen, EDGEmat’s core on REDnode’s REDbridge, and REDagent’s plan. Needs REDnode 0.45.0 or later, REDbridge, and REDagent with its key. Build it first: npm run wardrobe:build in the EDGEmat folder (Claude does this).
| Step | Do | Expect |
|---|---|---|
| 1 | In the game, F10 › the REDNODE tab at the lower left › the gear at the right of the Theme row. With Developer mode on, under Development folders, paste E:\Modding\Cyberpunk 2077\EDGEmat\apps and press Enter |
Wardrobe Designer starts. The Mod Manager asks for its two permissions, REDbridge (bridge) and REDagent (agent): allow both |
| 2 | Look at its window, at the left of the screen | The status line says to pick a piece of clothing. The slot buttons name what V wears, such as Legs: V’s Pants; empty slots say “none” and can’t be pressed. The log says “V (feminine body) wears N item(s)” and lists them |
| 3 | Open the inventory (I), with V in view. Press F10 until the window takes input, and press the Legs button | The window shows over the inventory screen and takes the click. Within about 10 s the log lists the pants’ mesh and its layers (black leather first), and Plan turns on |
| 4 | Click How should it look?, type red leather, press Plan |
“Asking REDagent for a plan…”, then the recipe in the log: the setup, the layers to change with their new colors, and notes, with the time and cost. The status says the plan is ready and not applied |
| 5 | Plan again with yellow denim, then yellow with black polka dots |
Denim: a new surface on the leather layers, in yellow. Polka dots: the notes say patterns are not supported yet |
| 6 | Tell Claude it’s done | Claude reads the app’s log through REDnode and records the times and recipes |
Last result, 2026-10-30: passed (the owner, every step; the log read from red4ext\logs\rednode-mods.log, since the game was closed by then).
| Step | Result |
|---|---|
| 1 | Started before the permissions were allowed: “Allow Wardrobe Designer to use REDbridge in the Mod Manager first”. Once allowed, REDnode restarted it and it read. The log said “REDbridge from REDnode” with a blank where a version goes (REDnode’s kernel.bridge() gives none); fixed in the next build |
| 2 | 6 items, read in 4.6 s with the item index (2,074 clothing items): the PTFE helmet, the Blouie Blue infovisor, the chest holster, the netrunning suit, V’s Pants, V’s Sneakers. Feminine body |
| 3 | V’s Pants, look _q001__start_w: l1_066_pwa_pants__rogue.mesh, look default; its setup’s 12 shown layers (black leather standard 60.5% first), in 2.1 s. pants_stitches is textured, not layered |
| 4 | red leather: 6.2 s, $0.059. Layer 0 1a5c5f_null (red, #cf3030, distance 0.017 on that leather) with roughness “glossy to satin” (a real preset of it); layer 1 (the holed leather) “red” in words |
| 5 | yellow denim: 4.4 s, $0.021. Layer 0 to denim_clean_01_30 with 6c74fa_null (light yellow on denim, #d5d53d); layer 4 (the small denim layer) the same. The holed leather (layer 1, 12.7%) stayed black leather. yellow with black polka dots: 3.0 s, $0.011. Layer 0 “yellow” in words; the notes say patterns are not supported yet |
Findings for W1: REDagent reached EDGEmat’s tools in the game (both preset names are real and right, and the context had only the black ones). Recipes mix preset names and words, which is what mat_edit’s word form (layerFromWords) takes, so W1 can apply them as they come. The brief should say that a material word (“denim”) means every layer of the old material (the holed leather was left), and the recipe should name the surface whenever it uses a preset name, since preset names belong to one surface.
Wardrobe Designer W1
Added 2026-10-30: Wardrobe Designer 0.1.0 restyles what V wears (design, “Wardrobe Designer”, W1). Restyle asks REDagent for a recipe, applies it with mat_edit’s checks into the app’s work project, packs it as WardrobeDesigner.archive and swaps it into the game. Restore puts the game’s look back. Same setup as W0: the development folder is in place and REDagent has its key. Claude builds it (npm run wardrobe:build); a running app restarts with the new build.
| Step | Do | Expect |
|---|---|---|
| 1 | Load a save, F10. If Wardrobe Designer did not restart by itself: the REDNODE tab › Mod Manager › Wardrobe Designer › Restart | The Mod Manager asks for its new permission, archives (swap archives into the game): allow it. The window shows Restyle, Restore and Refresh; there is no Plan button now |
| 2 | Open the inventory (I), with V in view. Press F10 until the window takes input, then press Legs: V’s Pants | The pants’ layers in the log, as in W0 (black leather 60.5% first). Restyle turns on; Restore stays off |
| 3 | Click How should it look?, type red leather, press Restyle |
In the log: the plan, “Saved 2 file(s)”, “Packed 2 file(s)”, then “Swapped in”, and (with the inventory open and no Equipment-EX) “Refreshed it on the inventory’s preview (Legs)”. The pants turn red on the inventory’s preview of V, about 20 s after pressing. The status says “Restyled in N s” with REDagent’s notes. The Legs button now ends in *, and Restore turns on |
| 4 | Type make the leather glossier, press Restyle |
The log lists the layers as “(restyled)”: the second restyle starts from the red one. The pants stay red, with more shine. “Saved 1 file(s)” (the mesh already points at the copy) |
| 5 | Type yellow denim, press Restyle |
Both leather layers become yellow denim: layer 0 and layer 1 (the holed leather, which W0’s plan left). The pants turn yellow in the preview |
| 6 | Close the inventory and look down at V’s legs (or use Photo mode) | The same yellow denim pants on V in the world |
| 7 | Open the inventory again, press Legs, press Restore | “Restore V’s Pants: removed 2 file(s)”, “the archive holds the game’s own 1 mesh(es)”, then swapped in. The pants are black leather again on the preview; the * is gone and Restore turns off |
| 8 | Restyle them red leather again. Quit to the desktop, start the game and load the save |
The pants are still red (the archive stays in archive\pc\mod). The Legs button ends in *, and Restore works as in step 7 |
| 9 | Tell Claude it’s done | Claude reads the app’s log and records the times, the recipes and what was swapped |
First run, 2026-10-30: stopped at step 3 (the owner). Steps 1 and 2 passed. Step 3: the plan (3.5 s, $0.050: both leather layers red, 1a5c5f_null, glossy), the save (2 files, 0.8 s), the pack (0.1 s) and the swap (0.5 s) all worked, but the pants stayed black on the preview until the owner took them off and put them back on; then they were red. The cause, read through REDnode’s MCP tools: with the inventory open, V’s own base-slot items read empty_appearance_default, so REDnode 0.48.1 refreshed nothing on V and, since it refreshes the preview only in those slots, nothing on the preview (refreshed 0 worn items, refreshed 0 items). Earlier swap tests ran with Equipment-EX’s OutfitSlots.*, which keep their appearance. Filed as REDnode #28. The next build resets the restyled item on the preview itself when REDnode did not. Rerun from step 4.
Second run, 2026-10-30: steps 4 to 6 passed (the owner). With the inventory open, the app refreshed the preview itself (“Refreshed it on the inventory’s preview (Legs)”) for darker red leather, blue leather and yellow denim (both leather layers, as the brief now asks), 3 s plans at $0.01 to $0.05; then red denim after a restart, where REDnode 0.49.1’s own refresh did V and the preview. The owner went on to the chest holster (dark red chrome, glossy yellow plastic: 3 materials, 6 files) and the sneakers (blue denim, blue leather, blue cotton, blue), each swapped and refreshed in 0.4 s. REDagent’s daily limit for the app ($0.25) ran out at the holster; the owner raised it to $2.00 (REDagent › Chats › Mods). Found, and fixed in the next build: the app read too early after a load (“The game gave no equipment data for V”; it now tries again for up to 30 s), and three kinds of words skipped a layer change: “medium blue” (now read, with deep, soft, rich, neon and others), a finish a surface has no preset named for (“glossy” on denim or brushed steel: now the closest finish, said in notes) and a material word that fits several surfaces (“denim”: now the game’s plain one, denim_clean_01_30).
Step 7, 2026-10-30: failed (the owner). Restore took V’s Pants’ 2 files out and swapped the archive (6 files, “6 dropped”), with V and the preview refreshed, but the pants kept the restyled look; the sneakers’ Restore the same. REDswap 1.0.0 clears the game’s cached copies only of the files the new archive holds, so the pants’ mesh, left out, stayed cached as the restyled one (native/redswap/swap.cpp, step 6; suspected in REDnode’s H2a). Filed as REDnode #29. The app’s Restore now always puts the game’s own meshes, unchanged, into the archive in their place, so REDswap clears them. A game restart shows the game’s look too. Rerun: restyle the pants, then step 7.
Steps 7 and 8, 2026-10-30: passed (the owner). Restyled and restored again with the fix: the pants and the sneakers went back to the game’s look on the preview with no restart. After quitting to the desktop and loading the save, the restyles were still there and Restore worked. Wardrobe Designer W1 passed.
Wardrobe Designer W2 patterns
Added 2026-10-31: W2’s first slice (design, “Wardrobe Designer”, step 6 (a)). Words that ask for a print or pattern get a patterns entry in REDagent’s plan; the app gets the player’s Gemini key through REDnode’s shared keys, Gemini makes the pattern as a seamless texture, and it goes over the whole material REDagent picked, with the garment’s own folds. Same setup as W1. Claude builds it (npm run wardrobe:build). Gemini’s image models may need billing turned on for the key’s Google project: an error from Gemini in the log says so.
| Step | Do | Expect |
|---|---|---|
| 1 | With the game closed, take EDGEmat_Paint.archive and EDGEmat_PaintStyle.archive out of <game>\archive\pc\mod (the paint check’s pants replace the same mesh) |
Only WardrobeDesigner.archive of these is left, if you restyled before |
| 2 | Make a Gemini key if you have none: aistudio.google.com › Get API key › Create API key. Keep it at hand; don’t paste it in chat | A key starting AIza |
| 3 | Start the game, load a save, F10. If Wardrobe Designer did not restart with the new build: the REDNODE tab › Mod Manager › Wardrobe Designer › Restart | The window as in W1 |
| 4 | Open the inventory (I). Press F10 until the window takes input, press Legs: V’s Pants. If it has a *, press Restore first | The pants’ layers in the log |
| 5 | In How should it look?, type yellow with large black polka dots, press Restyle |
The log shows the plan with a line ...: the pattern "...", repeat N. The first time, REDnode’s Key request window opens over the game, naming Wardrobe Designer and Google Gemini: paste the key and press Allow (with a key already saved in REDnode’s Keys, only Allow). Then “Gemini (…) made … in N s”, “Saved 8 file(s)”, “Packed”, “Swapped in”; the pants on the inventory’s preview turn yellow with black dots on both legs, folds and stitching kept. About 20 to 40 s in all |
| 6 | Type make the dots bigger, press Restyle |
A new pattern with a smaller repeat; the log says “the pattern before it was removed”. Bigger dots on the preview |
| 7 | Close the inventory, look at V’s legs in the world (photo mode: front, back and each side). Screenshots | The dots follow the pants; they break at seams (expected: a tiled texture breaks at UV island borders). Note anything stretched, smeared or upside down |
| 8 | Open the inventory, Legs, type red leather, press Restyle |
The log says “the pattern came off … its layers show again”; the pants are red leather |
| 9 | Press Restore | The game’s look, as in W1 step 7 |
| 10 | Tell Claude it’s done | Claude reads the app’s log: Gemini’s model and times, the repeats REDagent chose |
First run, 2026-10-31 (the owner, dev PC; read from the app’s log): “It worked great”. Step 5: REDagent planned the pattern “bright yellow with large black polka dots”, repeat 3, satin (4.4 s, $0.051); REDnode’s Key request window took the Gemini key; Gemini (gemini-3.1-flash-lite-image, the newest the key lists) made it in 2.9 s; 8 files saved in 22 s (the texture imports), packed (13 files, 8.5 MB), swapped in 0.6 s with V and the preview refreshed. Step 6, make the dots bigger: bigger dots (repeat 2), but the pants turned red. REDagent had been told the pants wore a pattern, not which: it saw the layers under it (red leather, from an earlier W1 restyle the owner had not restored) and guessed “red leather with large black polka dots” (its note: “I guessed the red and black colors”). Fixed: the look now carries the pattern as it was made (wears: words, repeat and shine, from the record beside it), the log shows it, and the brief says the listed layers are hidden under it and a change starts from its words, changing only what is asked. Checked outside the game: after a pattern, the look reads wears {"words":"yellow with large black polka dots","repeat":4,"shine":"matte"}. Then Restore (16 files out, the game’s mesh back). Steps 7 (the world look) and 8 (red leather taking the pattern off) not run yet. Rerun from step 4.
Rerun from step 4, 2026-11-01 (the owner, dev PC, the development folder; read from the app’s log): passed, “It all worked”. Step 5: REDagent planned “bright yellow with large black polka dots”, repeat 3, satin (3.0 s, $0.050); Gemini made it in 3.1 s; 8 files saved in 14.4 s. Step 6, make the dots bigger: the same words, repeat 2, “with the same yellow and black colors” (2.9 s, $0.012): the fix holds. Gemini’s first answer had no image (it stopped with IMAGE_RECITATION, its check against reciting a known picture) and the app skipped the pattern with that reason; pressing Restyle again made it in 2.7 s, saved in 9.6 s, packed (15 files, 9.1 MB), swapped in 0.4 s. Step 7, two photo-mode shots, front and back: the dots follow the pants, right way up, with the garment’s folds; dots cut at seams as expected. Faded dots near the tile edges (upper thighs, seat): EDGEmat’s makeSeamless cross-fades each edge with a copy shifted by half, so where both copies show, dots from each show at part strength. A picture with sharp shapes shows it; a texture like leather hides it. Step 8, red leather: “the pattern came off … its layers show again”, six layers red (3.1 s, $0.013). Step 9, Restore: 12 files out, the game’s mesh back.
Outside the game, 2026-10-31 (Claude, no Gemini key on the dev PC, so a stand-in image for Gemini’s; the rest as the app runs it): V’s Pants, feminine, into a scratch project. The plan’s pattern and a layer change on the same material: the layer change skipped (“the pattern replaces its layers”). A swatch of dots at repeat 4: 8 files (the textures, two .mi, the mesh), 6.5 s; the mesh’s material on metal_base with the pants’ own normal map (l1_001_wa_pants__rogue_n01.xbm). A tartan over it at repeat 3: the dots’ files removed, the folds still the pants’ own, 5.4 s. Then plain red on layer 0: the pattern came off, the mesh back on multilayered.mt with the restyled setup, red leather, the tartan’s files removed: 2 files packed. Typecheck of every workspace clean.
Wardrobe Designer W2 pattern fixes
Added 2026-11-01, from the W2 run’s findings. Three changes: a picture that already tiles is used as it is (its edges were always blended, which faded copies of the dots into each other near the edges); “make the dots bigger” keeps the picture and changes only the repeat, with no new image; and Gemini is asked once more when it sends no image (IMAGE_RECITATION). The same setup as W2: the development folder, REDagent’s key and the Gemini key. Claude builds it (npm run wardrobe:build).
| Step | Do | Expect |
|---|---|---|
| 1 | Start the game, load a save, F10. If Wardrobe Designer did not restart with the new build: the REDNODE tab › Mod Manager › Wardrobe Designer › Restart | The window as in W1 |
| 2 | Open the inventory (I). Press F10 until the window takes input, press Legs. If it has a *, press Restore first | The pants’ layers in the log |
| 3 | Type yellow with large black polka dots, press Restyle |
Yellow pants with black dots, as in W2. The log has “Gemini (…) made” and, only when Gemini’s picture did not tile, “the picture did not tile across (or down), so its edges were blended that way” |
| 4 | Type make the dots bigger, press Restyle |
Bigger dots in the same arrangement, still yellow, within a few seconds. The log says “the same picture as before, now repeat N; the image service was not asked”, with no “Gemini (…) made” line |
| 5 | Type make it glossy, press Restyle |
The same dots, shinier. The log: “the same picture as before, now glossy” |
| 6 | Close the inventory, look at V’s legs in photo mode (front and back). Screenshots | Without the “did not tile” line in step 3: no faded dots. With it: faded dots only near the edges in that direction |
| 7 | Press Restore in the inventory, and tell Claude | The game’s look. Claude reads the log |
Result, 2026-11-02: passed (owner, in the game; Claude read the log and the photo-mode shots). V’s Pants, feminine. Step 3: REDagent’s pattern “bright yellow with large black polka dots”, repeat 3, satin; one Gemini picture (gemini-3.1-flash-lite-image, 5.7 s), “did not tile down, so its edges were blended that way”. Step 4: repeat 2, “the same picture as before, now repeat 2; the image service was not asked”. Step 5: glossy, the same line. Step 7: Restore put the game’s mesh back. The shots: glossy yellow, sharp black dots, and a few faded dots in horizontal bands on both legs, where the tile’s top and bottom edges meet: the blend down, as expected for this picture.
Wardrobe Designer patterns with GPT Image
Added 2026-11-02 (owner): patterns and Reshape’s pictures use one image service, OpenAI’s GPT Image, so a player needs fewer keys; a button switches patterns to Gemini. The app’s manifest now lists keys:openai beside keys:gemini. The development folder, as in W2; Claude builds it (npm run wardrobe:build).
| Step | Do | Expect |
|---|---|---|
| 1 | Start the game, load a save, F10. REDNODE tab › Mod Manager › Wardrobe Designer: allow its new permission (your OpenAI key) if it shows one, then Restart | The window has a new button under Restyle: Patterns: GPT Image |
| 2 | Open the inventory (I), F10 until the window takes input, press Legs; if it has a *, press Restore first | |
| 3 | Type yellow with large black polka dots, press Restyle |
If the app is not allowed your OpenAI key yet, REDnode’s Key request window asks: Allow (the key is saved already). Then yellow pants with large, sharp black dots. The log says “GPT Image (gpt-image-2.5-…) made …” |
| 4 | Press Patterns: GPT Image | It reads Patterns: Gemini; the log says patterns are now made with Gemini |
| 5 | Close the window and Restart the app (Mod Manager) | The button still reads Patterns: Gemini (kept in settings.json in the app’s data folder) |
| 6 | Press it again | Patterns: GPT Image |
| 7 | Photo mode, front and back; then Restore, and tell Claude | Screenshots; Claude reads the log |
Result, 2026-11-02: passed (owner, in the game; Claude read the log and two photo-mode shots). Step 3: REDnode’s Key request window asked for the OpenAI key and the owner allowed it; GPT Image (gpt-image-2.5-sunburst-2026-09-08) made the pattern in 10 s; it tiled both ways, so nothing was blended, and the shots show sharp, even dots front and back with no faded ones (owner: “much better than Gemini”). Step 4: the button switched to Gemini and back. Step 5: the app was restarted with GPT Image chosen (the default too), so reading a saved Gemini choice after a restart was not seen; settings.json in the app’s data folder (%APPDATA%\@rednode\overlay\packages\wardrobe-designer) holds the last choice. Step 7: Restore put the game’s pants back. Saving the 8 files took 30.7 s.
Wardrobe Designer Reshape and keys
Added 2026-11-02: W3’s first version in the app, with the keys (owner: the missing keys asked for first, as the window’s first view, not a separate window), and what V wears read from the slots on V’s body, Equipment-EX’s included (owner: with Equipment-EX the base slots are hidden). Reshape runs EDGEmat’s core (reshape.ts) in the app; the manifest asks keys:tripo too (now keys:openai, keys:tripo, keys:gemini). The pictures show in the window with REDnode 0.55.0 or later (ui.image, REDnode #37; the dev PC has 0.55.1): as it is on the left, changed on the right, a click opens one larger. With an older REDnode the Reshape line gives each picture’s path instead. The development folder; Claude builds it (npm run wardrobe:build). Costs: one GPT Image change (a few tens of US cents) and one Make it (about 60 Tripo credits).
| Step | Do | Expect |
|---|---|---|
| 1 | With the game closed, make sure EDGEmat_ReshapeCheck.archive and EDGEmat_GlowCheck.archive are not in <game>\archive\pc\mod (their hats would win over the app’s). Start the game, load a save, F10 › REDNODE tab › Mod Manager › Wardrobe Designer: allow its new permission (your Tripo key), then Restart |
While the app is not allowed a key yet, its window opens on Wardrobe Designer: your keys (in the window’s usual place at the left): OpenAI and Tripo, each Ready or Needed, with Set… on a needed one and Continue without them at the bottom |
| 2 | Only if the window opened on your keys: on each Needed line press Set…: REDnode’s Key request window asks; Allow (the keys are saved already). If both keys were allowed before (as after this step once), there are no Needed lines: the window opens on the main view, so check the main view and go on to step 3 | The line turns Ready. When both are, the window changes to the main view by itself, in the same place: Patterns: GPT Image, the refresh and key icons in the title bar, and a Reshape part with Change its shape and Reshape, Change, Back, Make it |
| 3 | Wait for “V (… body) wears N item(s)” in the app’s log (the scrolling list at the bottom of the window, under the Reshape buttons), followed by one line per item. The line’s end depends on Equipment-EX’s outfit: outfit off (or Equipment-EX not installed), nothing more, and the items are the base slots’; outfit on, “in Equipment-EX’s outfit (the base slots it hides left out)”, and the items are the outfit’s only (take one off in Equipment-EX’s wardrobe, and within a few seconds its entry goes). Either way: the Clothing dropdown, under the status line, has one entry for each piece V visibly wears, named by its slot (Head: …, Outer torso: …). Put on the Cowboy hat with hardened-leather band (REDnode’s Console: addItem("Items.Hat_02_basic_01") if it is gone; through Equipment-EX with the outfit on, else in the inventory), open the inventory (I), F10 until the window takes input, open Clothing and pick the hat. If it has a *, press Restore first |
The dropdown’s entries match the log’s item lines. The hat’s entry appears within a few seconds of putting it on; the log lists the hat’s materials |
| 4 | Press Reshape | In a few seconds: “Cowboy hat with hardened-leather band, as it is … Make it puts it on V (about 60 Tripo credits)”. Both pictures show the hat from four sides (front and left above, back and right below), on a dark background like the window’s |
| 5 | Type make the brim twice as wide in Change its shape, press Change |
About half a minute; the line says “changed: “make the brim twice as wide”” and the right picture shows the wider brim, one brim only. Click it: the window shows it larger, with Back; press Back |
| 6 | Press Make it | It turns red: “Sure? About 60 Tripo credits”, and the status line says to press again. Wait 10 s without pressing: it goes back to Make it |
| 7 | Press Make it twice | The status counts Tripo’s progress (“making the model: 40%…”, then “bringing it to the game’s size”), then “Fitting it on V”, “Packing and swapping it in”, “Made and put on V in …”. About 4 to 5 minutes. V and the inventory’s preview wear the wide-brimmed hat; Head has a * |
| 8 | Close the inventory, photo mode: front, side, back. Screenshots | The hat as in the Reshape check: one wide brim, on the head, the badge in front |
| 9 | Inventory, Head, Restore | The game’s hat again |
| 10 | In Clothing, pick the pants (Legs …: …), then press Reshape | The pants drawn; the line says it can be changed in pictures but not made yet (“it moves with 31 bones…”); Make it stays off |
| 11 | Press the key icon in the title bar | The window changes to your keys, both Ready, and Continue goes back to the main view, in the same place |
| 12 | Close the window with its close button, then load a save (the app reads V again after a load) | It stays closed. Open it again from REDnode’s launcher (Wardrobe Designer): it shows the main view. Then tell Claude, who reads the log |
Wardrobe Designer: the Clothing dropdown
Added 2026-11-27 (owner): with Equipment-EX, V can wear a dozen pieces or more, so the window’s item buttons (three to a row) became one Clothing dropdown (REDnode 0.68.0’s ui.select), and the app needs REDnode 0.68.0 or later. Each entry is a piece V visibly wears, “
| Step | Do | Expect |
|---|---|---|
| 1 | Start the game and load a save (or, with the game running: F10 › REDNODE tab › Mod Manager › Wardrobe Designer › Restart). Equipment-EX’s outfit on, with V wearing several pieces | The window opens on its main view. Under the status line, a Clothing dropdown where the item buttons were, saying “Pick a piece of clothing V wears (N)”. The log (at the bottom) says “V (… body) wears N item(s), in Equipment-EX’s outfit (the base slots it hides left out)” and one line per piece |
| 2 | Open the inventory (I), F10 until the window takes input, click Clothing | The list opens below it: one entry per log line, in the same order, such as Head: Cowboy hat with hardened-leather band *, Glasses: …, Torso middle: … *, Legs middle: Comfy rocker aramid-weave slim-fits, Feet: V’s Sneakers, Body under: …. Equipment-EX’s own slot names show (Glasses, Torso middle…) |
| 3 | Pick Legs middle: Comfy rocker aramid-weave slim-fits (or the pants V wears) | The dropdown shows it. The line under it says the item; the log lists its materials. Restyle turns on once you type, Reshape is on |
| 4 | In Equipment-EX’s wardrobe, put two more pieces on V in slots it has free (such as a jacket over the netrunning suit, and a necklace or gloves). Back in the inventory, press Refresh | The log says N+2 item(s); Clothing lists the two new pieces in their Equipment-EX slots (such as Torso outer, Necklace short, Hands). The pants stay picked |
| 5 | In Equipment-EX’s wardrobe, take the pants off. Press Refresh | The pants’ entry is gone. Clothing says “Pick a piece of clothing V wears (N)” again, the line under it says “Pick a piece of clothing V wears.”, and Restyle, Restore and Reshape are off |
| 6 | Pick Feet: V’s Sneakers (or another piece without *). Type red in How should it look? and press Restyle. While it runs, try to open Clothing |
While it runs, Clothing is greyed and does not open. Then “Restyled in N s”; V’s sneakers turn red, and their entry ends in * |
| 7 | Press Restore | The sneakers are the game’s again, and the * is gone from their entry |
| 8 | Switch Equipment-EX’s outfit off (V in the game’s own equipment). Press Refresh | The log line ends without Equipment-EX’s words; Clothing lists the base slots’ pieces (Head, Outer torso, Inner torso, Legs, Feet…) |
| 9 | Tell Claude; Claude reads the log |
Wardrobe Designer: window fixes
Added 2026-11-27 (owner: fix the Reshape test’s other faults). The faults the Reshape test of 2026-11-16 found, and what changed:
| Fault | Change |
|---|---|
| The window runs off the bottom of the screen | 820 px tall, was 900, so it starts at its anchor again (a saved place is kept only for the same size). Refresh and Keys moved to the title bar as icons, and the log fills what is left of the window, at least 160 px |
| The item list does not follow V’s clothes until Refresh | Every 4 s, while the main view shows and nothing runs, the app reads V’s slots quietly and reads what V wears again when an item came, went or moved; the log says “V’s clothes changed” |
| After a Refresh the picked item stays the old one | The Clothing dropdown’s change: the pick stays only while V still wears it in the same slot |
| Clicking a picture opened no larger window | Cause not found. A click now shows the picture larger in the main window itself (its content swapped in place, REDnode 0.57.0), with Back |
| Equipment-EX’s outfit panel shows through the window | Most likely the window’s empty lower part: a window’s unused space is see-through in REDnode. The log now fills the window to its bottom edge. REDnode’s windows are 90 % opaque in every theme, so something bright right behind can still show faintly; if that is what shows, it is REDnode’s to change |
| The pictures are dark | The bake (M5), passed 2026-11-18, draws them; the app has had it since its build on 2026-11-27 |
| Back after Make it leaves the made piece on V (owner, 2026-11-27, the Arasaka cap) | Each Make it keeps copies of the files it writes over (in the reshape’s work folder, before-make-<time>) and is recorded in restyles.json (made). Back on the change Make it put on V takes it off V too: the files as they were before, the game’s own mesh where there was none, packed and swapped in. A restyle or Restore of the item forgets them (a restyle builds on the made shape) |
| Nothing shows the app is still working during a long Restyle or Reshape (owner, 2026-11-27) | A progress bar under the status line while the app works (REDnode’s ui.progress): it slides while a step’s length is not known, fills with Tripo’s percentage, and its label counts the time each second and says what the step usually takes (measured from the log: REDagent’s plan a few seconds, a pattern about 15 s, GPT Image’s change about half a minute, each Tripo task about 2 minutes) |
| The app’s key (F11) showed the closed picture window again (owner, 2026-11-27) | REDnode’s documented behavior: an app’s key shows the Node mod’s windows the player closed. The picture now shows in the main window, so the app has one window |
| After the window was closed and shown again with F11, Clothing kept a hat and a chest holster V no longer wore and missed the bomber V put on (owner, 2026-11-28; Claude found the game’s slots right, the Rocker’s Heart crystaljock bomber in Torso outer) | The app forgot its window when the player closed it, so its watch of V’s clothes stopped for good; F11 shows the same window again without telling the app. It now keeps the window, and the watch goes on once the window shows again. A Refresh the list button under Clothing too (the owner did not find the title bar’s icon). Checked after a restart of the app the same day: the list read the bomber, no hat, no holster |
Built 2026-11-27 after “Wardrobe Designer: the Clothing dropdown”, so as not to change the app during that test; built into the app the same day, at 14:36, once that test had passed. Needs a hat or helmet V wears for steps 5 and 6 (one GPT Image change, a few tens of US cents) and for step 8 (one Make it, about 60 Tripo credits).
| Step | Do | Expect |
|---|---|---|
| 1 | F10 › REDNODE tab › Mod Manager › Wardrobe Designer › Restart. Open the inventory (I) | The window opens at the left, all of it on the screen: its title bar with a refresh icon and a key icon at the right, Clothing, How should it look?, Restyle, Restore, Patterns: GPT Image in one row, the Reshape part, and the log down to the window’s bottom edge |
| 2 | Look at the window over Equipment-EX’s outfit panel (drag the window over it if they do not overlap) | Nothing of the panel shows through the window’s lower part. If something still shows faintly through the whole window, say where |
| 3 | Take a piece off in Equipment-EX’s wardrobe (or the inventory), then wait about 5 s without pressing anything | The log says “V’s clothes changed: reading what V wears again”, and Clothing loses that piece. Put it back on: it comes back within about 5 s |
| 4 | Press the refresh icon in the title bar | The log says “V (… body) wears N item(s)” at once |
| 5 | Pick the hat in Clothing, press Reshape, then click the left picture | The pictures are light, the hat in its own colors. The window shows the picture larger, “As it is. Front and left side above…”, with Back; the title bar has no icons. Press Back: the main view again, as it was |
| 6 | Type make the brim twice as wide in Change its shape, press Change, and watch the window while it works. Then click the right picture |
While it works: a bar under the status line slides back and forth, and its label counts up each second, “Working: 12 s so far; this step usually takes about half a minute”. It goes when the change is done, and the typed words stay in their box. Then the window shows the changed picture larger, “Changed: “make the brim twice as wide””. Click it: the main view again |
| 7 | Press the key icon in the title bar, then Continue | your keys, then the main view again, in the same place |
| 8 | With the brim change from step 6 on the right picture, press Make it twice. When it says “Made and put on V”, look at V in the inventory’s preview, then press Back (the one in the Reshape row) | While Make it works, the bar fills with Tripo’s percentage (the number at its right), twice: making the model, then bringing it to the game’s size; the label keeps counting, past 4 minutes in all. After Make it: V wears the wide brim, and the status says “Back takes this change off V again”. After Back: “Taking “make the brim twice as wide” off V…”, then “taken off V in N s”; V and the preview wear the hat as it was before Make it, the right picture is the hat as it is, and the hat’s Clothing entry has no * (unless it was restyled before) |
| 9 | Press the app’s own key (F11) twice: once to hide the app, once to show it | Only the main window comes back, no other window |
| 10 | Close the window with the ✕ at the right of its title bar. In the inventory, take the hat off V (or put another jacket on). Press F11 to show the window again, then wait about 5 s without pressing anything | The window shows again, and within about 5 s the log says “V’s clothes changed: reading what V wears again” and Clothing follows: the hat gone (or the new jacket listed) |
| 11 | Press Refresh the list, the button under Clothing | The log says “V (… body) wears N item(s)” at once |
| 12 | Tell Claude; Claude reads the log |
Normal check
Added 2026-11-15 (EDGEmat #11, from EDGEfab): which way the game reads a normal map’s green (its bumps), settled in the game before EDGEmat changes its defaults. EDGEmat’s normalMap() (the bumps of every material made from words or a photo, Wardrobe Designer’s patterns included) makes green point up the image; EDGEfab found evidence the game reads it pointing down (DirectX), and flips materialsFromModel’s maps itself. npm run normal-check puts one test material on the Comfy rocker aramid-weave slim-fits’ leather look, both bodies: rows of round raised dots. Red rows are encoded as EDGEmat does today (green up), blue rows the other way (green down), both through EDGEmat’s own import. A white arrow in each repeat’s corner points “up the image”. Under a light, the dots of the right encoding look raised: bright on the side toward the light, shadowed on the far side. The wrong ones look like dents. No key or credits needed. Run it with the game closed, before or after the Reshape test; it changes only these jeans.
| Step | Do | Expect |
|---|---|---|
| 1 | Claude ran it on the dev PC on 2026-11-15 (to run it again: in a terminal in extensions\edgemat, npm run build, then npm run normal-check -- "E:\Modding\Cyberpunk 2077\Projects\EDGEmat_NormalCheck") |
“ok” for both meshes’ leather, then “packed 5 files” and the archive’s path |
| 2 | With the game closed, copy EDGEmat_NormalCheck.archive from E:\Modding\Cyberpunk 2077\Projects\EDGEmat_NormalCheck\packed\archive\pc\mod into <game>\archive\pc\mod |
|
| 3 | Start the game, load a save. F10 › REDnode’s launcher › Console: addItem("Items.Pants_01_basic_01"). Close the Console (F10 until the game takes input again), open the inventory (I), and put the Comfy rocker aramid-weave slim-fits on V |
V wears red-and-blue striped pants with rows of dots, and a white arrow here and there |
| 4 | Find light from straight above: outside around midday (skip time to 12:00 if needed), or under a ceiling lamp indoors. Stand V so the front of the legs faces you | |
| 5 | Find a white arrow on the pants and note which way it points on V: up toward the waist, down toward the feet, or sideways | |
| 6 | Look closely at the dots in a red row and in a blue row next to it. Photo mode, close up on the legs, front and side. Screenshots, with an arrow in the shot if you can | In one color the dots look raised: lit on the side toward the light (the top, with light from above), shadowed on the other. In the other color they look like dents: lit on the far side. If both colors look the same, the arrows point sideways: move so the light comes from the side the arrows point to, and look again |
| 7 | Tell Claude: which color’s dots look raised, which way the arrows point, and where the light came from; share the screenshots. Judge by the dots in the fullest light: on the curving sides some can read either way | Claude reads them, settles the convention, and fixes the defaults (normalMap’s greenUp, materialsFromModel’s flipNormalGreen) if the blue rows are the raised ones |
| 8 | With the game closed, delete EDGEmat_NormalCheck.archive from <game>\archive\pc\mod |
The jeans are the game’s again |
The bake: color
Added 2026-11-16: the first part of the bake (M5, started early; design, “Phases”), core bake.ts. A layered material’s color as the game draws it: each layer’s surface texture, tiled, under its color preset, mixed through the masks and microblends in linear light. Presets are read as linear and a surface texture as detail around a neutral middle (color = preset × 2 × texture): hypotheses, which this test checks against the game. View in 3D, the setup editor’s live 3D view and Reshape’s pictures all use it; the setup editor’s own color map stays flat (it shows where each layer goes). Smoke checks it outside VS Code (“the bake’s color”). Needs REDcode, as View in 3D.
npm run buildinextensions\edgemat, then F5 (Run EDGEmat).- In the development host, open EDGEmat’s activity bar container, expand FIND below Game Materials, press Find… (the magnifier at the top of the Find view) and type
cowboy hat. - Expand Cowboy hat with hardened-leather band, then Feminine body. Under it is the mesh row
h1_021_pwa_hat__cowboy_sheriff.mesh.
| # | Do | Expect |
|---|---|---|
| 1 | Hover the mesh row, click its eye (View in 3D). In the 3D view’s toolbar pick the look named in the status bar (white) | A light grey felt hat, close to near-white, with a black band: as on V in your screenshot from the Reshape test (2026-11-16), not the mid-grey of before. The felt shows a fine grain. Note anything that differs: specks, patches, the band’s color |
| 2 | Compare closely with the game: put the hat on V (REDnode’s Console: addItem("Items.Hat_02_basic_01")), inventory (I), a screenshot of the preview |
Tell Claude which parts match and which do not. Known open: black specks and peach patches on the felt (microblend contrast, not yet used), a blurry tan patch at the front left of the brim |
| 3 | Find comfy rocker, expand Comfy rocker aramid-weave slim-fits, Feminine body, the eye on its mesh row, look leather |
Black leather, dark grey in the 3D view (no shine yet, so it reads lighter than glossy black in the game). Before, near pure black and flat |
| 4 | Find sunny ammo, the eye on s1_055_pwa_shoe__converse.mesh, look red_yellow_graphic |
The sneaker’s colors as before (black sole, red trim, orange-brown upper) but lighter and with fabric grain. Compare with the game if you have it on hand |
Zoom on the setup map
Added 2026-11-18 (owner: a modder should be able to look closely at the map). The setup editor’s map zooms and moves: scroll over it, drag it, or the small +, − and Fit buttons at its top right. A click without a drag still selects the layer there. The map is 512 pixels square, so past 4× its pixels show (drawn sharp-edged from 4×).
npm run buildinextensions\edgemat, then F5 (Run EDGEmat).- In the development host, EDGEmat’s activity bar container, FIND, press Find… (the magnifier at the top of the Find view), type
cowboy hat. Expand Cowboy hat with hardened-leather band, Feminine body,h1_021_pwa_hat__cowboy_sheriff.meshand its look, then click its material line with the layers icon. The setup editor opens, with the map on the left.
| # | Do | Expect |
|---|---|---|
| 1 | Hover the map | +, −, Fit and 1× at its top right |
| 2 | Scroll up over the band (the dark area) | The map zooms in on the point under the pointer, not on its middle; the label counts up (1.3×, 1.6×…). At 4× and over, the pixels show as sharp squares. It stops at 16× |
| 3 | Drag the map | It moves with the pointer (a hand cursor); it stops at the map’s edges, so no empty space shows |
| 4 | Click a spot without dragging | The layer there is selected in the list, as at 1×, and the map shows Selected layer lit, still zoomed |
| 5 | All layers below the map, then Selected layer again | The zoom stays |
| 6 | − twice, then +, then Fit | Out by half, in by twice, then the whole map at 1× |
| 7 | Scroll down over the map | Zooms out; it stops at 1× |
Bumps the right way round
Added 2026-11-18: the fix to New Material’s bumps (Unreleased, Fixed; EDGEmat #11), end to end, as a modder makes one. The Normal check settled which way the game reads green; this checks that a material made in EDGEmat now comes out raised. No AI key: it uses a test image Claude made, E:\Modding\Cyberpunk 2077\Projects\bump-studs.png (grey with a 4 × 4 grid of soft round studs; bright is read as raised). The studs are lighter than the grey, so judge by their rims, not their middles.
It checks a second thing since its first run: bumps on a garment. A garment’s material has its own normal map, which draws its folds and seams; New Material kept it and dropped Bumps, so the first run showed white dots and no bumps. Since 2026-11-18 the bumps, repeated as the color is, are laid over the folds in one normal map (bump_studs_x6_l1_012_wa_pants__jeans_tight_n01.xbm).
npm run buildinextensions\edgemat, then F5 (Run EDGEmat). In the development host: REDcode: New Project (Ctrl+Shift+P), namedEDGEmat_Bumps, inE:\Modding\Cyberpunk 2077\Projects(or open the one made before: step 3 writes over it).
| # | Do | Expect |
|---|---|---|
| 1 | EDGEmat’s activity bar container › FIND › Find… (the magnifier) › comfy rocker. Expand Comfy rocker aramid-weave slim-fits, Feminine body, l1_012_pwa_pants__jeans_tight.mesh and its look. Right-click the material leather › New Material Here… |
The New Material tab, titled “New Material: leather”, naming leather on both bodies’ meshes |
| 2 | 1. The image › From an image file › Choose an image… › E:\Modding\Cyberpunk 2077\Projects\bump-studs.png |
A take: the grey with the studs |
| 3 | 3. The material: name bump studs, Repeat 6, Bumps Strong, Shine any. Add to Project |
“Saved bump_studs into EDGEmat_Bumps and put on 2 mesh materials.” |
| 4 | Close the game if it runs. REDcode’s Project view: Pack and Install | Installed: EDGEmat_Bumps.archive in the game’s archive\pc\mod |
| 5 | Start the game by day, outdoors. V wears the Comfy rocker slim-fits (if not: REDnode’s Console, addItem("Items.Pants_01_basic_01"), then the inventory’s Legs slot). Photo mode, close on a thigh, the sun above |
Each stud looks raised: lit along its top rim, a shadow along its bottom rim, like a rivet. Backwards (dents) would be the other way: dark on top, lit at the bottom. The pants’ folds and seams still show. Screenshots. Turn photo mode’s Depth of Field off (Camera tab) first: its blur hides the studs’ edges (it did in the rerun’s first shot) |
| 6 | Afterwards: close the game and delete EDGEmat_Bumps.archive from archive\pc\mod |
Parts check
Added 2026-11-18 (EDGEmat #12): the core of game materials on a prop’s parts (parts.ts), outside VS Code, as mat_apply runs it. npm run build in extensions\edgemat, then node scripts/parts-check.mjs <a copy of a project with an EDGEfab prop>: it lists the parts, puts a game surface on the first (car paint, red), reads the game’s materials that suit any shape and searches them, puts glass on the second, refuses a decal, puts the third back on the model’s texture, and packs. It changes the project: use a copy.
| Run | Result |
|---|---|
2026-11-18, Claude, on Projects\EDGEmat_PartsCheck (a copy of EDGEfab’s EDGEfab_PartMaterials) |
Passed. 9 parts. ..._wit_front: car paint metallic 01, red (1a5c5f_null), tiling 5.9 (the part spans about 5.9 m of its UV square), its .mi naming its own setup with nothing embedded. 331 of 10,660 game materials suit any shape, read in 8.9 s (“glass” 112, “glow blue” 4, “wood” 6, “concrete” 1). ..._wit_body: glass_bulletproof_tileable_a.mi. A decal (asphalt_pothole_02_a.mi, decal_parallax.mt) refused. ..._wit_back: back on the model’s texture. 53 files packed |
Game materials on a prop’s parts
Added 2026-11-18 (EDGEmat #12; EDGEfab 0.1.0 waits on it). On a material of a mesh in a project (each part of a prop EDGEfab made is one), a right-click offers Use a Game Surface…, Use a Game Material…, New Material Here… and, on EDGEfab’s props, Back to the Model’s Texture. The test project E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts is a fresh copy of EDGEfab’s vending machine project (9 parts; three already changed by EDGEfab’s check: body red paint, back blue glow, front_2 glass). Needs REDcode with that project open.
npm run buildinextensions\edgemat, then F5 (Run EDGEmat). In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts.- In REDcode’s Project view, open
source\archive\edgefab_partmaterials\props\vending_parts, right-clickvending_parts.mesh› Open in EDGEmat. EDGEmat’s activity bar container opens on THE DESK withvending_parts.mesh(from EDGEmat_PropParts) and its look expanded: one row per part,a_battered_cyberpunk_vending_machine_wit_frontand eight more.
| # | Do | Expect |
|---|---|---|
| 1 | Look at the part rows on the Desk | Six say the model’s own texture with a picture icon; ..._wit_body names body_red_paint.mi, ..._wit_back z_emissive_blue.mi, ..._wit_front_2 shop_vending_machine_c_v2_glass.mi. Hover one: the tooltip ends “Right-click to put a game surface or a game material on it, or back the model’s own texture” |
| 2 | Hover ..._wit_front: two icons appear at its right. Click the colors icon (Use a Game Surface…) |
A list of the game’s surfaces at the top of the window. Type car paint (it narrows the list), choose car paint metallic 01 |
| 3 | The color list: type red, choose red |
A notification “…wit_front now wears car paint metallic 01, red. Tiling 5.9…” with Open Setup. The row now has the layers icon and says multilayered · a_battered_cyberpunk_vending_machine_wit_front.mlsetup |
| 4 | Press Open Setup: a button on step 3’s notification, at the bottom right of the window. Once the notification has hidden, it is under the bell at the right end of the status bar; or click the ..._wit_front row on the Desk, which does the same |
The setup editor with one layer: car paint metallic 01, red, tiling 5.9. Change the color there and Ctrl+S: it saves in the project |
| 5 | On the look row (default or the look’s name, above the parts), click the eye (View in 3D) |
REDcode’s 3D view: the front in red car paint; the other parts as before |
| 6 | Right-click ..._wit_details › Use a Game Material… |
The first time, a notification “finding the game’s materials that suit any shape” (about 10 seconds). Then a list titled “…(331 suit any shape)”. Type glow blue, choose z emissive blue |
| 7 | Right-click ..._wit_details › Use a Game Material… › the first line, A game path… › type base\surfaces\textures\decals\blood\blood_b.mi, Enter |
A warning: “blood_b.mi may not suit this part: made for another kind of mesh or effect (decal.remt). Use it anyway?” Press Cancel: nothing changes |
| 8 | Right-click ..._wit_back › Back to the Model’s Texture |
The row says the model’s own texture again (no more blue glow there) |
| 9 | REDcode’s Project view: Pack the project (or Pack and Play) | It packs with no warnings |
| 10 | Close the game. In the game’s archive\pc\mod folder (E:\SteamLibrary\steamapps\common\Cyberpunk 2077\archive\pc\mod), remove edgefab_partmaterials_test.archive (EDGEfab’s check: the same files). Then REDcode’s Project view: Pack and Install (or copy the packed EDGEmat_PropParts.archive in, or install with EDGEdeck). Start the game; by day, place edgefab_partmaterials\props\vending_parts\vending_parts.ent with EDGEbuilder (its Mods tab) |
The front in glossy red car paint, the details glowing blue, the back on Tripo’s texture again, the body still red, the drinks glass. Note the car paint’s size: a grain far too big or too small means the default tiling (one repeat a metre) is off. Walk round it, by night too, and 25 m away and back |
| 11 | Afterwards: remove EDGEmat_PropParts.archive; put edgefab_partmaterials_test.archive back if EDGEfab’s session still needs it |
| Run | Result |
|---|---|
| 2026-11-18, owner, dev PC | Passed, all 11 steps as written. In the game the front is glossy metallic car paint with fine flakes, the right size (so the default tiling, one repeat a metre, holds here), the bottom row of drinks clear glass, the keypad glowing blue. The upper two rows of drinks and their shelves are car paint too: they are part of ..._wit_front (submesh 0; the outer shell is ..._wit_body), as the model’s parts were split, not a fault. Found on the way: step 5’s View in 3D showed every part flat with “…is not in the loaded archives” (it read the Desk’s copy of the mesh and looked for the part’s new .mi only beside it and in the game; fixed, 0966f83); and the 3D view shows color only, so car paint looked flat there and glass showed REDcode’s swatch (shine next, owner) |
Desk parts check
Added 2026-11-25: game surfaces and game materials on a game mesh’s materials on the Desk, through the core (desk.ts, parts.ts), as the Desk view’s commands and mat_apply desk_id run them. A Desk and a project of its own in a scratch folder, so the modder’s Desk is not touched. npm run build in extensions\edgemat, then npm run desk-parts-check (-- --mesh <game path>, --surface <words>, --keep to keep the scratch folder).
| Run | Result |
|---|---|
2026-11-25, Claude, s1_055_pma_shoe__converse.mesh |
Passed. The entry’s copy of the mesh in its folder; 18 materials. Concrete on ml_s1_001_pma_shoe__converse_masksset: its setup and .mi in ...\s1_055_shoe__converse\edgemat\s1_055_pma_shoe__converse, not counted as an edited setup, the game’s mesh unchanged. A metal grate on white, then back on the game’s. Add to Project: the mesh and the surface’s two files went in, the project’s material wearing the surface. The surface’s files deleted when a game material replaced it. Bulletproof glass on the same material on the Desk: a conflict with the project’s copy (parts names it); without replace the project kept its copy, with replace it took the glass |
Keep check
Added 2026-11-25 (EDGEmat #13, from EDGEfab): materialsFromModel with keep. A textured model’s materials into a scratch project; again with every slot kept and a new glow (no texture written, the same textures named, the glow’s EV right, much faster); again without the color slot (only the color textures written); and with one kept texture deleted (that one written again). npm run build in extensions\edgemat, then npm run keep-check -- <model.glb>.
| Run | Result |
|---|---|
2026-11-25, Claude, neon_vending_box2\original.glb (from EDGEfab’s Desk, read only) |
Passed. 1. All written: 280 textures for 70 materials in 60.7 s. 2. Every slot kept and a new glow on tripo_part_0_material: 0.1 s, nothing written, 280 kept, each material naming the same textures, the glow at EV 2. 3. The color slot not kept: 19.2 s, only the 70 color textures written. 4. One kept texture deleted: 3.9 s, that one written again |
Messages name EDGEmat
Added 2026-11-25 (EDGEmat #15, from EDGEfab): the owner took EDGEmat’s Add to Project message for EDGEfab’s. Every EDGEmat message now starts with EDGEmat:, and after a file lands in a project the message has Reveal in REDcode. Uses the test project E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts (from “Game materials on a prop’s parts”). Needs REDcode 0.10.10 or later with that project open.
npm run buildinextensions\edgemat, then F5 (Run EDGEmat). In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts.- In REDcode’s Project view, right-click
source\archive\edgefab_partmaterials\props\vending_parts\vending_parts.mesh› Open in EDGEmat.
| # | Do | Expect |
|---|---|---|
| 1 | On the Desk, right-click ..._wit_details › Use a Game Material…, type glow blue, choose z emissive blue |
A notification that starts “EDGEmat: …_wit_details now wears z_emissive_blue.mi.” with Reveal in REDcode |
| 2 | Press Reveal in REDcode (on the notification at the bottom right, or under the bell in the status bar) | REDcode’s Project view opens and selects vending_parts.mesh (a game material has no new .mi in the project) |
| 3 | Right-click ..._wit_front › Use a Game Surface… › car paint metallic 01, any color. Press Reveal in REDcode on its notification |
The Project view selects a_battered_cyberpunk_vending_machine_wit_front.mi in vending_parts\materials |
| 4 | Click + on the Desk line vending_parts.mesh (Add to Project), pick EDGEmat_PropParts |
The answer starts “EDGEmat: Added vending_parts.mesh to EDGEmat_PropParts” (nothing new to write: the mesh is the project’s own), with Reveal in REDcode |
| 5 | Any other EDGEmat message you see on the way, progress notices included (“EDGEmat: adding vending_parts.mesh to EDGEmat_PropParts”) | It starts with EDGEmat: |
Scripted run, 2026-11-26 (the EDGEweb session, trial EDGEkit, EDGEmat at 5f8bd18, REDcode main 986d45b, REDbridge 0.19.0, a copy of the project at S:\matwork27; it already had car paint on wit_front and a generated .mi on wit_details, and the scratch Desk held two older entries):
| Step | Result |
|---|---|
| 1 | Different: glow blue left only “A game path…”; z emissive blue was found by emissive blue or z_emissive. Then the notice “EDGEmat: a_battered_cyberpunk_vending_machine_wit_details now wears z_emissive_blue.mi. Pack the project to see it in the game.” with Reveal in REDcode. The cause: the quick pick’s own filter wants the words together in one field (“glow” was in the description, “blue” in the name). Fixed 2026-11-27: the list is searched by every word, as mat_materials does (glow blue: 4 found, z emissive blue among them, on the dev PC’s list) |
| 2 | As expected: REDcode’s Project view selected vending_parts.mesh |
| 3 | As expected: “EDGEmat: …_wit_front now wears car paint metallic 01, grey. Tiling 5.9. …” with Open Setup and Reveal in REDcode, which selected vending_parts\materials\a_battered_cyberpunk_vending_machine_wit_front.mi (with REDcode’s Project filter off: a filter on vending_parts.mesh hid it) |
| 4 | As expected: no project asked (one open), “EDGEmat: Add vending_parts.mesh to EDGEmat_PropParts?”, then “EDGEmat: Added vending_parts.mesh to EDGEmat_PropParts: nothing new to write: the project has it all already. …” with Reveal in REDcode, which selected the mesh. Pressed on the first of two vending_parts.mesh lines, perhaps an older entry |
| 5 | Different: the progress notice “Adding vending_parts.mesh to EDGEmat_PropParts” had no EDGEmat:. Fixed 2026-11-27: the four progress notices (adding, comparing, saving into a project, finding a setup’s meshes) start with it |
Scripted run, 2026-11-27, steps 1 and 5 again (the EDGEweb session, trial EDGEkit 1.143.2, dist\edgemat-main-e5ab604.vsix, REDcode main d21b9a6, REDbridge 0.19.0, a fresh copy of the project and a fresh scratch Desk):
| Step | Result |
|---|---|
| 1 | As expected: glow blue listed “A game path…”, mi notell emissive blue, z emissive blue, blue, light blue saturated dim. Chose z emissive blue: “EDGEmat: a_battered_cyberpunk_vending_machine_wit_details now wears z_emissive_blue.mi. Pack the project to see it in the game.” with Reveal in REDcode. A mouse click on a row took the script to “A game material’s path”; the arrow keys and Enter worked (perhaps the script’s click). Seen in the code: new items made “A game path…” the active row, so Enter right after typing took it. Fixed 2026-11-28: after a search the first match is the active row |
| 5 | As expected: every notice started with “EDGEmat:” (“EDGEmat: finding the game’s materials that suit any shape…”, “EDGEmat: comparing vending_parts.mesh with EDGEmat_PropParts”, “EDGEmat: adding vending_parts.mesh to EDGEmat_PropParts”, “EDGEmat: Added …”) |
Scripted run, 2026-11-28, step 1 with Enter at once (the EDGEweb session, dist\edgemat-main-9eb2f5d.vsix, REDcode 0.10.17): glow blue typed at 40 ms a key and Enter with no pause; the notice “EDGEmat: a_battered_cyberpunk_vending_machine_wit_details now wears mi_notell_emissive_blue.mi. Pack the project to see it in the game.” with Reveal in REDcode, so Enter took the first match. EDGEweb logged the active row while typing: after each key the path box was active again for about 15 to 30 ms before the first match, so an Enter in that gap would still take the path box. Fixed 2026-11-29: while a search has matches, the path box is the list’s last row, so the first match is active from the start (no gap to fall into); with no search, it is first as before.
Scripted run, 2026-11-29, step 1 with Enter at once, and two extra checks (the EDGEweb session, trial EDGEkit, scratch profile, dist\edgemat-main-8a49d9f.vsix, REDcode 0.10.17, no key, no game):
| Check | Result |
|---|---|
Step 1: glow blue at 40 ms a key, Enter at once |
As expected. On opening the path box was first and active. After the first key it was never active again: the active row went glass, glass 2 opaque, glass opaque, int kts staircase a emissive old a, mb elevator chainlink a, then mi notell emissive blue. Enter put on mi notell emissive blue (“EDGEmat: …_wit_details now wears mi_notell_emissive_blue.mi. …” with Reveal in REDcode). With glow blue left: 5 rows, the first match active, the path box last |
| Clear the text | As expected: 332 rows, the path box first and active |
Type zzqq |
Different: two rows, No game material matches "zzqq" first and active, the path box under it. The quick pick puts rows whose label matches the typed text first, and that row’s label held the text. Fixed 2026-11-30: the row is Nothing found, with the words in its description, so the path box stays first |
Game materials on a Desk mesh
Added 2026-11-25 (owner, 2026-11-22: part commands for game meshes on the Desk, Add to Project carrying the changed mesh). Uses the sneakers s1_055_pwa_shoe__converse.mesh (the feminine body’s; for a masculine V use s1_055_pma_shoe__converse.mesh the same way) and the empty test project E:\Modding\Cyberpunk 2077\Projects\EDGEmat_DeskParts. Needs REDcode and REDnode.
npm run buildinextensions\edgemat, then F5 (Run EDGEmat). In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_DeskParts.- In REDcode’s Game Assets view, search
s1_055_pwa_shoe__converse, right-clicks1_055_pwa_shoe__converse.mesh› Open in EDGEmat. EDGEmat’s THE DESK showss1_055_pwa_shoe__converse.meshwith one look open. If that look is notred, close it and openred(worn by 3 items) instead.
| # | Do | Expect |
|---|---|---|
| 1 | Hover the material row red under the look red |
Three icons at its right: Copy Game Path, New Material Here…, Use a Game Surface…. The tooltip has “Right-click to put a game surface or a game material on it. It changes on this Desk entry: + puts the changed mesh in a project.”, then the material’s base (base\engine\materials\multilayered.mt) |
| 2 | Click the colors icon on red (Use a Game Surface…). Type car paint, choose car paint metallic 01; in the color list type blue, choose the first |
A notification “red now wears car paint metallic 01, … It changed on the Desk: + on the Desk line puts the mesh in a project.” with Open Setup. The red row says “changed on the Desk · a game surface · red.mlsetup”. The mesh line says “edited on the Desk” |
| 3 | On the look row red, click the eye (View in 3D). With a REDcode older than REDcode #38’s openMesh (REDcode main 178ca04, 2026-11-28, not released yet), the status bar says to pick the look red: pick it in the 3D view’s own list of looks. Then click the eye on the look row default |
With REDcode’s openMesh: the 3D view opens on red, the sneakers in blue (color only: car paint’s shine comes later), and the eye on default switches the same tab to default (dark sneakers). With an older REDcode: it opens on the first look (default), and picking red shows them blue |
| 4 | Click the red row. In the setup editor, pick another color for its layer and press Ctrl+S |
The setup editor opens with one layer, car paint metallic 01, in blue. Ctrl+S saves on the Desk without asking for a project |
| 5 | Look at the 3D view from step 3 | It redraws in the new color without reopening |
| 6 | Right-click dec_lights › Use a Game Material…. Type glow blue, choose z emissive blue |
The row says “changed on the Desk · z_emissive_blue.mi”; in the 3D view the lights turn blue |
| 7 | Right-click dec_lights › Back to the Game’s Material |
A notification “dec_lights now wears the game’s material (metal_base.remt)”; the row loses “changed on the Desk”; the 3D view’s lights are as before. Back to the Game’s Material is on changed rows only: right-click a row you did not change, it is not there |
| 8 | Hover the mesh line s1_055_pwa_shoe__converse.mesh |
The tooltip ends “Changed on this Desk entry: red. + puts the changed mesh in a project.” |
| 9 | Click + on the mesh line (Add to Project), pick EDGEmat_DeskParts | The dialog says “The mesh whose materials you changed on the Desk goes in changed, with its new material files.” Press Add to Project. A message “EDGEmat: Added s1_055_pwa_shoe__converse.mesh to EDGEmat_DeskParts: 3 files written” with Reveal in REDcode: press it, and REDcode’s Project view selects the mesh. There: base\characters\garment\player_equipment\feet\s1_055_shoe__converse\s1_055_pwa_shoe__converse.mesh, and in its edgemat\s1_055_pwa_shoe__converse folder red.mi and red.mlsetup |
| 10 | On the Desk, right-click red › Use a Game Material…, type glass, choose glass bulletproof tileable a. Then + on the mesh line again, EDGEmat_DeskParts |
A warning “EDGEmat_DeskParts already has its own s1_055_pwa_shoe__converse.mesh from the Desk, with other materials”, its detail “…has other materials on red, which you changed on the Desk.” Press Keep the Project’s, then Add to Project: the message says 1 mesh stayed on the Desk. The project’s red still wears the car paint |
| 11 | REDcode’s Project view: Pack and Install (or Pack and Play). Start the game. REDnode’s Console: addItem("Items.CasualShoes_01_basic_05"), then wear Street tactical-fiber high-tops |
The sneakers in car paint, in the color from step 4, the lights as the game has them. By day and by night |
| 12 | Afterwards: uninstall EDGEmat_DeskParts.archive; on the Desk, Remove the sneakers |
Scripted run, 2026-11-27, steps 1 to 10 (the EDGEweb session, trial EDGEkit 1.143.2, dist\edgemat-main-e5ab604.vsix, REDcode main d21b9a6 (0.10.17), REDbridge 0.19.0, a fresh scratch Desk, a fresh copy of EDGEmat_DeskParts):
| Step | Result |
|---|---|
| 1 | The step’s text was wrong: three icons (Copy Game Path, New Material Here…, Use a Game Surface…), and the tooltip goes on after the sentence with the base base\engine\materials\multilayered.mt. Reworded |
| 2 | As expected: “EDGEmat: red now wears car paint metallic 01, blue. Tiling 1. It changed on the Desk: + on the Desk line puts the mesh in a project.” with Open Setup. Row “red changed on the Desk · a game surface · red.mlsetup”; mesh line “edited on the Desk” |
| 3 | Different: the eye opened REDcode’s 3D view on the look default (dark sneakers), three times out of three. Picking red in the view’s list showed the sneakers in blue. EDGEmat can’t tell REDcode’s view which look to open (only a status-bar hint): asked as REDcode #38; the step reworded |
| 4 | As expected: one layer, “Car Paint Metallic 01 · Blue”; the swatch red; Ctrl+S saved red.mlsetup on the Desk with no question |
| 5 | As expected: the view (on red) was red without reopening |
| 6 | As expected: “dec_lights changed on the Desk · z_emissive_blue.mi”; the light strip went from yellow to blue |
| 7 | As expected: “EDGEmat: dec_lights now wears the game’s material (metal_base.remt). It changed on the Desk: …”; the row “dec_lights metal_base.remt” again, the strip yellow; no Back to the Game’s Material on it (on red’s menu, yes). The notice’s second sentence said it changed on the Desk when it had just gone back: fixed 2026-11-28 (“On this Desk entry it is as the game made it again.”) |
| 8 | As expected: “…Changed on this Desk entry: red. + puts the changed mesh in a project.” |
| 9 | As expected: no project asked (one open); the dialog’s sentence; “EDGEmat: Added s1_055_pwa_shoe__converse.mesh to EDGEmat_DeskParts: 3 files written.” with Reveal in REDcode (selected the mesh) and Pack and Play. Written: the mesh, edgemat\s1_055_pwa_shoe__converse\red.mi and red.mlsetup |
| 10 | As expected: the warning, its detail, Keep the Project’s, then “…nothing new to write: the project has it all already. 1 mesh stayed on the Desk with its edits, since the project keeps its own.” The project’s three files unchanged (same hashes). glass alone did not show glass bulletproof tileable a among the rows seen (9 of the glass materials; the list scrolls); glass bulletproof did |
The owner’s run, 2026-12-04 (EM6): passed. Steps 1, 2, 4 and 9 in the editor on this PC’s EDGEmat_DeskParts (empty until then), then Pack and Install and steps 11 and 12 in the game: everything as expected.
Scripted run, 2026-11-28, steps 3, 6 and 7 again (the EDGEweb session, trial EDGEkit 1.143.2, dist\edgemat-main-9eb2f5d.vsix, REDcode main 178ca04 built from a scratch clone, REDbridge 0.19.0, a fresh scratch Desk and fresh copies of the projects; step 2 done first, as expected):
| Step | Result |
|---|---|
| 3 | As expected, with REDcode’s openMesh: the eye on red opened one tab, s1_055_pwa_shoe__converse.mesh, its look list on red, the sneakers blue (“EDGEmat: approximate”), no status-bar hint. The eye on default switched the same tab to default, dark sneakers. Not run with a released REDcode (0.10.17 has no openMesh) |
| 6 | As expected: glow blue listed the path box, mi notell emissive blue, z emissive blue, blue, light blue saturated dim; z emissive blue chosen with the arrow keys. “EDGEmat: dec_lights now wears z_emissive_blue.mi. It changed on the Desk: + on the Desk line puts the mesh in a project.”; the row “dec_lights changed on the Desk · z_emissive_blue.mi”; the 3D view (on red) turned the strip round the sole from yellow to blue without reopening |
| 7 | As expected: “EDGEmat: dec_lights now wears the game’s material (metal_base.remt). On this Desk entry it is as the game made it again.”; the row “dec_lights metal_base.remt”, the strip yellow again; Back to the Game’s Material gone from dec_lights’ menu and still on red’s |
Seen on the way: after Use a Game Surface, red’s setup names the vending machine’s mask set (ml_shop_vending_machine_c_v2_masksset.mlmask, “the last 9 masks are unused”), not the sneakers’. By design: a one-layer setup’s layer covers the whole part and reads no mask, so any game mask set does (core parts.ts, AnyMask, checked in the game 2026-11-17).
View in 3D follows a part’s change
Added 2026-11-19. The owner found that after Use a Game Surface… on a prop’s part, REDcode’s 3D view kept the old look until its tab was closed and opened again. Two causes, both fixed: EDGEmat named the changed mesh by its game path, while the 3D view had the project’s mesh open by its file on disk, so REDcode ignored the change; and the 3D view opened from the Desk reads the Desk’s copy of the project’s mesh, made when View in 3D was pressed, which a part change did not touch. Now every change tells every 3D view to draw again (as a saved setup already did), and a part change copies the project’s mesh over the Desk’s copy first. The API calls EDGEfab uses (usePartSurface, usePartMaterial, partBackToModel, materialsFromModel) do the same. Uses the test project E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts from “Game materials on a prop’s parts” (after it: the front red car paint, the details blue glow, the body red paint, the back on the model’s texture).
npm run buildinextensions\edgemat, then Ctrl+F5 (Run Without Debugging; F5 works too but its host can crash,docs/dev-setup.md). In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts.- In REDcode’s Project view, open
source\archive\edgefab_partmaterials\props\vending_parts, right-clickvending_parts.mesh› Open in EDGEmat. THE DESK showsvending_parts.mesh(from EDGEmat_PropParts) with its look and parts.
| # | Do | Expect |
|---|---|---|
| 1 | On the Desk, the look row (above the parts), click the eye (View in 3D) | REDcode’s 3D view opens in the editor area: the front red. Keep it open; the Desk stays in the side bar beside it |
| 2 | Hover a_battered_cyberpunk_vending_machine_wit_front, click the colors icon (Use a Game Surface…), type car paint, choose car paint metallic 01, then type blue and choose a blue |
A few seconds after the notification “…wit_front now wears car paint metallic 01, …” the front turns blue in the 3D view, without closing it |
| 3 | Right-click ..._wit_body › Back to the Model’s Texture |
The body changes from red paint to the model’s own texture in the 3D view |
| 4 | Right-click ..._wit_back › Use a Game Material…, type glow blue, choose z emissive blue |
The back changes in the 3D view (color only for now: shine and glow come with the full preview) |
| 5 | Optional, to leave the project as the earlier test had it: the front back to red car paint (step 2 with red), the body to body_red_paint.mi and the back to the model’s texture |
|
| 6 | The button renamed 2026-11-21: right-click ..._wit_details › New Material Here…, on the page that opens, the tab From an image file › Choose an image… › any .png or .jpg (no key needed), then Add to Project |
The message says the material was saved into EDGEmat_PropParts and put on 1 mesh material, with Reveal in File Explorer (no more Show Files); pressing it opens File Explorer on the new .mi. The details part on the Desk now shows the new material, and the 3D view draws it (both fixed 2026-11-22: the first run wrote the material onto the part, but the Desk and its 3D view kept their old copy) |
| Run | Result |
|---|---|
| 2026-11-22, owner, dev PC | Step 6: failed, fixed the same day. Add to Project wrote openai_playground_2026_09.mi and put it on ..._wit_details in the project’s vending_parts.mesh (the log says so), but the Desk and its 3D view still showed the old material: the material page told the 3D views to draw again without copying the project’s mesh over the Desk’s copy, or refreshing Find and the Desk, as the part commands do. Now it does all three. Step 6 to run again; steps 1 to 5 not reported yet |
| 2026-11-22, owner, dev PC | Step 6 again, after the fix: passed. The part’s new material shows on the Desk and in the 3D view. (On the way: a part wearing z emissive blue draws flat white, since that material’s color texture is the game’s white and its blue is a glow the 3D view does not draw yet.) Steps 1 to 5 not reported yet |
| 2026-11-22, owner, dev PC | Steps 1 to 5: passed. With step 6 above, the whole test has passed |
Glow and tint in the 3D view
Added 2026-11-22 (owner’s ask, after z emissive blue on a part drew flat white). REDcode’s 3D view takes one color image per material and draws no glow yet (REDcode #31), so EDGEmat puts both into that image: a textured material’s color texture is multiplied by its BaseColorScale (the tint metal_base.remt materials use), and where its Emissive mask is on and EmissiveEV is above 0 (0 or below is off in the game), its EmissiveColor is laid over it. It shows the glow’s color, not its light. z emissive blue is the game’s plain white texture tinted blue, with a blue glow over the whole part. Layered materials are as before.
npm run buildinextensions\edgemat, then Ctrl+F5. In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts.- In REDcode’s Project view,
source\archive\edgefab_partmaterials\props\vending_parts, right-clickvending_parts.mesh› Open in EDGEmat. On the Desk, the look row › the eye (View in 3D). Keep the 3D view open.
| # | Do | Expect |
|---|---|---|
| 1 | On the Desk, right-click a_battered_cyberpunk_vending_machine_wit_back › Use a Game Material…, type glow blue, choose z emissive blue |
The back turns a bright blue in the 3D view (it was flat white before this fix) |
| 2 | Right-click the same part › Use a Game Material…, type emissive, and choose another glowing one in a different color (a red or a green, say) |
The back takes that glow’s color |
| 3 | EDGEmat’s activity bar icon › Find › its magnifier › sunny ammo high-tops › the item › a body › on its mesh line (s1_055_p?a_shoe__converse.mesh), + (Add to Desk). On the Desk, the look row › its eye (View in 3D) |
The sneakers’ light strips (dec_lights) are amber; before, they were the viewer’s flat color |
| 4 | Afterwards: the back as you want it (Back to the Model’s Texture, or a material of your choice); the sneakers’ line › Remove |
| Run | Result |
|---|---|
| 2026-11-22 (owner) | Pass, all 4 steps: z emissive blue draws blue on the back, another glowing material its own color, the sneakers’ light strips amber, and Remove has its new name |
Shine in the 3D view
Added 2026-11-30 (the owner’s ask of 2026-11-18: the 3D view resembles the game’s material). View in 3D now sends REDcode a roughness map and, where something is metal, a metal map with each material’s colors. REDcode’s 3D view has had the light for them since 0.10.15 (REDcode #31). A layered material’s shine is baked like its color: each layer’s surface roughness and metal maps through the layer’s Roughness and Metal presets, mixed by the masks. A textured material uses its own Roughness and Metalness maps under their scale and bias. Glass and bumps are not drawn yet. Checked outside VS Code: npm run shine-check writes the maps (sneakers: metal on the eyelets and a strip along the sole, the red leather panels glossier than the canvas; the vending machine’s car paint front: metal 1, roughness 0.4); the smoke test checks the sneakers’ maps.
Needs REDcode 0.10.15 or later (its 3D view’s Light control). Uses E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts, whose front wears car paint from “Game materials on a prop’s parts”.
npm run buildinextensions\edgemat, then Ctrl+F5. In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts.
| # | Do | Expect |
|---|---|---|
| 1 | In REDcode’s Project view, source\archive\edgefab_partmaterials\props\vending_parts, right-click vending_parts.mesh › Open in EDGEmat. On the Desk, the look row › the eye (View in 3D). Turn the model with the mouse |
The front (..._wit_front, car paint) looks like painted metal: it reflects the room’s light and has a highlight that moves as you turn it. Before, it was flat. Parts with no shine of their own (the model’s texture) stay matte |
| 2 | In the 3D view’s toolbar, set Light to 2.5×, tick Fixed light, and turn the model | The highlight slides over the front as it turns; nothing goes black (a metal with nothing to reflect would) |
| 3 | EDGEmat’s activity bar icon › Find › its magnifier › sunny ammo high-tops › the item › a body › on its mesh line (s1_055_p?a_shoe__converse.mesh), + (Add to Desk). On the Desk, its look row › the eye. Pick the look red_yellow_graphic in the 3D view’s look list if it is not shown |
The eyelets shine like metal; the red leather panels round the laces are glossier than the yellow canvas; the black rubber sole is matte |
| 4 | On the Desk, under the sneakers’ look, click the layered material red_yellow_graphic (it opens in the setup editor; Add to Desk may have opened it already). Click a red panel round the laces on the setup map (a click picks its layer: layer 2, latex 01 30, Roughness “glossy to shiny”). In its Roughness list choose mostly rough (only one has that label, so it shows no range). Do not save. Then choose glossy to shiny (0 to 0.24) again (two carry that label; each shows its range) |
Within a few seconds the red panels in the 3D view go matte, before any save; back on glossy to shiny they shine again |
| 5 | Afterwards: close the setup editor › Don’t Save; the sneakers’ Desk line › Remove |
Scripted run, 2026-11-30 (the EDGEweb session, on dist\edgemat-main-683705e.vsix as a development extension, REDcode main 8be7500, REDbridge 0.21.0, a scratch copy of the project and a scratch Desk; pictures for the owner’s judgment, dashboard EM9). Nothing is marked passed by script: whether it looks like the game is the owner’s call.
| # | Result |
|---|---|
| 1, 2 | The front (..._wit_front, one layer of car paint metallic 01, metal 1, roughness 0.4 all over, read back with npm run shine-check) reflects the light; nothing went black. Its highlights are hard-edged white patches, like torn paper, not one smooth highlight. The bake is even, so these are REDcode’s room light (bright panels) mirrored by a dark metal through the front’s dents, at roughness 0.4. The game’s car paint has a clear coat and flakes that a plain metal does not; the owner judges whether it reads right. The back (arasaka_lobby_emissive_2.mi) draws flat pale cyan and blows out at 2.5×: its glow is painted into the color until REDcode draws glow (REDcode #42). The model’s own textured parts look metal with soft reflections |
| 3 | The red leather panels clearly glossier than the yellow canvas, the sole matte; the eyelets too small in the pictures to judge |
| 4, 5 | Not run (see 2026-12-02) |
| Extra | The sneakers on the white look: dark grey patches with stair-stepped edges on the sides and heel (REDcode’s RC17). EDGEmat’s: see “Smooth mask edges” below |
Scripted run, 2026-12-02 (the EDGEweb session, on dist\edgemat-main-acf9690.vsix, REDcode main 6d030cd, REDbridge 0.21.0, a scratch copy of the project): step 3 as expected; step 5 as expected; step 4 redrew before a save but showed hardly any change.
| # | Result |
|---|---|
| 4 (old wording) | The click picked layer 0 (canvas clean 01 30, light yellow). Its Roughness list: as the texture (default), matte to rough, satin to rough twice, mostly rough. The first “satin to rough” was chosen as the lowest. The 3D view redrew between 1 and 3 s, before any save, and again on each change back and forth, but the canvas changed by under 1 of 255 on average (largest 26) and did not read as glossy. The step’s fault, not the bake’s: the canvas has no glossy preset. Each of its presets maps the texture’s roughness into a higher range (satin to rough: 0.39 + 0.61 × the map), so “as the texture” is already its glossiest. Step 4 now uses the red latex panels, which are glossy, and turns them matte. Also found: two presets with the same label; 349 of the 386 surfaces have such pairs. Fixed: a repeated label now shows its range (“satin to rough (0.39 to 1)”, “(0.52 to 1)”) |
| 5 | “Do you want to save the changes you made to ml_s1_055_pma_shoe__red_yellow_graphic.mlsetup?” with Save, Don’t Save and Cancel; Don’t Save closed it; Remove took the entry off the Desk with no question. REDcode’s 3D view tab stayed open |
| Extra | Add to Desk from Find opened the look’s setup editor by itself: by design (the Desk opens the look asked for on its materials) |
Scripted rerun of steps 4 and 5, 2026-12-02 (the EDGEweb session, on dist\edgemat-main-ac48fa8.vsix, the same set-up): both as expected.
| # | Result |
|---|---|
| 4 | The click picked layer 2, “latex 01 30 · red”, Roughness “glossy to shiny (0 to 0.24)”. Ranges showed only on the three repeated labels. On “mostly rough”, no save: unchanged at 1 s, changed by 3 s, stable at 6 s; the red panels went flat and a deeper red, the sheen gone (clear, not dramatic; on the big shoe’s panel a mean difference of 6 of 255 in green and blue, up to 124). Back on “glossy to shiny (0 to 0.24)” they shone again by 3 s, pixel for pixel as the first glossy picture |
| 5 | The save question though the value was back where it started (VS Code counts edits, not values); Don’t Save closed it; Remove took the entry off with no question |
| Extra | At this start the editor restored the first run’s white setup tab as unsaved, its zzz filter still in the box, though Don’t Save had closed it before the trial was stopped. EDGEmat’s backup is deleted by Don’t Save; this looks like VS Code restoring the window’s earlier state after a stopped window, not an EDGEmat fault. Watch for it in a normal close |
Smooth mask edges
Added 2026-12-01 from EDGEweb’s run of 2026-11-30. A .mlmask keeps some layers’ masks small (on the s1_055 sneakers’ mask set, masks 1 and 4 at 128 px, 17 and 19 at 256 px), and WolvenKit’s export enlarges them to 512 by repeating pixels, so every layer edge had stairs: on the white look, dark patches with blocky edges in View in 3D and on the setup map. The game filters a mask smoothly, so EDGEmat now enlarges such a mask smoothly (core smoothBlocks); masks already cached are made again. The smoke test checks it. Also from that run: removing a Desk entry while a setup opened from it had unsaved edits asked nothing and left the tab open and unsaved.
Same start as “Shine in the 3D view” (Ctrl+F5, the PropParts folder).
| # | Do | Expect |
|---|---|---|
| 1 | EDGEmat’s activity bar icon › Find › its magnifier › sunny ammo high-tops › the item › a body › on its mesh line (s1_055_p?a_shoe__converse.mesh), + (Add to Desk). On the Desk, its look row › the eye; pick the look white in the 3D view’s look list. Look at the sides and the heel |
The dark grey patches have smooth, rounded edges, no stair steps. Whether the patches belong on the white look is the owner’s call (REDcode’s RC17) |
| 2 | On the Desk, under the sneakers’ look white, click the layered material white (the setup editor opens). Look at the setup map |
The layers’ areas have smooth edges, no 4 px blocks |
| 3 | In the setup editor, change any layer’s color (do not save). On the Desk, the sneakers’ line › Remove | A question: Remove from the Desk?, naming the setup with edits not saved yet, which are dropped and its tab closed. Cancel: nothing changes, the tab stays unsaved |
| 4 | Remove again › Remove | The entry leaves the Desk and the setup’s tab closes, with no save question |
Scripted run, 2026-12-01 (the EDGEweb session, on dist\edgemat-main-99a1433.vsix in a trial EDGEkit, REDcode main 8be7500, REDbridge 0.21.0, a scratch Desk): all four steps as expected.
| # | Result |
|---|---|
| 1 | The white look’s dark grey patches on the sides and heel have smooth, rounded edges, no stair steps |
| 2 | The setup map of ml_s1_055_pma_shoe__white shows smooth-edged areas at Fit (not zoomed in) |
| 3 | “EDGEmat: Remove s1_055_pwa_shoe__converse.mesh from the Desk?” / “ml_s1_055_pma_shoe__white has edits not saved yet, which are dropped and its tab closed. Your projects keep what you added to them.”, with Remove and Cancel. Cancel changed nothing; the tab stayed unsaved |
| 4 | The entry left the Desk and both of its setup tabs closed, with no save question |
The owner’s eye, 2026-12-04 (REDcode’s session, REDcode #38’s step M6 in REDcode’s 3D view with EDGEmat shading, EDGEmat 7ca8001): the dark patches on the white look have smooth edges. The patches are taken as the look’s own design: no item or NPC in the game wears white (REDcode’s mesh_items), so there is nothing to compare them with. REDcode’s RC17 is closed.
Bumps in the 3D view
Added 2026-12-01 (the owner’s ask of 2026-11-18: the 3D view resembles the game’s material; next after shine). View in 3D now sends REDcode a normal map with each material’s colors and shine. A layered material’s bumps are baked: each layer’s surface normal map, tiled as its color, at the layer’s Bumps preset, mixed by the masks, laid over the material’s global normal (a garment’s folds and seams). A textured material sends its own Normal map. The game’s normal maps point green down; REDcode’s 3D view reads glTF’s way, green up (WolvenKit’s exported meshes carry tangents), so EDGEmat turns green over before sending. A layer’s microblend adds its own bumps at the layer’s microblend bump strength (added the same day: on the Arasaka jacket, wrinkles_01h at −0.71, edgewear_01 at 1.49, dust_fine at 0.97; its panels gain the wrinkles’ creases). Checked outside VS Code: npm run shine-check writes the normal maps (the jacket: its folds with the fabric’s weave over them); on the normal check’s jeans, the blue rows’ dots come out raised and the red rows’ dented, as in the game on 2026-11-15; the smoke test checks the sneakers’ map.
Needs REDcode 0.10.15 or later. Uses E:\Modding\Cyberpunk 2077\Projects\EDGEmat_NormalCheck (from the test “Normal check”) and EDGEmat_PropParts.
npm run buildinextensions\edgemat, then Ctrl+F5. In the development host: File › Open Folder… ›E:\Modding\Cyberpunk 2077\Projects\EDGEmat_NormalCheck.
| # | Do | Expect |
|---|---|---|
| 1 | In REDcode’s Project view, source\archive\base\characters\garment\player_equipment\legs\l1_012_pants__jeans_tight, right-click l1_012_pwa_pants__jeans_tight.mesh › Open in EDGEmat. On the Desk, under the mesh, the look row leather › the eye (View in 3D). In the 3D view’s toolbar set Light to 2.5× and tick Fixed light. Turn the model so the front of the legs faces you, then slowly back and forth |
Red and blue stripes with rows of dots. In the blue rows the dots look raised: each dot’s bright side stays on the light’s side as you turn. In the red rows they look like dents: bright on the far side. The same as on V in the game (2026-11-15). If it is the other way round, tell Claude: REDcode’s view reads green the other way |
| 2 | On the Desk, the same mesh’s look row default › the eye (or pick default in the 3D view’s look list) |
The jeans show their folds, creases and seams as relief that catches the light, with a fine denim weave; before, the surface was smooth |
| 3 | EDGEmat’s activity bar icon › Find › its magnifier › sunny ammo high-tops › the item › a body › on its mesh line (s1_055_p?a_shoe__converse.mesh), + (Add to Desk). On the Desk, its look row › the eye; pick red_yellow_graphic in the 3D view’s look list if it is not shown |
The canvas shows a fine weave, the sole its ridges, the seams their stitching, as relief. Nothing looks inside out (dents where the game has bumps) |
| 4 | File › Open Folder… › E:\Modding\Cyberpunk 2077\Projects\EDGEmat_PropParts. Project view, source\archive\edgefab_partmaterials\props\vending_parts, right-click vending_parts.mesh › Open in EDGEmat; on the Desk, the eye. Turn the model |
The model’s own textured parts (body, back) show their dents and panel lines as relief. The car paint front stays smooth (its car paint has no bumps of its own) |
| 5 | Afterwards: on the Desk, each line from this test › Remove |
Scripted run, 2026-12-01 (the EDGEweb session, trial EDGEkit, scratch copies of the projects; steps 1 and 2 on b43ec86 with REDcode main 8be7500, step 3 on 99a1433, step 4 and the jacket on e429550 with REDcode main 6d030cd; pictures for the owner, EM9). Every step as expected; Claude read the pictures and agrees. The owner judges the look.
| # | Result |
|---|---|
| 1 | The blue rows’ dots read as raised domes, the red rows’ as dents with a lit far rim: the same way round as on V in the game (2026-11-15) |
| 2 | Folds, creases and seams show as relief that catches the light. The fine denim weave is not visible at that distance. At Light 2.5× the jeans come out near white (the bake’s light grey, brightened); the owner judges the brightness |
| 3 | The canvas shows its weave, the seams their stitching, the eyelets a rim; nothing looks inside out |
| 4 | The textured parts show their dents, grille and panel lines as relief; the car paint front stays smooth (its mirrored white patches as on 2026-11-30); the back is the flat pale glow |
| 5 | The entries were removed |
| Extra | The Arasaka jacket on e429550: the panels show the wrinkle microblend’s creases and the weave over the folds. At 2.5× it too is near white with a grey hex camo |
Closest colors in the setup editor
Added 2026-12-02 (EDGEmat #20, the owner’s finding in REDcode’s sector test M2-3). A layer can only take its surface’s own colors, and world surfaces such as asphalt have greys only, so the color filter found nothing for red. Now, when no color’s name fits and the words read as a color, the surface’s closest colors show first with a note; gray finds grey; other words get a note naming the surface’s colors.
Same start as “Shine in the 3D view” (Ctrl+F5, the PropParts folder).
| # | Do | Expect |
|---|---|---|
| 1 | EDGEmat’s activity bar icon › Find › its magnifier › sunny ammo high-tops › the item › a body › on its mesh line (s1_055_p?a_shoe__converse.mesh), + (Add to Desk). On the Desk, under its look white, click the layered material white |
The setup editor opens on ml_s1_055_pma_shoe__white |
| 2 | Click the sole on the setup map (it picks its layer). In the layer’s Surface row › Change… › type asphalt road › pick asphalt_road_01_300 |
The layer’s surface is the road’s; under Color, “72 colors on this surface”, all dark grey, grey or light grey swatches |
| 3 | In the Color row’s filter box (placeholder “Filter: red, dark blue, grey…”), type red |
A note “None is red; the closest of this surface’s colors first. Use Change… for a surface with more colors.”, then up to 24 grey swatches. Click the first: the layer’s Color row shows it |
| 4 | Clear the box and type gray |
The grey swatches, as grey gives, with no note |
| 5 | Type zzz |
“This surface has no color that fits “zzz”. Its colors: dark grey, grey, light grey. Clear the filter to see all 72, or use Change… to pick a surface with more colors.” |
| 6 | Afterwards: close the setup editor › Don’t Save; the sneakers’ Desk line › Remove |
Scripted run, 2026-12-02 (the EDGEweb session, on dist\edgemat-main-acf9690.vsix, REDcode main 6d030cd, REDbridge 0.21.0, a scratch copy of the project): all six steps as expected.
| # | Result |
|---|---|
| 1 | The setup editor on ml_s1_055_pma_shoe__white |
| 2 | The sole is layer 7; asphalt_road_01_300 gave “72 colors on this surface”: 48 dark grey, 18 grey (one the surface’s default), 6 light grey |
| 3 | red: the note as expected and 24 swatches (18 grey, 6 dark grey); the first set the Color row to grey ba4aa4_48e702 |
| 4 | gray: all 72, no note |
| 5 | zzz: the note as expected, naming dark grey, grey, light grey |
| 6 | Don’t Save, Remove: no further question, the entry gone |
Glass and glow in the 3D view
Added 2026-12-03 (M5’s plan, step 4; REDcode #42, released in REDcode 0.10.18). View in 3D now sends a textured material’s glow as a glow of its own (emissive: the Emissive mask times EmissiveColor, as bright as EmissiveEV says: EV itself under 1, 2^(EV − 1) from 1 up), so it keeps glowing when the light is turned down; the color under it goes dark where it glows. Glass (glass.mt, glass_onesided.mt, vehicle_glass.mt, frosted_glass.mt and their kin) is sent see-through: its tint (GlassTint times TintColor) at opacity 0.3, smooth; frosted glass 0.7 and satin. Unverified: how see-through the game’s glass is; checked against in-game pictures in M5’s step 1. With a REDcode older than 0.10.18 the glow is painted into the color as before and glass is left out. Checked outside VS Code (npm run shine-check on the vending machine): the back’s glow at intensity 8.9 (EV about 4.2), the glass part ..._wit_front_2 see-through at 0.3; the smoke test checks the sneakers’ amber dec_lights both ways.
Changed 2026-12-03 after the first run: REDcode’s view has no bloom or exposure of its own, so a strong glow clipped to flat white and lost its color (the back’s cyan at 8.9 came out 248, 253, 253). The viewer’s glow is now capped (ViewerGlowMost, 1): its brightest channel at 1, so a glow shows its own color, still far brighter than the lit parts. Glows stronger than that look alike in the view; the game’s own strength stays in the .mi. Through three.js’s ACES curve at Light 1× the back’s cyan should come out about 175, 218, 218.
Needs REDcode 0.10.18 or later. Same start as “Shine in the 3D view” (Ctrl+F5, the PropParts folder).
| # | Do | Expect |
|---|---|---|
| 1 | In REDcode’s Project view, source\archive\edgefab_partmaterials\props\vending_parts, right-click vending_parts.mesh › Open in EDGEmat. On the Desk, the look row › the eye (View in 3D). Turn the model to see its back |
The back (..._wit_back) glows an even pale cyan (about 175, 218, 218), far brighter than any lit part. Even, since the part has no glow mask: it glows all over |
| 2 | In the 3D view’s toolbar, set Light to its lowest (0.5×) | The lit parts halve; the back stays by far the brightest part, cyan, dimmed about a fifth (about 118, 183, 183): Light is the view’s exposure, as a camera’s, so it dims a glow a little too |
| 3 | Light back to 1×. Turn to the front and look into the lower compartment, below the cans: the glass part (..._wit_front_2) is a shape there, not a pane over the window. Untick submesh 15 in the list to see which |
It is see-through: the blue behind shows through, slightly grey, with soft highlights. Before, it was a solid flat swatch |
| 4 | EDGEmat’s activity bar icon › Find › its magnifier › sunny ammo high-tops › the item › a body › on its mesh line, + (Add to Desk). In the 3D view’s look list, red_yellow_graphic. Look at the yellow strip along the sole (dec_lights), then set Light to 0.5× |
The strip glows amber-yellow. At 0.5× it dims less than the canvas: its glow mask covers it only in part, so some of its lit color shows through, as in the game |
| 5 | Afterwards: both entries’ Desk lines › Remove |
Scripted run, 2026-12-03 (the EDGEweb session, on dist\edgemat-main-2f59e9a.vsix, REDcode 0.10.18, REDbridge 0.21.0, a scratch copy of the project): steps 2, 3 and 5 as expected; 1 and 4 differed in part. Pictures for the owner in this session’s scratchpad (d02: glow-*, glass-*).
| # | Result |
|---|---|
| 1 | The back by far the brightest part, unshaded, but flat white (248, 253, 253 at Light 1×, pure white at 2.5×), not pale cyan; the lit parts 33 to 40 of 255. EDGEmat’s fault: the glow’s cyan (147, 254, 255) at strength 8.9 clips every channel. Fixed the same day: the viewer’s glow capped at 1 (above) |
| 2 | Light’s lowest is 0.5× (0.5, 1, 1.5, 2.5). The lit parts halved (33 to 16); the back stayed (brightness 252 to 247, 2% less) |
| 3 | A pale grey see-through shape with soft highlights in the lower compartment, the blue behind showing through; gone with submesh 15 unticked (largest pixel difference 166). Not a pane over the whole window: the step’s guess was wrong, reworded |
| 4 | dec_lights is the yellow strip along the sole, not lights at the heel (the step’s guess, reworded). Amber-yellow, 210, 178, 63 at 1× and 178, 138, 22 at 0.5×: it dims about 22% while the canvas dims 28%. Its glow mask covers it in part, so its lit color shows through where the mask is below full, as in the game: the expectation was wrong, not the glow |
| 5 | Both entries removed with no question; the open 3D view tabs stayed open |
| Extra | The trial again restored the previous run’s tabs as unsaved at start (see “Shine in the 3D view”) |
Scripted rerun, 2026-12-03 (the EDGEweb session, on dist\edgemat-main-e651ebc.vsix, REDcode 0.10.18, the same set-up): every step as expected; the look is the owner’s (dashboard EM9). Pictures in this session’s scratchpad (d02: glow2-*).
| # | Result |
|---|---|
| 1 | The back an even pale cyan, every pixel 176 to 178, 219, 218 to 219 at Light 1× (brightness 210); the lit parts 33 and 40 |
| 2 | The lit parts halved (33 to 16, 40 to 21); the back to 118 to 122, 183 to 184, 183 to 184 (19% less), still by far the brightest and cyan. It matches three.js’s ACES curve at half exposure (118, 183, 183): REDcode’s Light is toneMappingExposure (0.8 × Light), which dims a glow too; before the cap the glow was clipped so far above white that it hid this. The step’s wording said “keeps its glow”; reworded |
| 3 | The glass a pale grey see-through shape in the lower compartment: 142, 142, 157 shown, 49, 50, 146 with submesh 15 unticked, so the blue behind shows through; soft highlights |
| 4 | The sole strip amber-yellow: its brightest fifth 224, 186, 52 at 1× (the curve gives 223, 185, 47 for full glow) and 184, 137, 12 at 0.5× (25% less); the canvas beside it 30% less. It dims less than the canvas, by a small margin |
| 5 | Both entries removed with no question |
A finding from REDcode’s own #42 steps (G1 to G6, the EDGEweb session by script, 2026-12-03, REDcode cdfd22e, EDGEmat e651ebc’s code): glass right, but every neon tube on device_diode.mt glowed white in all five looks of neon_24_open_arrow_a.mesh. EDGEmat’s fault: that shader names its glow color EmissiveColor1 (and EmissiveColor2, a color it can switch to), which EDGEmat did not read, so it fell back to white. Fixed 2026-12-03 (13d9f07): the default look cyan (0, 249, 255), orange 255, 114, 24, Yellow 255, 200, 0, stadium_blue 75, 120, 255; the smoke test checks two. Not a fault: the dim look (EV 3) as bright as the default (EV 6), since the viewer’s cap holds every glow from EV 1 up at the same strength (above); telling strong glows apart is M5’s step 3 (the light). Open with REDcode: at Light 0.5× white tubes went from 219 to 144, where the ACES curve at half exposure gives 184 (144 fits an exposure near 0.22); EDGEmat sends the same glow at any Light.
Live check
Added 2026-12-03 (M5’s step 2; REDcode #43). npm run live-check (in extensions/edgemat, after npm run build; the game, REDbridge, the library in the cache and Chrome or Edge): for each layered material of the Arasaka jacket (t2_078, default) and the sneakers (s1_055, red_yellow_graphic), EDGEmat’s live shader is drawn in headless Chrome over WebGL2, hosted as REDcode’s renderedMaterial.ts hosts it (array textures with mipmaps, sRGB for colour, the first layer’s size), on a flat UV square at the bake’s size, and each pixel compared with the baked color, roughness, metal and bumps. Then an edit as the setup editor makes it (the layer that shows most: a new tile, offset, opacity and color) must keep the shader’s shape, so it goes to the view as uniforms alone; the old shader with the new numbers must draw what a new bake of the edit shows; and a new surface must change the shape. It fails when a shader does not compile, a color is more than 4 of 255 off on average, or an edit does not show. Pictures (shader.*.png, baked.*.png, a color difference four times brighter) in %TEMP%\edgemat-live-check or --out.
Passed 2026-12-03 (Claude, on the dev PC’s Chrome):
| Material | Color (of 255) | Roughness | Bumps | Images |
|---|---|---|---|---|
The jacket’s layered material (13 layers; bags the same) |
mean 3.4 apart, 87% within 8, 97.5% within 24 | mean 2.8, 91% within 8 | 1.3° apart, 98% within 5° | 12.8 MB in 6 samplers |
The sneakers’ red_yellow_graphic (19 layers) |
mean 2.2, 90% within 8, 96% within 24 | mean 3.3, 91% within 8 | 3.0°, 77% within 5° | 10.9 MB |
| The jacket’s layer 0 edited (tile × 1.5, offset, opacity, the next color): 54% of the picture changes | the old shader with the new numbers against the new bake: mean 3.3, 82% within 8 | mean 3.0 | 1.0° | the same shape: uniforms alone |
| The same layer on a new surface | a new shape: drawn again |
The differences are along mask edges: the shader cuts each mask by its microblend per pixel, the bake on the 512 px mask grid and then smooths, so the shader’s edges are sharper. The first run differed everywhere: the check’s own page bound its samplers wrongly (making a texture rebinds the active unit), fixed in the page before this run.
Live shader in the 3D view
Added 2026-12-03 (M5’s step 2; REDcode #43, on REDcode’s main from c0374f6, in the next REDcode release). View in 3D sends a layered material as EDGEmat’s own shader (live) beside the baked maps: REDcode runs it per pixel, so each surface is sampled at the screen’s resolution, not through one 1024 map, and an edit that changes only numbers (Tiling, Offset, Opacity, Color, Roughness, Metal and Bumps presets) reaches the view as new numbers, with no new render. A new surface or microblend, or a layer shown or hidden, renders again as before. A REDcode without #43 ignores the shader and draws the baked maps; EDGEmat sends number-only changes only to a REDcode after 0.10.18 or one run from its checkout. For tests, EDGEMAT_LIVE=off in EDGEmat’s environment sends no shader and EDGEMAT_LIVE=broken one that does not compile. REDcode’s own steps for its side are L1 to L5 in REDcode’s docs/testing.md; this test is EDGEmat’s.
Start: Ctrl+F5 with the launch configuration Run EDGEmat with REDcode main (REDcode main at c0374f6 or later). REDcode’s output channel is Output › REDcode, EDGEmat’s Output › EDGEmat.
| # | Do | Expect |
|---|---|---|
| 1 | Click REDcode’s icon in the activity bar › hover the Game Assets header › the funnel icon (Filter Game Assets) › type t2_078_ma_jacket__samurai, Enter. Right-click t2_078_ma_jacket__samurai.mesh › Open in EDGEmat. On the Desk, the default look row › the eye (View in 3D) |
The jacket in REDcode’s 3D view with its usual colors, shine and bumps. Output › REDcode has no “EDGEmat’s live material did not compile”. Output › EDGEmat has one “3D view: … materials” line |
| 2 | Zoom in close on the jacket’s chest and back | The fabric’s fine grain stays sharp up close; with the baked map (step 8) it blurs at the same distance |
| 3 | On the Desk, under the jacket’s default look, click its layered material ml_t2_078_ma_jacket__samurai_masksset: the setup editor opens beside the 3D view. In the editor’s layer list, click layer 0 to open its details. In the Tiling box, click the up arrow five times quickly |
The jacket’s pattern in the 3D view gets finer with each click, at once, not after a pause. Output › EDGEmat gets no new “3D view:” line for these clicks |
| 4 | Layer 0’s Color: click three other swatches one after another | The jacket’s main color follows each click at once; still no new “3D view:” line |
| 5 | Layer 0’s Roughness list: pick another preset; then Opacity down to 0.3 | The shine changes, then the layer fades, each at once, with no new “3D view:” line |
| 6 | Layer 0’s Surface › Change… › any other surface | After a moment the jacket redraws with the new surface, and Output › EDGEmat gets a new “3D view:” line: new images need a new render |
| 7 | Ctrl+Z until the surface is back, then close the setup editor’s tab › Don’t Save | The view goes back to the jacket as saved |
| 8 | Close VS Code. In a terminal set EDGEMAT_LIVE=off, start VS Code from it and do step 1 and 2 again; then close it, set EDGEMAT_LIVE=broken and do step 1 |
off: the jacket as before, from the baked maps; up close its grain blurs. broken: the jacket from the baked maps, and Output › REDcode shows “EDGEmat’s live material did not compile” with the GLSL error (about the line this is not GLSL, such as “‘this’ : Illegal use of reserved word”) |
| 9 | Afterwards: the jacket’s Desk line › Remove |
Scripted run, 2026-12-03 (the EDGEweb session, on dist\edgemat-main-9f2a17c.vsix unpacked, REDcode main cdfd22e as the development host, REDbridge 0.21.0, a scratch Desk and library): every step as expected (step 6 on a second try); the look is the owner’s.
| # | Result |
|---|---|
| 1 | The jacket on the Desk (through the mesh view’s Open in EDGEmat button); the look’s eye opened a 3D tab on the Desk’s copy. One “3D view: 5 of 5 materials” line, no compile error |
| 2 | Sharp up close: the difference between neighbouring pixels 5.5 and 7.0 at two distances, against 3.2 and 3.0 from the bake (step 8’s off) |
| 3 | Tiling 5.4 to 5.9 in five presses; the view changed 0.40 to 0.47 s after each (the script’s polling and picture included); five materialsChanged with uniforms, no new “3D view:” line |
| 4 | Three swatches, each followed in 0.42 to 0.44 s, no new line |
| 5 | Roughness to “matte to rough” (0.46 s), Opacity to 0.3 (0.42 s), no new line |
| 6 | A new surface (“leather standard clean 01 30”): a new “3D view:” line and a full render, redrawn about 5.2 s after the pick. The first try (denim clean 02) was unclear: the surface picker covered the view, and a “3D view:” line came later that the script could not tie to the pick or the close |
| 7 | One Ctrl+Z brought Oxford back; closing with Don’t Save put the view back, the same pixels as the first picture |
| 8 | off: no shader, the grain blurred (3.2 and 3.0). broken: the baked maps, and the compile message once. Its error reads “‘this’ : Illegal use of reserved word”, not the line itself: the step’s wording fixed |
| 9 | The Desk line removed |
| Extra | (a) After one arrow-key press the Tiling box no longer took the next press: it lost the focus, so it had to be clicked again each time. EDGEmat’s fault: the page is drawn anew on each update. Fixed 2026-12-04: the field being edited keeps the focus (and a text field its caret). (b) In a narrow editor group (one column) the color swatches drew over the map’s caption. EDGEmat’s fault: the map column stays pinned (position: sticky) as the layers scroll, which suits two columns only. Fixed 2026-12-04: pinned in two columns only. (c) REDcode’s L2: edits reach the Desk’s 3D tab, but not REDcode’s own tab on the game file. As designed: a setup opened from a Desk entry edits that entry’s copy, so only views of the copy follow it (EDGEmat #17); the game file’s view keeps the game’s look |
Retests for the fixes (open):
| # | Do | Expect |
|---|---|---|
| R1 | As step 3: click into layer 0’s Tiling box once, then press the up arrow key five times without clicking again | Each press raises Tiling by 0.1 and the 3D view follows each; the box keeps the focus throughout |
| R2 | Make the setup editor’s group narrow (under 800 px wide: drag the divider), so the map sits above the layers. Open layer 0’s details and scroll down to its color swatches | The swatches stay below the map’s caption (“Flat colors laid out…”); the map scrolls away with the page, nothing draws over it |
Scripted run of R1 and R2, 2026-12-04 (the EDGEweb session, on 64bf5dd): both as expected. R1: the box kept the focus, +0.1 a press (5.31 to 5.8, then 5.8 to 6.3 with the view following in 0.38 to 0.48 s, five uniform-only events, no new “3D view:” line). R2: in a 781 px group the swatches sat at 369 to 541 px, below the caption (126 to 158 px), the map scrolled off the top, nothing pinned. A finding on R1’s first run, right after the setup opened: press 1 sent a plain event and the view did not change within 4 s; presses 2 to 5 sent uniforms but each was followed by a full render (1 to 2.9 s, five new “3D view:” lines). EDGEmat’s: it learns which views draw a setup live only from a render made while the editor is open, so the first edit rendered fully, and the uniform events that followed reached the view before that render’s shader was in place. Fixed 2026-12-04: once a setup opens, the views showing it draw it again through the editor, so the first edit already goes as numbers (R3).
REDcode’s L2 on the game file’s own tab (the same run): with the setup opened from Game Assets (Open in EDGEmat on the jacket’s .mlsetup, which puts it on the Desk as a setup alone), REDcode’s view of the game jacket got a plain event for each edit, rendered again (seven “3D view:” lines) and showed the same pixels; the same on the sector sign (neon_24_open_arrow.mlsetup). EDGEmat’s: a setup alone on the Desk has no mesh of its own, so its edits matched no view; its events told every view, which drew the game’s unedited setup. Fixed 2026-12-04: a setup alone on the Desk shows as edited on the game’s meshes that use it, as a game file opened directly does (R4). A setup opened under a Desk mesh still shows on that entry’s copy only (#17).
| # | Do | Expect |
|---|---|---|
| R3 | Close the setup editor. With the jacket’s 3D view open, open the setup again (click the material under the default look on the Desk), wait 3 s, then at once click into Tiling and press the up arrow five times |
One “3D view:” line within a few seconds of opening (the views drawing it through the editor), then none for the five presses; the view follows the first press as quickly as the fifth |
| R4 | REDcode’s Game Assets, filter t2_078_ma_jacket__samurai, right-click ml_t2_078_ma_jacket__samurai.mlsetup › Open in EDGEmat. Open the game’s t2_078_ma_jacket__samurai.mesh in REDcode’s own 3D view (EDGEmat shading). In the setup editor, layer 0’s Tiling up five times, then a color swatch |
REDcode’s view of the game jacket follows each edit, the first ones included; after the first render, by numbers (no new “3D view:” line). Afterwards Don’t Save and remove the Desk line: the view goes back to the game’s look |
Scripted run of R3 and R4, 2026-12-04 (the EDGEweb session, on 634e09b): both as expected, and REDcode’s L2 and L3’s edit half now hold. R3: one “3D view:” line on opening, none for the presses; presses 1 to 5 followed in 376 to 465 ms, each by uniforms (the presses began about 8 s after opening, not 3). R4: REDcode’s own view of the game jacket followed presses in 370 to 480 ms and a swatch in 438 ms, all by uniforms, the first included, no new “3D view:” line; the same pixels as at the start after Don’t Save and again after removing the Desk line; the box kept the focus. L3 on the sector sign (neon_24_open_arrow.mlsetup from Game Assets): each press shown in 245 to 317 ms by uniforms, back to the same pixels after. Seen: opening a setup made every open 3D view draw again once (a hidden tab of the game jacket too), since the open-time draw of a setup with no mesh of its own tells every view; one render per view per opening, accepted.
Open in EDGEmat on meshes only
Added 2026-12-01 (EDGEmat’s to-do since REDcode #15 shipped file kinds in REDcode 0.10.5): in REDcode’s Game Assets view, Open in EDGEmat shows only on a .mesh, .mlsetup or .mltemplate, not on every file. Needs REDcode 0.10.5 or later (an older one shows it on no game file).
| # | Do | Expect |
|---|---|---|
| 1 | REDcode’s activity bar icon › Game Assets › its funnel (Filter Game Assets) › t2_078_ma_jacket__samurai: five files show. Right-click t2_078_ma_jacket__samurai.mesh (in torso\t2_078_jacket__samurai) |
Open in EDGEmat is in the menu; choosing it puts the jacket on the Desk |
| 2 | Right-click t2_078_ma_jacket__samurai.ent (in torso), then ml_t2_078_ma_jacket__samurai_masksset.mlmask and t2_078_ma_jacket__samurai_n01.xbm (both in textures) |
No Open in EDGEmat on any of them (the texture keeps REDcode’s own entries) |
| 3 | Right-click ml_t2_078_ma_jacket__samurai.mlsetup (in textures) |
Open in EDGEmat is there; it puts the setup on the Desk |
| 4 | Afterwards: on the Desk, both lines › Remove |
Scripted run, 2026-12-01 (the EDGEweb session, on e429550 in a trial EDGEkit, REDcode main 6d030cd): passed, all four steps. The .mesh and .mlsetup menus hold Open in EDGEmat (between Open as JSON and Copy Game Path); the .ent, .mlmask and _n01.xbm menus do not. The mesh put the jacket on the Desk; the .mlsetup put a setup line on the Desk and opened it; both lines removed.
Shared keys
Added 2026-11-22 (EDGEmat #18, K4d, after EDGEwave’s pilot #12): EDGEmat’s Google Gemini, OpenAI and Tripo keys come from REDcode’s Keys, shared by every EDGE tool, and the MCP server reads them there too. One round per service you have a key for, Gemini and OpenAI (steps 1 to 6); step 7 once. Tripo is read only by the MCP server (mat_reshape’s make, about 60 Tripo credits), through the same keys.get: the 2026-11-22 check read it from the store; a real make is optional, the next time you reshape something. Every step uses the real store, %APPDATA%\Edgemodders\keys; nothing here spends credits except a Generate (one take each).
Before: in ..\REDcode, git pull and npm run build in extensions\redcode; REDbridge 0.18.0 (REDcode: Update REDbridge); npm run build in extensions\edgemat. Then Run and Debug › Run EDGEmat with REDcode main › Ctrl+F5. If GEMINI_API_KEY, OPENAI_API_KEY or TRIPO_API_KEY is set in your Windows environment, that service’s key comes from there and steps 1 to 5 do not show the store for it: test that service with the variable removed (and VS Code restarted), or skip it.
Your everyday VS Code, with EDGEmat 0.3.3, keeps using EDGEmat’s own copy of each key. Step 1 moves that copy, so the everyday window asks for the key once more. That lasts only until the releases have the store.
| # | Do | Expect |
|---|---|---|
| 1 | Moved. With a Gemini or OpenAI key EDGEmat saved before (any 0.3.x), start the development host. With no key of EDGEmat’s own there is no message (nothing to move): first, in your everyday window (EDGEmat 0.3.3 with REDcode 0.10.15, which has no Keys), EDGEmat: Set Image Service Key… › Google Gemini, paste the key; then start the development host. To see “now in REDcode’s Keys” rather than “already had a key”, Remove Key on Gemini in REDcode’s Keys before starting it | Once, a message: “your … key is now in REDcode’s Keys, shared by every EDGE tool…” (or, when REDcode’s Keys had one already, that EDGEmat uses it and removed its own copy), with Open REDcode’s Keys, and Connect an Assistant… plus “Claude Code’s entry for EDGEmat still holds a key” when it does. Open REDcode’s Keys: the service shows set. Reload the window (Ctrl+R): no message |
| 2 | Asked. Game Materials title bar › New Material (the sparkle). The note under the service says EDGEmat reads the key from REDcode’s Keys. Type red brick, press Generate |
REDcode asks whether EDGEmat may have your key (Gemini, or the service picked). Allow: a take. Generate again: no question. In REDcode’s Keys view, the service lists EDGEmat as a reader |
| 3 | Changed. REDcode’s Keys view › Set Key on the same service, with a wrong key (one letter changed), the New Material page still open. Press Generate | No reload needed: the service refuses the key (an error line on the page, no take). Set Key with the right key again, Generate: a take |
| 4 | Cleared. Command palette › EDGEmat: Clear Image Service Key… | It says the keys are shared in REDcode’s Keys, with Open REDcode’s Keys; it asks for no service. There, Remove Key on the service. Generate: REDcode’s password box. Cancel it: the page says there is no key |
| 5 | Set. Command palette › EDGEmat: Set Image Service Key… › the service | REDcode’s password box (not EDGEmat’s). Paste the key: the Keys view shows it set; Generate makes a take with no question |
| 6 | Read by the MCP server. EDGEmat: Connect an Assistant (MCP)… › Connect Claude Code | No question about the keys; “EDGEmat is connected to Claude Code, reading your image service and Tripo keys from REDcode’s Keys”. In %USERPROFILE%\.claude.json, the edgemat entry has no GEMINI_API_KEY, OPENAI_API_KEY or TRIPO_API_KEY. In a new Claude Code session in a normal terminal: “With EDGEmat, make just an image of a red brick material with mat_generate (imageOnly)”: the image comes, and the Keys view lists EDGEmat MCP as a reader of that service. Then remove that key in REDcode’s Keys and ask again, in the same session. With the other image service’s key set, the image comes from that one (a request naming no service tries Gemini, then OpenAI); with neither set, or with the service named (service: "gemini"), the answer says no key is set and to use REDcode’s Keys view, Set Key. Set it back |
| 7 | Refused (added 2026-11-22, with REDcode main f6c7cbf or later, which has keys.status). REDcode’s Keys view › Forget Tool Permissions for Keys. On the New Material page press Generate, and in REDcode’s question press Don’t Allow |
No password box. The page says you told REDcode that EDGEmat may not use your key, and to use Forget Tool Permissions for Keys. Generate again: the same words, no question. Forget Tool Permissions for Keys, Generate, Allow: a take |
| Run | Result |
|---|---|
| 2026-11-22, owner, dev PC (REDcode main, REDbridge 0.18.0) | Passed, all 6 steps. Before step 1, EDGEmat held no key of its own (the keys were all in REDcode’s Keys already), so there was nothing to move and no message: step 1 now says to set one in the everyday window first. Step 6: with the Gemini key removed, mat_generate (no service named) made the image with OpenAI’s key instead, as meant: a request naming no service tries Gemini, then OpenAI. The expectation now says so |
| 2026-11-22, owner, dev PC (REDcode main) | Step 7 (Don’t Allow, added after the first run): passed. With steps 1 to 6 above, the whole test has passed |
The Desk’s edits in the 3D view
Added 2026-11-21 (EDGEmat #17, for REDcode’s sector view). A change to one Desk entry (a setup edited or saved there) now tells the 3D views by naming that entry’s copy of its mesh, where before it told every view. So a 3D view opened from the Desk still follows each edit, and one opened on the game’s mesh keeps the game’s look. The other half of #17 (a layered material drawn without EDGEmat’s library) is checked by the smoke test: a world sidewalk drawn without it, on an empty cache, comes out the same as with it.
npm run buildinextensions\edgemat, then Ctrl+F5 (Run Without Debugging). REDcode must be installed in the development host (it is when you run from this repo’s launch setup).- EDGEmat’s activity bar icon › the Find header › its magnifier › type
rocker's heart› open the item › your V’s body (Feminine or Masculine) › on the mesh linet2_084_pw?__short_sleeves.mesh, press + (Add to Desk). The DESK shows the jacket with a look open and its materials below it.
| # | Do | Expect |
|---|---|---|
| 1 | On the Desk, the look row (above the materials), click the eye (View in 3D) | REDcode’s 3D view opens the jacket in the editor area. Keep it open; the Desk stays in the side bar |
| 2 | On the Desk, click a material row with the layers icon (multilayered) | The setup editor opens it, saying it is on the Desk |
| 3 | In the setup editor, select the layer with the largest share, and pick a color far from its own (a green, say) | Within a second of letting go, the jacket in the 3D view changes to it, without closing anything |
| 4 | Ctrl+Z in the setup editor | The 3D view goes back to the old color |
| 5 | Pick the green again, then Ctrl+S | The Desk line says the entry is edited on the Desk; the 3D view keeps the green |
| 6 | REDcode’s Game Assets view: find t2_084_pw?__short_sleeves.mesh (the same file as step 2) and open it in the 3D view |
This view shows the game’s own colors, not the green: the Desk’s edit is the Desk’s alone |
| 7 | Close the setup editor’s tab | The Desk’s 3D view keeps the green (it is saved on the Desk) |
| 8 | Afterwards: right-click the jacket’s line on the Desk › Remove, then Remove in the question |
| Run | Result |
|---|---|
| 2026-11-22, owner, dev PC (REDcode main) | Passed, all 8 steps: the Desk’s 3D view follows the setup editor’s edits, Ctrl+Z and the save; the game’s mesh in Game Assets keeps the game’s colors |
Reshape with the game’s materials
Added 2026-11-17 (owner: Reshape changes the shape, Restyle the material). Reshape’s fit now keeps the game’s materials by default instead of Tripo’s paint (core transfer.ts; reshapeFit wears: "game", "tripo" for the old way): the game mesh is bent onto the new shape and its UVs carried over, so every look of the item keeps its own colors and Restyle still works on it. Small parts lying over the garment (the hat’s band) and small submeshes (its buckle and the buckle’s glass) stay the game’s own geometry, bent onto the new shape; the new surface under them is tucked 4 mm down. Built by Claude from the hat made in the Reshape and keys test (Tripo task 929d73c9, no credits) into the project E:\Modding\Cyberpunk 2077\Projects\EDGEmat_ReshapeGame, packed as packed\archive\pc\mod\EDGEmat_ReshapeGame.archive. Claude’s look first: source\raw\edgemat\reshape\items_hat_02_basic_01_feminine\change_1_fitted_game.png (the felt and brim in the game’s materials, the band all the way round, the buckle in front). Rebuild it with node scripts/reshape-check.mjs "E:\Modding\Cyberpunk 2077\Projects\EDGEmat_ReshapeGame" --until fit --task 929d73c9-c8e1-4a4d-8b18-7e05b5d21b62 in extensions\edgemat.
| # | Do | Expect |
|---|---|---|
| 1 | First take Wardrobe Designer’s made hat away, so it does not cover this one: in the game, Wardrobe Designer’s window, press the Head button with the cowboy hat, then Restore (the Reshape and keys test’s step 9 does this). Then close the game | The hat back to the game’s own |
| 2 | Copy E:\Modding\Cyberpunk 2077\Projects\EDGEmat_ReshapeGame\packed\archive\pc\mod\EDGEmat_ReshapeGame.archive into the game’s archive\pc\mod folder (E:\SteamLibrary\steamapps\common\Cyberpunk 2077\archive\pc\mod) |
|
| 3 | Start the game, load a save, REDnode’s Console (F10 › the launcher › Console): addItem("Items.Hat_02_basic_01"). Put it on V: the inventory (I), the Head slot, Cowboy hat with hardened-leather band (the newest one) |
V wears the wide-brimmed hat, on the head, as in the Reshape and keys test |
| 4 | Look closely: the inventory’s preview, then photo mode front, side and back. Screenshots | The felt is the game’s: light grey with its grain, as the game’s own hat, not Tripo’s darker paint. The band runs all the way round with the buckle in front, crisp. Note any felt showing through the band, gaps or holes, stretched or smeared spots (most likely at the brim’s edge, which was stretched to twice the width), and how the brim’s underside looks |
| 5 | Other looks of the same hat: addItem("Items.Hat_02_old_02") (Modified snake-skin cowboy hat) and addItem("Items.Hat_02_basic_02") (Reinforced Cyan cowboy hat), each worn in turn |
The same wide brim in that item’s own colors and surface (snake skin, the cyan one). Unverified: that both wear this same mesh on V’s body; if one shows the old narrow brim, it wears another mesh, which is not a failure |
| 6 | Optional: restyle the wide hat with Wardrobe Designer (“dark red leather”) | The wide hat changes color like any other item. Then Restore |
| 7 | Close the game and delete EDGEmat_ReshapeGame.archive from archive\pc\mod |
Wardrobe Designer install
Added 2026-10-30: the release zip in the game, as a player gets it (Vortex or extracted), not the development folder. Run it on each Wardrobe Designer release’s zip before it goes to Nexus: the run’s artifact Wardrobe-Designer-build from Release Wardrobe Designer without the ticks, or npm run wardrobe:zip (dist/Wardrobe-Designer-<version>-draft.zip).
| Step | Do | Expect |
|---|---|---|
| 1 | In the game: F10 › the REDNODE tab › the gear › Developer mode › Development folders: remove E:\Modding\Cyberpunk 2077\EDGEmat\apps, so only the installed copy runs. Then close the game |
|
| 2 | Install the zip with EDGEdeck (Deploy; the mod wardrobe-designer), Vortex, or extract it into the game folder |
red4ext\plugins\REDnode\apps\wardrobe-designer\ has rednode-app.json, dist\mod.mjs, LICENSE.txt and THIRD-PARTY-NOTICES.txt |
| 3 | Start the game, load a save, F10 › Mod Manager › Wardrobe Designer | It is off, with its version, and needs REDnode 0.68.0 or later and its six permissions (REDbridge, REDagent, archives, the OpenAI, Tripo and Gemini keys) to allow. Allow them and switch it on |
| 4 | Open the inventory, pick a piece in Clothing, type red leather in How should it look?, press Restyle, then Restore |
The piece turns red leather on V and the preview, its entry with a *; Restore brings the game’s look back (as in Wardrobe Designer W1, steps 2, 3 and 7) |
| 5 | Tell Claude | Claude reads the log and records the version and the result |
Keys in VS Code
Added 2026-11-11 (EDGEmat #10): the image service keys are in VS Code’s secret storage again, as in 0.3.1, and the EDGE tools’ shared key store is out of the extension and the MCP server. It replaces the test Shared keys (added 2026-10-30, never run). In the development host (F5), then a normal terminal with Claude Code.
| Step | Do | Expect |
|---|---|---|
| 1 | In the development host: Game Materials title bar › New Material (the sparkle). Type red brick, press Generate |
With a key set in a build since 2026-10-30 (it went to the shared store), it asks once: a password box that says the key is kept in VS Code’s secret storage, for EDGEmat only. With a key from 0.3.1, or GEMINI_API_KEY or OPENAI_API_KEY set in your environment, no question. Then a take |
| 2 | Command palette (Ctrl+Shift+P) › EDGEmat: Set Image Service Key… › OpenAI › type abc |
Under the box: “OpenAI keys start with sk-“. Press Escape: nothing saved |
| 3 | Command palette › EDGEmat: Clear Image Service Key… › the service from step 1 › Clear It | A warning first: “Generate asks for it again”. Then Generate asks for the key again. Give it again for the next steps |
| 4 | Game Materials › … › Connect an Assistant (MCP)… › Connect Claude Code | A question: “Give the assistant your image service key too?” Choose Yes: “EDGEmat is connected to Claude Code” |
| 5 | A new Claude Code session: “Using EDGEmat, make just the image of a red brick material, don’t apply it” | mat_generate with imageOnly returns an image file |
| 6 | Game Materials › … › Connect an Assistant (MCP)… › Copy the Claude Code command, paste it in Notepad | A message: “Copied. Put your key in place of |
| 7 | VS Code 1.101 or later: the editor’s own agent chat, the same words as step 5 | EDGEmat’s tools are listed, and mat_generate makes the image with the key from VS Code’s secret storage |
Connect an assistant
Added for 0.3.1, when the MCP server came into the extension. In a normal VS Code with EDGEmat installed from the Marketplace:
| Step | Do | Expect |
|---|---|---|
| 1 | Check %LOCALAPPDATA%\EDGEmat\mcp\ |
edgemat-mcp.cjs is there, made when EDGEmat started |
| 2 | Game Materials › … (top right of the view) › Connect an Assistant (MCP)… | Four choices; the hint at the top says whether agents inside this editor already see EDGEmat |
| 3 | Connect Claude Code; with a key set, answer the key question | “EDGEmat is connected to Claude Code”. Also where claude is only in %USERPROFILE%\.local\bin (Claude Code’s own installer) and not on the Windows PATH: the log says MCP: claude is not on the PATH; using "...claude.exe", then connects (fixed 2026-11-25) |
| 4 | In a terminal: claude mcp list |
edgemat points at the file from step 1, connected |
| 5 | A new Claude Code session: “Which EDGEmat tools do you have?”, then “Describe the Comfy rocker slim-fits’ materials” | The 14 mat_ tools (since 0.3.1: mat_desk, mat_from_model, mat_reshape, mat_restyle added to the 10); mat_find and mat_describe answer. With the EDGE plugin for Claude Code installed, its own EDGEmat server (from npm) is listed too: two sets of tools until the plugin’s copy is the same version |
| 6 | VS Code 1.101 or later: open the editor’s own agent chat and its tools list | EDGEmat and its tools are listed |
Scripted run of 0.3.4, 2026-11-24 (the EDGEweb session, in EDGEkit 1.143.1, not a normal VS Code; fresh scratch profile and extensions folder; LOCALAPPDATA, APPDATA and CLAUDE_CONFIG_DIR scratch; no game folder; the other EDGE extensions off):
| Step | Result |
|---|---|
| 1 | Pass: edgemat-mcp.cjs, 1,267,951 bytes, written when EDGEmat started |
| 2 | Pass: the four choices; the hint “Agents inside this editor already see EDGEmat’s tools.” |
| 3 | Failed: “EDGEmat: Claude Code’s claude command isn’t on the PATH…”. The log: 'claude' is not recognized. On this PC claude.exe is in %USERPROFILE%\.local\bin, on the bash PATH only. Fixed 2026-11-25: Connect Claude Code looks there and in npm’s folder |
| 4 | No MCP servers configured. (follows from step 3); the owner’s own Claude Code config untouched |
| 5 | Skipped (needs the game) |
| 6 | Not seen: this EDGEkit has no MCP list in its palette |
Install of the release
Asked for by the owner on 2026-10-16 as the CLI install of the VSIX. Last run 2026-10-19 by the owner on a test build’s VSIX: pass. F5 runs the source; this tests what a user installs. From 0.3.0 a release is on the VS Code Marketplace and Open VSX, so the test installs from there, in a normal VS Code with no development host open (Dev setup, “Releasing”):
- Extensions view (
Ctrl+Shift+X), searchEDGEmat, pick EDGEmat by Edgemodders with the Preview badge, Install. Orcode --install-extension edgemodders.edgemat. - Check the version on its page is the release’s.
- Click the EDGEmat icon in the activity bar: the Game Materials view checks, then Find and New Material open.
Without a store, the release’s VSIX the same way:
code --install-extension edgemat-<version>.vsix
Uninstall with code --uninstall-extension edgemodders.edgemat.
Scripted run of 0.3.4, 2026-11-24 (the EDGEweb session, EDGEkit 1.143.1, scratch profile and folders, no game): step 1, edgekit --install-extension edgemodders.edgemat --force installed 0.3.4 from Open VSX over EDGEkit’s built-in 0.3.3 (without --force it said 0.3.3 was installed); code --install-extension edgemodders.edgemat from the Marketplace also answered “v0.3.4 was successfully installed” in a real VS Code profile, whose window could not open. Step 2, the Extensions view lists EDGEmat 0.3.4. Step 3, Desk, Game Materials (“EDGEmat reads the game through REDbridge, which was not found…”, as expected without REDcode), Find and New Material open with no error. The owner’s run in a normal VS Code is still open.
MCP server
Run 2026-10-16 (M1 tools) and 2026-10-17 (mat_colors, mat_describe, mat_find): pass. Register the server (dev setup, section 4), start a new Claude Code session, and ask:
| Ask | Tool | Expected |
|---|---|---|
| “Is the EDGEmat library built?” | mat_library status |
The counts above and the build date |
| “Which leather surfaces are there?” | mat_templates leather |
7 surfaces |
| “Find logo microblends” | mat_microblends logos |
6 microblends |
| “What’s the closest dark red on leather bull?” | mat_colors leather_bull_01_30, near dark red |
The surface’s dark reds, closest first, each with its preset name, a plain name, RGB and distance; roughness, metal and bumps in words. Run 2026-10-17 over stdio: c2162c_69039f first, distance 0.032 |
| “Colors of leather” | mat_colors leather |
Several surfaces fit: the 7 candidates, asking for one path |
| “Which materials do the punk jeans use?” | mat_find item punk jeans |
The item Items.Pants_03_basic_01 (its crafting copy shares the look, so it is not asked about); feminine: l1_066_pwa_pants__rogue.mesh with ml_l1_066_black_punk.mlsetup and its mask set; masculine: l1_062_pma_pants__jeans.mesh with ml_l1_062_black_punk.mlsetup. Run 2026-10-17 over stdio |
| “Find s1_055” | mat_find query s1_055 |
The two sneaker meshes, _pma_ and _pwa_ |
Started as a Claude Code plugin with its options left empty (EDGEMAT_GAME_PATH, REDBRIDGE_EXE and EDGEMAT_CACHE set to “”) |
mat_find item sunny ammo |
Empty counts as unset: it falls back to the VS Code settings and walks the item (2 looks). Run 2026-10-17 over stdio |
| “Make the jacket’s biggest layer dark red and its next one glossy standard leather; just show me” | mat_edit with preview |
Run 2026-10-20 over stdio on the Arasaka jacket’s setup: layer 0 dark red (c2162c_69039f, distance 0.032), layer 2 leather standard clean, glossy to shiny, its color and bumps reset to the surface’s defaults (said in notes); nothing written. “leather” alone is refused with the 7 surfaces it fits |
| “… and save it into this project” | mat_edit with project |
Run 2026-10-20 over stdio into a scratch project: the new setup ..._mcp_project.mlsetup and the three meshes that use it (t2_078_ma, _mb, _mm), with the materials pointed at it |
| “Make me a brown leather material” (no key set) | mat_generate |
Refused in words: set GEMINI_API_KEY or OPENAI_API_KEY in the server’s environment (Connect an Assistant can include the key). Run 2026-10-20 over stdio; again 2026-11-11 with no key in the environment, no network call |
| “Make a material from this image and put it on the Comfy rocker slim-fits, both bodies” | mat_from_image with targets |
Run 2026-10-20 over stdio into a scratch project, repeat 6: the plain material and textures in edgemat\materials\rust_plate\, both bodies’ meshes with leather on rust_plate_x6_..._n01.mi (repeat in the texture, the garment’s normal map kept), the image and its record in source\raw |
| “Put that material on the Light Azure look too” | mat_apply |
Run 2026-10-20 over stdio: the masculine mesh’s flames_blue_pink on rust_plate.mi; an unknown material name is refused with the mesh’s names |
| “Describe the sneakers’ red_yellow_graphic setup” | mat_describe with the game path |
20 layers, 19 shown, the converse mask set and the songbird one as another choice, a color map file, each layer in plain words with its share. Run 2026-10-17 over stdio: layer 7 rubber bumper damaged, black, 11.3% |
M0: the spec against the game
Spec checks against the game
Checklist items 1 to 10 in the behavior spec, each with its date and result. To redo one, read the files it names through redcode-mcp (cr2w_read, texture_to_png, archive_search; setup in dev setup, section 3). The test garments are in the spec’s test set.
Before any in-game test
| Need | Why |
|---|---|
| Material Texture Override (Nexus mod 25246, version 0.2), deployed | A replaced game .mlsetup has no effect in the game without it. This cost a day in M0 |
The test archive deployed through EDGEdeck (called REDdeck until 2026-10-17), and listed in archive\pc\mod\modlist.txt |
The game reads modlist.txt; earlier archives win |
| Only one test archive deployed at a time | Rounds replace the same files |
| The sneakers on V | “Sunny Ammo synthetic high-tops” (Items.CasualShoes_01_basic_01), or any of basic_01 to _05, old_01, old_02. With Cyber Engine Tweaks: Game.AddToInventory("Items.CasualShoes_01_basic_01", 1) |
| A screenshot before and after | Kept outside the repo (game images are game content), for example in the test project |
The test project
E:\Modding\Cyberpunk 2077\Projects\EDGEmat_M0, a WolvenKit project. Nothing from it goes into this repo.
| Folder or file | What it is |
|---|---|
source\archive\...\s1_055_shoe__converse\textures\ |
The eight edited sneaker setups for round 1, written 2026-10-14 |
source\archive\...\t2_142_jacket__witcher\... |
A witcher jacket setup added 2026-10-15 by the owner, from tests for another EDGE mod. Not part of EDGEmat’s tests, but it is in the round 1 archive below |
packed\archive\pc\mod\EDGEmat_M0.archive |
Round 1, packed by WolvenKit on 2026-10-15 |
tests\round2\archive\pc\mod\EDGEmat_M0_round2_ratio.archive |
Round 2 |
*_stage folders |
The working copies each archive was packed from: round1_marked_stage (round 1), round1b_stage (every layer hidden but a green base), probe_stage (a file only our archive has, to prove it mounts), ratio_stage (round 2) |
WolvenKit’s Pack clears the packed folder. Keep any archive you want to reuse in tests\, never in packed.
In-game round 1: colors, masks, overrides
Archive: packed\archive\pc\mod\EDGEmat_M0.archive. Run 2026-10-15 with MTO, on the “Sunny Ammo synthetic high-tops”, feminine body.
| Test | Edit | Look at | Result |
|---|---|---|---|
| R1-A | Layer 4: a color name no surface has | The collar lining | Turned white. An unknown color renders white |
| R1-B | Layer 7: the surface’s reddest color | The sole and rubber band | Turned red. Mask i drives layer i |
| R1-C | Layer 9: all preset names None, and an overrides string |
The toe cap | Its black layer vanished, no green. All-None hides a layer; overrides is not a combined selection in this form |
| R1 | The whole round, packed from source\archive |
That anything changes | Loads, with MTO |
Without MTO, nothing changes on the shoe. That run, and how the cause was found, is in the spec’s results.
In-game round 2: ratio
Archive: tests\round2\archive\pc\mod\EDGEmat_M0_round2_ratio.archive. Run 2026-10-15 with MTO, same shoe.
| Edit | Look at | Result |
|---|---|---|
ratio = 4 on the unedited setups |
The printed graphic on the side panel (a microblend on layer 10) | It showed a different part of its image: the hooded skull’s face where its halo rays had been. Masks, sole, toe cap and stripes unchanged. ratio changes how the microblend maps onto the item |