Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:dota_2 [2024/03/02 21:59] โ Sean Rhone | games:dota_2 [2024/08/06 09:34] (current) โ removed Sean Rhone |
---|
====== Information ====== | |
| |
* [[https://www.dota2.com/|Dota 2]] | |
* [[https://developer.valvesoftware.com/wiki/SteamCMD|SteamCMD]] | |
* [[https://mr_goldberg.gitlab.io/goldberg_emulator/|Goldberg Emulator]] | |
| |
* These notes allow downloading Dota 2 using SteamCMD and running it in offline mode through Goldberg Emulator ((I only do singleplayer local bot matches; LAN usage is untested)) | |
| |
====== SteamCMD ====== | |
| |
* https://developer.valvesoftware.com/wiki/SteamCMD#Manually | |
| |
wget -O '/tmp/steamcmd_linux.tar.gz' 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' && mkdir -p ~/'Steam/steamcmd' && cd ~/'Steam/steamcmd' && tar -xvzf '/tmp/steamcmd_linux.tar.gz' && cd ~ && sync | |
| |
cd ~/'Steam/steamcmd' && ~/'Steam/steamcmd/steamcmd.sh' +login 'Espionage724' +quit && sync && cd ~ | |
| |
====== Goldberg Emulator ====== | |
| |
* https://mr_goldberg.gitlab.io/goldberg_emulator/ | |
| |
===== Install ===== | |
| |
* :!: This relies on [[https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/jobs/4247811310/artifacts/download|this URL]] which looks fragile, but comes from the above download page | |
| |
rm -Rf '/tmp/Goldberg_Lan_Steam_Emu_master.zip' '/tmp/Goldberg_Lan_Steam_Emu' ~/'.steam/sdk64/steamclient.so' && wget -O '/tmp/Goldberg_Lan_Steam_Emu_master.zip' 'https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/jobs/4247811310/artifacts/download' && unzip '/tmp/Goldberg_Lan_Steam_Emu_master.zip' -d '/tmp/Goldberg_Lan_Steam_Emu' && mkdir -p ~/'.steam/sdk64/steam_settings' && mv '/tmp/Goldberg_Lan_Steam_Emu/linux/x86_64/steamclient.so' ~/'.steam/sdk64' && ls ~/'.steam/sdk64/steamclient.so' && rm -Rf '/tmp/Goldberg_Lan_Steam_Emu_master.zip' '/tmp/Goldberg_Lan_Steam_Emu' && sync | |
| |
===== Settings ===== | |
| |
* [[https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/blob/master/Readme_release.txt|Readme_release.txt]] | |
| |
touch ~/'.steam/sdk64/steam_settings/offline.txt' ~/'.steam/sdk64/steam_settings/disable_overlay.txt' ~/'.steam/sdk64/steam_settings/disable_networking.txt' && echo 'Espionage724' | tee ~/'.steam/sdk64/steam_settings/force_account_name.txt' | |
| |
====== Dota 2 ====== | |
| |
===== Update ===== | |
| |
* This may need re-ran if game data is restored from backup ((''Error! App '570' state is 0xE after update job.'')) | |
| |
cd ~/'Steam' && ~/'Steam/steamcmd.sh' +login 'Espionage724' +app_update '570' +quit && sync && cd ~ | |
| |
==== Runtime ==== | |
| |
* 2023/12/30: Sniper | |
| |
cd ~/'Steam' && ~/'Steam/steamcmd.sh' +login 'Espionage724' +app_update '1628350' +quit && sync && cd ~ | |
| |
===== Validate ===== | |
| |
**** | |
| |
cd ~/'Steam' && ~/'Steam/steamcmd.sh' +login 'Espionage724' +app_update '570' validate +quit && sync && cd ~ | |
| |
===== Reset Settings ===== | |
| |
* Dota 2 will likely crash since it's being ran outside the runtime, but settings are still erased | |
| |
cd ~/'Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64' && ~/'Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/dota2' -autoconfig | |
| |
===== Launch ===== | |
| |
* :!: ''ANV_NO_GPL=1'' is required for Intel UHD 630 to prevent random crashing | |
* :!: ''SDL_VIDEO_DRIVER=x11'' is required for Wayland sessions | |
| |
ANV_NO_GPL='1' SDL_VIDEO_DRIVER='x11' ~/'Steam/steamapps/common/SteamLinuxRuntime_sniper/run-in-sniper' ~/'Steam/steamapps/common/dota 2 beta/game/dota.sh' | |
| |
====== Desktop Launcher ====== | |
| |
* TODO: Icon, and modernize with ''bash'' | |
| |
mkdir -p ~/'.local/share/applications/Valve' && nano ~/'.local/share/applications/Valve/Dota 2.desktop' && sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/Valve/Dota 2.desktop' | |
| |
<code> | |
[Desktop Entry] | |
Name=Dota 2 | |
Comment= Dota is the deepest multi-player action RTS game ever made and there's always a new strategy or tactic to discover. It's completely free to play and always will be โ start defending your ancient now. | |
Categories=Game | |
Exec=env ANV_NO_GPL='1' SDL_VIDEO_DRIVER='x11' '/home/CHANGEME/Steam/steamapps/common/SteamLinuxRuntime_sniper/run-in-sniper' '/home/CHANGEME/Steam/steamapps/common/dota 2 beta/game/dota.sh' | |
Type=Application | |
StartupNotify=true | |
Icon=TODO.0</code> | |
| |