Skip to content
Beta: this is a preview of the new SplitScreen.Me. Data may be reset before launch.

SkyDrift · handler “SkyDrift”

Version 3

Release notes

keyboard fix and notes.

Released
Size
48 KB
Downloads
41
Check
Verified
SHA-256
2534a44b22a7e93ca3781ebd55fcfbece3aa988ec7c71c01fcec0a77c2387498
Download v3 (.nc)All versions

Files 3

PathSize
handler.js4.1 KB
SkyDrift/d3d9.dll91 KB
SkyDrift/d3d9.ini42 B

handler.js

Plain text
Hub.Handler.Version = 3; // Released at https://hub.splitscreen.me/ on Sun Aug 16 2020 18:53:03 GMT+0000 (UTC).
Hub.Handler.Id = "EPzy3CC4EAhFFkXsh";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["No", "Yes"];
Game.AddOption("Will you use more than 4 xinput gamepads?", "Only select yes if you have and will use more than 4 xinput gamepads.", "Reroute", answers1);

Game.ExecutableContext = ["PhysXDevice.dll"];
Game.KillMutex = ["SkyDrift"];
Game.FileSymlinkExclusions = ["steam_api.dll", "steam_appid.txt", "steam_interfaces.txt", "d3d9.dll", "d3d9.ini", "xinput1_3.dll"];
Game.KillMutexType = "Section";
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.SupportsKeyboard = true;
Game.ExecutableName = "SkyDrift.exe";
Game.SteamID = "91100";
Game.GUID = "SkyDrift";
Game.GameName = "SkyDrift";
Game.MaxPlayers = 8;
Game.MaxPlayersOneMonitor = 8;
Game.BinariesFolder = "";
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.SupportsPositioning = true;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "SkyDrift";
Game.HasDynamicWindowTitle = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = true;
Game.Hook.UseAlpha8CustomDll = true;
Game.ResetWindows = true;
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\91100\\remote";
//Game.FlawlessWidescreen = "Skydrift";
Game.Description = "If your gamepads are not working go to the game options, controls and select your input device there. Alt-tab to an instance to use the keyboard.";
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings");
  System.IO.Directory.CreateDirectory(filePath);

  var interfaces = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_interfaces.txt";
  var lines = [
    "SteamClient010",
    "SteamGameServer010",
    "SteamGameServerStats001",
    "SteamUser016",
    "SteamFriends009",
    "SteamUtils005",
    "SteamMatchMaking008",
    "SteamMatchMakingServers002",
    "STEAMUSERSTATS_INTERFACE_VERSION010",
    "STEAMAPPS_INTERFACE_VERSION004",
    "SteamNetworking005",
    "STEAMREMOTESTORAGE_INTERFACE_VERSION004",
    "STEAMHTTP_INTERFACE_VERSION001",
    "SteamMasterServerUpdater001"
  ];

  Context.WriteTextFile(interfaces, lines);

  var dlc = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings\\DLC.txt";
  var lines = ["91106=Skydrift Gladiator Multiplayer Pack", "91104=Skydrift Extreme Fighters Premium Airplane Pack"];

  Context.WriteTextFile(dlc, lines);

  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\d3d9.dll");
  var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "d3d9.dll");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\d3d9.ini");
  var savePkgOrigin = System.IO.Path.Combine(Game.Folder, "d3d9.ini");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

  var reroute = Context.Options["Reroute"];

  if (reroute == "No") {
    //You can use only ONE XboxOne controller and you can't use the keyboard at the same time. You must click/alt+tab on the corresponding instance to make it work.

    Game.Hook.XInputReroute = false;
  }

  if (reroute == "Yes") {
  }

  if (Context.IsKeyboardPlayer) {
    Context.Hook.BlockMouseEvents = "False";
    Context.Hook.BlockKeyboardEvents = "False";
    Context.Hook.BlockInputEvents = "False";
    Context.Hook.ForceFocus = "True";
  } else {
    Context.Hook.BlockMouseEvents = "False";
    Context.Hook.BlockKeyboardEvents = "False";
    Context.Hook.BlockInputEvents = "False";
    Context.Hook.ForceFocus = "True";
  }
};