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

Borderlands 3 · handler “Borderlands 3”

Version 13

Release notes

revert

Released
Size
2.0 KB
Downloads
1,047
Check
Verified
SHA-256
ab36ae4f330c725fc42970c68c6b03c2e71dc57e5972ea05612400adf8d8340a
Download v13 (.nc)All versions

Files 1

PathSize
handler.js5.2 KB

handler.js

Plain text
Hub.Handler.Version = 13; // Released at https://hub.splitscreen.me/ on Fri Oct 22 2021 18:54:52 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "NkdddxaAdx6BKfdnt";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["Yes", "No"];
Game.AddOption("Launch all instances under your Steam account?", "Allows you to unlock steam achievements, connect via LAN.", "Steam", answers1);

Game.DirSymlinkExclusions = ["OakGame\\Binaries\\Win64", "Engine\\Binaries\\ThirdParty\\steamworks\\steamv147\\win64", "Engine\\Binaries\\ThirdParty\\steamworks\\steamv147\\win64\\steam_settings"];
Game.FileSymlinkExclusions = ["steam_api64.dll", "steam_appid.txt", "xinput1_3.dll"];
Game.GameName = "Borderlands 3";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "Borderlands3.exe";
Game.SteamID = "397540";
Game.GUID = "Borderlands 3";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.BinariesFolder = "OakGame\\Binaries\\Win64";
Game.UseNucleusEnvironment = true;
Game.UseGoldberg = true;
Game.CreateSteamAppIdByExe = true;
Game.LauncherTitle = "splashscreen";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Borderlands® 3";
Game.PreventWindowDeactivation = true;
Game.KeyboardPlayerSkipPreventWindowDeactivate = true;
Game.HookFocus = true;
Game.SetWindowHook = true;
Game.ResetWindows = true;
Game.RefreshWindowAfterStart = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
//Game.PlayerSteamIDs = ["76561198089222861"];
Game.UserProfileConfigPath = "Documents\\My Games\\Borderlands 3\\Saved\\Config\\WindowsNoEditor";
Game.UserProfileSavePath = "Documents\\My Games\\Borderlands 3\\Saved\\SaveGames";
Game.Description =
  "Steam version only. Go to network options, network mode and select LAN in each instance. Limit the fps for better performance, you can also alt-tab to the Nucleus app window or press the windows key+b to unfocus all instances and even out fps when using multiple controllers, the game windows will remain on top.";
Game.PauseBetweenContextAndLaunch = 5;
Game.PauseBetweenStarts = 45;

Game.Play = function() {
  var savePath = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\GameUserSettings.ini";
  Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
    new Nucleus.IniSaveInfo("/Script/OakGame.OakGameUserSettings", "FullscreenMode", "2"),
    new Nucleus.IniSaveInfo("/Script/OakGame.OakGameUserSettings", "ResolutionSizeX", Context.Width),
    new Nucleus.IniSaveInfo("/Script/OakGame.OakGameUserSettings", "ResolutionSizeY", Context.Height)
  ]);

  if (Context.IsKeyboardPlayer) {
    Context.StartArguments = "-windowed -AlwaysFocus -nosplash -NoController";
  } else {
    Game.SetForegroundWindowElsewhere = true;

    Context.StartArguments = "-windowed -AlwaysFocus -nosplash";
  }

  var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Engine\\Binaries\\ThirdParty\\steamworks\\steamv147\\win64\\steam_settings");
  System.IO.Directory.CreateDirectory(filePath);

  var dlc = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Engine\\Binaries\\ThirdParty\\steamworks\\steamv147\\win64\\steam_settings\\DLC.txt";
  var lines = [
    "1537993=Disciples of the Vault Zane Cosmetic Pack",
    "1537992=Disciples of the Vault Moze Cosmetic Pack",
    "1537991=Disciples of the Vault FL4K Cosmetic Pack",
    "1537990=Disciples of the Vault Amara Cosmetic Pack",
    "1396474=Borderlands 3: Season Pass 2",
    "1396473=Borderlands 3: FL4K Final Form Pack",
    "1396472=Borderlands 3: Moze Final Form Pack",
    "1396471=Borderlands 3: Zane Final Form Pack",
    "1396470=Borderlands 3: Amara Final Form Pack",
    "1361830=Borderlands 3: Designer's Cut",
    "1256890=Borderlands 3: Digital Deluxe Extras",
    "1233062=Borderlands 3: Season Pass",
    "1233061=Borderlands 3: Psycho Krieg and the Fantastic Fustercluck",
    "1233060=Borderlands 3: Bounty of Blood",
    "1232257=Borderlands 3: Guns, Love, and Tentacles",
    "1232256=Borderlands 3: Moxxi's Heist of the Handsome Jackpot",
    "1232255=Borderlands 3: Toy Box Weapons Pack",
    "1232254=Borderlands 3: Retro Cosmetic Pack",
    "1232253=Borderlands 3: Neon Cosmetic Pack",
    "1232252=Borderlands 3: Gold Weapons Skins Pack",
    "1232251=Borderlands 3: Gearbox Cosmetic Pack",
    "1232250=Borderlands 3: Butt Stallion Pack",
    "1232240=Borderlands 3: Booster Pack"
  ];
  Context.WriteTextFile(dlc, lines);

  var steam = Context.Options["Steam"];

  if (steam == "No") {
  }

  if (steam == "Yes") {
    var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Engine\\Binaries\\ThirdParty\\steamworks\\steamv147\\win64\\steam_api64.dll");
    var savePkgOrigin = System.IO.Path.Combine(Context.OrigRootFolder, "Engine\\Binaries\\ThirdParty\\steamworks\\steamv147\\win64\\steam_api64.dll");
    System.IO.File.Copy(savePkgOrigin, savePath, true);
  }
};