Kyle Greenan

DevilutionX on OpenBSD 7.3

27 June 2023

Diablo game intro screen

With all of the fanfare around the release of Diablo 4, I thought it fitting to travel back in time and see where the Diablo franchise all began. I came across a port of Diablo called DevilutionX which saw a recent release of 1.5.0 at the writing of this post.

I wanted to share the steps I went through to play it on my OpenBSD desktop. YVMV

What is DevilutionX?

DevilutionX is a port of Diablo and Hellfire that strives to make it simple to run the game while providing engine improvements, bugfixes, and some optional quality of life features.

Diablo game intro screen

How to install DevilutionX on OpenBSD 7.3 from source

Note: You’ll need access to the data from the original game. If you don’t have an original CD then you can buy Diablo from GoG.com. Alternately you can use spawn.mpq from the shareware version, in place of DIABDAT.MPQ, to play the shareware portion of the game.

Setup System Dependencies

  • As root run pkg_add cmake sdl2-mixer sdl2-ttf libsodium gmake gtest

Setup Game Files

  • Locate DIABDAT.MPQ on your CD, or in the GoG installation. (or extract it from the GoG installer).
  • Copy DIABDAT.MPQ to your home directory
  • Rename DIABDAT.MPQto all lowercase diabdat.mpq
  • Create the folder structure ˜/.local/share/diasurgical/devilution/
  • Copy diabdat.mpq into ˜/.local/share/diasurgical/devilution/

Download Source and Compile

  • Download the devilution 1.5.0 source and unzip it
  • Navigate inside the devilutionX-1.5.0 directory cd devilutionX-1.5.0
  • Make devilutionX cmake -DCMAKE_MAKE_PROGRAM=gmake
  • After the make file is created, build devilutionX cmake --build . -j $(sysctl -n hw.ncpuonline) note: you may see errors, just disregard as it should build the executable fine
  • Upon successful build you will see devilutionx added to the folder.
  • run the game ./devilutionx if all goes well you should see the Blizzard splash screen followed by the Diablo title screen.

Enjoy!