Posted September 22, 2021
Finally having a chance to play with SteamCMD, discovering its quirks.
First off, I discovered I need to provide the game title as the final folder name, and whatever path you provide a 'steamapps' folder gets created there as well ... so no point me using the path E:\GAMES\steamapps\common as I ended up with E:\GAMES\steamapps\common\steamapps
I'm still playing around with what I can do path wise, as my next attempt ended up with the game being installed in an almost random folder of the drive I ran SteamCMD.exe and my BAT file in. I am guessing that might be the current working directory.
D:\Projects\12 is better than 6
https://store.steampowered.com/app/410110/12_is_Better_Than_6/
I am running SteamCMD with a BAT file from - D:\Projects\SteamCMD
I could not login as anonymous and I also needed to provide a Steam Guard code, all on the command-line.
@echo off
steamcmd.exe +login username password +set_steam_guard_code CODE +force_install_dir "..\12 is Better Than 6" +app_update 410110 +quit
pause
cls
exit
Interestingly I had to pick a game that had two install options, so I got both (Low & Hi), and two ZIP files were downloaded and both automatically extracted, leaving the ZIP files behind.
D:\Projects\12 is better than 6\12ibt6Hi.zip
extracted to D:\Projects\12 is better than 6\12ibt6Hi
D:\Projects\12 is better than 6\12ibt6Low.zip
extracted to D:\Projects\12 is better than 6\12ibt6Low
Both folders contain lots of OGG files and an EXE file etc.
The Steam Fandom page says this game is DRM-Free, and I got it as a freebie some time ago, and was trying it first, because it said I only needed 300 Mb of space for it. In reality I needed almost 4 times that ... so lucky it ended up where it did, as the drive I wanted it to go to may have been pushing the space limit.
I've not tried running the game yet.
So anyway, having the ZIP files clearly means I don't need to use my program to ZIP the game folder up. Though I could contain both zip files in a self-extracting EXE file I guess.
No shortcut files were created, so to play the game I guess I just need to run the 12ibt6.exe file in either folder.
EDIT
Second game I tried, there was no ZIP file involved or left behind.
https://store.steampowered.com/app/435790/10_Second_Ninja_X/
Also listed as DRM-Free and just needed 307 Mb of space, though 350 Mb listed as required.
And yes I did need to use the full path in my BAT file, to get it where my other installed Steam games reside.
"E:\GAMES\steamapps\common\10 Second Ninja X"
And once again a 'steamapps' sub-folder was created, though it only contains 662 bytes after the game finished installing.
Anyway, I seem to have it all sussed now. Though how long that Steam Guard code works for I don't know.
Next thing to do, is to implement all that into my program, including the facility for specifying a Steam Guard code.
First off, I discovered I need to provide the game title as the final folder name, and whatever path you provide a 'steamapps' folder gets created there as well ... so no point me using the path E:\GAMES\steamapps\common as I ended up with E:\GAMES\steamapps\common\steamapps
I'm still playing around with what I can do path wise, as my next attempt ended up with the game being installed in an almost random folder of the drive I ran SteamCMD.exe and my BAT file in. I am guessing that might be the current working directory.
D:\Projects\12 is better than 6
https://store.steampowered.com/app/410110/12_is_Better_Than_6/
I am running SteamCMD with a BAT file from - D:\Projects\SteamCMD
I could not login as anonymous and I also needed to provide a Steam Guard code, all on the command-line.
@echo off
steamcmd.exe +login username password +set_steam_guard_code CODE +force_install_dir "..\12 is Better Than 6" +app_update 410110 +quit
pause
cls
exit
D:\Projects\12 is better than 6\12ibt6Hi.zip
extracted to D:\Projects\12 is better than 6\12ibt6Hi
D:\Projects\12 is better than 6\12ibt6Low.zip
extracted to D:\Projects\12 is better than 6\12ibt6Low
Both folders contain lots of OGG files and an EXE file etc.
The Steam Fandom page says this game is DRM-Free, and I got it as a freebie some time ago, and was trying it first, because it said I only needed 300 Mb of space for it. In reality I needed almost 4 times that ... so lucky it ended up where it did, as the drive I wanted it to go to may have been pushing the space limit.
I've not tried running the game yet.
So anyway, having the ZIP files clearly means I don't need to use my program to ZIP the game folder up. Though I could contain both zip files in a self-extracting EXE file I guess.
No shortcut files were created, so to play the game I guess I just need to run the 12ibt6.exe file in either folder.
EDIT
Second game I tried, there was no ZIP file involved or left behind.
https://store.steampowered.com/app/435790/10_Second_Ninja_X/
Also listed as DRM-Free and just needed 307 Mb of space, though 350 Mb listed as required.
And yes I did need to use the full path in my BAT file, to get it where my other installed Steam games reside.
"E:\GAMES\steamapps\common\10 Second Ninja X"
And once again a 'steamapps' sub-folder was created, though it only contains 662 bytes after the game finished installing.
Anyway, I seem to have it all sussed now. Though how long that Steam Guard code works for I don't know.
Next thing to do, is to implement all that into my program, including the facility for specifying a Steam Guard code.
Post edited September 22, 2021 by Timboli