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

Terraria · handler “Terraria”

Version 2

Release notes

multiple keyboards support added

Released
Size
1.2 KB
Downloads
1,434
Check
Verified
SHA-256
d6c666228bcc99885097e67faadbf1c42758f8417d14e8b28cc2a02a95183f82
Download v2 (.nc)All versions

Files 1

PathSize
handler.js2.4 KB

handler.js

Plain text
Hub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Fri Mar 06 2020 05:22:25 GMT+0000 (UTC).
Hub.Handler.Id = "J5vdAQFvS9i3AZCRE";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.FileSymlinkExclusions = ["steam_appid.txt", "config.json"];
Game.FileSymlinkCopyInstead = ["steam_api.dll"];
Game.NeedsSteamEmulation = false;
Game.CreateSteamAppIdByExe = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "terraria.exe";
Game.SteamID = "105600";
Game.GUID = "Terraria";
Game.GameName = "Terraria";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.SupportsPositioning = true;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Terraria";
Game.HasDynamicWindowTitle = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.FakeFocus = true;
Game.HookFocus = true;
Game.SetWindowHook = true;
Game.Description = "When an instance opens move in the title screen with the respective gamepad for gamepads to work correctly. Use CTR+Q or End key to stop splitscreen when you finish playing.";
Game.PauseBetweenStarts = 40;

Game.SupportsMultipleKeyboardsAndMice = true;

Game.HookSetCursorPos = false;
Game.HookGetCursorPos = true;
Game.HookGetKeyState = true;
Game.HookGetAsyncKeyState = true;
Game.HookGetKeyboardState = true;
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.DrawFakeMouseCursor = false;
Game.LockInputAtStart = true;
Game.LockInputToggleKey = 0x23;

Game.Play = function() {
  var txtPath = Context.GetFolder(Nucleus.Folder.Documents) + "\\My Games\\Terraria\\config.json";
  var dict = ['14|"Fullscreen": false,', '15|"WindowMaximized": false,', '16|"WindowBorderless": true,', '17|"DisplayWidth":  ' + Context.Width + ",", '18|"DisplayHeight":  ' + Context.Height + ","];

  Context.ReplaceLinesInTextFile(txtPath, dict);
};