Jump to content

Dedicated Server Quick Setup Guide - Windows


Recommended Posts

@BekeHydo

I am having the same issue, apparently the problem after digging hours and hours is that the dedicated DST server's version isn't up to date with the game and it seems that the batch file doesn't update the files.

I discovered that by manually connecting to my dedicated server using the DST command line in home game after you loggin, you can try it: c_connect("server ip", port ,"password"), if you don't have a password just type c_connect("server ip",port).

that's what I get

connect1.thumb.PNG.7b8bbef3b969c1067c51dd28b709dd11.PNG

connect2.thumb.PNG.46832c26558c1907432896c79f8d1689.PNG

Steam.thumb.PNG.8adb3a4c8fc94b4ba044e3c219eb9ed9.PNG

Will we ever get a straight response on how to to create a dedicated server because I really enjoy this game.

here is the working server.

working.thumb.PNG.e143d94ae49df5e7ba60014bc8b5b6f2.PNG

but at the same time in the file version.txt in folder steamcmd, it opposes what I am saying cause it's written the newest version. so i'm really confused.

Edited by SkyZY1
more information
  • Big Ups 1
Link to comment
Share on other sites

Hello @taoziG, welcome to the forums. Simply adding the files to the dedicated_server_mods_setup.lua file will not automatically enable the mods to work on the server you are running. What you would also need it a modoverrides.lua file placed inside your Master and Cave folders under MyDediServer Folder beside the server.ini.

Your files checklist will become this:

Spoiler
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\cluster_token.txt
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\cluster.ini
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Master\server.ini
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\server.ini
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Master\modoverrides.lua <- NEW
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\modoverrides.lua <- NEW
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\worldgenoverride.lua
  • \\Documents\Klei\StartDSTServers.bat

Normally you would have to manually create this modoverrides.lua file, but below is a easier method to make the game generate the modoverrides.lua file for you. Follow below:

Spoiler
  • Start up DST
  • Click Host Game
  • Click New Server in Slot 1
  • Set the server intention in the Server Settings so the world can start
  • Toggle the mods you want to use
  • Configure the mods as you see fit
  • You don't have to make caves for this
  • Once done, generate the world
  • Once connected to the world, disconnect from the server
  • Close DST
  • Go to this location Documents\Klei\DoNotStarveTogether\Cluster_1\ (go to Cluster_2 if you used Slot 2)
  • Under the Master folder, get the modoverrides.lua and that is the modoverrides.lua you'd want to use for your server
  • Now paste that modoverrides.lua in your own dedicated server's Master and Caves folder
  • AFAIK, there should be a modoverrides.lua file in both the Master and Caves folder of your dedicated server beside each server.ini
  • Start up your servers with StartDSTServers.bat
  • Mods SHOULD be working at this point.

I hope that helps. Cheers.

  • Like 1
Link to comment
Share on other sites

On 3/21/2023 at 3:38 PM, Zillvr said:

Привет @taoziG, добро пожаловать на форумы. Простое добавление файлов в dedicated_server_mods_setup.lua файл не позволит автоматически модам работать на сервере, который вы запускаете. Вам также понадобится modoverrides.lua файл, помещенный в ваши папки Master и Cave в папку MyDediServer рядом с сервером.ini.

Контрольный список ваших файлов будет следующим:

  Выявление скрытого содержимого
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\cluster_token.txt
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\cluster.ini
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Master\server.ini
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\server.ini
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Master\modoverrides.lua <- NEW
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\modoverrides.lua <- NEW
  • \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\worldgenoverride.lua
  • \\Documents\Klei\StartDSTServers.bat

Обычно вам придется вручную создавать этот файл modoverrides.lua, но ниже приведен более простой способ заставить игру генерировать modoverrides.lua файл для вас. Следуйте ниже:

  Выявление скрытого содержимого
  • Start up DST
  • Click Host Game
  • Click New Server in Slot 1
  • Set the server intention in the Server Settings so the world can start
  • Toggle the mods you want to use
  • Configure the mods as you see fit
  • You don't have to make caves for this
  • Once done, generate the world
  • Once connected to the world, disconnect from the server
  • Close DST
  • Go to this location Documents\Klei\DoNotStarveTogether\Cluster_1\ (go to Cluster_2 if you used Slot 2)
  • Under the Master folder, get the modoverrides.lua and that is the modoverrides.lua you'd want to use for your server
  • Now paste that modoverrides.lua in your own dedicated server's Master and Caves folder
  • AFAIK, there should be a modoverrides.lua file in both the Master and Caves folder of your dedicated server beside each server.ini
  • Start up your servers with StartDSTServers.bat
  • Mods SHOULD be working at this point.

Я надеюсь, что это поможет. Аплодисменты.

I did everything according to the instructions, the mods did not turn on

Link to comment
Share on other sites

Hello @Lichkingqq, welcome to the forums. There are a lot of variables that could be causing your issues. Please add screenshots of errors you are getting and your log files to your next reply. The log files will show what could be causing the issue:

  • Server_log.txt file - found in Documents\Klei\DoNotStarveTogether\MyDediServer\Master
  • Client_log.txt file - found in Documents\Klei\DoNotStarveTogether\
  • Dxdiag.txt file - In order to create a DXDiag on Windows:
    • - Click on your Start button
    • - Press the Windows key + R on your keyboard to access the "Run" window
    • - On the new window, type in dxdiag.exe and press enter; this will open up the DirectX diagnostic tool
    • - Click on the "Save All Information" tab on the diagnostic tool
    • - A "Save As..." window will pop up where you can click on save. It will save your hardware information as a document to your desktop (default).
    • - Close the diagnostic tool and attach the new document to your forum post or support ticket.

These three files could show why the game is not properly implementing your mods.

  • Like 1
Link to comment
Share on other sites

16 hours ago, Zillvr said:

Привет @Lichkingqq, добро пожаловать на форумы. Есть много переменных, которые могут быть причиной ваших проблем. Пожалуйста, добавьте скриншоты ошибок, которые вы получаете, и ваши файлы журналов к вашему следующему ответу. Файлы журнала покажут, что может быть причиной проблемы:

  • Файл Server_log.txt — находится в папке Documents\Klei\DoNotStarveTogether\MyDediServer\Master.
  • Файл Client_log.txt — находится в папке Documents\Klei\DoNotStarveTogether\
  • Файл Dxdiag.txt — для создания DXDiag в Windows:
    • - Нажмите на кнопку «Пуск»
    • - Нажмите клавишу Windows + R на клавиатуре, чтобы открыть окно «Выполнить».
    • - В новом окне введите dxdiag.exe и нажмите Enter; это откроет инструмент диагностики DirectX
    • - Нажмите на вкладку «Сохранить всю информацию» в диагностическом инструменте.
    • - Появится окно «Сохранить как...», где вы можете нажать «Сохранить». Он сохранит информацию о вашем оборудовании в виде документа на рабочем столе (по умолчанию).
    • - Закройте инструмент диагностики и прикрепите новый документ к своему сообщению на форуме или запросу в службу поддержки.

Эти три файла могут показать, почему игра неправильно реализует ваши моды.

File Client_log.txt is missing

DxDiag.txt

Link to comment
Share on other sites

@Lichkingqqif you are able to run DST, the client log should exist somewhere in your documents folder. The location I shown is default but your actual documents location might be somewhere else. 

Where did you even create your MyDediServer folder? Which is required for this guide. The client_log.txt file should be beside the MyDediServer folder if you followed this guide exactly. If however you are sharing your PC/Computer with other users that also play DST on steam, the client_log.txt should still exists somewhere in your Klei Folder in the Documents folder.

It's unfortunate but it's rather impossible to diagnose what could've gone wrong without the logs (the server_log.txt at least). Thinking about it more, if no client_log.txt exist in the expected folder and looking at your DxDiag.txt file, are you even able to start up DST properly? Cause based on what I'm seeing you do not have enough Dedicated Memory on you GPU.

Dxdiag shows:

Processor: Intel(R) Pentium(R) CPU  N3710  @ 1.60GHz (4 CPUs), ~1.6GHz
Dedicated Memory: 114 MB

While below is the requirements for DST Dedicated Server (see link for reference ► Don't Starve Together System Requirements – Klei Entertainment):

Processor: 1.7+ GHz or better
Graphics: Radeon HD5450 or better; dedicated 256 MB or higher (GMA Cards not supported - See above)

However, if you are still able to start up the DST Dedicated Server with these specifications. Adding mods will unfortunately add more workload for your dedicated server to function properly. These are all speculation by the way, since all I had to go on were your dxdiag.txt information. Sorry that we couldn't find a workaround fix for you.

  • Like 1
Link to comment
Share on other sites

2 hours ago, Zillvr said:

@Lichkingqqесли вы можете запустить DST, журнал клиента должен существовать где-то в папке с документами. Место, которое я показал, используется по умолчанию, но ваше фактическое местоположение документов может быть где-то еще. 

Где вы вообще создали свою папку MyDediServer? Что требуется для этого руководства. Файл client_log.txt должен находиться рядом с папкой MyDediServer, если вы точно следовали этому руководству. Однако, если вы делитесь своим ПК / компьютером с другими пользователями, которые также играют в DST в Steam, файл client_log.txt все еще должен существовать где-то в вашей папке Klei в папке «Документы».

К сожалению, без журналов (по крайней мере, server_log.txt) диагностировать, что могло пойти не так, практически невозможно. Если подумать об этом подробнее, если в ожидаемой папке нет client_log.txt и вы посмотрите на свой файл DxDiag.txt, сможете ли вы вообще правильно запустить DST? Причина, основанная на том, что я вижу, у вас недостаточно выделенной памяти на вашем графическом процессоре.

Dxdiag показывает:

 

Ниже приведены требования для выделенного сервера DST (см. ссылку для справки ►  Системные требования Don't Starve Together — Klei Entertainment ):

 

Однако, если вы все еще можете запустить выделенный сервер DST с этими характеристиками. Добавление модов, к сожалению, добавит дополнительную нагрузку на ваш выделенный сервер для правильной работы. Между прочим, это все домыслы, так как все, что мне нужно было сделать, это ваша информация dxdiag.txt. Сожалеем, что не смогли найти для вас обходной путь.

I found clientlog. Maybe I should create a new server and try there?

Edited by Lichkingqq
Link to comment
Share on other sites

@Lichkingqq if you followed the guide exactly, then you have to make sure you have edited the dedicated_server_mods_setup.lua file in this location:

c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods

If you haven't edited the dedicated_server_mods_setup.lua, edit it now with the specific mod information inside. Open the dedicated_server_mods_setup.lua file with notepad and follow instructions inside on how to add specific mods.

Then restart your StartDSTServer.bat file.

Check back inside the folder, it SHOULD have "workshop-########" folders.

c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods

If the mods files exist in the location listed above

And if your modoverrides.lua file is in Documents\Klei\DoNotStarveTogether\MyDediServer\Master & Caves folders

Then the mods should be appearing in game when you try to join the server after launching StartDSTServers.bat file.

Edited by Zillvr
Link to comment
Share on other sites

4 hours ago, Zillvr said:

@Lichkingqq if you followed the guide exactly, then you have to make sure you have edited the dedicated_server_mods_setup.lua file in this location:

c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods

If you haven't edited the dedicated_server_mods_setup.lua, edit it now with the specific mod information inside. Open the dedicated_server_mods_setup.lua file with notepad and follow instructions inside on how to add specific mods.

Then restart your StartDSTServer.bat file.

Check back inside the folder, it SHOULD have "workshop-########" folders.

c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods

If the mods files exist in the location listed above

And if your modoverrides.lua file is in Documents\Klei\DoNotStarveTogether\MyDediServer\Master & Caves folders

Then the mods should be appearing in game when you try to join the server after launching StartDSTServers.bat file.

"The Workshop id can be found at the end of the url to the collection's Workshop page." Can you explain this in more detail?

Link to comment
Share on other sites

53 minutes ago, Lichkingqq said:

"The Workshop id can be found at the end of the url to the collection's Workshop page." Can you explain this in more detail?

Adding mods to dedicated_server_mods_setup.lua:

  1. Open Steam
  2. Click Library > Don't Starve Together > Workshop.
  3. Click any mod you want to the dedicated server to download.
  4. Right click anywhere on the page.
  5. Click Copy Page URL.
    • copypage.png.2afeadce04d72cf681e9d411123f54fe.png
  6. In this example "Combined Status" URL is ► "https://steamcommunity.com/sharedfiles/filedetails/?id=376333686"
  7. The number at the end of the URL marked "id=########" is the Workshop ID you need to copy.
  8. So paste in a notepad and just copy the Workshop ID specifically, in this example 376333686
  9. Go to c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods
  10. Open dedicated_server_mods_setup.lua with notepad.
  11. Add the following line at bottom.
    • ServerModSetup("376333686")
    • dedi.PNG.0fad7aa6d5d4690a40a26a6b722dda04.PNG
  12. To add other mods, repeat steps 3 - 11
  13. Save
  14. Run StartDSTServers.bat
Edited by Zillvr
Link to comment
Share on other sites

1 hour ago, Zillvr said:

Adding mods to dedicated_server_mods_setup.lua:

  1. Open Steam
  2. Click Library > Don't Starve Together > Workshop.
  3. Click any mod you want to the dedicated server to download.
  4. Right click anywhere on the page.
  5. Click Copy Page URL.
    • copypage.png.2afeadce04d72cf681e9d411123f54fe.png
  6. In this example "Combined Status" URL is ► "https://steamcommunity.com/sharedfiles/filedetails/?id=376333686"
  7. The number at the end of the URL marked "id=########" is the Workshop ID you need to copy.
  8. So paste in a notepad and just copy the Workshop ID specifically, in this example 376333686
  9. Go to c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods
  10. Open dedicated_server_mods_setup.lua with notepad.
  11. Add the following line at bottom.
    • ServerModSetup("376333686")
    • dedi.PNG.0fad7aa6d5d4690a40a26a6b722dda04.PNG
  12. To add other mods, repeat steps 3 - 11
  13. Save
  14. Run StartDSTServers.bat

I wrote down all the mods, started the server, the mobs did not appear, and the entries in the document disappeared

Link to comment
Share on other sites

@Lichkingqq Ah, it's unfortunate, but we missed a step with adding mods.Proceed below:

  • Redo edits to dedicated_server_mods_setup.lua
  • Make back up copy of dedicated_server_mods_setup.lua, just in case
  • Make copy of StartDSTServer.bat
  • Rename "Copy of StartDSTServer.bat" to StartServer.bat
  • Edit StartServer.bat
  • Copy and paste the text below:
cd /D "c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin64"
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Master
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Caves
  • Must remove the batch line " c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 validate +quit" Since +app_update refreshes the Dedicated Server Files including reseting dedicated_server_mods_setup.lua:
  • Run StartServer.bat

Once there is a new version of DST Client and Servers, simply start up StartDSTServer.bat instead AND then readd your dedicated_server_mods_setup.lua file.

Edited by Zillvr
Link to comment
Share on other sites

46 minutes ago, Zillvr said:

@Lichkingqq Ah, it's unfortunate, but we missed a step with adding mods.Proceed below:

  • Redo edits to dedicated_server_mods_setup.lua
  • Make back up copy of dedicated_server_mods_setup.lua, just in case
  • Make copy of StartDSTServer.bat
  • Rename "Copy of StartDSTServer.bat" to StartServer.bat
  • Open StartServer.bat
  • Copy and paste the text below:
cd /D "c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin64"
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Master
start dontstarve_dedicated_server_nullrenderer_x64 -console -cluster MyDediServer -shard Caves
  • Must remove the batch line " c:\steamcmd\steamcmd.exe +login anonymous +app_update 343050 validate +quit" Since +app_update refreshes the Dedicated Server Files including reseting dedicated_server_mods_setup.lua:
  • Run StartServer.bat

Once there is a new version of DST Client and Servers, simply start up StartDSTServer.bat instead AND then readd your dedicated_server_mods_setup.lua file.

Can you elaborate on how to delete a line?

Link to comment
Share on other sites

5 hours ago, Zillvr said:

@Lichkingqq используйте этот файл, который я прикрепил. Исходный «StartDSTServer.bat» имел строку «+app_update», всю эту командную строку в командном файле мы удалим для «StartServer.bat», поэтому, когда вы запускаете сервер с «StartServer.bat», ваш  выделенный_сервер_модов_setup.lua не сбрасывается.

StartServer.bat 274 Б · 1 загрузка

Thanks a lot, everything works. Sorry for the wasted time and effort

Link to comment
Share on other sites

21 час назад, Зиллвр сказал:

@Lichkingqq Извините, но ваш ответ немного сбивается с толку. Все работает, но потрачено время силы? Если все еще есть проблемы, надеюсь, я смогу помочь вам их исправить. Моды работают правильно, как и ожидалось? Или нет?

Yes everything works 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...