lucasassislar / nucleuscoop

Starts multiple instances of a game for split-screen multiplayer gaming!
https://www.reddit.com/r/nucleuscoop/comments/clkqp9/all_new_nucleuscoop_supported_games/
MIT License
807 stars 193 forks source link

"Search game" can't find handler even though the executable name is correct #192

Closed nkalpak closed 1 year ago

nkalpak commented 1 year ago

Hi!

I am trying to create a handler for Baldur's Gate 3, and what I've done is the following:

  1. Copy Divinity 2's handler and paste it into <root>/handlers
  2. Rename the handler file to Baldur's Gate 3.js
  3. Change Game.ExecutableName to "bg3.exe"

Once I've done these steps, I expect to be able to add the game through "Search Game" inside the Nucleus UI: image

However, once I select the game above and click open, I get the following error: image

Here's a relevant part of the handler config, importantly you can see that the Game.ExecutableName is exactly the same as what the error states it cannot find:

Game.GameName = "Baldur's Gate 3";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
// Here
Game.ExecutableName = "bg3.exe";
Game.SteamID = "1086940";
Game.GUID = "Baldur's Gate 3";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.BinariesFolder = "bin";
Game.NeedsSteamEmulation = false;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "BG3";
Game.HasDynamicWindowTitle = true;
Game.FakeFocus = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;

So I'm not sure what I'm missing here, as it seems like this should work?

nkalpak commented 1 year ago

The Divinity handler that I copied came with this value for Game.ExecutableContext

Game.ExecutableContext = [
  "PxFoundation_x64.dll",
  "PxPvdSDK_x64.dll",
  "PhysX3_x64.dll",
];

Once I removed this, I was able to successfully add the handler. Not sure why but maybe it helps someone if they stumble on this issue.