Reset Don't Starve Together Forest or Caves
A Don’t Starve Together server on AleForge has two shards. Forest is the Master folder. Caves is the Caves folder. Both are under DoNotStarveTogether/config/server.
Before you reset
Section titled “Before you reset”Regenerating a world deletes that save. Make a backup from the Backups page in the AleForge Panel before you continue. That backup is the copy of the current Master and Caves saves.
Command comparison
Section titled “Command comparison”These commands are in the game’s consolecommands.lua. The Don’t Starve Together command list names them. The script comments say:
| Command | What it deletes |
|---|---|
c_regenerateshard() |
The shard it runs on. Settings stay. |
c_regenerateshard(true) |
The shard it runs on, including that shard’s settings. |
c_regenerateworld() |
Every world in the cluster. It does not work properly if a shard is offline or still loading. |
Use c_regenerateshard() only when you need one shard. A remote command from a player sends c_regenerateshard() with no argument, so true applies only when the command runs on that shard’s server.
Reset only the Forest shard
Section titled “Reset only the Forest shard”Run c_regenerateshard() on the Master shard. That regenerates Forest and leaves Caves. Use c_regenerateshard(true) on the Master shard only when you also want Forest’s settings wiped. Do not use c_regenerateworld() or RESET WORLD for this. Those regenerate Forest and Caves together.
Reset only the Caves shard
Section titled “Reset only the Caves shard”Run c_regenerateshard() on the Caves shard. That regenerates Caves and leaves Forest. Use c_regenerateshard(true) on the Caves shard only when you also want Caves’ settings wiped. Do not use c_regenerateworld() or RESET WORLD for this.
Reset Forest and Caves together
Section titled “Reset Forest and Caves together”RESET WORLD in the panel regenerates both shards. c_regenerateworld() does the same while the shards are running. The steps below stop the server first, then reinstall.
- Open the AleForge Panel and select your Don’t Starve Together server
- Stop the server from Console. You can also stop it from the status bar
- Open Startup
- Turn RESET WORLD on (blue, white dot to the right)
- Open Settings and click Reinstall Server
- Wait until the reinstall finishes
- Open Startup again
- Turn RESET WORLD off (grey, white dot to the left)
A new Forest world and a new Caves world are generated the next time you start the server.
World generation settings
Section titled “World generation settings”Editing world generation, such as world size, in leveldataoverride.lua does not change the map you already have. Those changes apply when that shard is regenerated. The steps are in How To Change Your World Settings. c_regenerateshard() keeps the current settings. c_regenerateshard(true) wipes them.