Skip to content
Beta: this is a preview of the new SplitScreen.Me. Data may be reset before launch.

Don't Starve Together · handler “Don't Starve Together”

Version 4

Release notes

Gamepad unable to be used after opening an instance with keyboard fixed.

Released
Size
978 B
Downloads
1,764
Check
Verified
SHA-256
ebaf86d876a5d8bf484315ba637e426e22b4825ec3227ccab6dfcafdf9eb698e
Download v4 (.nc)All versions

Files 1

PathSize
handler.js4.3 KB

handler.js

Plain text
Hub.Handler.Version = 4; // Released at https://hub.splitscreen.me/ on Wed Apr 29 2020 07:52:06 GMT+0000 (UTC).
Hub.Handler.Id = "HJtQAkDh9nyRd6z6J";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.DirSymlinkExclusions = ["bin"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt"];
Game.GameName = "Don't Starve Together";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "dontstarve_steam.exe";
Game.SteamID = "322330";
Game.GUID = "Don't Starve Together";
Game.MaxPlayers = 6;
Game.MaxPlayersOneMonitor = 4;
Game.BinariesFolder = "bin";
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Don't Starve Together";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.FixResolution = true;
Game.Hook.FixPosition = true;
Game.UserProfileSavePath = "Documents\\Klei\\DoNotStarveTogether";
Game.RefreshWindowAfterStart = true;
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  if (Context.PlayerID == 0) {
    var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\Klei\\DoNotStarveTogether\\1062859710\\client.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_width", Context.Width),
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_height", Context.Height),
      new Nucleus.IniSaveInfo("GRAPHICS", "fullscreen", "false"),
      new Nucleus.IniSaveInfo("MISC", "controller_popup", "false")
    ]);
  }

  if (Context.PlayerID == 1) {
    var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\Klei\\DoNotStarveTogether\\1062859711\\client.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_width", Context.Width),
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_height", Context.Height),
      new Nucleus.IniSaveInfo("GRAPHICS", "fullscreen", "false"),
      new Nucleus.IniSaveInfo("MISC", "controller_popup", "false")
    ]);
  }

  if (Context.PlayerID == 2) {
    var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\Klei\\DoNotStarveTogether\\1062859712\\client.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_width", Context.Width),
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_height", Context.Height),
      new Nucleus.IniSaveInfo("GRAPHICS", "fullscreen", "false"),
      new Nucleus.IniSaveInfo("MISC", "controller_popup", "false")
    ]);
  }

  if (Context.PlayerID == 3) {
    var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\Klei\\DoNotStarveTogether\\1062859713\\client.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_width", Context.Width),
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_height", Context.Height),
      new Nucleus.IniSaveInfo("GRAPHICS", "fullscreen", "false"),
      new Nucleus.IniSaveInfo("MISC", "controller_popup", "false")
    ]);
  }

  if (Context.PlayerID == 4) {
    var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\Klei\\DoNotStarveTogether\\1062859714\\client.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_width", Context.Width),
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_height", Context.Height),
      new Nucleus.IniSaveInfo("GRAPHICS", "fullscreen", "false"),
      new Nucleus.IniSaveInfo("MISC", "controller_popup", "false")
    ]);
  }

  if (Context.PlayerID == 5) {
    var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\Klei\\DoNotStarveTogether\\1062859715\\client.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_width", Context.Width),
      new Nucleus.IniSaveInfo("GRAPHICS", "windowed_height", Context.Height),
      new Nucleus.IniSaveInfo("GRAPHICS", "fullscreen", "false"),
      new Nucleus.IniSaveInfo("MISC", "controller_popup", "false")
    ]);
  }
};