Dark Sun - Shattered Lands Enhanced
Dark Sun - Shattered Lands Enhanced is a native PC port of Dark Sun: Shattered Lands that runs without DOSBox and plays exactly like the original.
- Type: PC port
- Game: Dark Sun: Shattered Lands
- Runs on Windows and Linux
- By Arkana Mechanika Studios
- Latest release v0.9.0, 2026-11-28
- Source: https://github.com/Arkana-Mechanika-Studios/dark-sun-shattered-lands-enhanced
README
Dark Sun Shattered Lands Enhanced
Dark Sun: Shattered Lands, SSI's 1993 role-playing game of Athas, a world burnt to sand and salt under a crimson sun, where sorcerer-kings rule the last cities, magic kills the land it draws on, every mind has a psionic power and slaves fight for their lives in the arena of Draj, rebuilt in C# to run natively on today's Windows, without DOSBox, and to play exactly like the original.
The game as it plays (docs/screenshots): the title, the sorcerer-king's decree before the arena, character creation, the arena of Draj before a bout, a walk in the desert and the inventory.
Around the game: the launcher, which asks for your game folder and sets the window, the sound and the switches before you play.
This is not a remake and not an emulator. The rules of the original program (the world and its scripts, combat, psionics and spells, the inventory, saving and loading) are rewritten in C# from the original program and checked against that program running, function by function and over whole recorded sessions. The screens, the music and the sound are the original's, drawn and played from your own copy of the game.
You need your own copy of Dark Sun: Shattered Lands (the DOS release, version 1.10, with DSUN.EXE,
GPLDATA.GFF, RESOURCE.GFF and SEGOBJEX.GFF in its folder). Nothing from the game is included here:
the program reads your installation and never changes it.
Getting started
A ready-built program. Each release's page offers DarkSunShatteredLandsEnhanced-<version>-win-x64.zip
(Windows) and DarkSunShatteredLandsEnhanced-<version>-linux-x64.tar.gz (Linux) with a .sha256 file each: unpack, run
DarkSun Launcher.exe (./DarkSun-Launcher on Linux), choose your game folder in the launcher and press Play. They need
no .NET installation. On Linux, ./install-desktop-entries adds the launcher to the desktop's application menu, and the
system's SDL 3 (libsdl3-0) is used if the package does not carry the library. The same packages are built as
artifacts by CI (.github/workflows/build.yml) and by python tools/package_release.py. DarkSun --version prints the
version.
Or build it from this repository:
- Install the .NET SDK named in
global.json(10.0). - Get SDL 3 (3.2 or later, zlib licence). On Windows put
SDL3.dll(fromSDL3-<version>-win32-x64.zipof https://github.com/libsdl-org/SDL/releases) next to the program, or intoolchain/sdl3/3.4.20/x86_64-w64-mingw32/bin/of this checkout, where the build copies it from. On Linux install your system's package (libsdl3-devon Debian 13, Ubuntu 25.04 and later) or build SDL 3 from its source release. - Start it:
dotnet run --project src/DarkSun.Host.Sdl -c Release
The first time, the launcher opens. Its settings card asks for your game folder (Change..., or paste a path
with Ctrl+V; it says which game files are missing, if any) and the window on the General page, the sound, the music
device and your MT-32 ROM folder on the Sound page, and the play-test switches on the Advanced page. Press Play (or Enter) to save your choices and start the
game, or Save and quit to keep them without playing. The card on the left shows what is new in this version, links
to the release notes and to the problem-report guide, and says what this project is. DarkSun.exe started
directly goes straight to the game once a game folder is known; DarkSun Launcher.exe (or --launcher) opens the launcher again. --game "C:/Games/Dark Sun" names the folder for one run
without the launcher.
It starts like the original: the opening, the title (Start Game, Create Characters, Load Saved Game, Exit to DOS), then the decree before the arena and the game.
Where things go. Nothing is ever written into the game folder.
| What | Where (Windows; on Linux ~/.local/share/DarkSunRewrite) |
|---|---|
saved games (SAVEnn.SAV, the original's own format) and the party file CHARSAVE.GFF | %LOCALAPPDATA%\DarkSunRewrite\saves (--saves FOLDER to choose another) |
| the settings file | settings.json beside the program (%LOCALAPPDATA%\DarkSunRewrite\settings.json when its folder is read-only) |
| the log of every run | %LOCALAPPDATA%\DarkSunRewrite\logs\playtest.log |
The load screen lists the SAVEnn.SAV files of the saves folder; games saved by the original can be copied
there to be played on.
Playing
The mouse plays the game, as in the original: the left button walks, talks, uses, takes and attacks; the right button changes what the left one does (walk, attack, look and use), and the pointer shows which. The game's own windows (the character sheet, the inventory, the options, the menus) take the mouse and their own keys, including the letter keys of their buttons.
Not every way into a screen of the original is wired yet, so in the world the program answers these keys (the last three rows are the original's own):
| Keys | What |
|---|---|
| I, V | the inventory; the character sheet (of the selected member) |
| 1–4 | select a party member (in the character screens: show that member) |
| M | the map of the region |
| C | centre the view on the selected member |
| arrow keys | scroll the view |
| Tab | the command bar, with the original's game menu and file menu (save, load, quit), options and map |
| F1, F2 | the original's save and load screens |
| Esc, F3, Alt+X | the original's quit menu: save and quit, quit, or cancel (the window's close button asks the same) |
And the program's own:
| Keys | What |
|---|---|
| Alt+Enter | full screen or a window (also in the launcher) |
| Enter, Esc, Ctrl+V | in the launcher: play; quit without saving; paste a game folder path |
The keyboard is read as the original's US keyboard, by the key's place, whatever your layout.
Reporting a problem
Something crashed, or differs from the original? Press Ctrl+F12 in the program: it writes one zip with the
version, the end of playtest.log, your settings and your current saved game into the reports folder next to
your saves, and tells you where it is. Nothing is sent. Open an issue (the bug report form asks what you did,
what happened and what the original does) and attach the zip; a screenshot of each side at the same moment helps with a difference. Never attach
files of the original game. How, and where the files are: docs/REPORTING.md.
Sound and music
The game's own sound rules decide what plays and when, as the original's sound code does, over two outputs:
- Sound effects: the game's digital samples, read from your
RESOURCE.GFF, played one at a time as on the original's Sound Blaster, through SDL at 44.1 kHz. - Music: the game's music, read from your game files, played one of three ways. Roland MT-32 plays the
music the game has for the MT-32 on an emulated MT-32 (Munt's mt32emu, the
libmt32emulibrary beside the program), set up and driven as the game's own MT-32 driver does; it needs your own MT-32 (or CM-32L) control and PCM ROM files in theMT32_ROMSfolder beside the program (itsREADME.txtsays how; no ROM comes with the program). Without them, General MIDI (the default on Windows) plays the game's General MIDI music through Windows' MIDI synthesizer (the "Microsoft GS Wavetable Synth", or the MIDI device you chose for Windows), and FM (the default on Linux) is the program's own emulation of the Yamaha OPL2 chip of the AdLib and Sound Blaster cards, playing the General MIDI music with the game's own FM timbres from yourSTDPATCH.AD; it works on every system.--music-device auto|mt32|midi|fm(ormusicDevicein the settings) chooses;autotakes the MT-32 whenever its ROMs are there. - When the music changes while another piece plays (a new region, for instance), the old piece fades out for five seconds and the game waits for it, as the original does.
--no-sound and --no-music (or the launcher's switches) silence either; --music-volume N (0 to 127) sets
the volume the game starts with, and the game's own options change it from there.
Settings
The launcher writes settings.json; every key can also be set on the command line, which wins for that run.
| Setting | What |
|---|---|
game | where your Dark Sun is |
fullscreen, scale | full screen (a borderless window at the desktop's size); the window's size, "fit" or 1 to 8 times 320x200 |
integerScaling, filter, aspectCorrect | whole-number enlargement only; nearest (hard pixels) or linear; the 4:3 shape of the original's monitors |
noIntro, quickSkip | skip the opening; let a key end the story scenes' long holds at once |
frameTicks, smooth | the pace of the world; smooth movement between the world's frames |
sound, music, musicVolume | the sound effects; the music; its starting volume |
musicDevice, mt32Roms | what plays the music (auto, mt32, midi, fm); where your MT-32 ROMs are, if not in MT32_ROMS |
Everything else, with the command-line forms and the switches for testing, is in docs/SETTINGS.md.
Status
Not playable end to end yet, and there is no release. As of 2026-11-27:
- Ported: all 1861 gameplay functions of the original are ported or replaced by the host (1556 ported, 305 replaced by the host's own services, 0 remaining).
- Checked against the original: 85.1% of the ported functions replay cases recorded from the original or are exercised by an equal whole-game replay (437 and 887 functions); 201 are tested from the code only and 31 have no test yet.
- Reached by whole-game replays: 33 of 33 regions, 250 of 250 scripts, 55 of 55 fights, 27 of 27 interface windows, 13 of 13 cinematics, 181 of 181 sounds and 31 of 31 pieces of music.
Every number is generated: docs/verification/completeness.json. What remains is reaching the rest of the game in recorded sessions and the problems those sessions find; please report anything that differs from the original.
Played by hand so far: the opening, the title, character creation, walking and the fights of the arena. Beyond the arena the game has been reached only by the recorded sessions counted above, so expect differences there.
What is left, part by part: docs/ROADMAP.md. The original's own bugs are part of the game and are kept; the ones found so far are listed in docs/ORIGINAL_BUGS.md.
License
Dark Sun Shattered Lands Enhanced is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation, either version 3 of the License, or (at
your option) any later version. See LICENSE.
This covers the project's own code only. Dark Sun: Shattered Lands (c) 1993 SSI / TSR. This is an unofficial
fan project, not affiliated with, endorsed or supported by the game's rights holders. You need your own copy;
nothing from the game is included. Third-party components keep their own licences (see
THIRD_PARTY_NOTICES.md).
Technical section
Building
Requirements: the .NET SDK of global.json, and SDL 3 to run the window (above).
dotnet build DarkSun.slnx -c Release
dotnet test DarkSun.slnx -c Release
Build output goes to build/ at the top of the checkout; the program is
build/bin/DarkSun.Host.Sdl/Release/net10.0/DarkSun.exe (DarkSun on Linux). A self-contained
program for Windows, which needs no .NET installation, is made with
python tools/package_release.py, which publishes it for Windows and Linux (profiles in
src/DarkSun.Host.Sdl/Properties/PublishProfiles), refuses to pack anything that holds a file or text of
the game, and writes the packages and their checksums to build/release-work.
CI (.github/workflows/build.yml) builds and tests in Release on Windows and Linux, without any game data.
How it is made faithful
- Every ported operation names the place of the original it comes from, by its coordinate in
DSUN.EXE(exe 0x2A1A6,DS:12E2), on the line above it, with what checks it (docs/TRACEABILITY.md).docs/source-map/map.csvlists every C# symbol with its coordinates, status and tests. - The original's own bugs are part of the game and are reproduced (
// BUG:, docs/ORIGINAL_BUGS.md); a difference made on purpose is markedDIVERGENCEin the code, a guessUNCERTAIN. - The original program runs as an oracle on the maintainers' machines. Its function calls are captured as
cases (inputs and results as numbers, offsets and hashes) and the C# replays them
(
oracle/, read byDarkSun.Replay.TestsandDarkSun.Host.Tests). Whole sessions (the same save, the same keys and clicks, the same state after every event) are compared in lockstep (docs/LOCKSTEP_HOST.md). The recordings themselves, the saves they start from and the captured frames stay on the maintainers' machines. docs/verification/completeness.jsonis the current count of ported and verified functions.
Repository layout
src/ the C# projects (below)
tests/ the test projects
oracle/ the cases recorded from the original program that the tests replay (oracle/README.md)
docs/ for players: settings, reporting, the original's bugs, the roadmap, screenshots;
for contributors: traceability, the source map, verification counts
tools/ package_release.py, the packager of the player's program
releases/ the release notes of each version
DarkSun.slnx, Directory.Build.props, global.json the solution and its build settings
ARCHITECTURE.md how the code is layered
| Folder | What it holds |
|---|---|
src/DarkSun.Core | the game's rules: characters, items, the world, scripts, combat, powers (no I/O) |
src/DarkSun.Content | the game's file formats (GFF archives, pictures, fonts, regions, objects) |
src/DarkSun.Persistence | saved games, the only place that knows the original record layouts |
src/DarkSun.Presentation | what is drawn: the GUI stack, the world, the text window |
src/DarkSun.Host.Sdl | the player's program (DarkSun.exe): window, sound, input, launcher |
src/DarkSun.Host.Headless | dsun-headless: checks of the installed files, scripts, lockstep runs |
tests | the test projects |
oracle/contracts | the cases recorded from the original that the tests replay (oracle/README.md) |
docs | player documents, and for contributors the traceability rules, the lockstep host, the source map, the verification counts |
tools | package_release.py: builds the packages players download |
Tests
dotnet test DarkSun.slnx runs everything. The tests that need the original game read it from DSUN_GAME
(or the game key of a dsun.local.json in the checkout or above it); without it they return without
checking anything, so the suite passes on any machine. Tests that replay private recordings or saves do the
same when those are absent. The complete check against the original runs on the maintainers' machines.
Third-party components
SDL 3 (zlib), the .NET runtime (MIT), mt32emu with its .NET binding (LGPL-2.1-or-later, carried as separate libraries) and the test libraries: see THIRD_PARTY_NOTICES.md. The launcher's
text is set in Cinzel Decorative and Crimson Pro (SIL Open Font License 1.1) with StbTrueTypeSharp (public domain). Dark Sun: Shattered Lands is a 1993 SSI game; this project contains
none of its files.