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

Halo 2 · handler “Halo 2 Project Cartographer”

Version 10

Release notes

Updated the XLiveLessNess option files to v1.5.1.1 and added more than 4 xinput gamepads support for it.

Released
Size
460 KB
Downloads
6
Check
Verified
SHA-256
455fc5b80bdebccb9287a6be1404219ff4eb9b6697039dd9e98104308d658e8a
Download v10 (.nc)All versions

Files 30

PathSize
Halo2PC/halo2config1.ini4.6 KB
Halo2PC/xlive.dll916 KB
Halo2PC/XLiveLessNess/modules/xlln-halo-2.dll22 KB
Halo2PC/XLiveLessNess/profile/defaults/10040002.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040003.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040004.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040005.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040006.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/1004000B.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/1004000C.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/1004000D.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/1004000E.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040012.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040013.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040015.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040018.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/1004001D.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/1004001E.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040022.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040023.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040024.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040026.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040027.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040028.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040029.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040038.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/10040039.dat4 B
Halo2PC/XLiveLessNess/profile/defaults/402C0011.dat2 B
Halo2PC/XLiveLessNess/profile/defaults/4064000F.dat2 B
handler.js9.0 KB

handler.js

Plain text
Hub.Handler.Version = 10; // Released at https://hub.splitscreen.me/ on Wed Feb 12 2025 14:50:33 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "x6CA522XrR74myDzx";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["No", "Yes"];
Game.AddOption("Use XLiveLessNess LAN connection method?", "ONLY use if you have issues with the Project Cartographer LAN, gamepads only.", "XLLN", answers1);

/*Game.KillMutex = [
    "Halo2AlreadyRunning",
];*/
Game.DirExclusions = ["XLiveLessNess"];
Game.DirSymlinkExclusions = ["xinput\\p02", "xinput\\p03", "xinput\\p04"];
Game.FileSymlinkExclusions = [
  "Durazno.ini",
  "Duraz02.ini",
  "Duraz03.ini",
  "Duraz04.ini",
  "halo2config1.ini",
  "halo2config2.ini",
  "halo2config3.ini",
  "halo2config4.ini",
  "halo2config5.ini",
  "xinput9_1_0.dll"
];
Game.FileSymlinkCopyInstead = ["gungame.ini", "h2customlanguage.ini", "halo2.exe.cfg", "loading.bin", "mssdsp.flt", "xlive.dll", "cartographer.dll"];
Game.NeedsSteamEmulation = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.ExecutableName = "halo2.exe";
Game.GUID = "Halo 2 Project Cartographer";
Game.GameName = "Halo 2: Project Cartographer";
Game.MaxPlayers = 16;
Game.MaxPlayersOneMonitor = 16;
Game.HideTaskbar = false;
Game.StartArguments = "-hiresfix -windowed";
Game.SetTopMostAtEnd = true;
Game.Hook.ForceFocus = false;
Game.Hook.ForceFocusWindowName = "Halo 2"; //Halo 2 - Project Cartographer
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = false;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.SupportsKeyboard = true;
Game.UserProfileSavePath = "AppData\\Local\\Microsoft\\Halo 2\\Saved Games";
Game.UserProfileConfigPath = "AppData\\Local\\Microsoft\\Halo 2";
Game.Description = "For Halo 2 Project Cartographer: https://www.halo2.online/home/";
Game.PauseBetweenStarts = 25;

//ProtoInput:

Game.SupportsMultipleKeyboardsAndMice = false;

Game.ProtoInput.InjectStartup = false;
Game.ProtoInput.InjectRuntime_RemoteLoadMethod = false;
Game.ProtoInput.InjectRuntime_EasyHookMethod = false;
Game.ProtoInput.InjectRuntime_EasyHookStealthMethod = false;

Game.LockInputAtStart = false;
Game.LockInputSuspendsExplorer = false;
Game.ProtoInput.FreezeExternalInputWhenInputNotLocked = false;
Game.LockInputToggleKey = 0x23;

Game.ProtoInput.MessageFilterHook = true;
Game.ProtoInput.GetCursorPosHook = true;
Game.ProtoInput.SetCursorPosHook = true;
Game.ProtoInput.GetKeyStateHook = false;
Game.ProtoInput.GetAsyncKeyStateHook = false;
Game.ProtoInput.GetKeyboardStateHook = false;
Game.ProtoInput.FocusHooks = true;
Game.ProtoInput.RawInputFilter = false;
Game.ProtoInput.XinputHook = true;
Game.ProtoInput.UseOpenXinput = true;
Game.GamePlayBeforeGameSetup = true;

Game.Play = function() {
  var xlln = Context.Options["XLLN"];

  if (xlln == "Yes") {
    Game.ProtoInput.InjectRuntime_EasyHookMethod = true;
    Game.PauseBetweenProcessGrab = 2;

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

    Context.CopyFolder(Context.ScriptFolder + "\\XLiveLessNess", Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XLiveLessNess");

    var number = Context.PlayerID + 1;
    var port = Context.PlayerID + 20;
    var VideoConfig = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\XLiveLessNess\\xlln-config-" + number + ".ini";
    Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("XLLN-Config-Version:1.5.1.1", "xlive_base_port", port + "00"),
      new Nucleus.IniSaveInfo("XLLN-Config-Version:1.5.1.1", "xlive_xhv_engine_enabled", 0),
      new Nucleus.IniSaveInfo("XLLN-Config-Version:1.5.1.1", "xlive_username_p1", Context.Nickname),
      new Nucleus.IniSaveInfo("XLLN-Config-Version:1.5.1.1", "xlive_user_live_enabled_p1", 1),
      new Nucleus.IniSaveInfo("XLLN-Config-Version:1.5.1.1", "xlive_user_online_enabled_p1", 1),
      new Nucleus.IniSaveInfo("XLLN-Config-Version:1.5.1.1", "xlive_user_auto_login_p1", 1)
    ]);
  }

  if (xlln == "No") {
    Game.HasDynamicWindowTitle = true;
    Game.PauseBetweenProcessGrab = 10;
    Game.FakeFocus = false;
    Game.HookFocus = false;

    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "xinput9_1_0.dll"), System.IO.Path.Combine(Context.RootFolder, "xinput9_1_0.dll"), true);

    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "Durazno.ini"), System.IO.Path.Combine(Context.RootFolder, "Durazno.ini"), true);

    if (Context.PlayerID == 0) {
      var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Durazno.ini";
      Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("Controller0", "Port", Context.GamepadId - 1),
        new Nucleus.IniSaveInfo("Controller0", "Disable", 0),
        new Nucleus.IniSaveInfo("Controller1", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller2", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller3", "Disable", 1)
      ]);
    }

    if (Context.PlayerID == 1) {
      var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\xinput\\p02");
      System.IO.Directory.CreateDirectory(filePath);

      System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "Durazno.ini"), System.IO.Path.Combine(Context.RootFolder, "Duraz02.ini"), true);

      var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Duraz02.ini";
      Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("Controller0", "Port", Context.GamepadId - 1),
        new Nucleus.IniSaveInfo("Controller0", "Disable", 0),
        new Nucleus.IniSaveInfo("Controller1", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller2", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller3", "Disable", 1)
      ]);
    }

    if (Context.PlayerID == 2) {
      var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\xinput\\p03");
      System.IO.Directory.CreateDirectory(filePath);

      System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "Durazno.ini"), System.IO.Path.Combine(Context.RootFolder, "Duraz03.ini"), true);

      var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Duraz03.ini";
      Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("Controller0", "Port", Context.GamepadId - 1),
        new Nucleus.IniSaveInfo("Controller0", "Disable", 0),
        new Nucleus.IniSaveInfo("Controller1", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller2", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller3", "Disable", 1)
      ]);
    }

    if (Context.PlayerID == 3) {
      var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\xinput\\p04");
      System.IO.Directory.CreateDirectory(filePath);

      System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "Durazno.ini"), System.IO.Path.Combine(Context.RootFolder, "Duraz04.ini"), true);

      var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\Duraz04.ini";
      Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("Controller0", "Port", Context.GamepadId - 1),
        new Nucleus.IniSaveInfo("Controller0", "Disable", 0),
        new Nucleus.IniSaveInfo("Controller1", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller2", "Disable", 1),
        new Nucleus.IniSaveInfo("Controller3", "Disable", 1)
      ]);
    }

    var number = Context.PlayerID + 1;
    var port = Context.PlayerID + 2;

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

    var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\halo2config" + number + ".ini";
    Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("H2ConfigurationVersion:1", "base_port", port + "000"),
      new Nucleus.IniSaveInfo("H2ConfigurationVersion:1", "lan_ip", "127.0.0.1"),
      new Nucleus.IniSaveInfo("H2ConfigurationVersion:1", "disable_ingame_keyboard", 1)
    ]);

    if (Context.IsKeyboardPlayer) {
      var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\halo2config" + number + ".ini";
      Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [new Nucleus.IniSaveInfo("H2ConfigurationVersion:1", "disable_ingame_keyboard", 0)]);
    }
  }
};