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

God Eater 2 - Rage Burst · handler “GodEater2RB”

Version 2

Release notes

Stretching UI option fix.

Released
Size
105 KB
Downloads
291
Check
Verified
SHA-256
8fe6663b2821bfb6b744dba45aba3de99f10a65c968e68a45c8af36d8a74b27b
Download v2 (.nc)All versions

Files 6

PathSize
GodEater2RB/CPY.ini118 B
GodEater2RB/SST311212.dll12 KB
GodEater2RB/steamclient.dll5.5 KB
GodEater2RB/steam_api.dll29 KB
GodEater2RB/ValveAPI.dll183 KB
handler.js6.4 KB

handler.js

Plain text
Hub.Handler.Version = 2; // Released at https://hub.splitscreen.me/ on Sat Jan 16 2021 13:46:50 GMT+0000 (UTC).
Hub.Handler.Id = "L5qdhx4YW8FSok5oS";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

var answers1 = ["Yes", "No"];
Game.AddOption("Change aspect ratio to match the window resolution?", "Fixes the blackbars and stretching in split.Tested with 1920x1080 monitor res.", "AR", answers1);

Game.KillMutex = ["GE2RB"];
Game.FileSymlinkExclusions = ["GE2RB.exe", "steam_api.dll", "steam_appid.txt", "steamclient.dll", "ValveAPI.dll", "CPY.ini", "SST311212.dll", "xinput1_3.dll"];
Game.GameName = "God Eater 2 Rage Burst";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "ge2rb.exe";
Game.SteamID = "438490";
Game.GUID = "God Eater 2 Rage Burst";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.UseNucleusEnvironment = true;
Game.NeedsSteamEmulation = true;
Game.UseGoldberg = false;
Game.CreateSteamAppIdByExe = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "God Eater 2 Rage Burst";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_3.dll"];
Game.Hook.CustomDllEnabled = false;
Game.FakeFocus = true;
Game.HookFocus = true;
Game.SetWindowHook = true;
Game.UserProfileConfigPath = "AppData\\Local\\BANDAI NAMCO GAMES\\GOD EATER 2 RAGE BURST";
Game.Description =
  "CLOSE Steam completely before running this. Each instance has its own save, you can access these saves in the app, after the first launch click game options/open user profile config path in the UI. Gamepads only.";
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  var VideoConfig = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\config.ini";
  Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [new Nucleus.IniSaveInfo("GFX", "Fullscreen", "0")]);

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

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

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

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

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

  var savePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\CPY.ini";
  Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
    new Nucleus.IniSaveInfo("Settings", "PlayerName", Context.Nickname),
    new Nucleus.IniSaveInfo("Settings", "SavePath", Context.EnvironmentPlayer + Context.UserProfileConfigPath)
  ]);

  var ar = Context.Options["AR"];

  if (ar == "Yes") {
    if (Context.AspectRatioDecimal > 1.8) {
      var VideoConfig = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\config.ini";
      Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("GFX", "Resolution_Width", "1920"),
        new Nucleus.IniSaveInfo("GFX", "Resolution_Height", "1080"),
        new Nucleus.IniSaveInfo("GFX", "Fullscreen", "0")
      ]);

      //patch widescreen
      Context.PatchFile(
        System.IO.Path.Combine(Context.RootInstallFolder, "GE2RB.exe"),
        System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"),
        [0x3f, 0x80, 0x07, 0x00, 0x00, 0x38, 0x04],
        [0x3f, 0x80, 0x07, 0x00, 0x00, 0x1c, 0x02]
      );

      Context.PatchFile(
        System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"),
        System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"),
        [0x3f, 0x00, 0x00, 0x80, 0x41],
        [0x3f, 0x00, 0x00, 0x00, 0x42]
      );
    } else if (Context.AspectRatioDecimal < 1.2) {
      var VideoConfig = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\config.ini";
      Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("GFX", "Resolution_Width", "1920"),
        new Nucleus.IniSaveInfo("GFX", "Resolution_Height", "1080"),
        new Nucleus.IniSaveInfo("GFX", "Fullscreen", "0")
      ]);

      Context.PatchFile(
        System.IO.Path.Combine(Context.RootInstallFolder, "GE2RB.exe"),
        System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"),
        [0x3f, 0x80, 0x07, 0x00, 0x00, 0x38, 0x04],
        [0x3f, 0xc0, 0x03, 0x00, 0x00, 0x38, 0x04]
      );

      Context.PatchFile(
        System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"),
        System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"),
        [0x3f, 0x00, 0x00, 0x80, 0x41],
        [0x3f, 0x00, 0x00, 0x00, 0x41]
      );
    } else {
      System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "GE2RB.exe"), System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"), true);
    }
  }

  if (ar == "No") {
    System.IO.File.Copy(System.IO.Path.Combine(Context.RootInstallFolder, "GE2RB.exe"), System.IO.Path.Combine(Context.RootFolder, "GE2RB.exe"), true);

    if (Context.AspectRatioDecimal < 1.2) {
      var VideoConfig = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\config.ini";
      Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
        new Nucleus.IniSaveInfo("GFX", "Resolution_Width", Context.Width),
        new Nucleus.IniSaveInfo("GFX", "Resolution_Height", Context.Height),
        new Nucleus.IniSaveInfo("GFX", "Fullscreen", "0")
      ]);
    } else {
    }
  }
};