Brütal Legend · handler “BrütalLegend”
Version 2
Release notes
added lobby connect UI option.
- Released
- Size
- 1.7 KB
- Downloads
- 88
- Check
- Verified
- SHA-256
- 924a76832cf662048628526088d0adf0da091782806ef215a12af331cfdb97cb
Files 1
| Path | Size |
|---|---|
| handler.js | 5.2 KB |
handler.js
Plain textHub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Thu Nov 12 2020 02:26:09 GMT+0000 (UTC).
Hub.Handler.Id = "ZSrFAJoaexSAn482W";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
var answers1 = ["No", "Yes"];
Game.AddOption("Custom match?", "Only use if you're having issues connecting more than 2p to the same game.", "Lobby", answers1);
Game.DirSymlinkExclusions = ["Data\\Cutscenes", "Win\\Packs"];
Game.DirSymlinkCopyInstead = ["Win\\Packs"];
Game.FileSymlinkExclusions = ["steam_api.dll", "DF_Logo.bik", "steam_interfaces.txt", "XInput1_3.dll"];
Game.DirSymlinkCopyInsteadIncludeSubFolders = false;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergExperimental = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "BrutalLegend.exe";
Game.SteamID = "225260";
Game.GUID = "Brutal Legend";
Game.GameName = "Brütal Legend";
Game.MaxPlayers = 8;
Game.MaxPlayersOneMonitor = 8;
Game.BinariesFolder = "";
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Brütal Legend";
Game.Hook.DInputForceDisable = false;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.FakeFocus = true;
Game.HookFocus = true;
Game.HideCursor = true;
Game.RefreshWindowAfterStart = true;
Game.SetForegroundWindowElsewhere = true;
Game.KeepSymLinkOnExit = true;
Game.UserProfileSavePath = "AppData\\Roaming\\Doublefine\\BrutalLegend";
Game.Description =
"Select multiplayer-matchmaking in all instances then press start at the same time to find the other players. On first Nucleus run the instances will take some time to launch because Nucleus needs to make a full copy of a folder for this to work correctly, so be patient. If you select the custom match option in Nucleus UI click the prompt to open the other instances until you have created a custom multiplayer match in the first.";
Game.PauseBetweenStarts = 35;
Game.Play = function() {
var username = System.Environment.UserName;
var txtPath = "C:\\Users\\" + username + "\\AppData\\Roaming\\Doublefine\\BrutalLegend\\screen.dat";
var dict = ["1|fullscreen = false", "2|width = " + Context.Width, "3|height = " + Context.Height];
Context.ReplaceLinesInTextFile(txtPath, dict);
var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
var lines = [
"SteamClient012",
"SteamGameServer011",
"SteamGameServerStats001",
"SteamUser016",
"SteamFriends013",
"SteamUtils005",
"SteamMatchMaking009",
"SteamMatchMakingServers002",
"STEAMUSERSTATS_INTERFACE_VERSION011",
"STEAMAPPS_INTERFACE_VERSION005",
"SteamNetworking005",
"STEAMREMOTESTORAGE_INTERFACE_VERSION010",
"STEAMSCREENSHOTS_INTERFACE_VERSION001",
"STEAMHTTP_INTERFACE_VERSION002"
];
Context.WriteTextFile(interfaces, lines);
if (Context.PlayerID == 0) {
var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XinputPlus.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", "1"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", "1"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", "1"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", "1")
]);
}
if (Context.PlayerID == 1) {
var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XinputPlus.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", "2"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", "2"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", "2"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", "2")
]);
}
if (Context.PlayerID == 2) {
var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XinputPlus.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", "3"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", "3"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", "3"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", "3")
]);
}
if (Context.PlayerID == 3) {
var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XinputPlus.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("ControllerNumber", "Controller1", "4"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller2", "4"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller3", "4"),
new Nucleus.IniSaveInfo("ControllerNumber", "Controller4", "4")
]);
}
var lobby = Context.Options["Lobby"];
if (lobby == "Yes") {
Game.GoldbergLobbyConnect = true;
}
if (lobby == "No") {
Game.GoldbergLobbyConnect = false;
}
};