Aliens: Colonial Marines · handler “AliensColonialMarines”
Version 1
Release notes
First release
- Released
- Size
- 1.3 KB
- Downloads
- 3
- Check
- Unverified
- SHA-256
- c5ebbe2e714a31c0e528936679f5ebdddb25bec6b2921355653a6eed00be050d
Files 1
| Path | Size |
|---|---|
| handler.js | 3.1 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Sun Dec 08 2019 03:36:03 GMT+0000 (UTC).
Hub.Handler.Id = "akG3CTRpphf9rsqXH";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.DirSymlinkExclusions = ["binaries\\win32"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt"];
Game.SupportsKeyboard = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SteamID = "49540";
Game.GUID = "Aliens Colonial Marines";
Game.GameName = "Aliens: Colonial Marines";
Game.MaxPlayers = 10;
Game.MaxPlayersOneMonitor = 10;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.LauncherTitle = "";
Game.SupportsPositioning = true;
Game.ExecutableName = "acm.exe";
Game.BinariesFolder = "binaries\\win32";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Aliens: Colonial Marines - PC";
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = false;
Game.PauseBetweenStarts = 30;
Game.KeepSymLinkOnExit = true;
Game.Play = function() {
var isKeyboard = Player.IsKeyboardPlayer;
//to mouse work only in main window
Context.Hook.ForceFocus = isKeyboard;
Context.Hook.BlockMouseEvents = !isKeyboard;
Context.Hook.BlockKeyboardEvents = !isKeyboard;
var args = isKeyboard ? "-NoController" : "-nomouse";
Context.StartArguments = System.String.Format("-windowed -AlwaysFocus -nosplash -nomoviestartup {0} -ResX={1} -ResY={2}", args, Context.Width, Context.Height);
var savePath = Context.GetFolder(Nucleus.Folder.Documents) + "\\My Games\\Aliens Colonial Marines\\PecanGame\\Config\\PecanEngine.ini";
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("SystemSettings", "WindowedFullscreen", Context.IsFullscreen),
new Nucleus.IniSaveInfo("SystemSettings", "ResX", Context.Width),
new Nucleus.IniSaveInfo("SystemSettings", "ResY", Context.Height),
new Nucleus.IniSaveInfo("SystemSettings", "Fullscreen", false),
new Nucleus.IniSaveInfo("Engine.Engine", "bPauseOnLossOfFocus", false),
new Nucleus.IniSaveInfo("PecanGame.PecanGameEngine", "bPauseLostFocusWindowed", false),
new Nucleus.IniSaveInfo("Engine.Engine", "bMuteAudioWhenNotInFocus", false),
new Nucleus.IniSaveInfo("PecanGame.PecanGameEngine", "bMuteAudioWhenNotInFocus", false),
new Nucleus.IniSaveInfo("FullScreenMovie", "bForceNoMovies", true)
]);
var autoExec = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\binaries\\win32\\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(autoExec, lines);
};