Sniper Elite V2 · handler “SniperEliteV2Classic”
Version 1
Release notes
First Release.
- Released
- Size
- 51 KB
- Downloads
- 806
- Check
- Verified
- SHA-256
- 7dce5265b9a06e81ffd9ce094d8fb8fcdcef378598250fe88e61218883cf74b9
Files 3
| Path | Size |
|---|---|
| handler.js | 5.0 KB |
| SniperEliteV2/LumaCEG.ini | 357 B |
| SniperEliteV2/SEV2 Patcher.exe | 93 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Sat Nov 28 2020 07:25:27 GMT+0000 (UTC).
Hub.Handler.Id = "i2kkWnG8yf76sjGee";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
var answers1 = ["No", "Yes"];
Game.AddOption("Patch Exe? ONLY select yes if you have the legit game in steam.", "Just run once if you do. Select yes, wait for the exe to patch, close Nucleus.", "Patch", answers1);
Game.KillMutex = ["SniperV2"];
Game.DirSymlinkExclusions = ["bin", "FMV"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_interfaces.txt", "steam_appid.txt", "winmm.dll", "rebellion.bik"];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergLobbyConnect = true;
Game.GoldbergNoLocalSave = true;
Game.UseNucleusEnvironment = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "SniperEliteV2.exe";
Game.SteamID = "63380";
Game.GUID = "Sniper Elite V2";
Game.GameName = "Sniper Elite V2";
Game.MaxPlayers = 12;
Game.MaxPlayersOneMonitor = 12;
Game.LauncherTitle = "splashscreen";
Game.BinariesFolder = "bin";
Game.HideTaskbar = false;
Game.StartArguments = "-subwindow"; //-60Hz
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "SniperV2";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.PreventWindowDeactivation = true;
Game.KeyboardPlayerSkipPreventWindowDeactivate = true;
Game.HideCursor = true;
Game.ResetWindows = true;
Game.UserProfileConfigPath = "AppData\\Local\\SniperV2";
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\63380\\remote";
Game.SetForegroundWindowElsewhere = true;
Game.Description =
"Close steam before running this. To connect the players in Campaign create a private co-op game in the first instance then start the next instance. You can access each instance saves in the app, after the first launch click game options/open user profile save path in the UI. If you get uneven fps in the instances try alt tabbing to the nucleuscoop app window when using multiple gamepads only, the game windows will still remain on top.";
Game.PauseBetweenContextAndLaunch = 10;
Game.KillProcessesOnClose = ["SEV2 Patcher"];
Game.PauseBetweenStarts = 30;
Game.Play = function() {
var VideoConfig = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\Settings.ini";
Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("Display Settings", "Resolution_Width", Context.Width),
new Nucleus.IniSaveInfo("Display Settings", "Resolution_Height", Context.Height)
]);
var username = System.Environment.UserName;
var VideoConfig = "C:\\Users\\" + username + "\\AppData\\Local\\SniperV2\\Settings.ini";
Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("Display Settings", "Resolution_Width", Context.Width),
new Nucleus.IniSaveInfo("Display Settings", "Resolution_Height", Context.Height)
]);
var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
var lines = [
"SteamClient012",
"SteamGameServer011",
"SteamGameServerStats001",
"SteamUser016",
"SteamFriends011",
"SteamUtils005",
"SteamMatchMaking009",
"SteamMatchMakingServers002",
"STEAMUSERSTATS_INTERFACE_VERSION010",
"STEAMAPPS_INTERFACE_VERSION005",
"SteamNetworking005",
"STEAMREMOTESTORAGE_INTERFACE_VERSION006",
"STEAMSCREENSHOTS_INTERFACE_VERSION001",
"STEAMHTTP_INTERFACE_VERSION001"
];
Context.WriteTextFile(interfaces, lines);
var patch = Context.Options["Patch"];
if (patch == "Yes") {
var NucleusRoot = System.IO.Path.Combine(Game.Folder, "..", "..");
var Gamefolder = System.IO.Path.Combine(Game.Folder);
if (!System.IO.File.Exists(Gamefolder + "\\SniperEliteV2.exe")) {
System.IO.File.Copy(NucleusRoot + "\\content\\Sniper Elite V2\\Instance0\\bin\\SniperEliteV2.exe", Gamefolder + "\\SniperEliteV2.exe");
Context.RunAdditionalFiles([Gamefolder + "\\SEV2 Patcher.exe"], false, 5);
} else {
var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\bin\\SniperEliteV2.exe");
var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "SniperEliteV2.exe");
System.IO.File.Copy(savePkgOrigin, savePath, true);
}
}
if (patch == "No") {
var Gamefolder = System.IO.Path.Combine(Game.Folder);
if (System.IO.File.Exists(Gamefolder + "\\SniperEliteV2.exe")) {
var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\bin\\SniperEliteV2.exe");
var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "SniperEliteV2.exe");
System.IO.File.Copy(savePkgOrigin, savePath, true);
} else {
}
}
};