Jump to content
LaunchBox Community Forums

Just another Phoenix rom launcher...


Recommended Posts

14 hours ago, Darkshade said:

Thank you!

Whenever time permits, I greatly appreciate it.

Also, I hope I'm not asking too much, but I wonder if you could incorporate my AHK script for confirming Emulator Quit upon pressing Escape, over the one that is currently being used. (Or at least as an optional addition).

You can find it here (Variation 2):

 

So, I looked into it some last night.  I couldn't strictly use the rom's file extension because Phoenix accepts some common extensions (".bin", ".binar", ".rom") for multiple platforms.  but all the rest of the extensions for various rom files I can use as a filter to determine the platform.  I combined that with my previous way of filtering for common system names.   So, I think that solution will work a majority of the time (though I haven't had a chance to test it yet).

Here's a quick updated version I cooked up last night - if you want to give it a test drive. 

I'll look into the AHK script you provided.   I'm not sure if AutoIt can handle controller input - I'll have to investigate that one.  But at least the variation 1 should be do-able.

_Phoenix_Rom_Launcher.exe

Link to comment
Share on other sites

8 hours ago, freeflyer454 said:

So, I looked into it some last night.  I couldn't strictly use the rom's file extension because Phoenix accepts some common extensions (".bin", ".binar", ".rom") for multiple platforms.  but all the rest of the extensions for various rom files I can use as a filter to determine the platform.  I combined that with my previous way of filtering for common system names.   So, I think that solution will work a majority of the time (though I haven't had a chance to test it yet).

Here's a quick updated version I cooked up last night - if you want to give it a test drive. 

I'll look into the AHK script you provided.   I'm not sure if AutoIt can handle controller input - I'll have to investigate that one.  But at least the variation 1 should be do-able.

_Phoenix_Rom_Launcher.exe 890.5 kB · 2 downloads

Just tested, it works nicely!

Thank you.

As for the AHK script, give it a try, it should be capable of reading controller input (at least, it's doing so on my end; I hope it does for you also.).

I'm updating all of my emulators to use it, so I'd love to use it for this too.

 

EDIT:  To make it work with the launcher you might need to change:

 

WinClose, ahk_exe {{{StartupEXE}}}

to

Process, Close, PhoenixEmuProject.exe

Edited by Darkshade
Link to comment
Share on other sites

3 hours ago, Darkshade said:

Just tested, it works nicely!

Thank you.

As for the AHK script, give it a try, it should be capable of reading controller input (at least, it's doing so on my end; I hope it does for you also.).

I'm updating all of my emulators to use it, so I'd love to use it for this too.

 

EDIT:  To make it work with the launcher you might need to change:

 

WinClose, ahk_exe {{{StartupEXE}}}

to

Process, Close, PhoenixEmuProject.exe

Hmm... is your idea to integrate the features of your AHK script into the rom launcher or is it to use your AHK script on the launcher & Phoenix?

Your AHK script could probably be launched through LB alongside the launcher (disable the AutoKey feature) and modified to kill both the launcher & Phoenix on confirmation of exit.  Have you tried that yet?

Trying to incorporate the features of your AHK script into the rom launcher would involve figuring out controller input in AutoIt.  It seems there are some rudimentary examples of controller input with AutoIt, but that'd take some time to test & play around with it.

 

Edit:   Forget that... I see what the issue is.  Without the AutoKey feature turned on, the rom_launcher immediately exits after launching Phoenix (so an AHK script launched through LB wouldn't work in that scenario).  And with the AutoKey feature turned on, it kills Phoenix as soon as Esc is pressed and then exits. 

Another option might be to have the rom_launcher launch your AHK script.  I think AutoIt can launch AHK scripts using ShellExecute("path\to\script.ahk")

Edited by freeflyer454
Link to comment
Share on other sites

10 hours ago, freeflyer454 said:

Edit:   Forget that... I see what the issue is.  Without the AutoKey feature turned on, the rom_launcher immediately exits after launching Phoenix (so an AHK script launched through LB wouldn't work in that scenario).  And with the AutoKey feature turned on, it kills Phoenix as soon as Esc is pressed and then exits. 

Another option might be to have the rom_launcher launch your AHK script.  I think AutoIt can launch AHK scripts using ShellExecute("path\to\script.ahk")

Yes, unfortunately that's the issue I ran into also.

If the option you mention here is feasible, that's a pretty solid way of handling it, as the script could then be adapted to any users needs, with not much extra work aside just launching it.

I'd assume the easiest method would be to have the path be in the same place as the Launcher EXE and detect it that way?

As a solution though, assuming it works; that would be fantastic.

 

Link to comment
Share on other sites

I finally got around to adding this feature.  It compiled cleanly, but I haven't tested it out yet.

The route I went was to just add an entry to the launcher's ini file.  You'll see it listed as "AHK_script=".  Not sure if it'll work with just the name (if in the same directory) or if you'll need to supply the full path in quotes.  

So basically, after launching Phoenix, the launcher will run the AutoKey() function if it's been enabled.  If it's disabled and there is a value in the script's path variable, then it will launch that script.

Also, this assumes AHK is installed and ahk scripts are associated with the AHK program.

 

Let me know if this works.  I'll try to do some testing with it and maybe add a section for it to the GUI once I have time.

 

_Phoenix_Rom_Launcher.ini _Phoenix_Rom_Launcher.exe

Link to comment
Share on other sites

2 hours ago, d8thstar said:

can anyone help?  i am getting the attached error when trying to run this from LB.

I think that error means the Rom_Launcher can't determine the platform for the rom being launched. 

Is this the original Rom_Launcher from the first post that you are using?   That one used key words in the rom's path to determine which platform it was for.   The versions I created on the 2nd page of this post also used the rom's file extension to determine the platform.  They haven't been fully tested so I haven't updated the original post with the newer version yet, but I think they should work better.  

Edited by freeflyer454
Link to comment
Share on other sites

Hmm.. ok.  If you don't mind, what's the full path & name of your rom that you're launching?  I'll see if I can figure out what's going on with it.

It's strange to me that it's giving a "Variable used without being declared" error.  You'd think it'd pick that up when the program is being compiled, but so far, they've all compiled cleanly.

Link to comment
Share on other sites

thanks man, i really appreciate you looking into it.  maybe i can buy you a pint over paypal :)

just to confirm the usage, drop the launcher into the phoenix root.  start the launcher.  close the launcher.  point LB at the launcher instead of the phoenix emu.  and bobs your uncle.

yes?

Edited by d8thstar
Link to comment
Share on other sites

On 1/26/2021 at 4:39 PM, freeflyer454 said:

Thanks.

From just looking at it, the program should determine the platform easily since the path contains both the word "Jaguar" and the extension ".J64".  So I may have to dig a little deeper into it to find where the undeclared variable is.  I'll try to come up with a fix soon.

hey bud, just checking in, jag is on of the last few i need to set up.

thanks a ton my friend!

Link to comment
Share on other sites

  • 2 months later...
1 hour ago, cobhc said:

Hi,

Any update on this? I stopped using Retroarch for both 3DO and Jaguar because of compatibility and this emulator runs great but would be amazing to have it properly implemented into Launchbox. Is there also anyway of launching the emulator in fullscreen mode?

Thanks.

As far as I know, the Phoenix emulator doesn't have a way to launch directly into fullscreen mode.  Doesn't seem to be any commandline options for that.  This launcher app I made uses Phoenix's keyboard shortcut to go fullscreen as soon as it's launched.  Works pretty good. 

 

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 4 months later...

For people that also get the 'variable' error with 3DO and can't seem to figure out what the issue is. See if you don't have Launchbox set up for using .cue files. Phoenix uses the .iso or .img files of your game so make sure you have Launchbox configured with those file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...