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

Kane & Lynch 2: Dog Days · handler “Kane&Lynch 2”

Version 2

Release notes

disable AO and UI option for aspect ratio.

Released
Size
1.8 KB
Downloads
4,470
Check
Verified
SHA-256
6e0355f57622572bf1f301cbf934543fed2fa7551fe2bb022aca2b1914b440f7
Download v2 (.nc)All versions

Files 1

PathSize
handler.js4.3 KB

handler.js

Plain text
Hub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Tue Nov 10 2020 00:54:19 GMT+0000 (UTC).
Hub.Handler.Id = "JoyDJim6oj2fQeouQ";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["No", "Yes"];
Game.AddOption("Change aspect ratio to match the window resolution?", "Only works in vertical splitscreen and it is pillarboxed, not recommended.", "AR", answers1);

Game.ExecutableContext = ["KL2GE.dll"];
Game.KillMutex = [
  "Type:Mutant|KANEANDLYNCH2MUTEX",
  "Type:Event|DrawBegin",
  "Type:Event|DrawEnd",
  "Type:Event|RenderThreadEnd",
  "Type:Event|RenderThreadInit",
  "Type:Event|ResetDevice",
  "Type:Event|UpdateRenderState",
  "Type:Event|DeviceUpdate"
];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt", "d3d9.dll"];
Game.FileSymlinkCopyInstead = ["binkw32.dll", "KL2GE.dll", "Patch01.zip"];
Game.RenameNotKillMutex = true;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.UseNucleusEnvironment = false;
Game.UseDirectX9Wrapper = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "kl2.exe";
Game.SteamID = "28000";
Game.GUID = "Kane & Lynch 2 Dog Days";
Game.GameName = "Kane & Lynch 2: Dog Days";
Game.MaxPlayers = 12;
Game.MaxPlayersOneMonitor = 12;
Game.HideTaskbar = false;
Game.NotTopMost = false;
//Game.StartArguments = "-setup";
Game.LauncherTitle = "";
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Kane & Lynch 2: Dog Days";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.Hook.CustomDllEnabled = false;
Game.FakeFocus = true;
Game.HookFocus = true;
Game.UserProfileConfigPath = "AppData\\Local";
Game.UserProfileConfigPathNoCopy = true;
Game.UserProfileSavePath = "Documents\\SQUARE ENIX\\Kane & Lynch 2 - Dog Days";
Game.Description =
  "Make sure you have launched your main game at least once before running this. Create an online story mode lobby in one instance and join in the other. Do not go to the game video settings when running this or it will crash the instances, change the graphic settings in your main game. You need to add custom resolutions in your AMD/Nvidia/Intel panel (For example: 960x1080, 1920x540, 960x540 etc.) for the game to use them.";
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days", "MicrophoneEnabled", 0, Nucleus.RegType.DWord);

  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "DisplayHeight", Context.Height, Nucleus.RegType.DWord);

  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "DisplayWidth", Context.Width, Nucleus.RegType.DWord);

  Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "EnableSSAO", 0, Nucleus.RegType.DWord);

  var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
  var lines = [
    "SteamClient009",
    "SteamGameServer010",
    "SteamGameServerStats001",
    "SteamUser013",
    "SteamFriends005",
    "SteamUtils005",
    "SteamMatchMaking008",
    "SteamMatchMakingServers002",
    "STEAMUSERSTATS_INTERFACE_VERSION007",
    "STEAMAPPS_INTERFACE_VERSION003",
    "SteamNetworking003",
    "STEAMREMOTESTORAGE_INTERFACE_VERSION002",
    "SteamMasterServerUpdater001"
  ];

  Context.WriteTextFile(interfaces, lines);

  var ar = Context.Options["AR"];

  if (ar == "Yes") {
    if (Context.AspectRatioDecimal > 1.8) {
      Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "AspectRatio", "3555", Nucleus.RegType.DWord); //1777-16:9 1600-16:10 1250-5:4 1333-4:3
    } else if (Context.AspectRatioDecimal < 1.3) {
      Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "AspectRatio", "889", Nucleus.RegType.DWord);
    } else {
      Context.EditRegKey("HKEY_CURRENT_USER", "SOFTWARE\\IO Interactive\\Kane & Lynch 2: Dog Days\\Graphics", "AspectRatio", "1777", Nucleus.RegType.DWord);
    }
  }

  if (ar == "No") {
  }
};