Having to break out the config files to two separate because of the new sv_cheats change.

This commit is contained in:
J-Doiron
2025-11-21 15:14:18 -08:00
parent 238f5c2b81
commit a96ae09e30
3 changed files with 20 additions and 20 deletions

11
dota2/benchmark_load.cfg Normal file
View File

@@ -0,0 +1,11 @@
sv_log 0
sv_alternateticks 0
dota_spectator_use_broadcaster_stats_panel 0
dota_spectator_mode 0
dota_spectator_hero_index ""
cl_showdemooverlay 0; // still broken, no other command usable to hide demo overlay
demo_usefastgoto 1
fps_max 0
playdemo replays\benchmark
sleep 20000

View File

@@ -1,20 +1,6 @@
push_var_values
showconsole
sv_log 0
sv_alternateticks 0
dota_spectator_use_broadcaster_stats_panel 0
dota_spectator_mode 0
dota_spectator_hero_index ""
cl_showdemooverlay 0; // still broken, no other command usable to hide demo overlay
demo_usefastgoto 1
fps_max 0
playdemo replays\benchmark
sleep 20000
//// DISABLE ALL CONSOLE SPEW SOURCES FOR A CLEAN SCRIPT OUTPUT ( VALVE PLZ GIFF SINGLE CMD FOR IT )
/// DISABLE ALL CONSOLE SPEW SOURCES FOR A CLEAN SCRIPT OUTPUT ( VALVE PLZ GIFF SINGLE CMD FOR IT )
log_flags Console +DoNotEcho | grep %
log_flags General Developer DeveloperConsole Panel Panorama PanoramaScript VScript VScriptDbg VScriptScripts CustomUI CustomGameCache CustomNetTable +DoNotEcho
log_flags AnimationGraph AnimationSystem AnimGraphManager AnimResource Assert "BitBuf Error" BoneSetup Client "Combat Analyzer" CommandLine D3D Decals Demo DeveloperVerbose DotaGuide DOTAHLTVCamera +DoNotEcho

View File

@@ -72,13 +72,16 @@ def copy_config() -> None:
config_path = Path(get_install_path(), "game\\dota\\cfg")
config_path.mkdir(parents=True, exist_ok=True)
src_path = SCRIPT_DIRECTORY / "benchmark.cfg"
dest_path = config_path / "benchmark.cfg"
files_to_copy = ["benchmark_run.cfg", "benchmark_load.cfg"]
logging.info("Copying: %s -> %s", src_path, dest_path)
shutil.copy(src_path, dest_path)
for filename in files_to_copy:
src_path = SCRIPT_DIRECTORY / filename
dest_path = config_path / filename
logging.info("Copying: %s -> %s", src_path, dest_path)
shutil.copy(src_path, dest_path)
except OSError as err:
logging.error("Could not copy config file.")
logging.error("Could not copy config files.")
raise err