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 3

Release notes

minor fix

Released
Size
919 B
Downloads
1,309
Check
Verified
SHA-256
97a7d0401e3ed27d277151fef7c4daff06f881c92a88ae1d0b3d700da2cf790e
Download v3 (.nc)All versions

Files 1

PathSize
handler.js3.8 KB

handler.js

Plain text
Hub.Handler.Version = 3; // Released at https://hub.splitscreen.me/ on Sat Feb 22 2020 06:30:21 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.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.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")
    ]);
  }

  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")
    ]);
  }

  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")
    ]);
  }

  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")
    ]);
  }

  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")
    ]);
  }

  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")
    ]);
  }
};