F1 2012 · handler “F12012”
Version 1
Release notes
First Release
- Released
- Size
- 1.2 KB
- Downloads
- 5
- Check
- Unverified
- SHA-256
- b207de969a445a18b14fe9e89051d1418e16459083731692433fb825832a8e61
Files 1
| Path | Size |
|---|---|
| handler.js | 2.7 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Sun Dec 29 2019 06:01:15 GMT+0000 (UTC).
Hub.Handler.Id = "7o9Bbp8CcfYpginep";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.KillMutex = ["F1 2012"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt"];
Game.FileSymlinkCopyInstead = [
"binkw32.dll",
"game_gdf.dll",
"rldata.dll",
"car_materials.xml",
"car_monitor_setup.xml",
"example_benchmark.xml",
"loose_parts_settings.xml",
"SkipFrontEnd.xml",
"surface_materials.xml",
"raceload.jpk",
"win_000.nfs"
];
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergLanguage = "english";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "f1_2012.exe";
Game.SteamID = "208500";
Game.GUID = "F1-2012";
Game.GameName = "F1 2012";
Game.MaxPlayers = 16;
Game.MaxPlayersOneMonitor = 16;
Game.BinariesFolder = "";
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "F1 2012";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.UseAlpha8CustomDll = true;
Game.Hook.BlockMouseEvents = true;
Game.Hook.BlockInputEvents = true;
Game.Hook.BlockKeyboardEvents = false;
Game.KeepSymLinkOnExit = true;
Game.DPIHandling = Nucleus.DPIHandling.Scaled;
Game.PauseBetweenStarts = 30;
Game.Play = function() {
var path = "%USERPROFILE%\\Documents\\My Games\\FormulaOne2012\\hardwaresettings\\hardware_settings_config.xml";
Context.ChangeXmlAttributeValue(path, "//resolution", "width", Context.Width);
Context.ChangeXmlAttributeValue(path, "//resolution", "height", Context.Height);
Context.ChangeXmlAttributeValue(path, "//resolution", "fullscreen", "false");
Context.ChangeXmlAttributeValue(path, "//resolution", "oldWidth", Context.Width);
Context.ChangeXmlAttributeValue(path, "//resolution", "oldHeight", Context.Height);
var autoExec = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
var lines = [
"SteamClient012",
"SteamGameServer011",
"SteamGameServerStats001",
"SteamUser016",
"SteamFriends011",
"SteamUtils005",
"SteamMatchMaking009",
"SteamMatchMakingServers002",
"STEAMUSERSTATS_INTERFACE_VERSION010",
"STEAMAPPS_INTERFACE_VERSION004",
"SteamNetworking005",
"STEAMREMOTESTORAGE_INTERFACE_VERSION005",
"STEAMSCREENSHOTS_INTERFACE_VERSION001",
"STEAMHTTP_INTERFACE_VERSION001"
];
Context.WriteTextFile(autoExec, lines);
};