[STEAMCMD] Script workshop content directly to package

Discussion in 'Hosting Help' started by Sim7b, Jul 21, 2021.

  1. Sim7b

    Sim7b Registered

    Joined:
    Apr 26, 2020
    Messages:
    11
    Likes Received:
    2
    Hi everyone,

    I want to share a tiny script for SteamCMD install.
    You just have to precise the ID of the workshop content and it download and move directly to Packages folder of rf2 dedicated server.
    I set 2 variables to adapt to your installation :
    steamcmdpath and rf2path

    Code:
    @ECHO OFF
    :loop
    test&cls
    set steamcmdpath="C:\Servers\SteamCMD\"
    set rf2path="C:\Servers\rfactor2-dedicated\"
    echo.
    echo Workshop Downloader by Simon Bourgain - Team F6TR
    echo.
    echo Precise ID
    set /p mod=""
    cls
    %steamcmdpath%steamcmd.exe +login anonymous +workshop_download_item 365960 %mod% +quit
    copy %steamcmdpath%steamapps\workshop\content\365960\%mod%\*rfcmp %rf2path%Packages\
    rmdir /s /q %steamcmdpath%steamapps\workshop\content\365960\%mod%\
    echo.
    echo Mod %mod% downloaded
    echo.
    pause
    goto loop
     
    DanRZ and Woodee like this.

Share This Page