Skip to content

Instantly share code, notes, and snippets.

@pdxjohnny
Created August 26, 2023 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdxjohnny/f7038ec778ca87a0b8cd0660b27227b1 to your computer and use it in GitHub Desktop.
Save pdxjohnny/f7038ec778ca87a0b8cd0660b27227b1 to your computer and use it in GitHub Desktop.
How to make Steam stop Scheduling Updates - https://steamcommunity.com/discussions/forum/1/611696927907574027/
python -uc "import sys, pathlib; list([path.write_bytes('\n'.join([str(line if not 'AutoUpdateBehavior' in line else line.replace('0', '2')) for line in path.read_text().split('\n')]).encode()) for path in pathlib.Path(sys.argv[-1]).glob('*.acf')])" 'C:\Program Files (x86)\Steam\steamapps'
@pdxjohnny
Copy link
Author

$ for file in $(ls *.acf); do diff -u <(xxd $file) <(xxd ~/../../Program\ Files\ \(x86\)/Steam/steamapps/$file); done
xxd ~/../../Program\ Files\ \(x86\)/Steam/steamapps/$file
--- /dev/fd/63  2023-08-25 18:40:13.000000000 -0700
+++ /dev/fd/62  2023-08-25 18:40:13.000000000 -0700
@@ -29,7 +29,7 @@
 000001c0: 2230 220a 0922 5461 7267 6574 4275 696c  "0".."TargetBuil
 000001d0: 6449 4422 0909 2234 3339 3039 3133 220a  dID".."4390913".
 000001e0: 0922 4175 746f 5570 6461 7465 4265 6861  ."AutoUpdateBeha
-000001f0: 7669 6f72 2209 0922 3022 0a09 2241 6c6c  vior".."0".."All
+000001f0: 7669 6f72 2209 0922 3222 0a09 2241 6c6c  vior".."2".."All
 00000200: 6f77 4f74 6865 7244 6f77 6e6c 6f61 6473  owOtherDownloads
 00000210: 5768 696c 6552 756e 6e69 6e67 2209 0922  WhileRunning".."
 00000220: 3022 0a09 2253 6368 6564 756c 6564 4175  0".."ScheduledAu
xxd $file
xxd ~/../../Program\ Files\ \(x86\)/Steam/steamapps/$file
--- /dev/fd/63  2023-08-25 18:40:13.000000000 -0700
+++ /dev/fd/62  2023-08-25 18:40:13.000000000 -0700
@@ -30,7 +30,7 @@
 000001d0: 0922 5461 7267 6574 4275 696c 6449 4422  ."TargetBuildID"
 000001e0: 0909 2232 3834 3522 0a09 2241 7574 6f55  .."2845".."AutoU
 000001f0: 7064 6174 6542 6568 6176 696f 7222 0909  pdateBehavior"..
-00000200: 2230 220a 0922 416c 6c6f 774f 7468 6572  "0".."AllowOther
+00000200: 2232 220a 0922 416c 6c6f 774f 7468 6572  "2".."AllowOther
 00000210: 446f 776e 6c6f 6164 7357 6869 6c65 5275  DownloadsWhileRu
 00000220: 6e6e 696e 6722 0909 2230 220a 0922 5363  nning".."0".."Sc
 00000230: 6865 6475 6c65 6441 7574 6f55 7064 6174  heduledAutoUpdat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment