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

Orcs Must Die! 3 · handler “Orcs Must Die! 3”

Version 2

Release notes

added DLC compatibility

Released
Size
1.8 KB
Downloads
1,135
Check
Verified
SHA-256
06650e2030c816190f68c61c0db0410023b31b85e5a7ea62c8ddbed9a9b9ed1f
Download v2 (.nc)All versions

Files 1

PathSize
handler.js4.8 KB

handler.js

Plain text
Hub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Tue Nov 16 2021 11:13:35 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "p4cBonKw44rZmCRXb";
Hub.Maintainer.Name = "PoundlandBacon";
Hub.Maintainer.Id = "AdiAjSyfZPMvu3a4M";

Game.DirSymlinkExclusions = ["Engine\\Binaries\\ThirdParty\\Steamworks\\Steamv147\\Win64", "OMD\\Binaries\\Win64", "OMD\\Content\\Movies"];
Game.FileSymlinkExclusions = ["steam_api64.dll", "steam_appid.txt", "xinput1_3.dll", "RobotEntertainment_Logo_6_Seconds.mp4"];
Game.GameName = "Orcs Must Die! 3";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = false;
Game.ExecutableName = "OMD-Win64-Shipping.exe";
Game.CreateSteamAppIdByExe = true;
Game.SteamID = "1522820";
Game.GUID = "OMD3";
Game.MaxPlayers = 2;
Game.MaxPlayersOneMonitor = 2;
Game.BinariesFolder = "OMD\\Binaries\\Win64";
Game.UseNucleusEnvironment = true;
Game.UseGoldberg = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "OMD";
Game.FakeFocus = true;
Game.FakeFocusSendActivateIgnoreKB = true;
Game.HookFocus = true;
Game.SetWindowHook = true;
Game.ResetWindows = true;
Game.RefreshWindowAfterStart = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.UserProfileConfigPath = "AppData\\Local\\Robot Entertainment\\Orcs Must Die! 3\\Saved\\Config\\WindowsNoEditor";
Game.UserProfileSavePath = "AppData\\Local\\Robot Entertainment\\Orcs Must Die! 3\\Saved\\SaveGames";
Game.Description =
  "Create a multiplayer game in one instance and join in the other. If you use mice and keyboards after all the instances open press the END key to lock the input and give each instance its own cursor. You need to left click each mouse to make the cursors appear after locking the input, alt-tab to a third window before locking the input for better performance. Press the END key again to unlock the input. You can use CTRL+Q to close Nucleus and all its instances. For now mouse cursors will be visible at all times when using a mouse and keyboard, we'll fix it if possible.";
Game.PauseBetweenStarts = 30;

Game.SupportsMultipleKeyboardsAndMice = true;

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

Game.Play = function() {
  Context.StartArguments = "-windowed -AlwaysFocus -nosplash" + " -ResX=" + Context.Width + " -ResY=" + Context.Height;

  var ini = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\GameUserSettings.ini";
  Context.ModifySaveFile(ini, ini, Nucleus.SaveType.INI, [
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "bUseHDRDisplayOutput", "False"),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "ResolutionSizeX", Context.Width),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "ResolutionSizeY", Context.Height),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "FullscreenMode", "2"),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "LastConfirmedFullscreenMode", "2"),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "PreferredFullscreenMode", "2"),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "DesiredScreenWidth", Context.Width),
    new Nucleus.IniSaveInfo("/Script/OMD.OMDGameUserSettings", "DesiredScreenHeight", Context.Height)
  ]);

  var ini = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\Engine.ini";
  Context.ModifySaveFile(ini, ini, Nucleus.SaveType.INI, [new Nucleus.IniSaveInfo("SystemSettings", "r.HDR.EnableHDROutput", "0")]);

  var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Engine\\Binaries\\ThirdParty\\Steamworks\\Steamv147\\Win64\\steam_settings");
  System.IO.Directory.CreateDirectory(filePath);

  var dlc = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Engine\\Binaries\\ThirdParty\\Steamworks\\Steamv147\\Win64\\steam_settings\\DLC.txt";
  var lines = ["1669920=OMD!3 - Preorder Overlord Skins", "1781510=Orcs Must Die! 3 - Cold as Eyes Expansion"];
  Context.WriteTextFile(dlc, lines);
};