October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk9 min

How to Add Mods to a Don’t Starve Together Server

A practical guide to downloading and enabling Don’t Starve Together server mods, including the exact Lua files, Master/Caves paths, Workshop collections, shard settings, and startup troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Adding a mod to a Don’t Starve Together dedicated server requires two separate actions: download the Workshop item with dedicated_server_mods_setup.lua, then enable it with modoverrides.lua. A downloaded mod is not automatically active, and an enabled mod that was never downloaded cannot load.

The procedure below covers single-shard and Master/Caves servers, Workshop collections, hosted control panels, configuration options, and the errors that most often prevent mods from loading.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How the server’s mod system works

Don’t Starve Together separates obtaining a mod from turning it on. The dedicated server reads dedicated_server_mods_setup.lua when it starts and uses the Workshop IDs in that file to download content. It then reads modoverrides.lua for the world shard and decides which downloaded mods are enabled and which configuration values to pass to them.

File Purpose Typical location What happens if it is wrong or missing
dedicated_server_mods_setup.lua Requests Workshop downloads The server’s mods folder The mod is not downloaded at startup
modoverrides.lua Enables downloaded mods and supplies settings DoNotStarveTogether/config/server/Master/, and also Caves/ when that shard exists The downloaded mod remains inactive, or the shard can fail to load it
server.ini Defines a shard’s role Each shard’s server configuration folder Master/Caves role confusion can prevent mods from working correctly

Mods are downloaded during server startup, so editing either Lua file has no effect on an already-running process. Always restart after saving changes.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Before you edit anything

  • Stop the dedicated server cleanly. Editing while it is writing configuration files can overwrite your changes.
  • Make a backup of the current mods folder and each shard’s modoverrides.lua, if present.
  • Confirm whether the world has only a Master shard or also a separate Caves shard.
  • Use a plain-text editor that preserves Lua text. Do not use a word processor that adds smart quotes or formatting.
  • Make sure the file names end in .lua, not .txt. On systems that hide extensions, enable “show file extensions” before renaming files.

Step-by-step: add an individual Workshop mod

1. Find the Workshop ID

Open the mod’s Steam Workshop page and inspect its URL. The numeric value after ?id= is the Workshop ID. For example, in a URL ending with ?id=350811795, the ID is 350811795. Copy only the digits; do not include the question mark, the parameter name, or other URL text.

Keep a small list of the IDs you plan to install. A typo produces a different item or a failed download, and the server will not infer the correct mod from its display name.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. Add the ID to dedicated_server_mods_setup.lua

Open the mods directory belonging to the dedicated server and create or edit dedicated_server_mods_setup.lua. Add one ServerModSetup line for every Workshop mod:

ServerModSetup("350811795")
ServerModSetup("1467214795")

Use straight quotation marks and keep the ID inside quotes. Put each call on its own line. Do not add a comma between lines; these are function calls, not entries in a Lua table.

A syntax error in this file can stop the server instead of merely skipping one bad mod. If the server refuses to start immediately after an edit, restore the backup and check quotation marks, parentheses, and accidental extra characters.

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

3. Create or edit modoverrides.lua for Master

For the overworld shard, place the file at:

DoNotStarveTogether/config/server/Master/modoverrides.lua

Existing worlds may not have this file, so create it manually. A basic file that enables two mods is:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
return {
    ["workshop-350811795"] = {
        enabled = true,
    },
    ["workshop-1467214795"] = {
        enabled = true,
    },
}

The key must contain the literal workshop- prefix followed by the exact Workshop ID. The enabled = true property is required; downloaded mods are not enabled by default.

4. Add configuration options only when the mod defines them

Mods that expose settings use a configuration_options table inside their entry. The option names, value types, and accepted values come from that mod’s own description or configuration documentation. Do not invent keys or change a number’s type:

return {
    ["workshop-350811795"] = {
        enabled = true,
        configuration_options = {
            option_name = 1,
            another_option = "value",
        },
    },
}

If a mod has no options, omit the table rather than adding arbitrary values. A malformed table can keep the entire override file from loading, so check commas, braces, equals signs, and quotation marks carefully.

5. Duplicate the overrides for Caves

If the world uses a separate Caves shard, create or update:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
DoNotStarveTogether/config/server/Caves/modoverrides.lua

Community server setups commonly keep the Master and Caves override files identical. Copy the complete file, including every enabled entry and its configuration options, rather than copying only the first mod. This ensures both shards receive the same mod definitions. A mod may still behave differently between shards if its own implementation is shard-aware, but the server must be able to resolve the entry on each shard.

6. Restart and watch the logs

Save every file, start the server, and inspect the startup logs. Look for messages showing Workshop downloads and mod loading. The first start after adding a mod can take longer while the server downloads content into a directory such as:

mods/workshop-350811795

If the directory appears but the mod does not affect the world, the download step succeeded and the problem is usually in modoverrides.lua, the shard path, or the mod’s own compatibility. If no directory appears, check the setup file, the ID, permissions, and the server log before changing the override file.

Installing an entire Workshop collection

For a collection, use ServerModCollectionSetup in dedicated_server_mods_setup.lua with the collection’s ID:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ServerModCollectionSetup("123456789")

The collection ID is the number identifying the collection itself, not one of the individual mod IDs. The server requests the collection contents at startup.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Collection download and mod activation are still separate concerns. Depending on the server build and the mods in the collection, you may need individual entries in modoverrides.lua for every contained mod. If a collection downloads successfully but nothing changes in-game, inspect the collection page for each item’s Workshop ID and add the corresponding workshop- entries with enabled = true. Do not assume that membership in a collection automatically enables every item.

Check the Master and Caves shard roles

Each shard has a server.ini. The Master shard must declare:

is_master = true

The Caves shard must declare:

is_master = false

Verify these values in the correct shard directories. If they are reversed, duplicated, or missing, the server can treat a shard as the wrong role and report apparently unrelated mod failures. Correct the role values, save the files, and restart both processes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When a new world appears to create the file automatically

Reports from community-hosted setups differ depending on the world and server version. Newly created worlds are sometimes populated with a modoverrides.lua based on the entries in dedicated_server_mods_setup.lua. Existing worlds commonly do not receive a new override file automatically. For predictable behavior, inspect the shard directory yourself and create the file when it is absent instead of relying on automatic generation.

Automatic generation also does not remove the need to verify enabled = true, the workshop- prefix, and the Caves copy. Treat the generated file as a starting point and check its contents before launching a public server.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Hosted control panels and remote servers

Game-hosting panels often relocate the installation, expose only a web file manager, or separate configuration from the executable files. The logical file names and Lua structure remain the same, but the visible path may differ. Use the panel’s file manager and documentation to locate:

  • the server’s mods directory containing dedicated_server_mods_setup.lua;
  • the Master shard’s config/server/Master/ directory;
  • the Caves shard’s config/server/Caves/ directory, if enabled; and
  • the startup log viewer.

Some panels provide a separate “Workshop collection” field or a mod installer. If you use that interface, verify the resulting files rather than assuming the panel enabled the mods. The same two-stage rule applies: the Workshop content must be downloaded and each shard must have valid overrides.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshooting: identify the failing stage

Symptom Likely cause What to check
No mods/workshop-<id> directory after restart The download request was not read Confirm the file is in the server’s actual mods folder, the ID is numeric, the line uses ServerModSetup("…"), and the log shows no syntax error
The directory exists, but the mod is absent in-game The mod was downloaded but not enabled Check the shard’s modoverrides.lua, the workshop- prefix, and enabled = true
Master works but Caves does not Caves has no override file or a different one Copy the validated Master file to config/server/Caves/modoverrides.lua and confirm the Caves server.ini has is_master = false
Both shards fail immediately after an edit Lua syntax error Check unmatched braces or parentheses, missing commas, smart quotes, and accidental text outside the returned table
Only one shard fails with a role-related message Incorrect is_master value Master must be true; Caves must be false
The server starts but ignores every override Wrong filename or extension Ensure the name is exactly modoverrides.lua, not modoverrides.lua.txt, and that it is inside the shard’s config/server directory
A collection downloads, but some items are inactive Collection membership was treated as activation Add each affected item’s Workshop ID to the override table with enabled = true

Validate Lua structure before restarting

Read the file from the first character to the last. A valid override file normally starts with return {, contains one bracketed Workshop key per mod, and ends by closing the outer brace. Every opening brace must have a matching closing brace. Keep a backup copy so you can revert to the last known-good version if the server stops during startup.

Use the log to separate download from activation

Do not troubleshoot both stages at once. First establish whether the server created the Workshop directory. If it did not, fix dedicated_server_mods_setup.lua. If it did, inspect modoverrides.lua, the shard location, and the enabled flag. This distinction prevents repeatedly editing the wrong file.

Removing or disabling a mod

To disable a mod without deleting its downloaded files, remove its entry from the relevant modoverrides.lua or change its enabled value to false, then restart. To stop requesting future downloads, remove its ServerModSetup line from dedicated_server_mods_setup.lua. On a two-shard world, make the same change in both override files so one shard does not continue loading the mod.

Keep a copy of the old configuration before removing a mod from an established world. A mod can add or alter saved-world data, and whether that data remains safe after removal depends on the mod; the server files alone cannot guarantee a reversible change.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The older ForceEnableMod method

Older forum and guide examples use ForceEnableMod("workshop-<id>") in modsettings.lua, especially for mods without configuration options. Reports disagree about when this method is preferable, and its continued support on the current game build is not established. Use the download-plus-modoverrides.lua method as the current baseline. If you are maintaining an old server that already uses ForceEnableMod, treat it as an unverified legacy configuration and test it after a game update rather than assuming it is interchangeable with shard overrides.

Production checklist

  1. Stop the server and back up the current configuration.
  2. Copy each mod’s numeric Workshop ID from its Workshop URL.
  3. Add one ServerModSetup("id") line per mod, or add the collection with ServerModCollectionSetup("collection-id").
  4. Create DoNotStarveTogether/config/server/Master/modoverrides.lua if it does not exist.
  5. Add each mod under a workshop- key with enabled = true.
  6. Add only documented configuration_options values.
  7. Copy the complete override file to the Caves directory when a Caves shard is used.
  8. Confirm is_master = true for Master and is_master = false for Caves.
  9. Check that every file really ends in .lua.
  10. Restart and inspect the logs for downloads and load messages.
  11. Verify the mod in-game before inviting players.

Following this order makes the source of a failure clear: the setup file controls acquisition, the override file controls activation, and the shard configuration determines where each activation is applied.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.