Difference between revisions of "RocketLauncher Command Line Parameters"

From RocketLauncher Wiki
Jump to navigation Jump to search
(Replaced HL references with RL)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
HyperLaunch v3.1.0.0+ supports new command line parameters which allows you to pass much more info to it for greater control over what HyperLaunch can do.
+
RocketLauncher v1.0 supports these command line parameters which allows you to pass much more info to it for greater control over what RocketLauncher can do.
  
 
==Legacy==
 
==Legacy==
 
The legacy CLI still works, but is only suggested for Hyperspin users who place their Hyperspin folder in C:\Hyperspin or similar, like D:\Hyperspin.
 
The legacy CLI still works, but is only suggested for Hyperspin users who place their Hyperspin folder in C:\Hyperspin or similar, like D:\Hyperspin.
  
The legacy CLI works like this:
+
;The legacy CLI works like this:
HyperLaunch.exe "<SYSTEM_NAME>" "<ROM_NAME>"
+
:''RocketLauncher.exe "<SYSTEM_NAME>" "<ROM_NAME>"''
Example: ''HyperLaunch.exe "Nintendo Entertainment System" "Adventure Island (USA)"''
+
:Example: ''RocketLauncher.exe "Nintendo Entertainment System" "Adventure Island (USA)"''
 +
;This legacy method will only work if Hyperspin is installed in one of these 2 folders, relative to where RocketLauncher  is installed:
 +
:*..\HyperSpin.exe (1 folder up, like this C:\Hyperspin\RocketLauncher)
 +
:*..\HyperSpin\HyperSpin.exe (1 folder up, then HyperSpin in its own folder, like C:\HyperSpin and C:\RocketLauncher)
 +
;All other structures of paths are not supported and will not work w/o having Hyperspin send the -f CLI argument
 
*Note that when spaces are used, the parameter must be wrapped in quotes.
 
*Note that when spaces are used, the parameter must be wrapped in quotes.
  
 
==Current==
 
==Current==
 
For all other Front Ends or scenarios, the new CLI parameters are as follows:
 
For all other Front Ends or scenarios, the new CLI parameters are as follows:
 +
*Note that when spaces are used, the parameter must be wrapped in quotes.
  
 
====-s "<SYSTEM_NAME>"====
 
====-s "<SYSTEM_NAME>"====
Line 24: Line 29:
  
 
====-m <HL_MODE>====
 
====-m <HL_MODE>====
:This tells HyperLaunch you want to launch one of its features directly and not the game itself. You do not need to wrap this in quotes.
+
:This tells RocketLauncher you want to launch one of its features directly and not the game itself. You do not need to wrap this in quotes.
 
:Supported Modes:
 
:Supported Modes:
:*hp = Boot directly into HyperPause
+
:*pause = Boot directly into Pause
 
:*mg = Boot directly into MultiGame
 
:*mg = Boot directly into MultiGame
 
:*fade = Boot directly into Fade (Non-7z)
 
:*fade = Boot directly into Fade (Non-7z)
Line 33: Line 38:
  
 
====-f "<FRONT_END_PATH>"====
 
====-f "<FRONT_END_PATH>"====
:This tells HyperLaunch what Front End called it. This is critical for HyperLaunch to know what to restore on exit. The full path and executable must be supplied.
+
:This tells RocketLauncher what Front End called it. This is critical for RocketLauncher to know what to restore on exit. The full path and executable must be supplied. Setting this will overwrite the General Settings -> RocketLauncher -> Default Frontend Path setting in RocketLauncherUI. If you use multiple frontends with RocketLauncher, make sure each of them send this parameter. If you only use one, you can just use the default frontend setting and don't need to send -f.
 
:Example: ''-f "C:\RetroFE\RetroFE.exe"''<br>
 
:Example: ''-f "C:\RetroFE\RetroFE.exe"''<br>
  
 
====-p "<PLUGIN_NAME>"====
 
====-p "<PLUGIN_NAME>"====
:This tells HyperLaunch what Plugin to use for the Front End that called it. Without a proper plugin, HyperLaunch cannot read the Front End's database or know where to find Front End Media.
+
:This tells RocketLauncher what Plugin to use for the Front End that called it. Without a proper plugin, RocketLauncher cannot read the Front End's database or know where to find Front End Media.
:Value refers to the file name found in HyperLaunch\Plugins. If your plugin is named RetroFE.plugin, then use RetroFE.
+
:Value refers to the file name found in RocketLauncher\Plugins. If your plugin is named RetroFE.plugin, then use RetroFE.
 
:Example: ''-p "RetroFE"''<br>
 
:Example: ''-p "RetroFE"''<br>
  
 
====-e "<FORCE_EMU_NAME>"====
 
====-e "<FORCE_EMU_NAME>"====
:Allows you to force the use of the specified emulator above anything you may have set in HyperLaunchHQ.
+
:Allows you to force the use of the specified emulator above anything you may have set in RocketLauncherUI.
 
:You must also force a module with the -d parameter.
 
:You must also force a module with the -d parameter.
 
:You must also force a full path to the rom you want to launch with the -r parameter.
 
:You must also force a full path to the rom you want to launch with the -r parameter.
:Emulator name can be a defined emulator in HyperLaunchHQ, or one not defined but a full path to the exe must be supplied as well.
+
:Emulator name can be a defined emulator in RocketLauncherUI, or one not defined but a full path to the exe must be supplied as well.
 
:Example: ''-e "C:\Emulators\Nestopia\Nestopia.exe"''<br>
 
:Example: ''-e "C:\Emulators\Nestopia\Nestopia.exe"''<br>
  
 
====-d "<FORCE_MODULE_NAME>"====
 
====-d "<FORCE_MODULE_NAME>"====
:Allows you to force the use of the specified module above anything you may have set in HyperLaunchHQ.
+
:Allows you to force the use of the specified module above anything you may have set in RocketLauncherUI.
 
:You must also force an emulator with the -e parameter.
 
:You must also force an emulator with the -e parameter.
:Module name can be a defined module in HyperLaunchHQ, or one not defined but a full path to the module must be supplied as well.
+
:Module name can be a defined module in RocketLauncherUI, or one not defined but a full path to the module must be supplied as well.
 
:If you do not supply an extension, ".ahk" will be added on for you automatically.
 
:If you do not supply an extension, ".ahk" will be added on for you automatically.
:Example: ''-d "D:\HyperLaunch\Modules\Nestopia\Nestopia.ahk"''<br>
+
:Example: ''-d "D:\RocketLauncher\Modules\Nestopia\Nestopia.ahk"''<br>
 +
 
 +
====-o====
 +
:Forces mouse to be restored on exit even if Hide_Cursor is set to an option that keeps it hidden.
 +
:This is useful If you use multiple front ends with RocketLauncher, and some of you may want the mouse hidden, while others may need the mouse visible.
 +
:Example: ''-o 1''<br>
  
 
==Verifying CLI Was Sent Correctly==
 
==Verifying CLI Was Sent Correctly==
You can validate your Front End is sending the correct parameters by opening the HyperLaunch.log in HyperLaunchHQ and looking for this line (quotes are automatically removed):
+
You can validate your Front End is sending the correct parameters by opening the RocketLauncher.log in RocketLauncherUI and looking for this line (quotes are automatically removed):
 
  Main - Raw CLI received: "-s Nintendo Entertainment System -r Adventure Island (USA) -f D:\Hyperspin\HyperSpin.exe -p HyperSpin"
 
  Main - Raw CLI received: "-s Nintendo Entertainment System -r Adventure Island (USA) -f D:\Hyperspin\HyperSpin.exe -p HyperSpin"

Latest revision as of 16:53, 11 October 2020

RocketLauncher v1.0 supports these command line parameters which allows you to pass much more info to it for greater control over what RocketLauncher can do.

Legacy

The legacy CLI still works, but is only suggested for Hyperspin users who place their Hyperspin folder in C:\Hyperspin or similar, like D:\Hyperspin.

The legacy CLI works like this
RocketLauncher.exe "<SYSTEM_NAME>" "<ROM_NAME>"
Example: RocketLauncher.exe "Nintendo Entertainment System" "Adventure Island (USA)"
This legacy method will only work if Hyperspin is installed in one of these 2 folders, relative to where RocketLauncher is installed
  • ..\HyperSpin.exe (1 folder up, like this C:\Hyperspin\RocketLauncher)
  • ..\HyperSpin\HyperSpin.exe (1 folder up, then HyperSpin in its own folder, like C:\HyperSpin and C:\RocketLauncher)
All other structures of paths are not supported and will not work w/o having Hyperspin send the -f CLI argument
  • Note that when spaces are used, the parameter must be wrapped in quotes.

Current

For all other Front Ends or scenarios, the new CLI parameters are as follows:

  • Note that when spaces are used, the parameter must be wrapped in quotes.

-s "<SYSTEM_NAME>"

This refers to the system you are launching.
Example: -s "Nintendo Entertainment System"

-r "<ROM_NAME>"

This refers to the game or application you are launching. Also known as DB_NAME, as in name from your Front End's database.
If a full path to the rom was supplied by your Front End instead of just the name:
  • Some checks will be skipped, slightly speeding up launch time
  • 7z support will be turned off automatically
Example: -r "Adventure Island (USA)"

-m <HL_MODE>

This tells RocketLauncher you want to launch one of its features directly and not the game itself. You do not need to wrap this in quotes.
Supported Modes:
  • pause = Boot directly into Pause
  • mg = Boot directly into MultiGame
  • fade = Boot directly into Fade (Non-7z)
  • fade7z = Boot directly into Fade (7z)
Example: -s "Nintendo Entertainment System" -r "Adventure Island (USA)" -m hp

-f "<FRONT_END_PATH>"

This tells RocketLauncher what Front End called it. This is critical for RocketLauncher to know what to restore on exit. The full path and executable must be supplied. Setting this will overwrite the General Settings -> RocketLauncher -> Default Frontend Path setting in RocketLauncherUI. If you use multiple frontends with RocketLauncher, make sure each of them send this parameter. If you only use one, you can just use the default frontend setting and don't need to send -f.
Example: -f "C:\RetroFE\RetroFE.exe"

-p "<PLUGIN_NAME>"

This tells RocketLauncher what Plugin to use for the Front End that called it. Without a proper plugin, RocketLauncher cannot read the Front End's database or know where to find Front End Media.
Value refers to the file name found in RocketLauncher\Plugins. If your plugin is named RetroFE.plugin, then use RetroFE.
Example: -p "RetroFE"

-e "<FORCE_EMU_NAME>"

Allows you to force the use of the specified emulator above anything you may have set in RocketLauncherUI.
You must also force a module with the -d parameter.
You must also force a full path to the rom you want to launch with the -r parameter.
Emulator name can be a defined emulator in RocketLauncherUI, or one not defined but a full path to the exe must be supplied as well.
Example: -e "C:\Emulators\Nestopia\Nestopia.exe"

-d "<FORCE_MODULE_NAME>"

Allows you to force the use of the specified module above anything you may have set in RocketLauncherUI.
You must also force an emulator with the -e parameter.
Module name can be a defined module in RocketLauncherUI, or one not defined but a full path to the module must be supplied as well.
If you do not supply an extension, ".ahk" will be added on for you automatically.
Example: -d "D:\RocketLauncher\Modules\Nestopia\Nestopia.ahk"

-o

Forces mouse to be restored on exit even if Hide_Cursor is set to an option that keeps it hidden.
This is useful If you use multiple front ends with RocketLauncher, and some of you may want the mouse hidden, while others may need the mouse visible.
Example: -o 1

Verifying CLI Was Sent Correctly

You can validate your Front End is sending the correct parameters by opening the RocketLauncher.log in RocketLauncherUI and looking for this line (quotes are automatically removed):

Main - Raw CLI received: "-s Nintendo Entertainment System -r Adventure Island (USA) -f D:\Hyperspin\HyperSpin.exe -p HyperSpin"