Author Topic: retrofe video still playing on background when launching TTX Games  (Read 21600 times)

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Hello everybody!   ;)

(i am in the right forum this time)

I have an issue when i Want to launch my TTX games.
I use Lnk shortcuts as extension type for my games.
This issue occur only with the  Lnk shortcuts coming from a .bat file. If i launch a shortcut directly from an exe file, it is working fine and launch the game properly
The problem  is that i have to use some bat files because some games need to be  launched with a préfix in the command line  example:  typex_loader game.exe

Retrofe stay in the background (i hear the intro music continuing playing or a bug occur)
Then when i stop the game, retrofe make an appcrash

Any Help would be appreciated

Thank you.  ::)

 :P

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: retrofe video still playing on background when launching TTX Games
« Reply #1 on: February 02, 2017, 08:51:21 AM »
Can you post your log.txt file, please?

Sent from my SM-G920F using Tapatalk


ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #2 on: February 02, 2017, 09:25:58 AM »

Hi Pieter,
 

:) of course,  i can :

i attach it to this post, thank you  ;)

ginzu


Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: retrofe video still playing on background when launching TTX Games
« Reply #3 on: February 02, 2017, 09:54:44 AM »
I noticed 2 things:
1. You're running RetroFE 0.7.2-beta; we're currently on 0.7.19, and 0.7.20 should become available soon.
2. You're executing a link rather than a batch script. I'm not sure if it would make a difference if you were to run a batch script in stead.

Could you upload your batch script as well?

My guess is that the execution of the link to the batch script returns immediately, making RetroFE think that it can continue its work. If the problem persists with the latest RetroFE releases I'll see what I can find regarding that problem.
« Last Edit: February 02, 2017, 10:01:37 AM by Pieter Hulshoff »

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #4 on: February 02, 2017, 11:57:04 AM »
ok, thanks for your analysis.


i was wondering  if  i have to upgrade the retroFe revison to one stable revision.

I will upgrade it to the 0.7.19 first.

i attached the bat.file (i have already try to launch it directly from the bat.file (no shortcut and adding the bat extension type in the settings.conf) at this time  i used the root path in the bat file to match the correct path of the game of course) => but the game won't launch (no bug,  it just won't launch).

ginzu  ???

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #5 on: February 02, 2017, 12:39:45 PM »
i tried the 0.7.19 rev but it's still the same issue     ???

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: retrofe video still playing on background when launching TTX Games
« Reply #6 on: February 02, 2017, 06:33:08 PM »
What happens when you run the batch script from the command line? Do you immediately get your prompt back?

Sent from my SM-G920F using Tapatalk


ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #7 on: February 02, 2017, 09:19:23 PM »
Hello,

If  i open a command line terminal (CMD) and send the bat file from its directoy, it launch the game properly

same thing on the lnk from the same bat file

do i have well understand  what  you want i do as a test?   :P :P   :o


thank



PinealServo

  • Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #8 on: February 03, 2017, 02:48:32 AM »
When RetroFE launches another program, it gets a "handle" from the OS that it can use to wait for that program to exit. While it's waiting for the program to exit, it doesn't do much, but when it detects the exit it logs that it's "Finished" and goes on doing its front-end stuff. From your log.txt, it's apparent that it detects an immediate exit of the program that it launched; the "Finished" log timestamp is the same as the one where it launched the program. As far as it knows, your game is over and it is doing what it's supposed to do. The crash is definitely not what it's supposed to do, but we'll have to figure out how to reproduce that in order to fix it.

Meanwhile, it may be possible to bypass the batch files and links altogether and just have RetroFE run the "typex_loader game.exe" line by itself. In your launcher config, try using typex_loader as the executable and the game.exe as the argument. You may need to experiment a bit with the command line and directory settings to make the loader happy, but I think there's likely to be a combination of settings that will work.

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #9 on: February 03, 2017, 09:19:03 AM »
Hello PinealServo   :)

Thank you to trying to help me

i am not sure to have  understood  what you told me but, here is  what i do after i read your post:

Here you can see what is my launcher file.conf  for TTX.Games:

the Red line is what i tried but the test doesn't work: the game won't launch (no bug)

#executable = C:\Windows\System32\cmd.exe
executable = F:\JEUX\TTX GAMES\SFIV EXPORT\typex_loader.exe

arguments = /c "%ITEM_FILEPATH%"

and of course, in the rom directory i add the game.exe directly inside to complete the command line.    ::)


is that you had in mind?   :P
« Last Edit: February 03, 2017, 12:38:01 PM by ginzu »

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #10 on: February 03, 2017, 09:23:49 AM »
if i understand,

RetroFe necessarily need the cmd.exe to execute exe.file

How could i tell to RetroFe to launch cmd.exe and an other exe at the same time?

here is the End of the log file.txt :

[2017-02-03 10:10:44] [ERROR] [Launcher] Failed to run: F:\JEUX\TTX GAMES\SFIV EXPORT\typex_loader.exe
[2017-02-03 10:10:44] [INFO] [Launcher] Completed
[2017-02-03 10:10:44] [ERROR] [Launcher] Failed to launch.
[2017-02-03 10:10:46] [INFO] [Launcher] Checking to see if "F:\RetroFE\..\JEUX\TTX GAMES\LAUNCHER\Ttxshell.exe.lnk" exists  [Yes]
[2017-02-03 10:10:46] [INFO] [Launcher] Attempting to launch: "F:\JEUX\TTX GAMES\SFIV EXPORT\typex_loader.exe" /c "F:\RetroFE\..\JEUX\TTX GAMES\LAUNCHER\Ttxshell.exe.lnk"
[2017-02-03 10:10:46] [INFO] [Launcher]      from within folder: F:\JEUX\TTX GAMES\SFIV EXPORT
[2017-02-03 10:10:46] [ERROR] [Launcher] Failed to run: F:\JEUX\TTX GAMES\SFIV EXPORT\typex_loader.exe
[2017-02-03 10:10:46] [INFO] [Launcher] Completed
[2017-02-03 10:10:46] [ERROR] [Launcher] Failed to launch.
[2017-02-03 10:11:01] [INFO] [SDL] DeInitializing
[2017-02-03 10:11:01] [INFO] [RetroFE] Exiting

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #11 on: February 03, 2017, 12:34:07 PM »


ah and  also,


i specify that i try with and without the "/c" from the argument line

it gave me an error  too.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: retrofe video still playing on background when launching TTX Games
« Reply #12 on: February 03, 2017, 02:38:02 PM »
Going back to the batch script idea:
Perhaps you could try start /wait in front of the command? See http://stackoverflow.com/questions/13257571/call-command-vs-start-with-wait-option

ginzu

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: retrofe video still playing on background when launching TTX Games
« Reply #13 on: February 03, 2017, 04:18:25 PM »
PHulshoff,


I tried this in the bat file:

START /wait typex_loader Ttxshell.exe

but it won't work (same  issue).

I must found a solution to launch my games without these bat file...    :o   but i don't know how.....    :o.

any other idea to pass this' typex loader' prefix  by an other method?   :P





Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: retrofe video still playing on background when launching TTX Games
« Reply #14 on: February 03, 2017, 05:07:31 PM »
I'm afraid not; I'm a Linux user myself. Hopefully the other users here have some more ideas.