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

Resident Evil: Resistance · handler “ResidentEvilResistance”

Version 1

Release notes

First release, 300th script.

Released
Size
1.9 KB
Downloads
894
Check
Verified
SHA-256
8de4b2f39eeeb9a02d887ab48ad93bfd0d8c4dc7be5c20fa532254701d86b4f1
Download v1 (.nc)All versions

Files 1

PathSize
handler.js4.6 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Sat Dec 05 2020 22:20:23 GMT+0000 (UTC).
Hub.Handler.Id = "takcc74JLtYjx7eji";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["No", "Yes"];
Game.AddOption("Don't use process picker?", "Select yes if you already set the instances to windowed and in the correct res.", "Picker", answers1);

Game.FileSymlinkExclusions = ["steam_api64.dll", "steam_appid.txt", "res_config.ini", "XInput1_3.dll"];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergNoLocalSave = true;
Game.UseNucleusEnvironment = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "REResistance.exe";
Game.SteamID = "952070";
Game.GUID = "Resident Evil Resistance";
Game.GameName = "Resident Evil Resistance";
Game.MaxPlayers = 5;
Game.MaxPlayersOneMonitor = 5;
Game.BinariesFolder = "";
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "RESIDENT EVIL RESISTANCE / BIOHAZARD RESISTANCE";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.Hook.CustomDllEnabled = false;
Game.FakeFocus = false;
Game.HookFocus = false;
Game.SetWindowHookStart = false;
Game.ResetWindows = true;
Game.SetForegroundWindowElsewhere = true;
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\952070\\remote";
Game.UserProfileSavePathNoCopy = true;
Game.PlayerSteamIDs = ["76561198134585131", "76561198131394153", "76561198011792067", "76561198043762785"];
Game.Description =
  "On first Nucleus run the game instances will open in fullscreen, change them to windowed in the game graphic settings, select the custom resolution you want there too. After doing that select the REResistance process in Nucleus process picker window, click refresh if you don't see it, do the same for all the instances that open. You need to add custom resolutions in your AMD/Nvidia/Intel panel (For example: 960x1080, 1920x540, 960x540 etc.) for the game to see them. If you get a constant message about being unable to connect to Residentevil.net disable it in the game settings. If you have trouble using the cursor with process picker after the instances have opened disable the lock cursor option in the game control settings for all instances. This is a demanding game so make sure you lower the in-game graphic settings like textures per instance for better performance. You can access each instance saves in the app, after the first launch click game options/open user profile save path in the UI.";
Game.ForceProcessPick = true;
Game.KeepSymLinkOnExit = false;
Game.PauseBetweenStarts = 40;

Game.SupportsMultipleKeyboardsAndMice = false;

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

Game.Play = function() {
  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\res_config.ini");
  Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [new Nucleus.IniSaveInfo("RenderConfig", "PCWindowMode", 0)]);

  if (Context.IsKeyboardPlayer) {
    var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XinputPlus.ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", "5"),
      new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", "5"),
      new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", "5"),
      new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", "5")
    ]);
  }
  var picker = Context.Options["Picker"];

  if (picker == "Yes") {
    Game.ForceProcessPick = false;
    Game.SupportsMultipleKeyboardsAndMice = true;
  }

  if (picker == "No") {
    Game.SupportsMultipleKeyboardsAndMice = true;
  }
};