Wasteland 3 · handler “Wasteland 3”
Version 1
Release notes
First Release.
- Released
- Size
- 1.9 KB
- Downloads
- 373
- Check
- Verified
- SHA-256
- b16cf6bbc7ecf53f34ec105cec8bbffd10ecb2e1c65c4f9b632d50c831bb72d2
Files 1
| Path | Size |
|---|---|
| handler.js | 5.6 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Sun Apr 18 2021 22:54:29 GMT+0000 (UTC).
Hub.Handler.Id = "vvdmfqpnz9uEJ4k3u";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
var answers1 = ["No", "Yes"];
Game.AddOption("Run the first instance with steam overlay?", "To unlock steam achievements, experimental, read script notes before using.", "Overlay", answers1);
Game.ExecutableContext = ["WL3_Data"];
Game.DirSymlinkExclusions = ["WL3_Data\\Plugins\\x86_64"];
Game.FileSymlinkExclusions = [
//"steam_api64.dll",
"steam_appid.txt",
"xinput1_3.dll",
"xinput1_4.dll"
];
Game.GameName = "Wasteland 3";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "WL3.exe";
Game.SteamID = "719040";
Game.GUID = "Wasteland 3";
Game.MaxPlayers = 2;
Game.MaxPlayersOneMonitor = 2;
Game.UseNucleusEnvironment = true;
Game.UseGoldberg = false;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Wasteland 3";
Game.FakeFocus = true;
Game.HookFocus = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.BlockRawInput = false;
Game.DocumentsSavePath = "My Games\\Wasteland3\\Save Games";
Game.Description =
"Press the END key in your keyboard to unlock the input and the main cursor when you finish playing. You can also use CTRL+Q to close Nucleus and all its instances. For the gamepad instances enable gamepad in the in-game options-gameplay when the instance launches. Host a direct connection multiplayer game and join in the other instance using localhost and the same port. Create custom resolutions in your AMD/Nvidia/Intel panel (For example: 960x1080, 960x540, 1920x540 etc.) so the game can see and use them. If you use the steam overlay Nucleus UI option accept quickly on the launch arguments prompt that will appear in steam so that the first instance can launch with the steam overlay enabled.";
Game.PromptBetweenInstances = false;
Game.PauseBetweenStarts = 40;
Game.SupportsMultipleKeyboardsAndMice = true;
Game.HookSetCursorPos = true;
Game.HookGetCursorPos = true;
Game.HookGetKeyState = false;
Game.HookGetAsyncKeyState = false;
Game.HookGetKeyboardState = true;
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.GamePlayBeforeGameSetup = true;
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\\InxileEntertainment\\Wasteland 3", "FullScreenMode_h3447030425", 3, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "ResolutionHeight_h1843629172", Context.Height, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "ResolutionWidth_h1003235053", Context.Width, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "RestrictMouse_h1787551448", 0, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "Screenmanager Fullscreen mode_h3630240806", 3, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "Screenmanager Resolution Height_h2627697771", Context.Height, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "Screenmanager Resolution Width_h182942802", Context.Width, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "Screenmanager Resolution Use Native_h1405027254", 0, Nucleus.RegType.DWord);
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "VoiceChatStyle_h1189768442", 2, Nucleus.RegType.DWord);
if (Context.IsKeyboardPlayer) {
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "InputType_h2651470571", 0, Nucleus.RegType.DWord);
} else {
Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\InxileEntertainment\\Wasteland 3", "InputType_h2651470571", 1, Nucleus.RegType.DWord);
}
if (Context.HasKeyboardPlayer == true) {
Game.InjectHookXinput = true;
} else {
Game.XInputPlusDll = ["xinput1_3.dll", "xinput1_4.dll"];
}
var overlay = Context.Options["Overlay"];
if (overlay == "Yes") {
Game.PauseBetweenProcessGrab = 12;
if (Context.PlayerID == 0) {
} else {
var appid = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_appid.txt";
var lines = ["719040"];
Context.WriteTextFile(appid, lines);
}
}
if (overlay == "No") {
var appid = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_appid.txt";
var lines = ["719040"];
Context.WriteTextFile(appid, lines);
}
};