Slime Rancher · handler “Slime Rancher Multiplayer Mod”
Version 1
Release notes
First Release
- Released
- Size
- 1.8 KB
- Downloads
- 4,746
- Check
- Verified
- SHA-256
- ec8a87cb1ee9ad186c60b844388d8a2e01f8253a434542d7e2806f17fb3b0d99
Files 1
| Path | Size |
|---|---|
| handler.js | 4.6 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Mon May 02 2022 22:56:23 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "N2pEyBrXCtGusxsnm";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.ExecutableContext = ["SlimeRancher_Data"];
Game.DirSymlinkExclusions = ["SlimeRancher_Data\\Plugins\\x86_64", "Mods"];
Game.FileSymlinkExclusions = ["steam_appid.txt", "xinput1_3.dll"];
Game.FileSymlinkCopyInstead = ["SRMP.dll", "0Harmony.dll", "Newtonsoft.Json.dll", "System.Runtime.Serialization.dll", "UnityCoreMod.dll", "UnityEngine.CoreModule.dll"];
Game.GameName = "Slime Rancher";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = false;
Game.ExecutableName = "SlimeRancher.exe";
Game.SteamID = "433340";
Game.GUID = "Slime Rancher";
Game.CreateSteamAppIdByExe = true;
Game.MaxPlayers = 5;
Game.MaxPlayersOneMonitor = 5;
Game.UseGoldberg = false;
Game.LauncherTitle = "conhost";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Slime Rancher";
Game.FakeFocus = true;
Game.FakeFocusInterval = 5000;
Game.SendFakeFocusMsg = true;
Game.ResetWindows = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.SupportsKeyboard = true;
Game.Hook.CustomDllEnabled = false;
Game.BlockRawInput = false;
Game.UserProfileSavePath = "AppData\\LocalLow\\Monomi Park\\Slime Rancher";
Game.Description =
"IMPORTANT: Requires the latest standalone version of the Slime Rancher Multiplayer mod by Saty (SRMP) to be installed in your game files. Set your main game to windowed and in the correct custom resolution in the game options before running this for the instances to resize correctly. If you want the instances to resize correctly you need to create custom resolutions in your AMD/Nvidia/Intel panel (For example for a 1920x1080 monitor add: 960x1080, 960x540, 1920x540 etc.) so the game can see and use them. Start a game in one instance and host a game using the SRMP mod menu that appears when you press start/escape, in the other instances start a game in a different save slot (make sure you use a different save slot per instance or you will get connection errors), press start then save and quit, in the main menu join to the host using the server code or the games in the same network option, alt-tab between instances to use the keyboard and mouse to connect, pause in all instances to use the cursor correctly otherwise it gets stuck. If you use a keyboard/m instance disable the gamepad input for that instance in the game options once you are in-game, make sure it is enabled for the gamepads instances.";
Game.PromptBetweenInstances = true;
Game.PauseBetweenStarts = 35;
Game.Play = function() {
var Args = (Context.Args = " -screen-fullscreen 0 -popupwindow " + " -screen-width " + Context.Width + " -screen-height " + Context.Height);
Context.StartArguments = Args;
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\Monomi Park\\Slime Rancher", "Screenmanager Fullscreen mode_h3630240806", 3, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\Monomi Park\\Slime Rancher", "Screenmanager Resolution Height_h2627697771", Context.Height, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\Monomi Park\\Slime Rancher", "Screenmanager Resolution Width_h182942802", Context.Width, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\Monomi Park\\Slime Rancher", "Screenmanager Resolution Use Native_h1405027254", 0, Nucleus.RegType.DWord);
if (Context.IsKeyboardPlayer) {
var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XinputPlus.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", "0"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", "0"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", "0"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", "0")
]);
} else {
var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XInputPlus.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", Context.GamepadId),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", Context.GamepadId),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", Context.GamepadId),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", Context.GamepadId)
]);
}
};