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

Synergy · handler “Synergy”

Version 1

Release notes

First Release

Released
Size
1.2 KB
Downloads
1,923
Check
Verified
SHA-256
7bff20c4826747d22e361548c325753bc7ce2d15a9bc17cadb2985778666edc7
Download v1 (.nc)All versions

Files 1

PathSize
handler.js2.4 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Fri Apr 17 2020 03:02:00 GMT+0000 (UTC).
Hub.Handler.Id = "SSzwLptPtsB2NTxgm";
Hub.Maintainer.Name = "dr.oldboi";
Hub.Maintainer.Id = "dPRj3q6kFtT4HvMGg";

Game.KillMutex = ["hl2_singleton_mutex", "ValvePlatformWaitMutex", "ValvePlatformUIMutex"];
Game.ExecutableContext = ["synergy"];
Game.DirSymlinkExclusions = ["synergy\\cfg", "steam_appid.txt"];
Game.FileSymlinkExclusions = ["autoexec.cfg"];
Game.RenameNotKillMutex = true;
Game.NeedsSteamEmulation = false;
Game.CreateSteamAppIdByExe = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "synergy.exe";
Game.SteamID = "17520";
Game.GUID = "Synergy";
Game.GameName = "Synergy";
Game.LauncherTitle = "";
Game.SupportsPositioning = true;
Game.MaxPlayersOneMonitor = 8;
Game.MaxPlayers = 8;
Game.HideTaskbar = false;
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Synergy";
Game.FakeFocus = true;
Game.HookFocus = true;
Game.Hook.DInputForceDisable = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = false;
Game.XInputPlusDll = ["xinput1_4.dll"];
Game.Hook.CustomDllEnabled = false;
Game.PauseBetweenStarts = 30;
Game.Description =
  "Enable gamepad and mouse raw input in each instance in options/mouse tab, create a LAN server in one instance and connect in the others with the find server option/LAN tab, pause in the hosting instance when joining so you can use the cursor to join in the other instances. Make sure you have steam input disabled for this game.";
Game.DPIHandling = Nucleus.DPIHandling.InvScaled;

Game.Play = function() {
  var Args = (Context.Args = " -game synergy -novid -windowed +m_rawinput 1 " + " -AlwaysFocus " + " -insecure " + " -w " + Context.Width + " -h " + Context.Height);

  Context.StartArguments = Args;

  var autoExec = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\synergy\\cfg\\autoexec.cfg";
  var lines = [
    "sv_lan 1",
    "maxplayers 8",
    "cl_mouselook 0",
    "engine_no_focus_sleep 0" // unlimited FPS on all screens
  ];

  if (Player.IsKeyboardPlayer) {
    lines.push("exec undo360controller.cfg");
  } else {
    lines.push("exec 360controller.cfg");
  }

  Context.WriteTextFile(autoExec, lines);
};