Dragonwilds:Dedicated Servers/Windows
More actions
Windows-based Dragonwilds:Dedicated Servers can be set up with the following code (created by oi_caveman and instructions below.
- Paste the following into a notepad file, and click "save-as" with the
.batextension. - Save it in the same folder as the Dedicated Server's folder, where it contains the .exe to run the server.
<syntaxhighlight lang='c'> @echo off setlocal cls
set "ESC=�" set "CYAN=%ESC%[96m" set "GREEN=%ESC%[92m" set "RED=%ESC%[91m" set "YELLOW=%ESC%[93m" set "RESET=%ESC%[0m"
set "INSTALL_DIR=%~dp0"
set "STEAMCMD_PATH=C:\steamcmd\steamcmd.exe" set "APP_ID=4019830" set "CONFIG_PATH=%INSTALL_DIR%RSDragonwilds\Saved\Config\WindowsServer\DedicatedServer.ini" set "BACKUP_PATH=%INSTALL_DIR%DedicatedServer_Backup.ini"
echo ================================================================================ echo Dragonwilds updater J-mod plz give Caveman icecream. Take it from Mod Icecream lel echo ================================================================================ echo %CYAN%Detected path:%RESET% %INSTALL_DIR% echo.
if exist "%CONFIG_PATH%" (
echo %CYAN%[STEP 1]%RESET% Backing up DedicatedServer.ini... copy /Y "%CONFIG_PATH%" "%BACKUP_PATH%" >nul echo %GREEN%Backup created successfully.%RESET%
) else (
echo %YELLOW%[SKIP]%RESET% DedicatedServer.ini not found.
) echo.
echo %CYAN%[SO FAR SO GOOD]%RESET% Updating DragonWilds (ID: %APP_ID%)... echo %YELLOW%SteamCMD is running, please wait...%RESET% "%STEAMCMD_PATH%" +force_install_dir "%INSTALL_DIR%." +login anonymous +app_update %APP_ID% validate +quit echo.
echo %CYAN%[Progressing well]%RESET% Restoring your owner ID and settings... if exist "%BACKUP_PATH%" (
if not exist "%INSTALL_DIR%RSDragonwilds\Saved\Config\WindowsServer\" (
mkdir "%INSTALL_DIR%RSDragonwilds\Saved\Config\WindowsServer\"
)
copy /Y "%BACKUP_PATH%" "%CONFIG_PATH%" >nul
echo.
echo %GREEN%[GOOD STUFF m8]%RESET% Update finished.
echo %GREEN%Your owner ID is safe and server updated successfully!%RESET%
) else (
echo. echo %RED%[ERROR] No backup found. You may need to enter your owner ID again manually in your ini, sorry m8.%RESET%
)
echo. echo %CYAN%------------------------------------------------------------%RESET% echo You can now close this window and start your server. pause </syntaxhighlight>