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

Black Mesa · handler “Black Mesa”

Version 1

Release notes

First Release.

Released
Size
1.0 KB
Downloads
1,831
Check
Verified
SHA-256
05e4fce5357e5bcc6659420edecbdeca00c6a048d6933cf0924d28fc49e204d3
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 Wed Jul 14 2021 16:52:55 GMT+0000 (UTC).
Hub.Handler.Id = "R6AcuRxsuu9Aq97tt";
Hub.Maintainer.Name = "dr.oldboi";
Hub.Maintainer.Id = "dPRj3q6kFtT4HvMGg";

Game.KillMutex = ["bms_singleton_mutex"];
Game.DirSymlinkExclusions = ["bin", "bms\\cfg"];
Game.FileSymlinkExclusions = ["autoexec.cfg", "dinput8.dll", "xinput1_4.dll"];
Game.RenameNotKillMutex = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "bms.exe";
Game.SteamID = "362890";
Game.GUID = "Black Mesa";
Game.GameName = "Black Mesa";
Game.MaxPlayersOneMonitor = 32;
Game.MaxPlayers = 32;
Game.WorkingFolder = "bin";
Game.UseGoldberg = true;
Game.LauncherTitle = "";
Game.StartArguments = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Black Mesa";
Game.HookFocus = true;
Game.SupportsKeyboard = true;
Game.Hook.DInputEnabled = false;
Game.UseDInputBlocker = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_4.dll"];
Game.Hook.CustomDllEnabled = false;
Game.Description = "Start a multiplayer game in one instance and join in the others using the mouse cursor to navigate the menus, use alt-tab to do this and to control the keyboard instance.";
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  Context.StartArguments = " -game bms +developer 0 -steam -windowed " + " -w " + Context.Width + " -h " + Context.Height;

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

  if (Context.IsKeyboardPlayer) {
    lines.push("exec undo360controller.cfg");
  } else {
    lines.push("exec 360controller.cfg");
  }
  Context.WriteTextFile(autoExec, lines);
};