Dragonwilds:Dedicated Servers/Windows: Difference between revisions
More actions
Fix template calls: add DW/ prefix |
Sync: updated from Dragonwilds |
||
| Line 1: | Line 1: | ||
'''Windows'''-based [[Dragonwilds:Dedicated Servers]] can be set up with the following code (created by [https://discord.com/channels/1249729853096198236/1478071708991623300/1489334213978357921 oi_caveman] and instructions below. | '''Windows'''-based [[Dragonwilds:Dedicated Servers]] can be set up with the following code (created by [https://discord.com/channels/1249729853096198236/1478071708991623300/1489334213978357921 oi_caveman]) and instructions below. | ||
# Paste the following into a notepad file, and click "save-as" with the <code>.bat</code> extension. | # Paste the following into a notepad file, and click "save-as" with the <code>.bat</code> extension. | ||
# Save it in the same folder as the Dedicated Server's | # Save it in the same folder as the Dedicated Server's main directory, where it contains the .exe to run the server. | ||
<syntaxhighlight lang='c'> | <syntaxhighlight lang='c'> | ||
| Line 22: | Line 22: | ||
set "BACKUP_PATH=%INSTALL_DIR%DedicatedServer_Backup.ini" | set "BACKUP_PATH=%INSTALL_DIR%DedicatedServer_Backup.ini" | ||
echo %CYAN%Detected path:%RESET% %INSTALL_DIR% | echo %CYAN%Detected path:%RESET% %INSTALL_DIR% | ||
echo. | echo. | ||
| Line 62: | Line 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Game mechanics}} | ||
Latest revision as of 11:00, 4 May 2026
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 main directory, 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 %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>