obs-vkcapture icon indicating copy to clipboard operation
obs-vkcapture copied to clipboard

obs-vkcapture for Origin games

Open jarrard opened this issue 1 year ago • 8 comments

Seems there could be a problem running obs-vkcapture with origin games as they run behind a Origin launcher which does not at all like obs-vkcapture run before it.

It be nice if there was a env variable that could be used like OBSCAPTURE = "Game.exe" ? something like that would be useful.

EDIT: It might just be a issue with the quicklaunch method. Running obs-vkcapture on origin.exe appears to work, maybe.

EDIT2: Nope, seems it will ignore anything launched with origin. Except launchers itself... Using Mass Effect LEG as a test case, it can't see the game exe in the game capture source.

jarrard avatar Aug 05 '22 03:08 jarrard

You're only supposed to run the games with obs-vkcapture, not launchers (same with Steam).

But please post logs and describe the issue better. It just doesn't show in OBS in game list, it crashes the game, etc?

nowrep avatar Aug 05 '22 06:08 nowrep

Some games are forced to run through launcher. No method around it unfortunately. MEL123 for example has a launcher you must go through afaik. But its not a big issue at end of day, just a limitation of this tool I guess.

jarrard avatar Aug 05 '22 08:08 jarrard

I would still like to see the logs from the game where it doesn't work. Also logs with VK_LOADER_DEBUG=all env variable set.

nowrep avatar Aug 05 '22 09:08 nowrep

Well it does work but it ONLY detects the Origin.exe and MELauncher.exe files. Selecting the pick any window option doesn't solve the issue.

So basically its run like obs-vkcapture Origin.exe since that is what you need to do. Now maybe other games work that don't have launchers but afaik games that have a forced launcher like Mass Effect are causing a issue for game detection.

I'll work on getting those logs for you non the less.

jarrard avatar Aug 06 '22 04:08 jarrard

As long as it doesn't crash the game/launcher it doesn't really matter if the obs-vkcapture gets loaded into launcher process too. It should show the launcher AND the game in the "select window" option in OBS. But yes, please try to get the logs.

nowrep avatar Aug 08 '22 16:08 nowrep

Here is a log capture. Bit messy but you can see vkcapture is logging correctly there.

Basically it sees Origin.exe and MassEffectLauncher but not the game behind those.

obscapturevkloader-logs.log

jarrard avatar Aug 09 '22 02:08 jarrard

Out of curriosity I disabled gamemoderun, vkbasalt, and mangohud (using environmental flags and options in lutris). Now when I go to the game main menu and minimize back to OBS, it appears! I've used those things before without issue. Odd. Maybe this isn't a problem after-all?

obscapturevkloader-logs-2.log

Interesting enough OBS game capture shows the game to be a BLANK space. No name.

jarrard avatar Aug 09 '22 02:08 jarrard

Can you build obs-vkcapture in debug and get the logs again? Also without the VK_LOADER_DEBUG (the layer gets loaded correctly in both cases).

nowrep avatar Aug 09 '22 06:08 nowrep

Sorry I've changed my setup and it will be a while before I test any origin stuff again. (data lost) Did a complete whip and now trying to move to flatpak steam...

jarrard avatar Sep 20 '22 08:09 jarrard