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

Torchlight II · handler “TorchlightII”

Version 1

Release notes

First Release

Released
Size
1.3 KB
Downloads
868
Check
Verified
SHA-256
f790a625115fef5b7a69dc46640797b045260f9eac1f9dca2db29749c8ce6676
Download v1 (.nc)All versions

Files 1

PathSize
handler.js2.7 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Thu Apr 16 2020 05:07:20 GMT+0000 (UTC).
Hub.Handler.Id = "4fEQ29RwqKnPQ9y2F";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.ExecutableContext = ["CEGUIBase.dll"];
Game.FileSymlinkExclusions = [
  //"steam_api.dll",
  "steam_appid.txt"
];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = false;
Game.CreateSteamAppIdByExe = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "Torchlight2.exe";
Game.SteamID = "200710";
Game.GUID = "Torchlight II";
Game.GameName = "Torchlight II";
Game.MaxPlayers = 6;
Game.MaxPlayersOneMonitor = 6;
Game.LauncherTitle = "";
//Game.LauncherExe = "ModLauncher.exe";
Game.HideTaskbar = false;
Game.StartArguments = "-windowed";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Torchlight II";
Game.HasDynamicWindowTitle = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = false;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.FakeFocus = false;
Game.HookFocus = true;
Game.Description =
  "Use a different character per instance and connect them via LAN. Use the END to unlock input and stop splitscreen when you finish playing. You can also use CTR+Q to stop all nucleus instances.";
Game.PauseBetweenStarts = 30;

Game.SupportsMultipleKeyboardsAndMice = true;

Game.HookSetCursorPos = false;
Game.HookGetCursorPos = true;
Game.HookGetKeyState = false;
Game.HookGetAsyncKeyState = true;
Game.HookGetKeyboardState = false;
Game.HookFilterRawInput = false;
Game.HookFilterMouseMessages = false;
Game.HookUseLegacyInput = false;
Game.HookDontUpdateLegacyInMouseMsg = false;
Game.HookMouseVisibility = false;

Game.SendNormalMouseInput = true;
Game.SendNormalKeyboardInput = true;
Game.SendScrollWheel = true;
Game.ForwardRawKeyboardInput = false;
Game.ForwardRawMouseInput = false;
Game.HookReRegisterRawInput = false;
Game.HookReRegisterRawInputMouse = false;
Game.HookReRegisterRawInputKeyboard = false;
Game.DrawFakeMouseCursor = true;
Game.LockInputAtStart = true;
Game.LockInputToggleKey = 0x23;

Game.Play = function() {
  var txtPath = Context.GetFolder(Nucleus.Folder.Documents) + "\\My Games\\Runic Games\\Torchlight 2\\local_settings.txt";
  var dict = [
    "4|WINDOWED_FULLSCREEN :0",
    "5|FULLSCREEN :0",
    "7|RESTART_ON_FULLSCREEN_CHANGE :0",
    "12|WINDOW_WIDTH :" + Context.Width,
    "13|WINDOW_HEIGHT :" + Context.Height,
    "14|RES_WIDTH :" + Context.Width,
    "15|RES_HEIGHT :" + Context.Height
  ];

  Context.ReplaceLinesInTextFile(txtPath, dict, "UTF-16");
};