[RESOLVED] windows games problems
4 posters
Page 1 of 1
[RESOLVED] windows games problems
Hi there, the problem happen only with a few games like pes2021, forza horizon 5.
when the game start from the windows system (.bat), a believe the launcher not killing the ES application, result music still in background as the retrobat.
to play the game i have to pres alt+tab to switch to the desire application.
anyone else?
TK
when the game start from the windows system (.bat), a believe the launcher not killing the ES application, result music still in background as the retrobat.
to play the game i have to pres alt+tab to switch to the desire application.
anyone else?
TK
Last edited by mahisa2815 on 05/11/23, 10:14 am; edited 1 time in total
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
Hello
You can :
-Try is this happen with RetroBat V6
-Try with a shortcut instead of a bat ?
You can :
-Try is this happen with RetroBat V6
-Try with a shortcut instead of a bat ?
getupor- Admin
- Messages : 1422
Date d'inscription : 2020-10-04
Re: [RESOLVED] windows games problems
mahisa2815 wrote:Hi there, the problem happen only with a few games like pes2021, forza horizon 5.
when the game start from the windows system (.bat), a believe the launcher not killing the ES application, result music still in background as the retrobat.
to play the game i have to pres alt+tab to switch to the desire application.
anyone else?
TK
Try with a autorun batch, similare batocera.... Or use directly your shortcut .exe game. or add a command line to wait until the game is closed before closing the batch, because in your case, ES opens a batch, not your game.
Aynshe- Messages : 447
Date d'inscription : 2022-03-18
Re: [RESOLVED] windows games problems
Aynshe wrote:mahisa2815 wrote:Hi there, the problem happen only with a few games like pes2021, forza horizon 5.
when the game start from the windows system (.bat), a believe the launcher not killing the ES application, result music still in background as the retrobat.
to play the game i have to pres alt+tab to switch to the desire application.
anyone else?
TK
Try with a autorun batch, similare batocera.... Or use directly your shortcut .exe game. or add a command line to wait until the game is closed before closing the batch, because in your case, ES opens a batch, not your game.
@echo off
set "GAMENAME=ForzaHorizon5.exe"
set "GAMEPATH=\Forza Horizon 5\"
set HOME="%~dp0"
set "GAMEROOT=%~dp0%GAMEPATH%"
cd %GAMEROOT%
start "" /WAIT "%GAMEROOT%%GAMENAME%"
exit
this is the batch.
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
tartifless wrote:Hello,
Why not directly use a link to the executable ?
tried same behaviour my friend.
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
So you need to use the .bat method where you specify the executable, but first run the game and check with ctrl+alt+del the actual name of the running game process
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
Bat script is here:
https://retrobat.forumgaming.fr/t480-tuto-add-steam-games-to-retrobat-or-any-game-from-epic-or-other-via-steam#8085
It will need adaptation
https://retrobat.forumgaming.fr/t480-tuto-add-steam-games-to-retrobat-or-any-game-from-epic-or-other-via-steam#8085
It will need adaptation
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
it is indeed ForzaHorizon5.exe
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
OK so try and adapt the script from the link (second one, not the one searching for steam).
2 places to change:
- at the beginning, start the right exe
- at the tasklist finder, replace mygame.exe with ForzaHorizon5.exe
2 places to change:
- at the beginning, start the right exe
- at the tasklist finder, replace mygame.exe with ForzaHorizon5.exe
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
probably i forgot to say that all of my games are steam free, i've got a folder where i installed all the games. cant figure to launch the game with that script.
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
The solution provided should work whether you use steam or not.
Can you show the bat file ?
Can you show the bat file ?
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
@echo OFF
REM HERE MODIFY YOUR STEAM APPID:
START steam://rungameid/000000 (this is the missing part if I type the path it won't launch)
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "forzahorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
REM HERE MODIFY YOUR STEAM APPID:
START steam://rungameid/000000 (this is the missing part if I type the path it won't launch)
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "forzahorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
mahisa2815 wrote:@echo OFF
REM HERE MODIFY YOUR STEAM APPID:
START steam://rungameid/000000 (this is the missing part if I type the path it won't launch)
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "forzahorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
Can you give me the path to the game ?
Also please ensure you respect upper case and lower case in the executable name !
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
tartifless wrote:mahisa2815 wrote:@echo OFF
REM HERE MODIFY YOUR STEAM APPID:
START steam://rungameid/000000 (this is the missing part if I type the path it won't launch)
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "forzahorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
Can you give me the path to the game ?
Also please ensure you respect upper case and lower case in the executable name !
H:\RetroBat\roms\windows\Forza Horizon 5\ForzaHorizon5.exe
yes wrote with my mobile.
thank you
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
finally i made it, this is the batch to use for every windows game not related to steam, going on 30+60 was too late for ES to settle back.
I really want to thank you all for the support.
@echo off
set "GAMENAME=MyGame.exe"
set "GAMEPATH=\MyGamefolder\"
set HOME="%~dp0"
set "GAMEROOT=%~dp0%GAMEPATH%"
cd %GAMEROOT%
start "" /WAIT "%GAMEROOT%%GAMENAME%"
TIMEOUT /t 10
:RUNNING
tasklist|findstr "MyGame.exe" > nul
if %errorlevel%==1 timeout /t 10 & GOTO ENDLOOP
timeout /t 10
GOTO RUNNING
:ENDLOOP
exit
I really want to thank you all for the support.
@echo off
set "GAMENAME=MyGame.exe"
set "GAMEPATH=\MyGamefolder\"
set HOME="%~dp0"
set "GAMEROOT=%~dp0%GAMEPATH%"
cd %GAMEROOT%
start "" /WAIT "%GAMEROOT%%GAMENAME%"
TIMEOUT /t 10
:RUNNING
tasklist|findstr "MyGame.exe" > nul
if %errorlevel%==1 timeout /t 10 & GOTO ENDLOOP
timeout /t 10
GOTO RUNNING
:ENDLOOP
exit
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Re: [RESOLVED] windows games problems
You need to do this in your .bat file:
@echo OFF
REM HERE MODIFY YOUR STEAM APPID:
START "H:\RetroBat\roms\windows\Forza Horizon 5\ForzaHorizon5.exe"
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "ForzaHorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
@echo OFF
REM HERE MODIFY YOUR STEAM APPID:
START "H:\RetroBat\roms\windows\Forza Horizon 5\ForzaHorizon5.exe"
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "ForzaHorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
tartifless- Admin
- Messages : 1674
Date d'inscription : 2021-04-27
Re: [RESOLVED] windows games problems
tartifless wrote:You need to do this in your .bat file:
@echo OFF
REM HERE MODIFY YOUR STEAM APPID:
START "H:\RetroBat\roms\windows\Forza Horizon 5\ForzaHorizon5.exe"
TIMEOUT /t 30
:RUNNING
REM HERE YOU MUST ENTER THE RIGHT NAME OF THE EXECUTABLE, FOR EXAMPLE: "Mygame.exe"
tasklist|findstr "ForzaHorizon5.exe" > nul
if %errorlevel%==1 timeout /t 5 & GOTO ENDLOOP
timeout /t 2
GOTO RUNNING
:ENDLOOP
thank you my friend.following your batch won't work. i've sorted. check my post above.
mahisa2815- Messages : 16
Date d'inscription : 2023-08-23
Similar topics
» [RESOLVED] Problems after scrape windows games!!
» [RESOLVED] Controller problems on Atari 8-bit games using atari800 libretro
» [RESOLVED] Scrap windows games
» Sound problems when starting games
» [RESOLVED] Having problems with key mappings
» [RESOLVED] Controller problems on Atari 8-bit games using atari800 libretro
» [RESOLVED] Scrap windows games
» Sound problems when starting games
» [RESOLVED] Having problems with key mappings
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum