OpenD2K

OpenD2K is a native port of Dune 2000 for Windows, Linux, macOS, and Android with optional modern graphics and a 3D battlefield.

README

OpenD2K

OpenD2K is a native, open-source rebuild of the original Dune 2000 (Westwood, 1998) for macOS, Windows, Linux, Android and iPad / iPhone. It plays the original game, from the original game files, with the original rules: the game logic is reimplemented in modern C++ (C++20, SDL3) from a study of the original executable, down to its random-number calls and known quirks, so missions, the AI, the economy and combat behave as they did in 1998. On top of that come optional modern graphics, a 3D battlefield and quality-of-life features, each behind a setting.

Not OpenRA. OpenRA's Dune 2000 mod (called "d2k") is a separate project with its own engine and rules. OpenD2K is a faithful rebuild of the original game itself.

You need your own copy of Dune 2000. OpenD2K contains no game data. The free community Gruntmods Edition installer works directly, on every platform — no Windows or Wine needed to unpack it.

Current release: 0.0.4 — download the latest release · what changed: CHANGELOG.md. Downloads: Releases · Bugs: Issues · Ideas and questions: Discussions · Chat: Discord

What's new in 0.0.4

  • Multiplayer: internet (three server regions, public and private rooms, no account), LAN and direct IP; Mac and Windows players play together. Versus, co-op skirmish and co-op campaign (shared base, play the ally, or your own base), with the host's lobby rules for everybody. See Multiplayer and co-op.
  • The Emperor campaign "The Hidden Hand": nine new missions for the Sardaukar - OpenD2K's own story, maps and text.
  • Sandstorm shroud (Enhanced / 3D): unexplored ground under a drifting dust storm instead of black; in 3D a storm of sand smoke with lightning inside it.
  • Tactical pause (Space), one-press attack-move (A), Mac trackpad scrolling, the original game's letter hotkeys, free player colours, an infantry size option, difficulty and crates / worms in the Enhanced menus, a minimap that navigates without a radar, crates as 3D models, redesigned buildings (version 2) for all houses.
  • Windows 7 / 8.1, a safe start mode after a crash, and a portable mode. Many fixes from your reports - thank you! Full list: CHANGELOG.md.

Trailer

OpenD2K 0.0.1 trailer: Original, Enhanced 2D and 3D (YouTube)

Watch the trailer on YouTube (1 min: Original, Enhanced 2D, day / night and 3D). Original game art © Westwood Studios / Electronic Arts; the music is our own.

Screenshots

The original 1998 graphics next to OpenD2K's Enhanced 2D mode Left: the original 1998 graphics (Graphics: Original; Dune 2000 art © Westwood Studios / Electronic Arts, shown for comparison). Right: the same battle in OpenD2K's Enhanced 2D mode with the redesign art pack.

Enhanced 2D at night Enhanced 2D at night: Modern lighting, lamps and building lights, redesigned art pack.

The 3D mode at dusk Graphics: 3D at dusk: terrain relief, sun shadows, the redesigned 3D models.

Features

  • The original game, faithfully (Graphics: Original): all three campaigns with the original campaign map, briefings and scoring, skirmish against the original computer player, the original menus and in-game interface, original controls, sounds, music and cutscenes (PC VQA movies, or the PlayStation versions from a disc image). Pixel-exact sprites and the original sidebar at an integer scale.
  • Enhanced 2D (Graphics: Enhanced, the default for new players): a modern interface, high-quality sprite scaling or replacement art packs, soft shroud, health bars and a "classic view" key (Tab) that shows the 1998 graphics while held.
  • 3D mode (Graphics: 3D): a 2.5D battlefield with terrain relief, sun light and shadows, a rotating and tilting camera, animated 3D models for units and buildings — Metal, Direct3D 12 or Vulkan.
  • Modern effects (optional): new weapon effects, building destruction, refinery processing, harvest dust, spice blooms, damage smoke.
  • Faithful terrain (optional): designed terrain with modelled cliffs and CC0 materials that follows each map's own layout, in Enhanced 2D and in 3D.
  • Redesigned models (separate download, see below): new 3D models for the units and buildings and the 2D sprites rendered from them. The first versions are simple; high-detail redesigns are ongoing.
  • Original or modern controls, extended production queues, factory rally points, game speed and other quality-of-life options — every non-original feature can be switched off. An optional cheat menu.
  • Save anywhere: complete save games (battles and the campaign map) that continue bit-identically.
  • Multiplayer and co-op: internet, LAN and direct IP; versus, co-op skirmish and the campaigns in co-op; replays of every network game.
  • The Emperor campaign "The Hidden Hand" (OpenD2K's own, nine missions), next to the three original campaigns.
  • Community content: Gruntmods community campaigns and custom missions, including the community patch's extended mission events. Play any mission as any side.
  • Time of day and lighting (optional, Enhanced and 3D): dawn, dusk, night or a day–night cycle, modern lighting with lamps and headlights at night, HDR rendering and HDR displays, quality settings.
  • Languages: English, French, German, Spanish (from the game data), and Russian (the PC translation or the Russian PlayStation dub).
  • Android, iPad and iPhone: touch controls and a phone layout. Android: a sideloaded APK. iPad / iPhone: an unsigned IPA to sideload, or built from source with your own Apple ID (docs/ios.md).

Getting the game data

  1. Download the free Dune 2000 Gruntmods Edition installer (Dune 2000 Gruntmods Edition 1.6.7.exe) from gruntmods.com. Optional: the cutscene installers for the movies, from Cutscenes and extra content.
  2. Start OpenD2K. When it finds no game, it shows the data page: Choose installer (.exe)… and pick the installer. OpenD2K unpacks it itself (nothing is executed) into its own application-data folder. An existing installation works too (Choose folder… → the Dune 2000 folder that contains data). The cutscene installers are chosen the same way.

OpenD2K also finds a game folder placed next to it and the usual install locations; see docs/building.md.

Install and run

Have the original CD? Choose Original CD / ISO… on the data page.

Downloads are on the Releases page.

macOS 11 or later (Apple Silicon and Intel): OpenD2K-<version>-macos-universal.zip. Unzip and move OpenD2K.app to Applications. The app is not notarised by Apple, so the first start is blocked: open System Settings → Privacy & Security and click Open Anyway (or run xattr -dr com.apple.quarantine /Applications/OpenD2K.app once).

Windows 10 (1903) / 11, x64: OpenD2K-<version>-windows-x64.zip. Unzip anywhere and start OpenD2K.exe (d2k.exe is the same program with a console window and the command-line options). SmartScreen may warn about an unknown publisher: More info → Run anyway. Windows 7 and 8.1 work too (confirmed by players, not tested by us): there is no Direct3D 12 there, so 3D uses Vulkan if your graphics driver has it. On Windows 7 keep your Windows user name and the game folder in Latin letters, or use the portable mode below (a folder next to OpenD2K.exe, no AppData); see Troubleshooting: saves, art packs, data folder.

Linux x86-64 (glibc 2.38 and libstdc++ of GCC 13 or newer: Ubuntu 24.04, Debian 13, Fedora 39 or later): OpenD2K-<version>-linux-x86_64.tar.gz. Unpack and run ./d2k in the folder. Needs X11 or Wayland, and Vulkan drivers for the 3D mode. The file pickers use the desktop portal or zenity; without them start with ./d2k --install-from "Dune 2000 Gruntmods Edition 1.6.7.exe" or ./d2k --data DIR.

Android 8.0 or later (arm64 / x86_64): OpenD2K-<version>-android.apk. Open the file on the device and allow your browser or file manager to install unknown apps when Android asks (the APK is not on Google Play). In the game, Choose installer (.exe)… picks the Gruntmods installer from Downloads. Updating: install the newer APK over the old one (settings, saves and the game data are kept).

iPad / iPhone (iPadOS / iOS 17+): no App Store version. Two ways:

  • Sideload the unsigned IPA OpenD2K-<version>-ios-unsigned.ipa: sign and install it with AltStore / SideStore or Sideloadly using a (free) Apple ID, or install it with TrollStore on the iOS versions it supports. With a free Apple ID the app expires after 7 days and must be re-signed (AltStore / SideStore refresh it; your data and saves stay), and at most 3 sideloaded apps can be active at a time.
  • Build it from source with Xcode and install it with your own Apple ID.

Both: docs/ios.md. Game data: copy the Gruntmods installer .exe into Files → On My iPad / iPhone → OpenD2K (or drag it onto OpenD2K in Finder's device "Files" tab), then tap Unpack on the data page.

Where are my settings and saves?

Settings (settings.ini), saved games (saves), the game data unpacked from the installer (GameData), imported cutscenes and the downloaded art pack all live in one folder outside the app. The easiest way to get there: open Options → Data Folder and click Open data folder (in the Enhanced menus the button is also at the bottom of Options); the folder's path is written next to the button. By hand:

  • Windows: press Win+R, paste %APPDATA%\OpenD2K and press Enter (or paste it into File Explorer's address bar), then open Dune 2000. The real path is C:\Users\<you>\AppData\Roaming\OpenD2K\Dune 2000; AppData is hidden in Explorer by default, which is why typing the path is easier. In portable mode (below) everything is in the UserData folder next to OpenD2K.exe instead.
  • Mac: in Finder choose Go → Go to Folder..., paste ~/Library/Application Support/OpenD2K/Dune 2000 and press Enter.
  • Linux: ~/.local/share/OpenD2K/Dune 2000 (or $XDG_DATA_HOME/OpenD2K/Dune 2000).
  • Android, iOS: the app's own storage (kept across updates).

Version 0.0.2 used a folder named d2k-mac instead of OpenD2K; newer versions move it to the new place by themselves on the first start, so your settings and saves are kept.

Troubleshooting: the game does not start or freezes

If a start crashes or is killed, the next start runs once in safe mode (windowed, Graphics API Auto, no 3D, no HDR output) and says so; your saved settings are not touched. You can force it by holding Shift while the game starts or with --safe-mode. Then fix the setting in Options → Graphics (for example the Graphics API, fullscreen or the 3D look). To edit settings.ini by hand it is in the folder above: Windows %APPDATA%\OpenD2K\Dune 2000\settings.ini, Mac ~/Library/Application Support/OpenD2K/Dune 2000/settings.ini, Linux ~/.local/share/OpenD2K/Dune 2000/settings.ini (delete the file to reset everything; gpuDriver=auto, fullscreen=0 and graphics=enhanced are the usual fixes). opend2k.log in the same folder says what failed - please attach it to a bug report. If the picture is too heavy at your screen's full resolution, use Options → Graphics → Display → Resolution (fullscreen).

Troubleshooting: saves, art packs, data folder (Windows 7, portable mode)

Where everything is. Settings, saves\, opend2k.log, artpacks\, the unpacked game data, downloads: Windows %APPDATA%\OpenD2K\Dune 2000\ (the log's second line says exactly which folder is used). Options → Data folder → Open data folder opens it. A failed save now says Could not save to <file>: <reason> and writes the same to the log.

Keep everything next to the game (portable mode). Create an empty text file named portable.txt (or an empty folder named portable) next to OpenD2K.exe. The game then keeps ALL its data - settings, saves, logs, art packs, game data, downloads - in a UserData folder next to the exe and never touches AppData. Move the whole folder to move the game. (A portable folder that is NOT empty is the old read-only content mode of private builds.) The same from the command line, for any folder: OpenD2K.exe --user-dir D:\OpenD2K-Data. If the folder cannot be written the game says so in the log and uses the normal folder. Do not put the game into C:\Program Files for this.

Art packs installed by hand. Each zip holds one folder; extract the zips so that the folders sit directly in the artpacks folder (%APPDATA%\OpenD2K\Dune 2000\artpacks\, or UserData\artpacks\ in portable mode):

zipfolder it must create inside artpacks\game finds it by
OpenD2K-redesign-pack-<v>.zipopend2k-redesign\opend2k-redesign\pack.ini
OpenD2K-reimagined-models-pack-<v>.zipmodels-reimagined\its models\ folder
OpenD2K-photo-terrain-pack-<v>.zipphoto-terrain\its *.d2kt files
OpenD2K-ground-clutter-pack-<v>.zipground-clutter\its clutter\ folder
OpenD2K-ru-ai-voices-pack-<v>.zipnot an art pack: contents go to Voices\ru-ai\ (GAMESFX\, text_ru.tsv)Voices\ru-ai\GAMESFX

The .sha256 files and installed.ini are not needed (only the in-game download writes them). The game also accepts a folder one level too deep (artpacks\<zip name>\opend2k-redesign\pack.ini); if the files lie directly in artpacks\ or the folder has no pack.ini, Options → Art pack says what to fix.

Updating

Options → Updates shows whether a newer OpenD2K is out (it asks GitHub when you open Options — never at startup — and the switch "Check for updates when Options opens" turns that off). Download opens the file for your system in the browser; the game does not replace itself. To update, replace the app (or unpack the new zip anywhere — the old folder can be deleted). Everything the game keeps — settings, saves, the game data unpacked from the installer, imported cutscenes and voices, the downloaded art pack — is in the settings folder above, not in the app, so nothing has to be downloaded or imported again. If the game data folder you picked was next to the old app and is gone, the game looks again in the usual places (next to the new app, the unpacked installer copy …) and asks only when it finds nothing. The art pack is downloaded again only when a new pack version is published.

The redesigned art pack

OpenD2K-redesign-pack-<version>.zip holds the redesigned 3D models and the sprites rendered from them (~580 MB). The 0.0.4 pack brings the version 2 buildings of all houses, the new crates and the fixed Harkonnen light factory. Optional extras for the 3D (Reimagined) look: OpenD2K-reimagined-models-pack-<version>.zip, OpenD2K-photo-terrain-pack-<version>.zip and OpenD2K-ground-clutter-pack-<version>.zip; and the Russian AI voices OpenD2K-ru-ai-voices-pack-<version>.zip. Easiest: Options → Art pack → Download in the game (Get all for 3D takes the extras too; also offered on the Graphics page's 3D tab). The game fetches it from this repository's GitHub release, checks its SHA-256, installs it into the settings folder's artpacks/ and selects it. It looks for a newer pack only when you open Options (switch that off on the same page) and downloads nothing unless you press Download; the only data sent is a standard web request.

By hand: download the zip from the release page and unzip it into an artpacks folder next to the program or in the settings folder above (the zip contains the folder opend2k-redesign/, so you get artpacks/opend2k-redesign/pack.ini). On Linux the in-game download needs libcurl (libcurl4, installed on most desktops); without it the page links to the release. Then:

  • 2D: Options → Graphics → Custom → Art: opend2k-redesign (the Enhanced and 3D presets keep it);
  • 3D: 3D models: New (art pack) uses the installed pack.

Without the pack, Enhanced uses the original sprites and 3D shows the built-in models and sprites.

Multiplayer and co-op

Main menu → Multiplayer (both front ends). Everybody needs the same OpenD2K version and their own game data.

  • Internet (first tab): the public games of all three server regions (America, Europe, Asia) in one list, with their ping. Join one with a double click, or type a friend's room code (Paste takes an invite). To host, pick the mode (Versus / Co-op skirmish / Co-op mission), Choose map... and Host public game or Host private game (listed or code-only, optionally with a password) and send the room code to your friends. No account, no port forwarding: the game connects directly where it can and through the server's relay where it cannot.
  • Host on LAN / Join on LAN: games on your network are found by themselves; Join on LAN also takes an IP address (UDP port 47100) for direct play.
  • The lobby: houses, free colours, teams, start positions, computer players, chat and Ready. The host's rules apply to everybody (credits, tech level, worms, crates, game speed, unit movement, tactical pause...); your graphics, controls and sound stay your own. In the game: Enter chats, Alt + click pings the map, every network game is saved under Replays.
  • Co-op mission: play any original, community or Emperor mission with a friend. The host chooses how the partner plays: Shared base (one base and one credit pool), Play the ally (the mission's allied side) or Own base (an MCV on a free plateau; the enemy gets stronger), the partner's house, and whether cutscenes play together. Both read the briefing and press Ready before the battle starts. A community map or mission the partner lacks is sent by the host in the lobby.

Controls

The original mouse scheme is the default (Options → Controls: Original / Modern). The most useful keys:

InputAction
Left click / dragselect units; with units selected: move, attack (Original scheme)
Right clickOriginal: deselect · Modern: move / attack
Ctrl + clickforce attack (any unit, building or the ground)
Alt + clickforce move (crushers drive over infantry)
S / Dstop / deploy (MCV; a second click on a selected MCV deploys it too)
Ctrl+1..9 / 1..9assign / recall control groups
Right drag, arrow keysscroll the map · mouse wheel: zoom · Mac trackpad: two-finger scroll pans, pinch zooms (Options → Scroll wheel / trackpad)
Tab(Enhanced / 3D) hold to see the original 1998 graphics
Escin-game menu (Modern controls: P too)
Spacetactical pause: the battle stops, you keep giving orders (Options → Tactical pause; on in Enhanced / 3D)
T / Y / G / R / Xthe original's hotkeys: repair, sell, guard, retreat, scatter
Pmake the selected building primary (Original controls; Shift+P with Modern controls)
H / N / E / Homecentre on the base / next unit / select all units on screen / centre on the selection (E and Home: in 3D with Modern controls they turn / reset the camera)
Attack-movepress A