====== Information ======
* Titan Quest Anniversary Edition ((https://www.gog.com/game/titan_quest_anniversary_edition))
* Ragnarök DLC ((https://www.gog.com/en/game/titan_quest_ragnarok))
* Atlantis DLC ((https://www.gog.com/en/game/titan_quest_atlantis))
* Eternal Embers DLC ((https://www.gog.com/en/game/titan_quest_eternal_embers))
* GOG
===== Prerequisites =====
* [[linux;distros;fedora_workstation_gnome|Fedora Workstation (GNOME)]]
===== Notes =====
* 2024/08/25: DX9 consistently crashes regardless of DXVK/WineD3D/Nine ([[https://github.com/doitsujin/dxvk/issues/1318#issuecomment-2308912895|comment]])
* 2024/08/25: Multiplayer appears to just-work fine!
====== Install ======
===== Titan Quest =====
****
mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' WINEARCH='win64' wine ~/'Downloads/Titan_Quest_'*'_win_gog/setup_titan_quest_-_anniversary_edition_'*'.exe'
===== Ragnarök DLC =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'Downloads/Titan_Quest_'*'_win_gog/DLC/setup_titan_quest_ragnarok_'*'.exe'
===== Atlantis DLC =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'Downloads/Titan_Quest_'*'_win_gog/DLC/setup_titan_quest_atlantis_'*'.exe'
===== Eternal Embers DLC =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'Downloads/Titan_Quest_'*'_win_gog/DLC/setup_titan_quest_eternal_embers_'*'.exe'
===== Disable DLLs =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' winetricks 'discord_game_sdk=disabled' 'EOSSDK-Win32-Shipping=disabled' 'EOSSDK-Win64-Shipping=disabled' 'Galaxy64=disabled' 'OverlayEngineWin32=disabled' 'OverlayEnginex64=disabled' 'OverlayReleaseWin32=disabled' 'OverlayReleasex64=disabled' 'steam_api=disabled' 'steam_api64=disabled'
===== Clean Up =====
****
rm -Rf ~/'Downloads/Titan_Quest_'*'_win_gog' ~/'Desktop/Titan Quest - Anniversary Edition.desktop' && cd ~ && sync
====== Libraries ======
===== DXVK =====
* https://github.com/doitsujin/dxvk/actions ((need to be signed into GitHub, and select the latest ''master'' artifacts package))
ls ~/'Downloads/dxvk-master-'*'.zip' && rm -Rf '/tmp/dxvk-master' && mkdir -p '/tmp/dxvk-master' && unzip ~/'Downloads/dxvk-master-'*'.zip' -d '/tmp/dxvk-master/' && cp --backup '/tmp/dxvk-master/x64/'*'.dll' ~/'.wine/Titan Quest Anniversary Edition/drive_c/windows/system32/' && cp --backup '/tmp/dxvk-master/x32/'*'.dll' ~/'.wine/Titan Quest Anniversary Edition/drive_c/windows/syswow64/' && WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' winetricks 'd3d9=native' 'd3d10core=native' 'd3d11=native' 'dxgi=native' && mkdir -p ~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' && sync
====== Desktop Launcher ======
===== Initial =====
****
rm -Rf ~/'.local/share/applications/wine/Programs/Titan Quest - Anniversary Edition [GOG.com]' && mkdir -p ~/'.local/share/applications/wine/Programs/Titan Quest Anniversary Edition'
===== Titan Quest Anniversary Edition =====
nano ~/'.local/share/applications/wine/Programs/Titan Quest Anniversary Edition/Titan Quest Anniversary Edition.desktop' && update-desktop-database --quiet ~/'.local/share/applications'
[Desktop Entry]
Name=Titan Quest Anniversary Edition
Categories=Game;AdventureGame;RolePlaying
Exec='/bin/bash' -c "cd ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition' && MESA_SHADER_CACHE_DIR=~/'.wine/Titan Quest Anniversary Edition' DXVK_STATE_CACHE_PATH=~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition/TQ.exe' /dx11"
Type=Application
StartupNotify=true
Icon=6CB4_goggame-1196955511.0
StartupWMClass=tq.exe
Actions=Cache;Kill;Notes;
[Desktop Action Cache]
Exec='/bin/bash' -c "rm -Rf ~/'.wine/Titan Quest Anniversary Edition/mesa_shader_cache/'* ~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache/'* && sync && notify-send 'The Titan Quest AE shader caches have been cleaned-up.'"
Name=Shader Cache Cleanup
[Desktop Action Kill]
Exec='/bin/bash' -c "WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wineserver --kill"
Name=Force-close
[Desktop Action Notes]
StartupNotify=false
Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games;linux;wine;titan_quest_anniversary'"
Name=Installation Notes
# End
====== Quick Commands ======
===== Winecfg =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' winecfg
===== Winetricks =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' winetricks
===== Registry Editor =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' regedit
===== Kill =====
****
WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wineserver --kill
===== Execute =====
==== Titan Quest ====
=== DX11 ===
* ''-nohwcursor'' is ''Win10 Safe Mode'' on Steam ([[https://steamdb.info/app/475150/config/|source]]) and was required on a Wayland session
cd ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition' && MESA_SHADER_CACHE_DIR=~/'.wine/Titan Quest Anniversary Edition' DXVK_STATE_CACHE_PATH=~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition/TQ.exe' /dx11
-nohwcursor
=== DX9 ===
* ''-nohwcursor'' is ''Win10 Safe Mode'' on Steam ([[https://steamdb.info/app/475150/config/|source]]) and was required on a Wayland session
cd ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition' && MESA_SHADER_CACHE_DIR=~/'.wine/Titan Quest Anniversary Edition' DXVK_STATE_CACHE_PATH=~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition/TQ.exe' /dx9
-nohwcursor
==== Quest Editor ====
****
cd ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition' && MESA_SHADER_CACHE_DIR=~/'.wine/Titan Quest Anniversary Edition' DXVK_STATE_CACHE_PATH=~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition/QuestEditor.exe'
==== Viewer ====
****
cd ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition' && MESA_SHADER_CACHE_DIR=~/'.wine/Titan Quest Anniversary Edition' DXVK_STATE_CACHE_PATH=~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition/Viewer.exe'
==== Art Manager ====
****
cd ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition' && MESA_SHADER_CACHE_DIR=~/'.wine/Titan Quest Anniversary Edition' DXVK_STATE_CACHE_PATH=~/'.wine/Titan Quest Anniversary Edition/dxvk_shader_cache' WINEPREFIX=~/'.wine/Titan Quest Anniversary Edition' wine ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition/ArtManager.exe'
===== File Manager =====
==== Root ====
****
gio open ~/'.wine/Titan Quest Anniversary Edition/drive_c/GOG Games/Titan Quest - Anniversary Edition'
==== Saves ====
* :!: TODO: There's 3 Titan Quest folders?
gio open ~/'Documents/My Games/'