Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam Deck support #87

Open
rejedai opened this issue Mar 26, 2023 · 5 comments
Open

Steam Deck support #87

rejedai opened this issue Mar 26, 2023 · 5 comments

Comments

@rejedai
Copy link

rejedai commented Mar 26, 2023

When I try to run through this program, I get the error "Windows Management Instrumentation is not running.
This service is necessary to bypass battle.net? I tried with the --notask flag, unfortunately the error remains.

@rejedai
Copy link
Author

rejedai commented Mar 26, 2023

Well, I found how to make WMI work, but after launching bnetlaucher, the game still doesn't start, nothing starts at all.

Log:
debug_20230326.log

@dafzor
Copy link
Owner

dafzor commented Mar 26, 2023

This service is necessary to bypass battle.net?

WMI is used to get information such as:

  • is battle.net running?
  • Did the game start?
  • etc...

So bnetlauncher will not work without it.

Well, I found how to make WMI work, but after launching bnetlaucher, the game still doesn't start, nothing starts at all.

I never tested bnetlauncher under wine, I'd suggest trying to find a linux native alternative to bnetlauncher.

@rejedai
Copy link
Author

rejedai commented May 19, 2023

Well, simple batch script to launch:

@echo off
net start winmgmt

start "" "./bnetlauncher.exe" ow2
rem  ping 127.0.0.1 -n 15 > nul
start "" "./bnetlauncher.exe" ow2

ow2:

[ow2]
name=Overwatch
client=battlenet
cmd=Pro
exe=Overwatch.exe
options=notask

notask required, else bnet doesn't start. ping used because wine batch doesn't know timeout and sleep commands.

With this sctipt game launches, but I got error in log:

20:53:45.8596|1656|Program.Main:228|INFO|Given parameter 'ow2'.
20:53:45.8596|1656|Program.Main:264|INFO|Using 'battlenet' client.
20:53:45.8596|1656|BnetClient.InstallPath:86|INFO|Client InstallPath:'C:\Program Files (x86)\Battle.net'.
20:53:45.8596|1656|Program.Main:280|INFO|Checking for other bnetlauncher processes using same client
20:53:45.8596|1656|Program.Main:288|INFO|No other bnetlauncher detected
20:53:45.8996|1656|Program.Main:331|INFO|Client already running with pid:'428'.
20:53:45.9006|1656|Program.Main:350|INFO|Issuing game launch command 'Pro' at '08:53:45.8996'
20:53:45.9006|1656|BnetClient.InstallPath:86|INFO|Client InstallPath:'C:\Program Files (x86)\Battle.net'.

@DandeMC
Copy link

DandeMC commented Jun 11, 2023

Well, simple batch script to launch:

@echo off
net start winmgmt

start "" "./bnetlauncher.exe" ow2
rem  ping 127.0.0.1 -n 15 > nul
start "" "./bnetlauncher.exe" ow2

ow2:

[ow2]
name=Overwatch
client=battlenet
cmd=Pro
exe=Overwatch.exe
options=notask

notask required, else bnet doesn't start. ping used because wine batch doesn't know timeout and sleep commands.

With this sctipt game launches, but I got error in log:

20:53:45.8596|1656|Program.Main:228|INFO|Given parameter 'ow2'.
20:53:45.8596|1656|Program.Main:264|INFO|Using 'battlenet' client.
20:53:45.8596|1656|BnetClient.InstallPath:86|INFO|Client InstallPath:'C:\Program Files (x86)\Battle.net'.
20:53:45.8596|1656|Program.Main:280|INFO|Checking for other bnetlauncher processes using same client
20:53:45.8596|1656|Program.Main:288|INFO|No other bnetlauncher detected
20:53:45.8996|1656|Program.Main:331|INFO|Client already running with pid:'428'.
20:53:45.9006|1656|Program.Main:350|INFO|Issuing game launch command 'Pro' at '08:53:45.8996'
20:53:45.9006|1656|BnetClient.InstallPath:86|INFO|Client InstallPath:'C:\Program Files (x86)\Battle.net'.

Works that? How do I have to set this so that the script starts via steam?

@sigboe
Copy link

sigboe commented Jul 12, 2023

@DandeMC

Works that?

No it doesn't work, sadly.
I think the issue is winmgmt in wine/proton

How do I have to set this so that the script starts via steam?

Can add a bat file or another file as non-steam-game in desktop mode. To add a bat file you need to click the show all files. bat is an accepted exectuable type in wine/proton. But not all bat scripts work, not all functions in windows batch are programmed into wine batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants