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

Strange Brigade · handler “StrangeBrigade”

Version 2

Release notes

windows resizing fix and merged vulkan and dx12 script.

Released
Size
80 KB
Downloads
696
Check
Verified
SHA-256
3c1f14d7113068cf139689028db84d19620850860d5e8dbfe5c9dcef9c046b32
Download v2 (.nc)All versions

Files 3

PathSize
handler.js5.3 KB
StrangeBrigade/amd_ags_x64.dll112 KB
StrangeBrigade/cracksteam_api64.dll57 KB

handler.js

Plain text
Hub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Sat Dec 26 2020 09:30:02 GMT+0000 (UTC).
Hub.Handler.Id = "X6CWPyFbFK2wqoy9g";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["No", "Yes"];
Game.AddOption("Use Vulkan?", "Only select yes if you want to run the game's Vulkan exe.", "Vulkan", answers1);

Game.KillMutex = ["Strange Brigade_68ad150"];
Game.FileSymlinkExclusions = ["steam_api64.dll", "amd_ags_x64.dll", "cracksteam_api64.dll", "steamclient64.dll", "StrangeBrigade_DX12.exe", "StrangeBrigade_Vulkan.exe", "StrangeBrigade.exe"];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergExperimental = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SupportsKeyboard = false;
Game.KeyboardPlayerFirst = true;
Game.ExecutableName = "strangebrigade_dx12.exe";
Game.SteamID = "312670";
Game.GUID = "Strange Brigade";
Game.GameName = "Strange Brigade";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.BinariesFolder = "bin";
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.StartArguments = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Strange Brigade";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_4.dll", "xinput9_1_0.dll"];
Game.FakeFocus = true;
Game.HookFocus = true;
Game.WindowStyleValues = ["~0xC00000", "~0x40000", "~0x20000000", "~0x20000", "~0x80000", "0x40000000"];
Game.ExtWindowStyleValues = ["~0x00000001", "~0x00000200", "~0x00020000"];
Game.ResetWindows = true;
Game.UserProfileSavePath = "AppData\\Local\\Strange Brigade\\PC_ProfileSaves";
Game.UserProfileConfigPath = "AppData\\Local\\Strange Brigade";
Game.Description = "Create a multiplayer lobby in one instance and join in the others using the friends menu, press RT in the title screen to open it .";
Game.SetForegroundWindowElsewhere = true;
Game.PauseBetweenStarts = 40;
Game.GamePlayBeforeGameSetup = true;

Game.SupportsMultipleKeyboardsAndMice = false;

Game.HookSetCursorPos = false;
Game.HookGetCursorPos = false;
Game.HookGetKeyState = false;
Game.HookGetAsyncKeyState = false;
Game.HookGetKeyboardState = false;
Game.HookFilterRawInput = false;
Game.HookFilterMouseMessages = false;
Game.HookUseLegacyInput = false;
Game.HookDontUpdateLegacyInMouseMsg = false;
Game.HookMouseVisibility = false;

Game.SendNormalMouseInput = false;
Game.SendNormalKeyboardInput = false;
Game.SendScrollWheel = false;
Game.ForwardRawKeyboardInput = false;
Game.ForwardRawMouseInput = false;
Game.HookReRegisterRawInput = false;
Game.HookReRegisterRawInputMouse = false;
Game.HookReRegisterRawInputKeyboard = false;
Game.DrawFakeMouseCursor = false;
Game.LockInputAtStart = false;
Game.LockInputToggleKey = 0x23;

Game.Play = function() {
  var username = System.Environment.UserName;

  Context.BackupFile("C:\\Users\\" + username + "\\AppData\\Local\\Strange Brigade\\GraphicsOptions.ini", true);

  var VideoConfig = "C:\\Users\\" + username + "\\AppData\\Local\\Strange Brigade\\GraphicsOptions.ini";
  Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
    new Nucleus.IniSaveInfo("Display Settings", "D3D12", 1),
    new Nucleus.IniSaveInfo("Display Settings", "Resolution_Width", Context.Width),
    new Nucleus.IniSaveInfo("Display Settings", "Resolution_Height", Context.Height),
    new Nucleus.IniSaveInfo("Display Settings", "Windowed", "1")
  ]);

  var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings");
  System.IO.Directory.CreateDirectory(filePath);

  var nolay = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings\\disable_overlay.txt";
  var lines = [""];

  Context.WriteTextFile(nolay, lines);

  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\amd_ags_x64.dll");
  var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "amd_ags_x64.dll");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\cracksteam_api64.dll");
  var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "cracksteam_api64.dll");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

  if (Context.HasKeyboardPlayer) {
  } else {
    Game.SupportsMultipleKeyboardsAndMice = true;
    Game.HookSetCursorPos = true;
    Game.HookGetCursorPos = true;
  }

  var vulkan = Context.Options["Vulkan"];

  if (vulkan == "Yes") {
    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "StrangeBrigade_Vulkan.exe"), System.IO.Path.Combine(Context.RootFolder, "bin\\StrangeBrigade_DX12.exe"), true);

    var VideoConfig = "C:\\Users\\" + username + "\\AppData\\Local\\Strange Brigade\\GraphicsOptions.ini";
    Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [new Nucleus.IniSaveInfo("Display Settings", "D3D12", 0)]);
  }

  if (vulkan == "No") {
    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "StrangeBrigade_DX12.exe"), System.IO.Path.Combine(Context.RootFolder, "bin\\StrangeBrigade_DX12.exe"), true);
  }
};