Coder Social home page Coder Social logo

Steam Deck support about bnetlauncher HOT 5 OPEN

rejedai avatar rejedai commented on June 30, 2024 2
Steam Deck support

from bnetlauncher.

Comments (5)

DandeMC avatar DandeMC commented on June 30, 2024 1

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?

from bnetlauncher.

rejedai avatar rejedai commented on June 30, 2024

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

from bnetlauncher.

dafzor avatar dafzor commented on June 30, 2024

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.

from bnetlauncher.

rejedai avatar rejedai commented on June 30, 2024

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'.

from bnetlauncher.

sigboe avatar sigboe commented on June 30, 2024

@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.

from bnetlauncher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.