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

Warcraft III: The Frozen Throne · handler “Warcraft III: Frozen Throne”

Version 6

Release notes

target 1.29 exe

Released
Size
2.2 KB
Downloads
705
Check
Verified
SHA-256
0b7d076152d156b54524ad06a61bbd636137b51ff1939044144076ad62594983
Download v6 (.nc)All versions

Files 1

PathSize
handler.js7.4 KB

handler.js

Plain text
Hub.Handler.Version = 6; // Released at https://hub.splitscreen.me/ on Fri Jan 14 2022 23:19:25 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "3yQfwCBiTu8MjzetF";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers = ["No", "Yes"];
Game.AddOption("Warcraft III: Reign of Chaos?", "Launches classic Warcraft III Reign of Chaos if you select yes.", "Classic", answers);

Game.KillMutex = ["Type:Event|Warcraft III Game Application"];
Game.FileSymlinkExclusions = ["Frozen Throne.exe", "War3.exe", "Warcraft III.exe"];
Game.FileSymlinkCopyInstead = ["bncache.dat"];
Game.RequiresAdmin = true;
Game.NeedsSteamEmulation = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "Warcraft III.exe";
Game.SteamID = "922";
Game.GUID = "Warcraft III The Frozen Throne";
Game.GameName = "Warcraft III: The Frozen Throne";
Game.MaxPlayers = 12;
Game.MaxPlayersOneMonitor = 12;
Game.LauncherTitle = "";
Game.LauncherExe = "ip.bat";
Game.LauncherExeIgnoreFileCheck = true;
Game.HideTaskbar = false;
Game.StartArguments = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Warcraft III";
Game.ResetWindows = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = false;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.UseForceBindIP = false;
Game.Description =
  "IMPORTANT: Requires game version 1.29 or earlier versions to work. Press the END key to lock the input after the instances have finished setting up so that all instances have their own cursor. You need to left click each mouse to make the emulated cursors appear after locking the input. Press the END key again to unlock the input whe you finish playing. You can also use CTRL+Q to close Nucleus and all its instances when the input is unlocked. Create a LAN game in one instance and join in the others.";
Game.KeepSymLinkOnExit = false;
Game.PromptBetweenInstances = false;
Game.PauseBetweenProcessGrab = 5;
Game.PauseBetweenStarts = 25;

//USS deprecated options:

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

Game.SendNormalMouseInput = false;
Game.SendNormalKeyboardInput = false;
Game.SendScrollWheel = false;
Game.ForwardRawKeyboardInput = false;
Game.ForwardRawMouseInput = false;
Game.HookReRegisterRawInput = false;
Game.HookReRegisterRawInputMouse = false;
Game.HookReRegisterRawInputKeyboard = false;
Game.DrawFakeMouseCursor = false;

//ProtoInput:

Game.SupportsMultipleKeyboardsAndMice = true;

Game.ProtoInput.InjectStartup = false;
Game.ProtoInput.InjectRuntime_RemoteLoadMethod = false;
Game.ProtoInput.InjectRuntime_EasyHookMethod = true;
Game.ProtoInput.InjectRuntime_EasyHookStealthMethod = false;

Game.LockInputAtStart = false;
Game.LockInputSuspendsExplorer = true;
Game.ProtoInput.FreezeExternalInputWhenInputNotLocked = false;
Game.LockInputToggleKey = 0x23;

Game.ProtoInput.RenameHandlesHook = false;
Game.ProtoInput.RenameHandles = [];
Game.ProtoInput.RenameNamedPipes = [];

Game.ProtoInput.RegisterRawInputHook = true;
Game.ProtoInput.GetRawInputDataHook = true;
Game.ProtoInput.MessageFilterHook = true;
Game.ProtoInput.GetCursorPosHook = true;
Game.ProtoInput.SetCursorPosHook = true;
Game.ProtoInput.GetKeyStateHook = true;
Game.ProtoInput.GetAsyncKeyStateHook = true;
Game.ProtoInput.GetKeyboardStateHook = true;
Game.ProtoInput.CursorVisibilityHook = false;
Game.ProtoInput.ClipCursorHook = true;
Game.ProtoInput.FocusHooks = true;
Game.ProtoInput.DrawFakeCursor = false;
Game.ProtoInput.ClipCursorHookCreatesFakeClip = false;
Game.ProtoInput.EnableToggleFakeCursorVisibilityShortcut = false;
Game.ProtoInput.DontShowCursorWhenImageUpdated = false;

Game.ProtoInput.RawInputFilter = true;
Game.ProtoInput.MouseMoveFilter = false;
Game.ProtoInput.MouseActivateFilter = true;
Game.ProtoInput.WindowActivateFilter = true;
Game.ProtoInput.WindowActvateAppFilter = true;
Game.ProtoInput.MouseWheelFilter = true;
Game.ProtoInput.MouseButtonFilter = true;
Game.ProtoInput.KeyboardButtonFilter = true;

Game.ProtoInput.SendMouseWheelMessages = true;
Game.ProtoInput.SendMouseButtonMessages = true;
Game.ProtoInput.SendMouseMovementMessages = true;
Game.ProtoInput.SendKeyboardButtonMessages = true;
Game.ProtoInput.XinputHook = false;

Game.ProtoInput.EnableFocusMessageLoop = false;
//Game.ProtoInput.FocusLoopIntervalMilliseconds = 5;
//Game.ProtoInput.FocusLoop_WM_ACTIVATE = true;
//Game.ProtoInput.FocusLoop_WM_ACTIVATEAPP = true;
//Game.ProtoInput.FocusLoop_WM_NCACTIVATE = true;
//Game.ProtoInput.FocusLoop_WM_SETFOCUS = true;
//Game.ProtoInput.FocusLoop_WM_MOUSEACTIVATE = true;
Game.ProtoInput.BlockedMessages = [0x0008]; // Blocks WM_KILLFOCUS

Game.Play = function() {
  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\Blizzard Entertainment\\Warcraft III\\Video", "resheight", Context.Height, Nucleus.RegType.DWord);

  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\Blizzard Entertainment\\Warcraft III\\Video", "reswidth", Context.Width, Nucleus.RegType.DWord);

  if (System.IO.File.Exists(Context.OrigRootFolder + "\\War3.exe")) {
    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "War3.exe"), System.IO.Path.Combine(Context.RootFolder, "Warcraft III.exe"), true);
  } else {
    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "Warcraft III.exe"), System.IO.Path.Combine(Context.RootFolder, "Warcraft III.exe"), true);
  }

  var classic = Context.Options["Classic"];

  if (classic == "Yes") {
    if (Context.PlayerID == 0) {
      var Bat = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\ip.bat";
      var lines = ['start "" "Warcraft III.exe" -window -classic'];
      Context.WriteTextFile(Bat, lines);
    } else {
      var id = Context.PlayerID + 1;
      var Bat = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\ip.bat";
      var lines = [
        '"' +
          Context.NucleusFolder +
          '\\utils\\ForceBindIP\\ForceBindIP.exe" 127.0.0.' +
          id +
          ' "' +
          Context.NucleusFolder +
          "\\content\\Warcraft III The Frozen Throne\\Instance" +
          Context.PlayerID +
          '\\Warcraft III.exe" -window -classic'
      ];
      Context.WriteTextFile(Bat, lines);
    }
  }

  if (classic == "No") {
    if (Context.PlayerID == 0) {
      var Bat = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\ip.bat";
      var lines = ['start "" "Warcraft III.exe" -window'];
      Context.WriteTextFile(Bat, lines);
    } else {
      var id = Context.PlayerID + 1;
      var Bat = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\ip.bat";
      var lines = [
        '"' +
          Context.NucleusFolder +
          '\\utils\\ForceBindIP\\ForceBindIP.exe" 127.0.0.' +
          id +
          ' "' +
          Context.NucleusFolder +
          "\\content\\Warcraft III The Frozen Throne\\Instance" +
          Context.PlayerID +
          '\\Warcraft III.exe" -window'
      ];
      Context.WriteTextFile(Bat, lines);
    }
  }
};