OpenThedas
OpenThedas is a Rust-based replacement engine for Dragon Age: Origins and Dragon Age II that runs on original game data.
- Type: PC port
- Game: Dragon Age: Origins
- Runs on Windows
- By daeken
- Latest release lightmapper-preview-0.1.0, 2026-11-18
- Source: https://github.com/daeken/OpenThedas
README
OpenThedas
An open source replacement engine for Dragon Age: Origins (and later Dragon Age II), written in Rust, that runs on the original game data. Parity with the original comes first; modernization (mod management, post-processing, new rendering paths) comes after and must never require breaking parity.
You need your own copy of the game. Nothing from the original game is, or will ever be, in this repository.
North star
Provide a facility for faithfully playing the Dragon Age games on modern platforms with your own game data, while giving modders the tools they need to do their amazing work. Anything under that umbrella is in scope; anything outside it isn't.
Getting it
- Test builds (Windows x64, Windows on ARM, macOS on Apple silicon) are shared with the test
group in the project's Discord. Unzip one anywhere, then start
Play OpenThedas(Windows) or runthedas-appwith--installpointing at your game folder (see Playing). A test build updates itself: when a fix for something you reported is published, the game offers the new build at start (see Issue reports). - From source: install Rust, then
cargo build --release -p thedas-appand runtarget/release/thedas-app --install "$GAME".
Your saves, settings, reports and the journal live in your data folder: Documents\OpenThedas
on Windows, ~/.openthedas elsewhere.
Status
Last updated 2026-11-15 08:05 UTC, main 7f91dda
For everything that is wrong or missing, in detail and split into items that can be picked up in parallel, see docs/KNOWN_GAPS.md.
Legend: ✅ done, 🟡 partial, ⬜ not started. QA notes come from QA runs 8–20, with fixes merged since then noted.
- ✅ Boot flow: EA logo and intro movies play with their sound (decoded by our own Bink decoder,
thedas-video), then the start menu. - ✅ Start menu: New Game, Load, Options and Quit are wired; QA graded it near pixel-identical to the original.
- 🟡 Character creation: full flow with the original's stage, blended camera presets and portrait.
- Appearance menu: preset, hair, beard, the exe's per-race eye and nose shapes, makeup and complexion. Also colour sliders, difficulty and name.
- Partial: the remaining face-shape sliders and hair-colour details.
- The Portrait sliders frame the portrait, and the camera reaches the face along the exe's traced blend (#689, #885). Dragging the hero turns it, and on the face preset tilts the camera, as the exe does; the turn no longer carries over into the inventory paperdoll (#889, #909).
- The face lists and head presets are cached, which took character creation from about 5 fps to full speed (#903).
- QA flagged attribute arrows that never show a disabled state.
- 🟡 Conversations and cutscenes:
- Done:
- the reply list, subtitles and voice-over, with dialog tags (
<emp>and the rest) from the Dialog Tags table; - movie tracks and cutscene camera tracks;
- cutscenes named by conversation lines (the Human Noble, Dalish and Dwarf Noble intros);
- the original's default speaker framing for unstaged lines;
- cutscene and conversation actors posed and animated by their tracks, and conversation lines leaving creatures on their stage marks in the sim, as the exe does (Oskias sits; the Dalish hunters face the hero);
- conversations start as the exe starts them: dialog game mode for the talk, and talk commands go through the dialogue event to the target's script. A first line that plays before its screen is up no longer stalls the conversation;
- cutscenes and conversation lines draw the depth of field and the fades their own tracks ask for, and every conversation gets the original's second depth of field from the game's tables;
- speaker and listener turn head and eyes to each other, and cutscene actors follow their head-tracking tracks;
- a cutscene animation's baked root motion moves the actor and stays after the clip (a character who turns stays turned), actors hold their base pose (seated characters sit), and cutscene props, actor visibility and weapon draws are played;
- cutscene cameras shake as their shake tracks ask;
- line cutscene cameras are placed with their cutscene's stage, and ActionJumpToCamera puts the camera on stage cameras: the City Elf Vaughan scene plays as staged shots;
- lip sync: the speaker's face moves with the line's FaceFX animation, evaluated as the exe evaluates the face graph, on conversation lines, cutscene lines and lines said in passing, timed by the voice's playback clock (#693, #725, #729). The bone blend and the rig lookup are provisional (
AUD-052,CAM-013), and narration mixed into a cutscene's sound is not animated; - walk cycles in cutscenes keep looping while their position track moves the actor, so passers-by no longer slide with stiff legs (#690), and Beraht's walk-in in the Dwarf Commoner opening follows its baked path instead of turning sideways (#871);
- party members a cutscene does not cast are hidden while it plays, as the exe does (the hero no longer stands in the Dwarf Commoner brazier; #728, #731, confirmed by trace in #894);
- a conversation's voice waits for the loading screen to come down (#900), and a tutorial that starts during a conversation no longer pauses the game (#682);
- ambient conversations are cancelled when their area unloads, as the exe does, so one started at Flemeth's hut no longer opens its replies in Lothering (#897).
- the reply list, subtitles and voice-over, with dialog tags (
- Open:
- cameras and actors linked with LinkToActor are placed (provisional: links use the target's root frame);
- a cutscene's last view is held only for the conversation line that queued it (provisional), which frames the City Elf opening as the original does and frees the next reply's shot;
- additive animation clips (the
.aniadditive flag, 196 of the 4,520 clips, most of them conversation gestures) are laid over the pose beneath them as the exe does, instead of replacing it; this fixes arms pointing straight up during gestures. Their weight is provisional (RND-064), and two other overlay kinds still overwrite (RND-071).
- Done:
- 🟡 Exploration and camera:
- Walking, click-to-pick, doors and companions following. Followers come along on area changes, and they stand in the exe's formation slots and follow by its rules.
- The area map shows map notes and only perceived enemies.
- The follow camera uses the exe's 0.25 m sphere sweep, pull-in and ease-out, and its starting shot (3 m behind, at the leader's height). With tutorials on, a new game's first control is the tactical overhead view, as in the original: the first training step zooms fully out (
SetZoomLevel), and zooming back in by wheel, Page Down or the pad ends the step. Page Up and Page Down zoom while held. The field of view narrows from 60° to 42.5° over the far half of the zoom, as the exe sets it every frame, so the tactical view frames like the original's. - Doors are posed by their state (open, Open_2, swinging, fallen), and their camera and click shapes follow the pose.
- With a pad, walking aims at a point ahead and the route goes round obstacles; it no longer stops dead at the first one.
- Creatures the camera is inside fade out as the exe does (0.25 m sphere against the models' creature-group physics shapes, head included; opacity 0.05; not in dialog or cutscenes). Provisional: the shapes are placed by rest pose, not the animated skeleton.
- With a pad, A walks through open doors instead of using them.
- The follow camera resets behind the leader after a load and at the end of a cutscene, as the exe does, and keeps its zoom across loads.
- Loading screens: a new area, a save load and a new game build on a worker thread while the window keeps presenting the original's loading movie (load_town for a save load, a new game or a change of area list, with the script's hint; load_light for a change within one area list). The screen goes up before the old area goes, as in the exe: a scripted transition is held one update (33 ms, provisional length), the world holds still, its sounds duck and the camera resets as the world comes up. load_town plays its outro in about 1.6 s at 60 fps. A world map journey keeps the map up as its loading screen. Headless captures load within the frame as before;
THEDAS_ASYNC_LOADS=1uses the worker there too (frames wait for the load),THEDAS_HIDDEN_WINDOW=1runs the window unseen for driving it with--control(a test hook), andTHEDAS_NO_LOAD_MOVIE=1leaves the movie out. - The field of view narrows from 60° to 42.5° toward the far, tactical end of zoom, as the exe does. Page Up and Page Down zoom.
- Creatures glance at the player's character while exploring.
- Creatures placed by an area stand on its floor, as the exe projects them (this was the "see-through guard" in the Dust Town opening).
- Movement:
- routes are walked in straight legs instead of 45° grid steps, so the hero no longer swings back and forth while walking with the stick, keys or a click (#907). The exe's own path follower is not traced yet, so this is provisional;
- starts and stops blend as the exe's movement controller does (#908), turning starts and turns in place play the exe's turn clips (#914), and the running cycle walks, leans and paces by the traced rules (#916);
- walking into a closed door with the stick or keys opens it (#654); a walk to a creature ends against it or at its range (#727, #883); a failed route across a large height difference fails as in the exe instead of walking straight (#915).
- Placement uses the exe's safe-location search:
GetSafeLocation(#694), jumps to objects and locations (#713, #874),SetPositionwith its safe flag (#886), and party arrivals in a new area, where followers take the compact formation slots (#878). The search tests standable ground against the pathing grid, which is provisional. - Ambient creatures are started by the engine as in the exe, so they sit, lean, work and walk; the Dwarf Commoner's mother now sits in her chair (#902).
- 🟡 Combat and simulation:
- NWScript VM with a large share of the engine functions; melee and ability timing; threat; AI-driven party; tactics; loot.
- Containers hold their template's items and open on USE with the original loot panel (Take All, Close).
- Perception and combat mode work as the exe does them. Sight lines are cast through the level's collision (
.phy) and placeables, and a closed door blocks sight with its own collision. SetCanLevelUp follows unspent points. - Weapons are sheathed out of combat and drawn in combat; draw and sheathe animation timing is not traced.
- Melee approach works in the live app (#269), and the Proving duel can be finished with the pad.
- Melee attackers take slots on the target's 40-slot melee ring at the bodies' reach, as the exe places them, and step into place before swinging. The default body radius is the exe's 0.6 m.
- Per-hand attack results are exposed read-only for the presentation (swing and impact sounds).
- All six origins play past their openings in the simulation (QA).
- Corpses decay and fade as the exe does them; a body bag takes the corpse's place and draws its corpse model.
- Live creatures block each other as the exe's capsules do (slide, no push, no re-path; the dead do not block), and a blocked walker keeps its own speed. QA graded it in the live app.
- Ability functions ignore unknown ability ids as the exe does, and saves drop invalid ones on load.
- Training tutorials (the original's step-by-step first-play lessons) run from the scripts: SetTrainingMode, BeginTrainingStep, the completed-steps gate and the events that end each step. Every lesson can be finished, with mouse and keyboard or on the pad alone: each step's ending event has a sender and is delivered to the tutorial script at once, as the exe does, including while a screen or a tutorial popup holds the game. As in the exe, saving is refused while a lesson is active, and a load clears it.
- The engine raises the mana-or-stamina-depleted, area-load-from-save and module pre-save events. Opening a screen tells the module. The damaged event and eight others were confirmed to come from scripts only.
- Followers walking with the leader take their formation slots.
- Visual effects applied at places (the Proving crowd) are exposed to rendering and drawn.
- A finishing move lands the kill the rules stored for it, so bosses (whose death is always a finishing move) can die; before this the Dalish origin's bear could not be killed. Provisional: the blow lands when the command ends, not at the animation's hit event.
- A walker turned aside by a body no longer walks back to the waypoint it stood on (this stalled the Tower's third floor).
DoAutoSavewrites the autosave slot (#680). Item restrictions run throughSetCanUseItemand the restriction scripts, so class-only and companion-only gear is no longer usable by anyone (#697). Fatigue works through the scripts (#677), and worn items' stats are scaled by material (#685).- Many single engine functions were traced and matched since the last update (health and death queries, type conversions, inventory queries, heartbeats, placeable health and destruction; the
SCR-items in gaps/scripting.md list what remains). - Not every script engine function is implemented.
- 🟡 Party, inventory, journal and other UI screens:
- Wired to the simulation: inventory (with paperdoll and item examine), character record, level-up, store, tactics, journal and codex, options, area map, HUD notifications and the screen tab bar.
- Enemy health bars and the target's name show in fights.
- Tutorial popups show with their key names. They wait under full-screen menus, and the game stays paused, as in the original, until every queued popup is dismissed (pad A or the panel's Next/Close). The "Paused" banner shows meanwhile, and with a pad the popup title adds "(A: Next)" or "(A: Close)".
- Fixed since QA run 8: recipes are learned, stacks merge, inventory rows are no longer dimmed, and the Level Up button follows unspent points.
- New saves are named New Save, the save-name dialog takes typed names, and the save shows the class icon.
- With a pad: the D-pad types letters into a focused text field, and focus reaches empty equipment slots.
- Items with no icon of their own show their base type's.
- Save screens show the hero's name, level and class. The character record lists Heroic Accomplishments.
- Script message boxes show, answer the script, and pass typed text along (the dog-naming prompt works).
- The auto-pause and show-tutorials options reach the simulation.
- Level Up shows the member's portrait. In combat each party portrait shows what that member is doing, and hovering a portrait shows the class.
- Ability, talent and spell lists are built as the exe builds them. A new codex entry shows the large alert only at the plot priorities the exe uses.
- Store tabs filter both lists and buy-back lists what was traded (#655). Taking one item from a chest works, and Escape closes it (#662). The HUD's weapon set button and the / key switch weapon sets (#666).
- A tutorial hint's "View in Codex" button opens the journal on that entry (#899).
- Open: screens have not all been audited against the original.
- 🟡 Rendering:
- Working: areas, terrain, sky, fog, clouds, bloom, colour grading, dynamic sun shadows (Low to High detail) and the original shaders.
- Characters have hair, sampled with its mips and noise. Bare hands and arms take the head's skin tint.
- Characters and props pick their lights by the exe's rules (room reach, light class, influence).
- Lava draws with its own shaders. Level-wide layouts draw (horizons, water, tents), with probe cubemaps as the environment map. Missing material textures fall back to the parameter's default, not black.
- Per-object opacity, for the camera fade and corpse decay. Faded objects cast no shadow, as in the exe.
- Level terrain and static meshes take no ambient light nodes, as traced; this removed a green cast from daylight ground.
- Each area is graded with its own colour curve and brightness, contrast, hue and saturation from the area table, as the exe does. Daylight areas now match the original's brightness and warmth (QA: alienage and Commons).
- Looking down from high above the party cuts away ceilings marked for it in the models, with the exe's height threshold and 0.2 s fade.
- Anti-aliasing: multisampling as the original does it, chosen with the options menu's Anti-Aliasing slider, which lists the sample counts the device supports (#720, #734), with alpha-to-coverage for cut-outs (#736). An FXAA pass over the finished frame (#706) is also available. Sun shadow bounds are rounded to whole metres as the exe does, so shadows no longer slide as the camera moves (#904). The aiming reticle draws under the creatures (#701).
- Only per-frame shader constants are rewritten per draw, and first-use work is done at the end of a load, which took about a fifth off frame time and removed the stutter after arriving in an area.
- Open:
- Trees, bushes and grass are real geometry from a clean-room SpeedTree generator written from our own spec (
docs/speedtree/): trunks, branches, fronds, leaf cards and mesh leaves, with the game's distance rule for switching to billboards, batched per ground cell. Branches, fronds, leaf cards and mesh leaves draw with the game's own shaders, with its fades between distance levels (#427, #431, #432), and sway by the game's wind simulation fed from the level's wind file (#462, #463, #470). The far billboards are a stand-in that does not fade in, and which wind copy a tree takes is provisional (RND-075,RND-076). - Emitters in a cut-away model do not fade with it.
- Trees, bushes and grass are real geometry from a clean-room SpeedTree generator written from our own spec (
- The backend stays on wgpu, and its types are kept inside
thedas-render. - Every shader, the original's 610 and ours, is checked in tests against wgpu's translation for Direct3D 12, Vulkan and OpenGL. On a machine that offers only OpenGL (some virtual machines) the game runs there; an effect the backend refuses is logged once and left out. Untested on real OpenGL hardware.
- 🟡 Deferred renderer (optional, ours; not parity work): a second way to draw the same scenes, chosen with
--renderer faithful|deferred, the launcher's Renderer choice or F11 in game. The faithful path stays the default and the reference. Design and status: docs/deferred.md.- Level geometry, terrain, objects, characters, trees and most materials go into a shared G-buffer and are lit per pixel by every light in reach, with no three-light cap.
- Glowing particles (torches, braziers, spells) light the level (#724). Point lights cast shadows from up to sixteen lights (#739, #892), and the sun's cascades are shared with the faithful path (#742).
--lighting baked|hybrid|realtime(or the launcher's Deferred lighting choice) picks how the baked lightmaps are used: baked (default), hybrid (baked bounce with real-time shadows), or real-time (experimental, probes and SSAO in place of lightmaps) (#755, #905). A real-time one-bounce pass adds bounce light from dynamic lights, and in real-time mode from static lights and the sun (#911, #918).- Static1 materials keep their authored tint after deferred lighting (#890).
- 🟡 Audio:
- Merged:
- playback: FMOD event (
.fev) and bank (.fsb) playback, mixer, the exe's slider-to-dB volume mapping, event and sound-definition pitch, and per-play random pitch and volume, so repeated sounds vary; - music: menu and area music, SetMusicIntensity driving
music_state(kept in saves), with changes timed to the music's markers as the original does; - world: world reverb (area presets and reverb triggers as traced, lev
- playback: FMOD event (
- Merged: