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

[RESOLVED] windows games problems

4 posters

Go down

[RESOLVED] windows games problems Empty [RESOLVED] windows games problems

Post by mahisa2815 03/11/23, 01:32 pm

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


Last edited by mahisa2815 on 05/11/23, 10:14 am; edited 1 time in total
mahisa2815
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by getupor 03/11/23, 07:16 pm

Hello
You can :
-Try is this happen with RetroBat V6
-Try with a shortcut instead of a bat ?


[RESOLVED] windows games problems Modo
getupor
getupor
Admin

Messages : 1388
Date d'inscription : 2020-10-04

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by Aynshe 04/11/23, 01:46 am

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
Aynshe

Messages : 432
Date d'inscription : 2022-03-18

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 04/11/23, 08:35 am

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
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 04/11/23, 08:39 am

Hello,

Why not directly use a link to the executable ?


[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 04/11/23, 08:41 am

tartifless wrote:Hello,

Why not directly use a link to the executable ?

tried same behaviour my friend.
mahisa2815
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 04/11/23, 08:44 am

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


[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 04/11/23, 08:47 am



[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 04/11/23, 08:48 am

it is indeed ForzaHorizon5.exe
mahisa2815
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 04/11/23, 08:52 am

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


[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 04/11/23, 11:13 am

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
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by getupor 04/11/23, 11:30 am



[RESOLVED] windows games problems Modo
getupor
getupor
Admin

Messages : 1388
Date d'inscription : 2020-10-04

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 04/11/23, 12:55 pm

The solution provided should work whether you use steam or not.
Can you show the bat file ?


[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 04/11/23, 05:35 pm

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

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by Aynshe 04/11/23, 06:08 pm

if your game is official, so use Batgui for add your game :

[RESOLVED] windows games problems Chrome10
Aynshe
Aynshe

Messages : 432
Date d'inscription : 2022-03-18

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 04/11/23, 06:12 pm

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 !


[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 04/11/23, 09:45 pm

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
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 05/11/23, 09:34 am

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
mahisa2815
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by tartifless 05/11/23, 10:06 am

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


[RESOLVED] windows games problems Modo
tartifless
tartifless
Admin

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

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

Post by mahisa2815 05/11/23, 10:13 am

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
mahisa2815

Messages : 16
Date d'inscription : 2023-08-23

Back to top Go down

[RESOLVED] windows games problems Empty Re: [RESOLVED] windows games problems

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