Payday: The Heist · handler “PAYDAY”
Version 2
Release notes
A lot of fixes and notes.
- Released
- Size
- 1.4 KB
- Downloads
- 550
- Check
- Verified
- SHA-256
- 05081df82001dd81285f4d65a4ee431bb57e4bdf491cd44eddbf144365842165
Files 1
| Path | Size |
|---|---|
| handler.js | 3.0 KB |
handler.js
Plain textHub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Fri Apr 24 2020 01:17:55 GMT+0000 (UTC).
Hub.Handler.Id = "xh5yHibezzDHtKsyT";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.KillMutex = ["Type:Event|Overkill Engine Game"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt"];
Game.RenameNotKillMutex = true;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.UseSteamStubDRMPatcher = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "payday_win32_release.exe";
Game.SteamID = "24240";
Game.GUID = "PAYDAY The Heist";
Game.GameName = "PAYDAY: The Heist";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.StartArguments = "-skip_intro";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "PAYDAY: The Heist";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = true;
Game.FakeFocus = true;
Game.HideCursor = true;
Game.Description =
"You need to install the mod that adds gamepad support to this game first for this to work. See the more info section of this script when you search for it in the download game scripts option for a link to the gamepads mod. If you get crashes reduce graphics in-game.";
Game.UserProfileSavePath = "AppData\\Local\\PAYDAY\\saves";
Game.PauseBetweenStarts = 30;
Game.Play = function() {
var path = "%USERPROFILE%\\AppData\\Local\\PAYDAY\\renderer_settings.xml";
Context.ChangeXmlAttributeValue(path, "//d3d_device", "resolution", Context.Width + " " + Context.Height);
Context.ChangeXmlAttributeValue(path, "//d3d_device", "windowed", "true");
Context.ChangeXmlAttributeValue(path, "//d3d_device", "aspect_ratio", Context.AspectRatioDecimal);
var autoExec = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
var lines = [
"SteamClient010",
"SteamGameServer010",
"SteamGameServerStats001",
"SteamUser016",
"SteamFriends009",
"SteamUtils005",
"SteamMatchMaking008",
"SteamMatchMakingServers002",
"STEAMUSERSTATS_INTERFACE_VERSION010",
"STEAMAPPS_INTERFACE_VERSION004",
"SteamNetworking005",
"STEAMREMOTESTORAGE_INTERFACE_VERSION004",
"STEAMHTTP_INTERFACE_VERSION001",
"SteamMasterServerUpdater001"
];
Context.WriteTextFile(autoExec, lines);
if (Player.IsKeyboardPlayer) {
Context.Hook.BlockMouseEvents = "False";
Context.Hook.BlockKeyboardEvents = "False";
Context.Hook.BlockInputEvents = "False";
Context.Hook.ForceFocus = "False";
} else {
Context.Hook.BlockMouseEvents = "True";
Context.Hook.BlockKeyboardEvents = "True";
Context.Hook.BlockInputEvents = "True";
Context.Hook.ForceFocus = "True";
}
};