Status | Platform |
---|---|
Linux 32bit & 64bit, Windows 32bit | |
macOS 32bit & 64bit | |
Windows MSVC |
- Copy diabdat.mpq from your CD, or GoG install folder, to the DevilutionX game directory ; Make sure it is all lowercase.
- Download DevilutionX, or build from source
- Install SDL2 (including SDL2_mixer and SDL2_ttf) make sure to get the appropriate 32bit or 64bit version.
- Run
./devilutionx
Please keep in mind that this is still being worked on and is missing parts of UI and some minor bugs, see milestone 1 for a full list of known issues.
Linux
sudo apt-get install cmake g++-multilib libsdl2-mixer-dev:i386 libsdl2-ttf-dev:i386 libsodium-dev libsodium-dev:i386
sudo dnf install cmake glibc-devel.i686 SDL2-devel.i686 SDL2_ttf-devel.i686 SDL2_mixer-devel.i686 libsodium-devel.i686 libasan.i686
mkdir build
cd build
linux32 cmake -DCMAKE_TOOLCHAIN_FILE=../CMake/32bit.cmake ..
linux32 make -j$(nproc)
macOS
Install Xcode 9.4.1 and Xcode Command Line tools, this is the last version with 32 bits support.
Note: Be sure that your to select the command line Xcode if you have more then one installed:
$ sudo xcode-select --switch /Applications/Xcode.app
Verify that you don't have FreeType and HarfBuzz installed from Homebrew, which will cause build errors for SDL2_ttf:
brew info freetype
brew info harfbuzz
If you do have those installed, you'll have to temporarily uninstall them:
brew uninstall --ignore-dependencies freetype
brew uninstall --ignore-dependencies harfbuzz
You can install FreeType and HarfBuzz from Homebrew again after devilutionX builds successfully.
Now you can run the build script:
./macos-build.sh --build-all-x86
Windows via MinGW
Download and place the 32bit MinGW Development Libraries of SDL2, SDL2_mixer, SDL2_ttf and Libsodium in /user/i686-w64-mingw32
.
sudo apt-get install cmake gcc-mingw-w64-i686 g++-mingw-w64-i686
mkdir build
cd build
cmake -DASAN=OFF -DCMAKE_TOOLCHAIN_FILE=../CMake/mingwcc.cmake ..
make -j$(nproc)
Windows via Visual Studio
Make sure to install the C++ CMake tools for Windows
component for Visual Studio.
- Using vcpkg (recommended)
-
Install vcpkg following the instructions from https://github.com/microsoft/vcpkg#quick-start.
Don't forget to perform user-wide integration step for additional convenience.
-
Install required dependencies by executing the following command (via cmd or powershell):
vcpkg install sdl2:x86-windows sdl2-mixer:x86-windows sdl2-ttf:x86-windows libsodium:x86-windows
Note: this command installs libraries compiled for x86 but it's not hard to do the same for x64 libraries if you need it
- Manually
- Download and place the 32bit MSVC Development Libraries of SDL2, SDL2_mixer, SDL2_ttf and Libsodium in
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\
. - If dependencies are not found or you wish to place them in other location - configure required path variables in "Manage Configurations..." dialog inside Visual Studio or in cmake-gui.
- Through Open->CMake in Visual Studio
-
Go to
File -> Open -> CMake
, selectCMakeLists.txt
from the project root. -
Select
Build devilution.exe
from theBuild
menu.Note: By default Visual Studio only creates configuration x64-Debug, to add the new configuration (e.g. x86-Debug) please click "Manage Configurations..." in combo box on the top and then on button with green plus to add a new configuration
- Through cmake-gui
- Input the path to devilutionx source directory at
Where is the source code:
field. - Input the path where the binaries would be placed at
Where to build the binaries:
field. If you want to place them inside source directory it's preferable to do so inside directory calledbuild
to avoid the binaries being added to the source tree. - It's recommended to input
Win32
inOptional Platform for Generator
, otherwise it will default to x64 build. - In case you're using
vcpkg
selectSpecify toolchain file for cross-compiling
and select the filescripts/buildsystems/vcpkg.cmake
fromvcpkg
directory otherwise just go withUse default native compilers
. - In case you need to select any paths to dependencies manually do this right in cmake-gui window.
- Press
Generate
and open produced.sln
file using Visual Studio. - Use build/debug etc. commands inside Visual Studio Solution like with any normal Visual Studio project.
Note: Since 64-bit builds are currently not in a playable state, it is advised to build in a 32-bit environment. Another possibility is a 32-bit build on a 64-bit system (see above).
Linux
sudo apt-get install cmake g++ libsdl2-mixer-dev libsdl2-ttf-dev libsodium-dev
sudo dnf install cmake glibc-devel SDL2-devel SDL2_ttf-devel SDL2_mixer-devel libsodium-devel libasan
mkdir build
cd build
cmake ..
make -j$(nproc)
macOS
Make sure you have Homebrew installed, then run:
brew bundle
mkdir build
cd build
cmake ..
make -j$(sysctl -n hw.physicalcpu)
FreeBSD
*Note: At the moment this only appears to work from a 32bit system.*pkg install cmake gcc8 sdl2_mixer sdl2_ttf libsodium
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=/usr/local/bin/gcc8 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++8 ..
make -j$(sysctl -n hw.ncpu)
Haiku
pkgman install cmake_x86 devel:libsdl2_x86 devel:libsdl2_mixer_x86 devel:libsdl2_ttf_x86 devel:libsodium_x86
pkgman install cmake devel:libsdl2 devel:libsdl2_mixer devel:libsdl2_ttf devel:libsodium
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=gcc-x86 -DCMAKE_CXX_COMPILER=g++-x86 -DBINARY_RELEASE=ON ..
make -j$(nproc)
mkdir build
cd build
cmake ..
make -j$(nproc)
The default build type is Debug
. This can be changed with -DBINARY_RELEASE=ON
. Independently of this, the debug mode of the Diablo engine is always enabled by default. It can be disabled with -DDEBUG=OFF
. Finally, in debug builds the address sanitizer is enabled by default. This can be disabled with -DASAN=OFF
.
Use -DCROSS_PREFIX=/path/to/prefix
if the i686-w64-mingw32
directory is not in /usr
.
- TCP/IP only requires the host to expose port 6112
- UDP/IP requires that all players expose port 6112
All games are encrypted and password protected.
Below are a few examples of some simple improvements made to the game. It is planned in the future to create tools for designing dungeons and graphics.
Click to reveal
Wow, does this mean I can download and play Diablo for free now?
No, 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.
Cool, so I fired your mod up, but there's no 1080p or new features?
We're working on it.
What about Hellfire?
Hellfire was a bit of a flop on the developer's part. Support may come in the future once the base game is finished.
- Reverse engineered by GalaXyHaXz in 2018
- sanctuary - extensively documenting Diablo's game engine
- BWAPI Team - providing library API to work with Storm
- Ladislav Zezula - reversing PKWARE library, further documenting Storm
- fearedbliss - being awe-inspiring
- Climax Studios & Sony - secretly helping with their undercover QA :P
- Blizzard North - wait, this was a typo!
- Depression - reason to waste four months of my life doing this ;)
And a special thanks to all the support and people who work on Devilution to make it possible! <3
From the beginning until release
Devilution is released to the Public Domain. The documentation and function provided by Devilution may only be utilized with assets provided by ownership of Diablo.
Battle.net(R) - Copyright (C) 1996 Blizzard Entertainment, Inc. All rights reserved. Battle.net and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
Diablo(R) - Copyright (C) 1996 Blizzard Entertainment, Inc. All rights reserved. Diablo and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
Devilution and any of its' maintainers are in no way associated with or endorsed by Blizzard Entertainment(R).