RETROBAT Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[TUTO] Add Steam games to RetroBat

Go down

[TUTO] Add Steam games to RetroBat Empty [TUTO] Add Steam games to RetroBat

Post by lehcim Sat 6 Mar - 21:48

Hello,

To launch Steam games with RetroBat, and waiting for kill steam process, i give you this solution:

Create a .bat file with a scrapable name for your game or download a template WITH STEAM KILL or WITHOUT STEAM KILL:

You have 2 possibilities, quit Steam at the end of each game or not, both work since it seems that emulationstation is waiting on the end of the execution of the script to reactivate.

The solution without switching off Steam launches the games faster since the connection step is no longer to be done once launched for the first time or if Steam is launched when Windows starts.

I also offer you the ones I already have, they have no kill, if you have the game on steam, just put the corresponding .bat in your windows folder.

Scripts Retrobat Steam

This is code you will find in this file with Steam kill:

Code:

@echo OFF

REM HERE MODIFY YOUR STEAM APPID:
START steam://rungameid/000000

TIMEOUT /t 30
:RUNNING

REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "MyGame.exe"
tasklist|findstr "Mygame.exe" > nul

if %errorlevel%==1 timeout /t 5 & taskkill /F /IM Steam.exe /T & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP

This is code you will find in this file without Steam kill:

Code:

@echo OFF

REM HERE MODIFY YOUR STEAM APPID:
START steam://rungameid/000000

TIMEOUT /t 30
:RUNNING

REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "MyGame.exe"
tasklist|findstr "Mygame.exe" > nul

if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP


All you need is to inquire Steam game ID and executable name, proceed as follows:


Open steam then check "Activate Steam address bar when available", also make sure that Steam does not start in big picture mode.

[TUTO] Add Steam games to RetroBat Settin10


You will then find your game id at the top left in the address bar, from the store page.

[TUTO] Add Steam games to RetroBat Steam_10


Then find the game executable as follows:

[TUTO] Add Steam games to RetroBat Deskto13
[TUTO] Add Steam games to RetroBat Deskto12


Finally, report these two pieces of information in your.bat file as follows:
[TUTO] Add Steam games to RetroBat _c_use11


Now Retrobat can launch the game, the script will wait until the end of the game process to quit steam and thus allow a return to Emulationstation.

Video examples:


With Steam kill and graphical bugs



Without Steam kill, no graphical bugs


Last edited by lehcim on Mon 8 Mar - 22:46; edited 5 times in total
lehcim
lehcim

Messages : 45
Date d'inscription : 2019-10-28

Lorenzolamas and triki1 like this post

Back to top Go down

[TUTO] Add Steam games to RetroBat Empty Re: [TUTO] Add Steam games to RetroBat

Post by triki1 Sat 6 Mar - 21:57

Yes super merci
triki1
triki1

Messages : 19
Date d'inscription : 2021-02-10

lehcim likes this post

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum