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 (or any game from EPIC or other via steam)

2 posters

Go down

[TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam) Empty [TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam)

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 (or any game from EPIC or other via steam) 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 (or any game from EPIC or other via steam) Steam_10


Then find the game executable as follows:

[TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam) Deskto13
[TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam) Deskto12


Finally, report these two pieces of information in your.bat file as follows:
[TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam) _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



GAMES FROM EPIC GAMES OR ANY OTHERS VIA STEAM:

You can also use epic games or other games via steam in the same way, use the "add a non-steam game" function and once the game has been added to steam right click on the game then MANAGE / CREATE A SHORTCUT ON THE DESKTOP then go find its properties from the desktop with a right click and copy the ID that Steam created for this game and then edit your .bat file in the same way.


Last edited by lehcim on Thu 17 Jun - 23:18; edited 7 times in total
lehcim
lehcim

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

Lorenzolamas, triki1 and Drodrik like this post

Back to top Go down

[TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam) Empty Re: [TUTO] Add Steam games to RetroBat (or any game from EPIC or other via steam)

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