Next revision | Previous revisionLast revisionBoth sides next revision |
games:devilutionx [2020/01/01 13:10] – created Sean Rhone | games:devilutionx [2021/08/15 21:56] – Sean Rhone |
---|
| |
* DevilutionX ((https://github.com/diasurgical/devilutionX)) | * DevilutionX ((https://github.com/diasurgical/devilutionX)) |
| * :!: Android: https://app.circleci.com/pipelines/github/diasurgical/devilutionX |
| |
===== Notes ===== | ====== Uninstall ====== |
| |
* :!: All of this is TODO | ===== Dependencies ===== |
| |
| **** |
| |
| sudo dnf remove SDL2_ttf SDL2_mixer |
| |
| ===== Save Data ===== |
| |
| * Backup any ''.sv'' files for characters |
| |
| gio open ~/'.local/share/diasurgical/devilution' |
| |
| ===== Clean-up ===== |
| |
| **** |
| |
| rm -Rf ~/'.local/share/diasurgical' ~/'.local/share/applications/DevilutionX.desktop' ~/'.local/share/icons/hicolor/48x48/apps/Diablo_48.png' && sync |
| |
| ====== Precompiled Binary ====== |
| |
| ===== Dependencies ===== |
| |
| ==== Fedora ==== |
| |
| **** |
| |
| sudo dnf install SDL2_ttf SDL2_mixer |
| |
| ===== Download ===== |
| |
| * https://github.com/diasurgical/devilutionX/releases |
| * Download the latest ''devilutionx-linux-x86_64.7z'' release and have it at ''~/Downloads'' |
| |
| ===== Install ===== |
| |
| **** |
| |
| mkdir -p ~/'.local/share/diasurgical/devilution' && unar -o '/tmp' ~/'Downloads/devilutionx-linux-x86_64.7z' && cp '/tmp/devilutionx-linux-x86_64/'* ~/'.local/share/diasurgical/devilution' && ls ~/'.local/share/diasurgical/devilution/devilutionx' && rm -Rf '/tmp/devilutionx-linux-x86_64' ~/'Downloads/devilutionx-linux-x86_64.7z' && sync |
| |
| ===== Game Data ===== |
| |
| * Copy ''diabdat.mpq'' to ''~/.local/share/diasurgical/devilution'' |
| * May be able to use ''spawn.mpq'' instead for the shareware/trial version of Diablo |
| |
| gio open ~/'.local/share/diasurgical/devilution' |
| |
| ===== Desktop Launcher ===== |
| |
| nano ~/'.local/share/applications/DevilutionX.desktop' |
| |
| <code> |
| [Desktop Entry] |
| Name=DevilutionX |
| Comment=Diablo build for modern operating systems |
| Categories=Game;AdventureGame;RolePlaying |
| Exec=env MESA_GLSL_CACHE_DIR='/home/CHANGEME/.local/share/diasurgical/devilution' '/home/CHANGEME/.local/share/diasurgical/devilution/devilutionx' |
| Type=Application |
| StartupNotify=true |
| Path=/home/CHANGEME/.local/share/diasurgical/devilution |
| Icon=Diablo_48</code> |
| |
| sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/DevilutionX.desktop' |
| |
| ==== Icon ==== |
| |
| **** |
| |
| mkdir -p ~/'.local/share/icons/hicolor/48x48/apps' && wget -O ~/'.local/share/icons/hicolor/48x48/apps/Diablo_48.png' 'https://github.com/diasurgical/devilutionX/raw/master/Packaging/resources/Diablo_48.png' |
| |
====== Dependencies ====== | ====== Dependencies ====== |
| |
| * :!: Anything below this is TODO |
| |
===== Ubuntu ===== | ===== Ubuntu ===== |
* [[distros:ubuntu_desktop|Ubuntu (desktop)]] ((18.04.1 LTS)) | * [[distros:ubuntu_desktop|Ubuntu (desktop)]] ((18.04.1 LTS)) |
| |
sudo apt install git g++ cmake libmad0-dev libvorbis-dev yasm libbz2-dev libpcre++-dev zlib1g-dev libjpeg-dev libxrandr-dev libxinerama-dev pkg-config libasound2-dev libpulse-dev libjack-jackd2-dev libva-dev libgl1-mesa-dev libglew-dev libgtk2.0-dev | sudo dnf install cmake glibc-devel SDL2-devel SDL2_ttf-devel SDL2_mixer-devel libsodium-devel libasan libubsan |
| |
====== Download/Update Source ====== | ====== Download/Update Source ====== |
**** | **** |
| |
cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/stepmania/src' && git clone --branch '5_1-new' --depth '1' --recurse-submodules 'https://github.com/stepmania/stepmania.git' ~/'Projects/stepmania/src' && sync | cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/devilutionX/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/diasurgical/devilutionX.git' ~/'Projects/devilutionX/src' && sync |
| |
====== Compile and Install ====== | ====== Compile and Install ====== |
**** | **** |
| |
cd ~ && rm -Rf ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && mkdir -p ~/'Projects/stepmania/build' ~/'Projects/stepmania/run' && cd ~/'Projects/stepmania/build' && cmake ~/'Projects/stepmania/src' -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE='Release' && cmake ~/'Projects/stepmania/src' -DCMAKE_INSTALL_PREFIX=~/'Projects/stepmania/run' -DCMAKE_CXX_FLAGS='-Ofast -pipe -march=native' -DCMAKE_C_FLAGS='-Ofast -pipe -march=native' -DWITH_FFMPEG_JOBS='3' -DWITH_MINIMAID='0' && sync && make -j3 install && sync | cd ~ && rm -Rf ~/'Projects/devilutionX/build' ~/'Projects/devilutionX/run' && mkdir -p ~/'Projects/devilutionX/build' ~/'Projects/devilutionX/run' && cd ~/'Projects/devilutionX/build' && cmake ~/'Projects/devilutionX/src' -DBINARY_RELEASE='ON' && cmake ~/'Projects/stepmania/src' -DCMAKE_INSTALL_PREFIX=~/'Projects/stepmania/run' -DCMAKE_CXX_FLAGS='-Ofast -pipe -march=native' -DCMAKE_C_FLAGS='-Ofast -pipe -march=native' -DWITH_FFMPEG_JOBS='3' -DWITH_MINIMAID='0' && sync && make -j3 install && sync |
| |
====== Simply Love ====== | ====== Simply Love ====== |
Name=DevilutionX | Name=DevilutionX |
Categories=Game; | Categories=Game; |
Exec='/home/CHANGEME/.local/share/diasurgical/devilution/devilution' | Exec='/home/CHANGEME/.local/share/diasurgical/devilution/devilutionx' |
Type=Application | Type=Application |
StartupNotify=true | StartupNotify=true |