User Tools

Site Tools


games:dota_2

This is an old revision of the document!


Information

  • These notes allow downloading Dota 2 using SteamCMD and running it in offline mode through Goldberg Emulator 1)

SteamCMD

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

Install

  • :!: This relies on 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

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

Restore

mkdir -p ~/'Steam/steamapps' && mv ~/'Downloads/Dota 2/'* ~/'Steam/steamapps' && sync

Update

  • This may need re-ran if game data is restored from backup 2)
cd ~/'Steam/steamcmd' && ~/'Steam/steamcmd/steamcmd.sh' +login 'Espionage724' +app_update '570' +quit && sync && cd ~

Runtime

  • 2023/12/30: Sniper
cd ~/'Steam/steamcmd' && ~/'Steam/steamcmd/steamcmd.sh' +login 'Espionage724' +app_update '1628350' +quit && sync && cd ~

Validate

cd ~/'Steam/steamcmd' && ~/'Steam/steamcmd/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'
[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
1)
I only do singleplayer local bot matches; LAN usage is untested
2)
Error! App '570' state is 0xE after update job.
/var/www/wiki/data/attic/games/dota_2.1709435107.txt.gz · Last modified: 2024/03/02 22:05 by Sean Rhone