====== Information ======
* Dota 2
* Build 9968 (revision 8806282)
* Pre-Crownfall ((Before [[https://steamdb.info/patchnotes/14102378/|Crownfall]] 7.36 (April 18, 2024); this version doesn't have Hero Facets)) ((Files based around patch [[https://steamdb.info/patchnotes/13942756/|13942756]]))
* SteamCMD ((https://developer.valvesoftware.com/wiki/SteamCMD))
* Goldberg Emulator ((https://mr_goldberg.gitlab.io/goldberg_emulator/))
* https://blog.realmofespionage.xyz/?p=194
* DX11 ((Vulkan API is DLC; see [[games;bsd;wine;dota_2_steamcmd?rev=1747611205#todo|FreeBSD]] under ''Reset settings (DX11)''))
* 64-bit
===== Prerequisites =====
* [[windows;10|Windows 10 (21H2)]]
====== SteamCMD ======
MKDIR "%ProgramFiles%\Steam" & DEL /Q "%Temp%\steamcmd.exe" "%ProgramFiles%\Steam\steamcmd.exe" & "curl.exe" --output "%Temp%\steamcmd.exe" --location "https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip" && "tar.exe" -xvf "%Temp%\steamcmd.exe" -C "%ProgramFiles%\Steam"
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +quit
====== Dota 2 Pre-Crownfall ======
===== Folder =====
****
MKDIR "%ProgramFiles%\Dota 2 Pre-Crownfall\EmptySteamDepot"
===== Files =====
==== Content ====
* https://steamdb.info/depot/373301/history/?changeid=M:345077333630773072
* 22811 files, 3169 MB
* ''373301'' manifest ''345077333630773072''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "373301" "345077333630773072" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_373301" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Win32 ====
* https://steamdb.info/depot/373302/history/?changeid=M:3223891623566010794
* 8 files, 396 MB
* ''373302'' manifest ''3223891623566010794''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "373302" "3223891623566010794" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_373302" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Win64 ====
* https://steamdb.info/depot/373303/history/?changeid=M:4910157572659539857
* 93 files, 113 MB
* ''373303'' manifest ''4910157572659539857''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "373303" "4910157572659539857" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_373303" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Content 2 ====
* https://steamdb.info/depot/381451/history/?changeid=M:1614127368160565013
* 20 files, 1054 MB
* ''381451'' manifest ''1614127368160565013''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "381451" "1614127368160565013" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_381451" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Content 3 ====
* https://steamdb.info/depot/381452/history/?changeid=M:5177112179094656049
* 20 files, 1325 MB
* ''381452'' manifest ''5177112179094656049''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "381452" "5177112179094656049" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_381452" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Content 4 ====
* https://steamdb.info/depot/381453/history/?changeid=M:2704118242337151326
* 20 files, 1094 MB
* ''381453'' manifest ''2704118242337151326''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "381453" "2704118242337151326" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_381453" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Content 5 ====
* https://steamdb.info/depot/381454/history/?changeid=M:5297697076786798060
* 20 files, 795 MB
* ''381454'' manifest ''5297697076786798060''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "381454" "5297697076786798060" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_381454" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Content 6 ====
* https://steamdb.info/depot/381455/history/?changeid=M:3533452766342976639
* :!: 344 files, 16385 MB
* ''381455'' manifest ''3533452766342976639''
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +download_depot "570" "381455" "3533452766342976639" +quit
ROBOCOPY "%ProgramFiles%\Steam\steamapps\content\app_570\depot_381455" "%ProgramFiles%\Dota 2 Pre-Crownfall" /MOVE /E
==== Back-up ====
* ''50.2 GB'', 23,336 Files, 2,020 Folders
"explorer.exe" "%ProgramFiles%\Dota 2 Pre-Crownfall"
==== Clean-up ====
****
RMDIR /S /Q "%ProgramFiles%\Steam\steamapps\content\app_570"
====== Goldberg Emulator ======
* Forces Dota 2 to offline, sets display name, and allows settings save/persistence ((in-game video settings don't stick otherwise; settings save to Steam user account and relies on Steam APIs))
* Last tested: ''Goldberg_Lan_Steam_Emu_master--475342f0.zip'' (([[https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/jobs/4247811310/artifacts/download|Lastest artifact]] from project page))
MKDIR "%ProgramFiles%\Steam\emu" & DEL /Q "%Temp%\Goldberg_Lan_Steam_Emu_master.zip" "%ProgramFiles%\Steam\emu\steamclient64.dll" & "curl.exe" --output "%Temp%\Goldberg_Lan_Steam_Emu_master.zip" --location "https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/jobs/4247811310/artifacts/download" && "tar.exe" -xvf "%Temp%\Goldberg_Lan_Steam_Emu_master.zip" --strip-components="1" -C "%ProgramFiles%\Steam\emu" "experimental_steamclient/steamclient64.dll"
DIR "%ProgramFiles%\Steam\emu\steamclient64.dll"
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Valve\Steam\ActiveProcess" /v "SteamClientDll64" /t "REG_SZ" /d "C:\Program Files\Steam\emu\steamclient64.dll" /f
===== Settings =====
* ''force_account_name.txt'' for in-game username
* All other files are empty
MKDIR "%ProgramFiles%\Steam\emu\steam_settings" & ECHO Espionage724 > "%ProgramFiles%\Steam\emu\steam_settings\force_account_name.txt" & TYPE NUL > "%ProgramFiles%\Steam\emu\steam_settings\disable_networking.txt" & TYPE NUL > "%ProgramFiles%\Steam\emu\steam_settings\disable_overlay.txt" & TYPE NUL > "%ProgramFiles%\Steam\emu\steam_settings\offline.txt"
====== Compat Settings ======
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch DXPrimaryEmulation NoGDIHWAcceleration" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\dota2.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f
====== Firewall ======
===== Block =====
****
"netsh.exe" advfirewall firewall add rule name="Dota 2 Pre-Crownfall" dir="in" action="block" profile="any" program="%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe" && "netsh.exe" advfirewall firewall add rule name="Dota 2 Pre-Crownfall" dir="out" action="block" profile="any" program="%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe"
===== Delete Rules =====
****
"netsh.exe" advfirewall firewall delete rule name="Dota 2 Pre-Crownfall"
====== Initial Settings ======
* ''-autoconfig''
* Configure Video settings
* In-game console ''\'' -> ''host_writeconfig''
"%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe" -autoconfig -console -dx11 -novid -useforcedmparms -noforcemaccel -noforcemspd -nogammaramp -nomicsettings
host_writeconfig
====== Launcher Shortcuts ======
===== Desktop =====
==== Dota 2 ====
"%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe" -dx11 -novid -useforcedmparms -noforcemaccel -noforcemspd -nogammaramp -nomicsettings +sv_lan "1" +dota_bot_practice_difficulty "4" +dota_start_ai_game "1" +map "dota"
Dota 2
===== Start Menu =====
****
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\Dota 2 Pre-Crownfall" & "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Dota 2 Pre-Crownfall"
==== Dota 2 ====
"%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe" -dx11 -novid -useforcedmparms -noforcemaccel -noforcemspd -nogammaramp -nomicsettings +sv_lan "1" +dota_bot_practice_difficulty "4" +dota_start_ai_game "1" +map "dota"
Dota 2
==== Reset ====
"%ProgramFiles%\Dota 2 Pre-Crownfall\game\bin\win64\dota2.exe" -autoconfig -console -dx11 -novid -useforcedmparms -noforcemaccel -noforcemspd -nogammaramp -nomicsettings
Reset In-Game Settings
==== Install Notes ====
"https://wiki.realmofespionage.xyz/games;windows;dota_2_pre-crownfall_steamcmd"
Install Notes