Monster Sanctuary · handler “Monster Sanctuary”
Version 1
Release notes
First Release
- Released
- Size
- 1.9 KB
- Downloads
- 212
- Check
- Verified
- SHA-256
- 3ee41cd51aab8e0cfa507918b8fad916a0433e5ac4e158e77c2e5f265c96c6ec
Files 1
| Path | Size |
|---|---|
| handler.js | 4.9 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Tue Jun 01 2021 22:25:12 GMT+0000 (UTC).
Hub.Handler.Id = "SmBEp2p7vHJjyStDd";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.ExecutableContext = ["Monster Sanctuary_Data"];
Game.DirSymlinkExclusions = ["Monster Sanctuary_Data\\Plugins"];
Game.FileSymlinkExclusions = ["steam_appid.txt", "dinput8.dll", "xinput1_3.dll", "xinput9_1_0.dll"];
Game.GameName = "Monster Sanctuary";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = false;
Game.SupportsKeyboard = true;
Game.ExecutableName = "Monster Sanctuary.exe";
Game.SteamID = "814370";
Game.GUID = "Monster Sanctuary";
Game.MaxPlayers = 2;
Game.MaxPlayersOneMonitor = 4;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.CreateSteamAppIdByExe = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Monster Sanctuary";
Game.FakeFocus = true;
Game.Hook.DInputEnabled = false;
Game.UseDInputBlocker = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_3.dll", "xinput1_4.dll", "xinput9_1_0.dll"];
Game.Hook.CustomDllEnabled = false;
Game.BlockRawInput = false;
Game.DocumentsSavePath = "My Games\\Monster Sanctuary";
Game.Description =
"Launch with Steam opened. Go to the Online Arena inside the Keepers Stronghold to battle the other player, you need have the rank of Keeper Lancer to enter. If you want the instances to resize correctly you need to create custom resolutions in your AMD/Nvidia/Intel panel (For example: 960x1080, 960x540, 1920x540 etc.) so the game can see and use them. You can access each instance save in the app, after the first launch click game options/open documents save path in the UI. You can even copy your main save to all instances there. If you use a custom documents folder or if you notice the instances open in fullscreen, on first Nucleus run set each instance to windowed and in the custom resolution you want in the game settings, exit the instance via the game menus so that the settings save then run again via Nucleus.";
Game.KeepSymLinkOnExit = true;
Game.PauseBetweenStarts = 30;
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\\moi rai games\\Monster Sanctuary", "Screenmanager Fullscreen mode_h3630240806", 3, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\moi rai games\\Monster Sanctuary", "Screenmanager Resolution Height_h2627697771", Context.Height, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\moi rai games\\Monster Sanctuary", "Screenmanager Resolution Width_h182942802", Context.Width, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\moi rai games\\Monster Sanctuary", "Screenmanager Resolution Use Native_h1405027254", 0, Nucleus.RegType.DWord);
var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Monster Sanctuary_Data\\Plugins\\steam_settings");
System.IO.Directory.CreateDirectory(filePath);
var stats = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Monster Sanctuary_Data\\Plugins\\steam_settings\\stats.txt";
var lines = ["opponent_rating=int=0"];
Context.WriteTextFile(stats, lines);
var id = Context.PlayerID + 8;
if (!System.IO.File.Exists(Context.NucleusUserRoot + "\\Documents\\My Games\\Monster Sanctuary\\7656119902312543" + id + "\\System\\VideoSettings.xml")) {
var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\My Games\\Monster Sanctuary\\7656119902312543" + id + "\\System");
System.IO.Directory.CreateDirectory(filePath);
var xml = Context.GetFolder(Nucleus.Folder.Documents) + "\\My Games\\Monster Sanctuary\\7656119902312543" + id + "\\System\\VideoSettings.xml";
var lines = [
'<?xml version="1.0"?>',
'<VideoOptionsSaveGameData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">',
" <ScreenMode>2</ScreenMode>",
" <ResolutionWidth>1920</ResolutionWidth>",
" <ResolutionHeight>1080</ResolutionHeight>",
" <ResolutionRefreshRate>0</ResolutionRefreshRate>",
"</VideoOptionsSaveGameData>"
];
Context.WriteTextFile(xml, lines);
} else {
}
var path = "%USERPROFILE%\\Documents\\My Games\\Monster Sanctuary\\7656119902312543" + id + "\\System\\VideoSettings.xml";
Context.ChangeXmlNodeInnerTextValue(path, "//ScreenMode", "0");
Context.ChangeXmlNodeInnerTextValue(path, "//ResolutionWidth", Context.Width);
Context.ChangeXmlNodeInnerTextValue(path, "//ResolutionHeight", Context.Height);
};