Jump to content
LaunchBox Community Forums

Is there a feature to run a script before emulator executes?


NIGHTKILLER05

Recommended Posts

Hi guys/gals,

 

I want to know if there’s a way to execute a script before the Teknoparrot emulator runs a game. I have compressed my games so that when I launch one, the compressed file is uncompressed first, and then the emulator starts. I already have a script that does this, but since it includes launching the emulator, I’ve read that I might lose some Big Box functionalities, like the loading screens.

Link to comment
Share on other sites

1 hour ago, NIGHTKILLER05 said:

I want to know if there’s a way to execute a script before the Teknoparrot emulator runs a game.

use the Additional Apps feature to launch a script, or anything, prior to launching the main app (the emulator/game)

 

1 hour ago, NIGHTKILLER05 said:

I already have a script that does this, but since it includes launching the emulator, I’ve read that I might lose some Big Box functionalities, like the loading screens.

assuming you wrote the script properly, losing the Startup and Shutdown screens is a bunch of baloney. they work with use of scripts and scripts can used to get Startup/Shutdown Screens working when they otherwise would not work! for ex, with Steam games

Link to comment
Share on other sites

Hi skizzosjt, thank you for your response. I found the "Additional Apps" option in the game's menu. Is there a way to configure an "Additional App" for the entire system, for example, for all Teknoparrot games? I selected all the games and clicked on "Open Bulk Edit Wizard," but I couldn't find the "Additional Apps" option in that menu.

 

Link to comment
Share on other sites

36 minutes ago, NIGHTKILLER05 said:

Is there a way to configure an "Additional App" for the entire system, for example, for all Teknoparrot games? I selected all the games and clicked on "Open Bulk Edit Wizard," but I couldn't find the "Additional Apps" option in that menu.

There's no built-in way to bulk add additional apps to multiple games. But there is a third-party plugin that can help with that.

 

Link to comment
Share on other sites

Is your script a bat file? And is generic enough to accept different arguments to extract your different games?

You can try setting up a new "Emulator" that points to your script file as the executable. You can name it something like "Teknoparrot Via Script". Then associate it to the Teknoparrot platform. You can then change your Teknoparrot games to use your script as the emulator. So, Launchbox will call your script with whatever parameters you need instead of calling the teknoparrot launcher directly. Then your script will launch Teknoparrot as it does now.

You'll just need to start Teknoparrot with the /wait command so that your script stays open until Teknoparrot has closed. You can override the command line arguments per game with whatever you need.

I did this for PC games in order to support a generic AHK script because only emulators support AHK scripts. You'd just need to make sure that you replace %~dp1 with your Teknoparrot folder in order to have the proper working directory set. Then replace %* with the call to teknoparrotUI.exe and any passed arguments (%1,%2,%3, etc..). You can fit in your extract routine before calling start.

@ECHO OFF
::powershell -window minimized -command ""
cd %~dp1
start /wait "" %*

 

Edited by TapeWorm
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...