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 8

Release notes

mods support.

Released
Size
1.2 KB
Downloads
64
Check
Verified
SHA-256
c2ddbe6ac7841264a326cc3f3a04f310162ef874e352cb4fa167b4ee332315e8
Download v8 (.nc)All versions

Files 1

PathSize
handler.js2.7 KB

handler.js

Plain text
Hub.Handler.Version = 8; // Released at https://hub.splitscreen.me/ on Thu Apr 08 2021 19:52:40 GMT+0000 (UTC).
Hub.Handler.Id = "HJtQAkDh9nyRd6z6J";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.DirSymlinkExclusions = ["bin", "cached_mods", "mods"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "dinput8.dll", "xinput1_3.dll"];
Game.FileSymlinkCopyInstead = ["dontstarve_dedicated_server_nullrenderer.exe"];
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 = 6;
Game.BinariesFolder = "bin";
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergExperimental = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Don't Starve Together";
Game.RefreshWindowAfterStart = true;
Game.Hook.FixResolution = true;
Game.Hook.FixPosition = true;
Game.FakeFocus = false;
Game.HookFocus = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.UseDInputBlocker = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.Hook.CustomDllEnabled = false;
Game.UserProfileSavePath = "Documents\\Klei\\DoNotStarveTogether";
Game.KeepSymLinkOnExit = true;
Game.PauseBetweenStarts = 25;

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

  var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\bin\\steam_settings\\mods");
  System.IO.Directory.CreateDirectory(filePath);

  var nolay = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\bin\\steam_settings\\disable_overlay.txt";
  var lines = [""];

  Context.WriteTextFile(nolay, lines);

  if (Context.NumControllers < 5) {
    Game.Hook.XInputReroute = false;
  } else {
    Game.HookFocus = false;
    Game.Hook.CustomDllEnabled = true;
    Game.RefreshWindowAfterStart = false;
  }
};