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

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

4 posters

Go down

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

Post by lehcim 06/03/21, 09:48 pm

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 - OBSOLETE] 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 - OBSOLETE] Add Steam games to RetroBat (or any game from EPIC or other via steam) Steam_10


Then find the game executable as follows:

[TUTO - OBSOLETE] Add Steam games to RetroBat (or any game from EPIC or other via steam) Deskto13
[TUTO - OBSOLETE] 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 - OBSOLETE] 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 17/06/21, 11:18 pm; 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 - OBSOLETE] Add Steam games to RetroBat (or any game from EPIC or other via steam) Empty Re: [TUTO - OBSOLETE] Add Steam games to RetroBat (or any game from EPIC or other via steam)

Post by triki1 06/03/21, 09:57 pm

Yes super merci
triki1
triki1

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

lehcim likes this post

Back to top Go down

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

Post by vitouchiha 20/03/23, 03:10 pm

hello, excellent guide, when I close a game, it stays still on the 'ES' screen and does not go back to the game selection
vitouchiha
vitouchiha

Messages : 16
Date d'inscription : 2023-03-20

Back to top Go down

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

Post by tartifless 20/03/23, 06:36 pm

What exactly did you put in your bat file ?


[TUTO - OBSOLETE] Add Steam games to RetroBat (or any game from EPIC or other via steam) Modo
tartifless
tartifless
Admin

Messages : 1074
Date d'inscription : 2021-04-27

Back to top Go down

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

Post by vitouchiha 21/03/23, 12:14 am

tartifless wrote:What exactly did you put in your bat file ?

@echo OFF

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

TIMEOUT /t 30
:RUNNING

REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "MyGame.exe"
tasklist|findstr "FortniteClient-Win64-Shipping.Ink" > nul

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

vitouchiha
vitouchiha

Messages : 16
Date d'inscription : 2023-03-20

Back to top Go down

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

Post by tartifless 21/03/23, 07:50 am

This line is not correct:
tasklist|findstr "FortniteClient-Win64-Shipping.Ink"

You should remove the extension and ensure the process name is correct.
It must be exactly equal to the process name appearing in the process list of windows when you do ctrl + alt + del


[TUTO - OBSOLETE] Add Steam games to RetroBat (or any game from EPIC or other via steam) Modo
tartifless
tartifless
Admin

Messages : 1074
Date d'inscription : 2021-04-27

vitouchiha likes this post

Back to top Go down

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

Post by vitouchiha 21/03/23, 02:09 pm

tartifless wrote:This line is not correct:
tasklist|findstr "FortniteClient-Win64-Shipping.Ink"

You should remove the extension  and ensure the process name is correct.
It must be exactly equal to the process name appearing in the process list of windows when you do ctrl + alt + del

tartifless wrote:Can you paste your bat file content here ?

Hi all , problem solved , I modified the BAT file, inserting as Task files to close, the executable I saw in the taskmanager

example

I hope it can help others

@echo OFF

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

TIMEOUT /t 30
:RUNNING

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

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

vitouchiha
vitouchiha

Messages : 16
Date d'inscription : 2023-03-20

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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