Jump to content

Changing server modes


Recommended Posts

@DTM450, I don't believe there is a nice way... I poked around and have a few ideas for things you could try, though.

 

If you don't care about what happens to your other worlds, you can try changing DEFAULT_MODE to endless in scripts/gamemodes.lua, then renaming Documents/Klei/DoNotStarveTogether/save/saveindex (basically deleting it, but keeping it as a backup in case this goes really wrong). Relaunching the server should cause it to default to endless... I think.

 

Maybe a better approach, though, would be to try changing line 775 of scripts/saveindex.lua from this:

game_mode = serverdata and serverdata.game_mode or TheNet:GetDefaultGameMode(),
to this:

game_mode = "endless"--serverdata and serverdata.game_mode or TheNet:GetDefaultGameMode(), 
Relaunch the game, load the slot, then exit out and undo the change. Hopefully the change to endless will get saved.

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...