Open rejedai opened 1 year ago
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
This service is necessary to bypass battle.net?
WMI is used to get information such as:
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.
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'.
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, elsebnet
doesn't start.ping
used becausewine 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?
@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.
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.