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 6

Release notes

updated with improvements and to work in latest steam version.

Released
Size
933 KB
Downloads
28
Check
Verified
SHA-256
62a4411aa09dc782c983d9be01bdf7a2cdda5b9fb5b5947a0031110c887f225b
Download v6 (.nc)All versions

Files 2

PathSize
DontStarveTogether/steam_api.dll2.1 MB
handler.js2.9 KB

handler.js

Plain text
Hub.Handler.Version = 6; // Released at https://hub.splitscreen.me/ on Fri Feb 05 2021 22:51:12 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", "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 = 4;
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.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");
  System.IO.Directory.CreateDirectory(filePath);

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

  Context.WriteTextFile(nolay, lines);

  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\bin\\steam_api.dll");
  var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "steam_api.dll");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

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