Skip to content
CodaLilitariPublic
forked from davidagnome/SED

About

C++/Qt SED rewrite (smlu/SED develop) with CodaLilitari SED-MotS features ported natively

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

RED application icon

RED — Rebel Editor

Build, texture, light, script and package Sith-engine levels.
Work in the editor, automate through CLI and MCP, and test the resulting package in the game.

Download · Designer guide · Agent workflow · Editor comparisons · Product roadmap · Changelog · Credits

RED is a free, open-source level editor for Jedi Knight: Dark Forces II, Mysteries of the Sith and Indiana Jones and the Infernal Machine, with experimental DroidWorks support. It combines sector and UV editing, asset creation, COG checking and simulation, campaign packaging, and target-specific playtesting in one workspace. It can also convert supported Jedi Outcast and Jedi Academy scenes into JK/MotS content.

The Qt editor, red-agent command-line tools and red-mcp server share a portable level model and core editing operations. RED builds on Crt Vavros (smlu) and contributors' C++/Qt rewrite of SED, itself descended from JED. The comparison below distinguishes that foundation from RED's additions.

Download and start

RED 0.10.0 includes the editor, red-agent and red-mcp. Extract the whole archive before starting the editor.

Platform Download Start
Windows 10/11, x64 Windows ZIP red-editor.exe
Linux x86_64, glibc 2.39+ Linux archive ./red-editor
macOS 13.3+, Apple silicon Build from source (CMake + Qt 6) RED.app / ./build/src/app/red-editor

Use OpenGL 3.3 graphics and your own game assets. On first run, open a level or create a project, then select the game installation or resource archives. RED can import an existing sed.ini.

SHA-256 checksums · First project · Release notes and platform checks

What RED does

Capabilities are organized by production task. Editor, CLI/MCP and external helpers have different entry points; the linked guides describe their exact scope.

Task Tools and workflow Start here
Build and repair geometry Cleave, extrude, join, merge, carve, hollow, bevel and adjoin sectors; 3D Bishop-frame spline corridors, smooth-ramp stairs, domes, prisms, Go Rotate lathes, transsectoral shells, CSG brushes, Quickhull rooms, arrays and .redpreset wall-mounted assemblies; >24-corner auto-split, wall-patch simplification, memory-restoring unadjoin and sealed-seam conformance. Designer guide · Lumen workflow
Work quickly in the viewport JED/NJED and quad 4-pane layouts, searchable commands and keymap, contextual 3D grid alignment along walls/surfaces/edges, 3D COG wiring X-ray overlay, named selections and viewpoints, adjoin-hop isolation, numerical repeat, layers, snapping and transform gizmos. Guide · Saved cameras
Texture surfaces Docked UV editor with multi-island transforms, Smart UV Project, Follow Active Quads, edge-pinned slope/pipe UV alignment, multi-hop BFS chain stitching, congruent Copy_SF UV transfer, pack and fit; scoped batch UV operations. Guide · Workbench
Light the level Compatibility bake with Light Baker sun/multiply conventions, emission, sky, angle shading and water absorption; manual ray bake with up to four diffuse bounces, directional spotlights, per-corner lighting adjustments and optional editor GPU compute; adaptive Gouraud light-loss cuts and FULLYLIT surface bounce; MotS 4N RGB/ARCH tools and multi-state crossfade lighting COGs; world-space raytraced 3DO vertex AO and bounce. Lighting · Model lighting
Create materials, skies and particles Indexed, keyed-cutout and RGB565/ARGB1555 MATs, CMP mismatch audit and lossless 16-bit promotion, .redmat.json recipes and batch CMP remapping; zero-z-fight surface decal/brush stamps and multi-layer terrain splat atlases; 0x200/0x400 sky projection and 256x256 panorama resampling; .par particle cloud authoring; China-ink floorplan and 16-bit heightmap PNG export; binary glTF 2.0 (.glb) scene export. Materials · Lighting
Prepare models and animation OBJ/GLB-to-3DO import, sector-plane 3DO clipping (model-clip-sectors), static 3DO SAH batch merging, 0.1..16x deep Thing resize families, 3-LOD primitives, crack-free 3DO cleave/extrude/dissolve/mirror and ForceRemap UV projection; articulated .key joint-seam filler plugs, stance reanchoring and >64-HNode companion splitting; Parsec reach/radius checks, KEY timeline editing and playback. Model import · Hierarchy and KEYs
Edit native 3DO assets Model Studio edits existing UV rows or scales and translates a whole mesh by source LOD and ordinal, and accepts equal-RGB 2.1 RGBA vertex rows. Inspect source UV corners over a captured MAT/CMP swatch, play the unsaved model under a KEY, use local Undo/Redo and save a reviewed new variant. Model Studio · CLI/MCP authoring
Write and check COGs Docked editor, retail verb autocomplete and Datamaster hover signatures, typed resource pickers, split-safe logical COG bindings and lowering, spatial COG wiring reverse lookup, and a whole-level placed COG link audit; JK/MotS compiler with target grammar, label-shadow/pulse lints and table-limit checks; scoped CogRuntime script simulation and trace import. Compiler · Runtime
Build gameplay, water and audio systems Door, lift, switch, objective, skip-safe dialogue/timeline cutscene, actor patrol (PathFinder), Goal! .uni, Voronoi destructible wall, breakable grate, conveyor, wind tunnel, hazard and teleporter assistants; hydrostatic/spillway water-fill solver and per-sector tangent flowing water; Doppler and SECF_Underwater spatial 3D sound emitters and sound-coverage auditing. Assistants · COG library
Manage a campaign and its assets Project Cockpit, portable profiles, episode progression, ordered mounts, mounted GOB browser with inline WAV playback, root-to-leaf template inheritance provenance, dependency inspection, typed previews and reviewed resource-family insertion; SPR/SND/UNI/PAR authoring. Projects and families
Convert JO/JA and Quake scenes Raven RBSP and Quake III/Live BSP to JK GOB/MotS GOO; model scenes or native-sector/portal geometry; lightmap-variation triangle refinement and paired JK/MotS colored lightmap atlases; explicit material mappings and stock footstep classes; collision/PVS inspection, clip choices, attribute-aware optimization and reviewed reimport. Conversion guide · Quake lightmaps
Validate, audit craft and package Geometry, retail 24-corner, opaque-adjoin, runtime-flag, EWOK Use-reach, sky-flag, 640-Thing runtime headroom, sithAI sight/ballistic-jump/Snell-water ray and walkway-clearance checks; quantitative Anti-1997 craft-audit; dependency-aware archive/package creation. Validation · Lumen craft · Packaging
Test the exact result Save JKL & Test and Play From Camera Here (Ctrl+G); named-scenario Test from the open project; captured package/resource identities and engine receipts; external route-performance, two-peer and paired-edition checks. Game testing · Capture helpers
Inspect static appearance CLI/MCP snapshots and overviews with asymmetric-F UV diagnostics; default RGB preview (including stored 3DO vertex light) and an opt-in JK indexed 8-bit world profile using original MAT indices, sector CMP light tables and resource-hash receipts. Snapshot workflow · Indexed profile
Automate and review changes 132 schema-described patch operations, 128 red-agent CLI commands and 126 red-mcp tools (100% CLI↔MCP parity); compaction-immune structural level diffs, semantic previews, reviewed plan/apply and create-only outputs; one live native material-edit review with Undo and draft preservation. Agent workflow · Agent parity · Semantic review
Recover work and reuse tools Native workspace, Undo/Redo and autosave recovery; journaled generated gameplay/campaign files; native IJED-compatible plug-ins and Windows architecture bridge; installable agent skills and a JK/MotS knowledge library. Native format · Skills · Research

General level patches use the reviewed inspect → plan → apply workflow; specialized creation commands have their own contracts. Agent coverage is broad, with specific remaining gaps. The live Review Agent Edit dialog currently accepts a surface-material assignment, not arbitrary agent changes to an open document.

Lilivane authored the initial Bespin and Sith Council conversion tools. Their production lessons helped shape RED's JO/JA workflow. The conversion credits record the subsequent map authoring, optimization and integration contributions. The conversion reliability guide records the later Academy, Helm's Deep and Nar Shaddaa repairs, the reusable checks, and the native game evidence still needed before release.

RED and SED's develop branch

The relevant upstream baseline is C++/Qt SED 0.4.0 on develop, inspected at b822559. The latest published Pascal SED 0.3.0 is a different implementation. Most of RED's core editing interface comes from the C++ rewrite.

Area Already in SED develop Added or extended in RED
Geometry and UVs Sector construction, OBJ/3DO sector interchange, shaped Multi-cut, docked multi-island UV editing and Smart UV tools. Procedural recipes, seam conformance, restored classic commands, reviewed repairs and typed COG reference mapping for supported merges.
Lighting Baked vertex lights, live Thing/headlight preview and MotS architectural lighting. Light Baker conventions, emission/sky/bounce profiles, ray transport, saved recipes and owned Shadow Cut families.
Scripts and gameplay COG editing, completion/diagnostics, templates and Thing frame paths. JK/MotS compiler, scoped simulator, gameplay assistants, COG library and assistant trace review.
Assets and animation Resource pickers, SPR/SND/UNI editors, audio preview and KEY reading. MAT/CMP authoring, OBJ/GLB model import, Model Studio with visual UV inspection and reviewed CLI/MCP authoring for native 3DO UVs and mesh transforms, hierarchy/KEY authoring and playback, LOD comparison and export-loss reporting.
Projects and resources Native workspace, Undo/recovery, episode editor and mounted GOB/GOO resources. Portable campaign profiles, resource families, reviewed dependency packaging and recoverable generated-file publication.
Testing and automation Consistency checker and editor Game Preview. Actual-engine launch/capture workflows, named-scenario receipts, CLI/MCP authoring and semantic review.
Legacy plug-ins The C++ port's documented gaps include the old DLL host. Pascal SED already had a plug-in host. IJED-compatible hosting and a Windows architecture bridge; ISED-only plug-ins remain unsupported.

Detailed comparison and upstream sources

Other level editors

These are different workflows within the Sith ecosystem. The comparison credits their documented strengths; RED does not claim to have invented packaging, gameplay helpers, scripting, or engine testing.

Editor Existing strength How RED differs
JED Established JK/MotS editing, plug-ins, OLE automation, episode/package tools and Save JKL & Test. Adds the C++/Qt workspace, integrated asset tools, structured CLI/MCP review and package-bound test evidence.
ZED JED-derived editing and distributed fixes. RED develops the broader editor/asset/agent workflow; this comparison does not assume every ZED feature was reproduced.
NJED JED familiarity with mouse-look/WASD navigation and MAT thumbnail browsing. RED adds project/resource provenance, content authoring and reviewed automation; it provides a JED/NJED workspace preset.
JKEdit Textured construction, automatic doors/lifts, Test Level and multi-level episode tools. RED adds its shared editor/agent core and reviewed resource/package workflow. Native JKEdit project migration is unverified.
NED / Smith NED's JED-derived editing; Smith's JED/ZED camera synchronization, engine timing and COG/physics diagnostics. RED binds source and package revisions to named target-engine scenarios. Smith observations are not retail-game acceptance.
GeoSith Editing inside OpenJKDF2, host-approved multiplayer coediting, spline/bevel/water/decal/preset/gameplay builders and bounded direct 3DO mesh authoring. RED provides shared-core, Qt6 and CLI/MCP counterparts for spline corridors, bevels, enclosed beams/stairs, flood-solved water fill, deep Thing scaling, surface decal/terrain splat baking, gameplay/destructible assistants, .redpreset assemblies and 3DO topology/UV ops. Live in-engine F8 coediting remains a distinct GeoSith workflow; integration is outside RED's roadmap.
Holocron Its JK/MotS manual documents camera-position playtesting, adaptive Gouraud light-loss cuts, contextual grid/edge UV alignment and CMP mismatch checks. RED provides adaptive light-loss cuts and FULLYLIT bounce, contextual 3D grid/edge UV alignment, memory-restoring unadjoin, CMP mismatch/16-bit MAT promotion, 3D COG wiring links and Play From Camera Here (Ctrl+G) alongside reviewed engine runs. Workflow comparison

The full comparison gives sources and scope for every row, covers historical LEIA/ModelX, and separates complementary Urgon, Blender-Sith and specialist tools. It also compares RED's target workflow with TrenchBroom, Radiant, DarkRadiant, Hammer, Unreal, Unity and Godot: those tools serve other engines; RED directly interprets Sith sectors, resources, COGs and episode packages. There is no measured claim that RED is faster than every alternative.

Games and interchange

Target Level workflow Scope
Jedi Knight JKL, JED and native RED .sed Editing, assets, COG tools and packaging. Named RED-authored/conversion fixtures have retail JK 1.01 observations in both renderers.
Mysteries of the Sith JKL, JED and native RED .sed Editing and packaging with RGB source lights and ARCH tools; target-specific qualification remains separate from JK.
Indiana Jones and the Infernal Machine NDY and native RED .sed; JED import IJIM geometry, fog, sound, sector lighting and thrust. No JED export or JK/MotS compiler guarantee for IJIM scripts.
DroidWorks Experimental classic JKL and native RED .sed Newly authored maps can export. Re-export of an imported DroidWorks JKL is refused until its resource tables can be preserved safely.

ASC and Dark Forces LEV provide additional import paths, not export support for those games. JO/JA conversion is a supported-scene import into JK/MotS, not a Raven BSP round trip or automatic mission-logic port. Format and acceptance details

Source and release status

Download published builds and their qualification notes from RED releases. Releases before 0.8.2, earlier branches and pull requests are kept in RED-archive, RED's repository before it joined SED's fork network.

Highlights in 0.10.0 include:

  • Lumen Stage AA architecture, 3DO raytraced AO and Anti-1997 Craft Critic: zero-extra-sector parametric masonry relief (buildArchitecturalRelief), horizontal-first carveWallFixture, mirrorFloor, remapAxis, addPrism, stitchConnected, sector-plane 3DO clipping (model-clip-sectors), world-space BVH raytraced 3DO vertex AO and bounce (model-lighting-apply), asymmetric-F UV diagnostic snapshots, and the quantitative 23-metric craft-audit.
  • Goblin 1.0 & Holocron 0.2.1-dev179 workflows: articulated 3DO hierarchy vertex-reach vs header RADIUS checks and repair, retail >24-vertex convex auto-split, opaque-adjoin & runtime-flag protection, contextual 3D grid alignment, edge-pinned slope/pipe UV alignment, memory-restoring vertex-splitting Unadjoin, carve-polygon & hollow-block, adaptive Gouraud light-loss cuts with FULLYLIT surface bounce, 3D X-ray COG Wiring Links, root-to-leaf template provenance, indexed MAT CMP mismatch audit & lossless 16-bit promotion, and China-ink floorplan / 16-bit heightmap PNG export.
  • GeoSith standalone counterparts: 3D Bishop-frame spline corridors & bent prefabs, dihedral edge & tapered portal collar bevels, enclosed 3D beam cleaving & non-snagging smooth-ramp/spiral stairs, flood-solved hydrostatic & spillway water fill, 3-LOD 3DO primitives & crack-free topology ops, coplanar wall-patch simplification, 0.1..16x deep Thing resize variants, zero-z-fighting RGB565 surface decal/brush & multi-layer terrain splat bakers, six CogRuntime-verified gameplay assistants (including Voronoi destructible walls), and SHA-256-verified .redpreset wall-mounted assemblies.
  • Community, legacy plug-in & AI-log workflows: Surface Tools shell/inset, Point Extruder, Transsectoral shells & Go Rotate lathes; multi-hop BFS UV chain stitching, congruent Copy_SF UV transfer & ForceRemap 3DO UV projection; Poisson-disk scatter-things, Move2SF normal alignment, radial/grid sector arrays & Quickhull sector-from-points; SAH static 3DO merging & retail 640-Thing headroom auditing; MotS 4N dynamic RGB prep & multi-state crossfade lighting COGs; Goal!, PathFinder & CutMaster2 mission assistants; EWOK/portal/sky/COG hygiene; posed .key joint-seam plugs & >64-HNode companion splitting; 0x200/0x400 sky panorama resampling; sithAI sight, ballistic jump & Snell water rays; .par particle clouds & Doppler/underwater spatial audio; compaction-immune structural level diff; and binary glTF 2.0 (.glb) level scene export.
  • Split-safe logical COG bindings, .sed lighting/workspace layers, Quake III/Live lightmap episodes & full parity: quad 4-pane viewport, GOB browser with inline WAV preview, Play From Camera Here (Ctrl+G), and 132 patch operations · 128 red-agent CLI commands · 126 red-mcp tools (100% CLI↔MCP parity).

Release chronology belongs in the changelog. The acceptance matrix and each release's notes distinguish implementation, structural tests, editor previews and actual-game observations.

Boundaries that affect a project

  • Actual game behavior needs an actual game test. Default snapshots approximate the 16-bit renderer. The indexed JK world profile samples original MAT indices through sector CMP tables. Runtime dynamics, visibility and target-specific behavior still need game qualification. Ordinary-control Project Test currently uses Linux OpenJKDF2/OpenGL; retail launch and other capture profiles have separate platform limits.
  • The simulator has a defined scope. It models messages, timers and selected world behavior, not complete physics, AI, weapons or multiplayer. The GUI trace viewer is assistant-scoped.
  • Model Studio edits existing source rows. Its wireframe shows mesh geometry and sampled KEY poses. Inspect UVs in texture pixels over one unlit cel-zero/mip-zero material tile. Vertex picking, individual deformation, rotation, radius or topology changes and model draft recovery remain roadmap items. Verify textured appearance, animation and collision in the intended game. Existing hierarchy/KEY tools and Blender-side fitting helpers remain available.
  • Automation preserves unsupported state by refusing unsafe edits. Some scripted topology operations and native-file edits remain restricted. Campaign packaging uses exported sibling levels; save COG/resource drafts before testing. Generated reusable asset files survive document Undo.
  • Plug-ins are native, unsandboxed code. A helper can isolate a crash; it does not sandbox a plug-in. Platform and interface compatibility are described in the guide.

Build and contribute

Use CMake 3.25+, Ninja, a C++20 compiler (C++23/26 when available), Qt 6 and OpenGL 3.3. From an x64 Visual Studio developer shell with QTDIR pointing to one Qt MSVC kit:

$env:QTDIR = "<Qt MSVC kit directory>"
cmake --preset msvc-ninja
cmake --build --preset msvc-ninja-release --parallel 1
ctest --preset msvc-ninja-release

Linux/macOS and core-only builds · Architecture · Contribution guide · Agent engineering rules · Report an issue. Report RED issues and open RED pull requests here, not on upstream SED.

RED credits Crt Vavros (smlu), Alexei Novikov and the Code Alliance, upstream contributors, Coda Lilitari, Lilitari, Red, Lilivane, Vespera, Muse Code, Kimi Code, LadyEebs, Wren, and the reverse-engineering and mapping communities. See NOTICE-RED.md for the full attribution record.

RED is distributed under the GNU General Public License version 3, without warranty. License · Third-party notices. It is not affiliated with Lucasfilm, LucasArts, Disney or the upstream authors.

About

C++/Qt SED rewrite (smlu/SED develop) with CodaLilitari SED-MotS features ported natively

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages