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

Wildermyth · handler “Wildermyth”

Version 1

Release notes

First Release

Released
Size
1.2 KB
Downloads
56
Check
Verified
SHA-256
cbd3efa0ad0fdfd253015be2df2e9af2c96595f68e88858a8bd8e0a85c830718
Download v1 (.nc)All versions

Files 1

PathSize
handler.js2.7 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Fri Aug 13 2021 01:45:13 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "CZHTjhkXu6jcKZMbq";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.ExecutableContext = ["wildermyth.jar"];
Game.DirSymlinkExclusions = ["players\\_recent_"];
Game.FileSymlinkExclusions = ["steam_appid.txt"];
Game.FileSymlinkCopyInstead = ["config.json", "graphics.json"];
Game.GameName = "Wildermyth";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "wildermyth.exe";
Game.CreateSteamAppIdByExe = true;
Game.SteamID = "763890";
Game.GUID = "Wildermyth";
Game.MaxPlayers = 5;
Game.MaxPlayersOneMonitor = 5;
Game.UseGoldberg = false;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Wildermyth";
Game.FakeFocus = true;
Game.ResetWindows = true;
Game.RefreshWindowAfterStart = true;
Game.SupportsKeyboard = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_4.dll", "xinput9_1_0.dll"];
Game.Description =
  "IMPORTANT: Create multiple profiles/players in your main game before running this. Use a different profile per instance using the game option switch player. Set your main game to windowed if the instances do not launch in windowed. Host a multiplayer LAN game in one instance and join in the others by selecting join game and in the host field write localhost.";
Game.PauseBetweenProcessGrab = 10;
Game.PauseBetweenStarts = 35;

Game.Play = function() {
  var txtPath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\players\\_recent_\\graphics.json";
  var dict = [
    Context.FindLineNumberInTextFile(txtPath, '"fullscreen": true,', Nucleus.SearchType.StartsWith) + '|"fullscreen": false,',
    Context.FindLineNumberInTextFile(txtPath, '	"fullscreen":', Nucleus.SearchType.StartsWith) + '|	"fullscreen": false,',
    Context.FindLineNumberInTextFile(txtPath, '	"borderless"', Nucleus.SearchType.StartsWith) + '|	"borderless": false,',
    Context.FindLineNumberInTextFile(txtPath, '	"width"', Nucleus.SearchType.StartsWith) + '|	"width": ' + Context.Width + ",",
    Context.FindLineNumberInTextFile(txtPath, '	"height"', Nucleus.SearchType.StartsWith) + '|	"height": ' + Context.Height + ",",
    Context.FindLineNumberInTextFile(txtPath, '"backgroundFPS"', Nucleus.SearchType.StartsWith) + '|"backgroundFPS": "full",',
    Context.FindLineNumberInTextFile(txtPath, '"minimizeOnLoseFocus"', Nucleus.SearchType.StartsWith) + '|"minimizeOnLoseFocus": false,'
  ];
  Context.ReplaceLinesInTextFile(txtPath, dict);
};