Jump to content

Small batch file to help generate your "dedicated_server_mods_setup.lua" file


Recommended Posts

Worked out a small batch file to help you generate a dedicated_server_mods_setup.lua file based on the mods you have installed in your local DST game

Change the path to match your own DST install and save as generatelua.bat

@echo off
	dir "G:\Games\Steam\steamapps\common\Don't Starve Together\mods" /b /a:d > dedicated_server_mods_setup.lua
        SETLOCAL=ENABLEDELAYEDEXPANSION
        rename dedicated_server_mods_setup.lua dedicated_server_mods_setup.tmp
        for /f "tokens=2 delims=-" %%a in (dedicated_server_mods_setup.tmp) do (
        set foo=ServerModSetup^("%%a"^)
        echo !foo! >> dedicated_server_mods_setup.lua)
del dedicated_server_mods_setup.tmp

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...