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

Wayward · handler “Wayward”

Version 1

Release notes

first release

Released
Size
1.6 KB
Downloads
46
Check
Verified
SHA-256
85fb34e0fe03bcf7784371cb4db595c71ed9bbdb8c9ff9e14d618c4c711a16a7
Download v1 (.nc)All versions

Files 1

PathSize
handler.js3.8 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Wed Apr 28 2021 19:03:14 GMT+0000 (UTC).
Hub.Handler.Id = "CLKjqnG7PWBMoArYx";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.DirSymlinkCopyInstead = ["save"];
Game.FileSymlinkExclusions = ["steam_api64.dll", "steam_appid.txt", "wayward.log"];
Game.FileSymlinkCopyInstead = [
  "chrome_100_percent.pak",
  "chrome_200_percent.pak",
  "d3dcompiler_47.dll",
  "discord-rpc.dll",
  "ffmpeg.dll",
  "greenworks-win64.node",
  "icudtl.dat",
  "launch_options.json",
  "libEGL.dll",
  "libGLESv2.dll",
  "resources.pak",
  "snapshot_blob.bin",
  "v8_context_snapshot.bin",
  "vk_swiftshader.dll",
  "vk_swiftshader_icd.json",
  "vulkan-1.dll",
  "wayward-napi-win-x64.node"
];
Game.DirSymlinkCopyInsteadIncludeSubFolders = true;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = false;
Game.GameName = "Wayward";
Game.SteamID = "379210";
Game.GUID = "Wayward";
Game.ExecutableName = "wayward.exe";
Game.MaxPlayersOneMonitor = 32;
Game.MaxPlayers = 32;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Wayward";
Game.HookFocus = true;
Game.ResetWindows = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = false;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.Description =
  "Disable Fullscreen in your main game before launching via Nucleus. Multiple keyboards/mice only as the game lacks native gamepad support. Start an open multiplayer game in one instance and join in the others by writing localhost in the join field. Your saves per instance will save inside Nucleus content folder so be careful about deleting the Wayward Nucleus folder there. Once all instances have started, positioned and resized left click with your respective mouse so that the emulated cursors show. Press the END key to unlock the input when you finish playing. You can also use CTRL+Q to close Nucleus and all its instances.";
Game.KeepSymLinkOnExit = true;
Game.PauseBetweenStarts = 25;

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

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