Dead Rising 2: Off the Record · handler “DeadRising2OtR”
Version 5 (current)
Release notes
cleaning and DLC fix.
- Released
- Size
- 2.6 KB
- Downloads
- 2,126
- Check
- Verified
- SHA-256
- d77be2193843067765db1c0941bc22a4a17740d43f9127a82299f52530d376e7
Files 1
| Path | Size |
|---|---|
| handler.js | 7.0 KB |
handler.js
Plain textHub.Handler.Version = 5; // Released at https://hub.splitscreen.me/ on Thu Sep 28 2023 04:20:51 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "gzXTknCXWEQ7drKeM";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
var answers1 = ["No", "Yes"];
var answers2 = ["No", "Yes"];
Game.AddOption(
"Use Flawless Widescreen?",
"Only select yes if you want to fix the stretching in split-screen and use custom resolutions. Read the handler notes to learn how to use it.",
"FW",
answers1
);
Game.AddOption(
"Xbox One gamepads x360ce fix?",
"ONLY use if your Xbox One gamepads are not recognized in the main game. Map your gamepads fully in the x360ce window that will open then close it.",
"Onefix",
answers2
);
Game.ExecutableContext = ["binkw32.dll"];
Game.KillMutex = ["DeadRising2", "ThreadPoolEvent0", "ThreadPoolEvent1", "ThreadPoolEvent2", "ThreadPoolEvent3"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt", "local_save.txt", "d3d9.dll", "xinput1_3.dll"];
Game.RenameNotKillMutex = true;
Game.UseNucleusEnvironment = true;
Game.UseGoldberg = true;
Game.GoldbergNoLocalSave = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "deadrising2otr.exe";
Game.SteamID = "45770";
Game.GUID = "Dead Rising 2 Off The Record";
Game.GameName = "Dead Rising 2: Off The Record";
Game.MaxPlayers = 2;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Dead Rising 2: Off The Record";
Game.HasDynamicWindowTitle = true;
Game.UseDirectX9Wrapper = true;
Game.HookFocus = true;
Game.ResetWindows = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\45770\\remote";
Game.UserProfileSavePathNoCopy = true;
Game.Description =
"Start a game in one instance and join in the other using play online. If you use keyboards and mice after the instances open press the END key once to lock the input for all instances to have their own cursor. Press the END key again to unlock the input. Enable Flawless Widescreen in the Nucleus UI options if you want to fix the stretching in vertical or horizontal splitscreen. If you use the FWS option you will get a message saying it can't find the Flawless Widescreen module, click ok and FWS will open, in the list of modules select the Dead Rising 2 OTR one, once it is installed close FWS and the instances will open. Once the last instance opens FWS will open again and the patches to fix the stretching should apply automatically, if they don't apply automatically after FWS opens the second time just select the new instances modules that Nucleus created in the FWS UI and they should enable. Use CTRL+T if the Nucleus instances get in the way. You can also adjust the hud/menus size in settings/configuration/display detection in the FWS window.";
Game.PauseBetweenStarts = 30;
Game.GamePlayBeforeGameSetup = true;
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 = false;
Game.LockInputAtStart = false;
Game.LockInputToggleKey = 0x23;
Game.Play = function() {
var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings");
System.IO.Directory.CreateDirectory(filePath);
var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
var lines = [
"SteamClient015",
"SteamGameServer012",
"SteamGameServerStats001",
"SteamUser017",
"SteamFriends014",
"SteamUtils007",
"SteamMatchMaking009",
"SteamMatchMakingServers002",
"STEAMUSERSTATS_INTERFACE_VERSION011",
"STEAMAPPS_INTERFACE_VERSION006",
"SteamNetworking005",
"STEAMREMOTESTORAGE_INTERFACE_VERSION012",
"STEAMSCREENSHOTS_INTERFACE_VERSION002",
"STEAMHTTP_INTERFACE_VERSION002",
"STEAMUNIFIEDMESSAGES_INTERFACE_VERSION001",
"STEAMUGC_INTERFACE_VERSION001",
"STEAMCONTROLLER_INTERFACE_VERSION",
"STEAMUGC_INTERFACE_VERSION002",
"STEAMAPPLIST_INTERFACE_VERSION001",
"STEAMMUSIC_INTERFACE_VERSION001",
"STEAMMUSICREMOTE_INTERFACE_VERSION001"
];
Context.WriteTextFile(interfaces, lines);
var dlc = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings\\DLC.txt";
var lines = [
"45776=Dead Rising 2: Off the Record Firefighter Skills Pack",
"45775=Dead Rising 2: Off the Record Cyborg Skills Pack",
"45774=Dead Rising 2: Off the Record COSPLAY Skills Pack",
"45773=Dead Rising 2: Off the Record BBQ Chef Skills Pack",
"45772=Dead Rising 2: Off the Record Gamebreaker Skills Pack"
];
Context.WriteTextFile(dlc, lines);
if (Context.HasKeyboardPlayer == true) {
Game.PreventWindowDeactivation = true;
} else {
Game.FakeFocus = true;
Game.FakeFocusInterval = 5000;
Game.SendFakeFocusMsg = true;
Game.SetForegroundWindowElsewhere = true;
//Game.SupportsMultipleKeyboardsAndMice = false;
}
var fw = Context.Options["FW"];
var fix = Context.Options["Onefix"];
if (fw == "Yes") {
Game.FlawlessWidescreen = "DeadRising2OTR";
Game.FlawlessWidescreenOverrideDisplay = true;
Context.BackupFile(Context.NucleusFolder + "\\utils\\FlawlessWidescreen\\x64\\settings.xml", true);
if (Context.PlayerID == 0) {
var txtPath = Context.NucleusFolder + "\\utils\\FlawlessWidescreen\\x64\\settings.xml";
var dict = [
Context.FindLineNumberInTextFile(txtPath, " <CustomSettings Enabled=", Nucleus.SearchType.StartsWith) +
'| <CustomSettings Enabled="true" Width="' +
Context.Width +
'" Height="' +
Context.Height +
'" DisplaysX="1" DisplaysY="1" HUDWidth="' +
Context.Width +
'" HUDHeight="' +
Context.Height +
'" HUDX="' +
Context.Width +
'" HUDY="0"/> '
];
Context.ReplaceLinesInTextFile(txtPath, dict);
}
}
if (fw == "No") {
}
if (fix == "Yes") {
Game.UseX360ce = true;
Game.XboxOneControllerFix = true;
}
if (fix == "No") {
Game.UseX360ce = false;
Game.XboxOneControllerFix = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
}
};