Warhammer 40,000: Space Marine · handler “Space Marine Anniversary Edition”
Version 3
Release notes
UI option for private lobbies.
- Released
- Size
- 1.4 KB
- Downloads
- 1,905
- Check
- Verified
- SHA-256
- ad0ca446108a41034282cbad9e81bd2a6ccd93d62a8967002c5c4d67f83a0e28
Files 1
| Path | Size |
|---|---|
| handler.js | 3.2 KB |
handler.js
Plain textHub.Handler.Version = 3; // Released at https://hub.splitscreen.me/ on Fri Jan 15 2021 06:17:01 GMT+0000 (UTC).
Hub.Handler.Id = "QX3pn69Mo33EeRF7W";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
var answers1 = ["No", "Yes"];
Game.AddOption("Private match?", "Use if you want to start a co-op or versus match with only 2 players.", "Lobby", answers1);
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt", "xinput9_1_0.dll"];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergNoLocalSave = true;
Game.UseNucleusEnvironment = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "spacemarine.exe";
Game.SteamID = "55150";
Game.GUID = "Space Marine";
Game.GameName = "Warhammer 40,000: Space Marine";
Game.MaxPlayers = 16;
Game.MaxPlayersOneMonitor = 16;
Game.LauncherTitle = "";
Game.StartArguments = "-window ";
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Warhammer 40,000: Space Marine";
Game.HasDynamicWindowTitle = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusOldDll = true;
Game.FakeFocus = true;
Game.HookFocus = true;
Game.UserProfileConfigPath = "AppData\\Local\\THQ\\Relic Entertainment\\Space Marine";
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\55150\\remote";
Game.Description = "3 players is the minimum to start an Exterminatus co-op game. If you want to start a match with only 2 players select the Nucleus UI option for private match.";
//Game.FlawlessWidescreen = "Warhammer40kSM";
Game.PauseBetweenStarts = 25;
Game.GamePlayBeforeGameSetup = true;
Game.Play = function() {
var txtPath = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\gamePC.cfg";
var dict = [
Context.FindLineNumberInTextFile(txtPath, "Resolution.Height", Nucleus.SearchType.StartsWith) + "|Resolution.Height = " + Context.Height,
Context.FindLineNumberInTextFile(txtPath, "Resolution.Width", Nucleus.SearchType.StartsWith) + "|Resolution.Width = " + Context.Width
];
Context.ReplaceLinesInTextFile(txtPath, dict);
var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
var lines = [
"SteamClient010",
"SteamGameServer010",
"SteamGameServerStats001",
"SteamUser016",
"SteamFriends009",
"SteamUtils005",
"SteamMatchMaking008",
"SteamMatchMakingServers002",
"STEAMUSERSTATS_INTERFACE_VERSION009",
"STEAMAPPS_INTERFACE_VERSION004",
"SteamNetworking005",
"STEAMREMOTESTORAGE_INTERFACE_VERSION004",
"SteamMasterServerUpdater001"
];
Context.WriteTextFile(interfaces, lines);
if (Context.NumControllers < 5) {
Game.XInputPlusDll = ["xinput9_1_0.dll"];
} else {
Game.Hook.UseAlpha8CustomDll = true;
Game.Hook.XInputNames = ["XInput9_1_0.dll"];
}
var lobby = Context.Options["Lobby"];
if (lobby == "Yes") {
Game.GoldbergLobbyConnect = true;
}
if (lobby == "No") {
Game.GoldbergLobbyConnect = false;
}
};