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

Portal Knights · handler “PortalKnights”

Version 1

Release notes

First Release

Released
Size
1010 B
Downloads
111
Check
Verified
SHA-256
4896c86c1dd69dfa2272bf3099075184fb640337885a471b5aa6db5af159e565
Download v1 (.nc)All versions

Files 1

PathSize
handler.js1.9 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Thu Feb 13 2020 06:39:19 GMT+0000 (UTC).
Hub.Handler.Id = "vbLcyw3hLFRBGBwCt";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.FileSymlinkExclusions = ["steam_api64.dll", "steam_appid.txt", "winmm.dll", "portal_knights.cfg"];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergNoLocalSave = true;
Game.UseNucleusEnvironment = true;
Game.UseSteamStubDRMPatcher = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "portal_knights_x64.exe";
Game.SteamID = "374040";
Game.GUID = "Portal Knights";
Game.GameName = "Portal Knights";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.SupportsPositioning = true;
Game.HideTaskbar = false;
Game.ForceFinishOnPlay = true;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Portal Knights";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.FakeFocus = true;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_4.dll"];
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\3740400\\remote";
Game.PlayersPerInstance = 2;
Game.PauseBetweenStarts = 20;

Game.Play = function() {
  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\portal_knights.cfg");
  var savePkgOrigin = System.IO.Path.Combine(Context.RootInstallFolder, "portal_knights.cfg");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

  var txtPath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\portal_knights.cfg";
  var dict = ['11|"windowType": "Default",', '14|"windowSizeX":  ' + Context.Width + ",", '15|"windowSizeY":  ' + Context.Height + ","];

  Context.ReplaceLinesInTextFile(txtPath, dict);
};