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

God Eater Resurrection · handler “GodEaterR”

Version 1

Release notes

First Release

Released
Size
137 KB
Downloads
101
Check
Unverified
SHA-256
525057775ffeb4ebffc4c54c211f2b4231105fa0c7cf82750d6f95592c8b21d8
Download v1 (.nc)All versions

Files 9

PathSize
GodEaterR/P1/CPY.ini118 B
GodEaterR/P2/CPY.ini118 B
GodEaterR/P3/CPY.ini118 B
GodEaterR/P4/CPY.ini118 B
GodEaterR/SST311212.dll70 KB
GodEaterR/steamclient.dll5.5 KB
GodEaterR/steam_api.dll29 KB
GodEaterR/ValveAPI.dll183 KB
handler.js5.6 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Fri May 15 2020 04:43:39 GMT+0000 (UTC).
Hub.Handler.Id = "Sr4JPKj93ceBJ4W3X";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.KillMutex = ["GE"];
Game.FileSymlinkExclusions = ["GER.exe", "steam_api.dll", "steam_appid.txt", "steamclient.dll", "ValveAPI.dll", "CPY.ini", "SST311212.dll", "xinput1_3.dll"];
Game.GameName = "God Eater Resurrection";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "ger.exe";
Game.SteamID = "460870";
Game.GUID = "God Eater Resurrection";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.BinariesFolder = "";
Game.NeedsSteamEmulation = true;
Game.UseGoldberg = false;
Game.CreateSteamAppIdByExe = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "God Eater Resurrection";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.BlockKeyboardEvents = false;
Game.Hook.BlockMouseEvents = false;
Game.Hook.BlockInputEvents = false;
Game.Hook.UseAlpha8CustomDll = true;
Game.UserProfileConfigPath = "AppData\\Local\\BANDAI NAMCO GAMES\\GOD EATER RESURRECTION";
Game.Description = "CLOSE Steam completely before running this. Gamepads only.";
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  var username = System.Environment.UserName;
  var VideoConfig = "C:\\Users\\" + username + "\\AppData\\Local\\BANDAI NAMCO GAMES\\GOD EATER RESURRECTION\\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);

  if (Player.Owner.IsDualHorizontal()) {
    var username = System.Environment.UserName;
    var VideoConfig = "C:\\Users\\" + username + "\\AppData\\Local\\BANDAI NAMCO GAMES\\GOD EATER RESURRECTION\\config.ini";
    Context.ModifySaveFile(VideoConfig, VideoConfig, Nucleus.SaveType.INI, [
      new Nucleus.IniSaveInfo("GFX", "Resolution_Width", "2560"),
      new Nucleus.IniSaveInfo("GFX", "Resolution_Height", "1080"),
      new Nucleus.IniSaveInfo("GFX", "Fullscreen", "0")
    ]);

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

    Context.PatchFile(System.IO.Path.Combine(Context.RootFolder, "GER.exe"), System.IO.Path.Combine(Context.RootFolder, "GER.exe"), [0x3f, 0x00, 0x00, 0x80, 0x41], [0x3f, 0x00, 0xaa, 0xaa, 0x41]);
  } else {
    var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\GER.exe");
    var savePkgOrigin = System.IO.Path.Combine(Context.RootInstallFolder, "GER.exe");
    System.IO.File.Copy(savePkgOrigin, savePath, true);
  }

  if (Player.Owner.IsDualVertical()) {
    var username = System.Environment.UserName;
    var VideoConfig = "C:\\Users\\" + username + "\\AppData\\Local\\BANDAI NAMCO GAMES\\GOD EATER RESURRECTION\\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")
    ]);
  }

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

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

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

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