D
Deleted member 58016
Guest
Wow.
Thanks a lot - mainly for doing the manual work I try to avoid ;-)
I have done an installed (more downloaded) content updater e.g. once, which will look into common\workshop\365960 and get the SteamIDs and check with SteamCMD if there are updates:
What I am currently working on is a UI in Windows Forms (I am not a Powershell expert, I am more a novice) which lets you choose from the installed content in rf2\installed\vehicles and \locations in order to build a .dat file for mod generation.
I have already finished a script for downloading items which relays on Fidgroves CSV files (I have downloaded and stored them luckily) and which I want to change to an on demand web request for getting all available paid content.
That's why I am asking for.
One way, but not really useable is to read my own Steam inventory for such content, but then I need to own all that content - I have not managed to read Steam Shop for such information (is it available there) and it seems SteamAPI does not provide such a function.
So I ended up with my question ...
Thanks a lot - mainly for doing the manual work I try to avoid ;-)
I have done an installed (more downloaded) content updater e.g. once, which will look into common\workshop\365960 and get the SteamIDs and check with SteamCMD if there are updates:
Code:
#
# Simple script to update already downloaded content
#
# Author: Stone, info AT simracingjustfair.org
#
#
# source variables
if (!(Test-Path "..\VARIABLES_SOURCE_FILE.ps1") -and !(Test-Path ".\VARIABLES_SOURCE_FILE.ps1")) {
Write-Warning "Cannot source variables - exiting."
exit 1
}
else {
if(Test-Path "..\VARIABLES_SOURCE_FILE.ps1") { . "..\VARIABLES_SOURCE_FILE.ps1" }
if(Test-Path ".\VARIABLES_SOURCE_FILE.ps1") { . ".\VARIABLES_SOURCE_FILE.ps1" }
}
# DEACTIVATED BECAUSE WE CAN REMOVE THE FILE AT THE END AND SO WE CAN USE THE UPDATER FOR ITEMS CHOSEN BY RF2SRV_DOWNLOAD_UI
# remove already existing command file
#if("$STEAMINSTALLDIR\workshop_items.cmd") { rm $STEAMINSTALLDIR"\workshop_items.cmd" }
#
# get SteamID of already downloaded items
write-host "Reading workshop directory and building command file"
foreach($ITEM in (gci -Directory $STEAMINSTALLDIR\steamapps\workshop\content\365960\ | select -Expand Name))
{
"workshop_download_item 365960 "+$ITEM+" validate" | Out-File -Append $STEAMINSTALLDIR"\workshop_items.cmd" -Encoding ASCII
}
#
# download / update items by using command file
$ARGUMENTS=" +login anonymous +runscript $STEAMINSTALLDIR\workshop_items.cmd +quit"
start-process "$STEAMINSTALLDIR\steamcmd.exe" -ArgumentList $ARGUMENTS -NoNewWindow -Wait
#
# remove command file
if("$STEAMINSTALLDIR\workshop_items.cmd") { rm $STEAMINSTALLDIR"\workshop_items.cmd" }
What I am currently working on is a UI in Windows Forms (I am not a Powershell expert, I am more a novice) which lets you choose from the installed content in rf2\installed\vehicles and \locations in order to build a .dat file for mod generation.
I have already finished a script for downloading items which relays on Fidgroves CSV files (I have downloaded and stored them luckily) and which I want to change to an on demand web request for getting all available paid content.
That's why I am asking for.
One way, but not really useable is to read my own Steam inventory for such content, but then I need to own all that content - I have not managed to read Steam Shop for such information (is it available there) and it seems SteamAPI does not provide such a function.
So I ended up with my question ...