Warcraft III: The Frozen Throne · handler “Warcraft III: Frozen Throne”
Version 5
Release notes
merged both w3 scripts, many fixes and improvements.
- Released
- Size
- 2.2 KB
- Downloads
- 32
- Check
- Verified
- SHA-256
- 14bbb7a31b31fc0383f32edf21facbf7b1a9da6594d8311b358c11a8a2eef40d
Files 1
| Path | Size |
|---|---|
| handler.js | 7.0 KB |
handler.js
Plain textHub.Handler.Version = 5; // Released at https://hub.splitscreen.me/ on Fri Jan 14 2022 07:42:08 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.FileSymlinkCopyInstead = ["bncache.dat", "Frozen Throne.exe", "Warcraft III.exe"];
Game.RequiresAdmin = true;
Game.NeedsSteamEmulation = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "War3.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: 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. Only tested and working with 1.27.0.52240 version of the game. Version 1.29 or earlier versions should work too (the ones before battle.net launcher).";
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);
var classic = Context.Options["Classic"];
if (classic == "Yes") {
if (Context.PlayerID == 0) {
var Bat = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\ip.bat";
var lines = ["START War3.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 +
'\\War3.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 War3.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 +
'\\War3.exe" -window'
];
Context.WriteTextFile(Bat, lines);
}
}
};