MacroFire for Adrenaline (button remaps/macros/rapidfire)

HENkaku the homebrew enabler. Hacks, Mods, Games, Emulators & Homebrew
Post Reply
User avatar
bosshunter
Junior Member
Posts: 6
Joined: Sat Sep 10, 2016 6:26 pm
Location: Portugal
Contact:

MacroFire for Adrenaline (button remaps/macros/rapidfire)

Post by bosshunter » Wed Apr 19, 2017 3:38 am

MacroFire is an open source PSP plugin made by ClassG that allows you to remap buttons, create macros and set rapidfire (for PSP button layout, so no touch screen or right analog).
RECentral 2017-04-19 03-25-36-19.png
RECentral 2017-04-19 03-25-36-19.png (158.62 KiB) Viewed 11044 times
You can even use the analog on VSH/XMB, thanks to this plugin!

After testing all releases of MacroFire (up to the latest 3.2.9), I'm sharing my findings on this great plugin.

The only version that seems to be fully working on Adrenaline (tested from v3 to v4) is 3.0.11, on VSH and GAME modes only. Sadly, it doesn't work in POPS mode, as the plugins menu doesn't show up (I opened an Issue on Adrenaline GitHub, in hopes that it get fixed, if that's possible for that matter).

Luckily on the PSVita, you can remap buttons in POPS via Official Settings -> Controller Settings -> Assign Buttons -> Custom (make sure you disable "Use DS4/DS4 controller" first in Adrenaline Menu Settings, otherwise it won't work). Sadly this option isn't available for the PSTV, so our only hope is through this plugin, if the issue on GitHub gets fixed...

Moving on for file explanation and how it works.

Put all the files below inside seplugins folder (along side with vsh.txt, game.txt and pops.txt):
analog_to_dpad.ini
macro1.ini
macrofire.ini
macrofire.prx
rapidfire.ini

And add the following line to game.txt and vsh.txt (also pops.txt, if it ever gets fixed):
ms0:/seplugins/macrofire.prx 1

List of buttons and its "code names" to use in the settings:
------------------------
Button Name | Button
------------------------
Select | Select button
Start | Start button
Up | D-Pad Up
Right | D-Pad Right
Down | D-Pad Down
Left | D-Pad Left
LTrigger | L button
RTrigger | R button
Triangle | Δ button
Circle | O button
Cross | X button
Square | ◻ button
HOME | HOME button
NOTE | ♪ Button
SCREEN | Brightness button
VolUp | Volume + button
VolDown | Volume - button
AnalogUp | Left Analog Up
AnalogRight | Left Analog Right
AnalogDown | Left Analog Down
AnalogLeft | Left Analog Left
Let's have a quick look through the files.

macrofire.prx -> plugin file.

macrofire.ini -> file responsible for auto loading the plugin settings.
It's really self explanatory if you look at it and you can edit as you see fit.
This is the only file that you need to change/add settings manually for it to take effect on boot.
I will add some #commentary on the quote below, so we can understand better what each option does (make sure you don't include the commentary lines on your file).
[Main] #Settings the plugin loads on boot.
Startup = On #Makes the plugin settings active on start. If set to Off, you can enable it by pressing ToggleButtons and vice-versa.
MenuButtons = Ltrigger + Triangle #Buttons used to open the plugins menu, which in this case is L+Δ. You can use more button combinations, using the list of buttons on quote above.
ToggleButtons = Ltrigger + Rtrigger #Buttons used to enable or disable the plugin settings.
StatusNotification = On #Makes a notification popup on the left lower corner whenever you enable or disable the plugin via ToggleButtons.

[VSH] #Settings loaded automatically only whenever you're in VSH/XMB. Which in this case is the analog remap. Analog on XMB, yay!
Remap = ms0:/seplugins/analog_to_dpad.ini
Rapidfire =
Macro1 =

[GAME] #Settings loaded automatically only whenever you're in a Homebrew or PSP Game. It ignores the [VSH] and other settings.
Remap = ms0:/seplugins/analog_to_dpad.ini
Rapidfire = ms0:/seplugins/rapidfire.ini
Macro1 = ms0:/seplugins/macro1.ini

[ULES-00469] #Settings loaded automatically only whenever you're in ULES-00469 PSP game, which is Bomberman. It ignores the [VSH], [GAME] and all other specific settings. Your game ID is display when you open the plugin menu with MenuButtons. So make a section like this one with you game ID, if you want it to auto-load every time you launch it.
Remap = ms0:/seplugins/bomb.ini
Rapidfire =
Macro1 =

#If POPS ever gets compatibility with this plugin on Adrenaline, you can create a [POPS] (or game ID) settings, just like the patterns above.

[AnalogStick] #Settings for calibrating the left analog stick.
Movement = On
Deadzone = 40
Sensitivity = 100
OriginX = 127
OriginY = 127

[Default] #Pretty much like [Main], I guess. Just leave it as it is below.
UseGraphicsMemory = On
UseVolatileMemory = On
Remap =
Rapidfire =
Macro1 =
analog_to_dpad.ini -> remaps the analog (left analog, as PSP only has one analog) to the same action ad DPAD, which will be used to make the analog work in VSH/XMB (also great for some emulators that don't have the option to use the analog).
You can create several files like this one (for different games or profiles) and name them as you like. Just follow the patterns.
MACROFIRE-REMAP 2

[Remap1]
RealButtons = AnalogUp
RemapButtons = Up

[Remap2]
RealButtons = AnalogRight
RemapButtons = Right

[Remap3]
RealButtons = AnalogDown
RemapButtons = Down

[Remap4]
RealButtons = AnalogLeft
RemapButtons = Left
You can also "auto" create a file like this through the plugin itself. Just follow the on-screen instructions inside the menu and then add your created file path to macrofire.ini settings, for it to auto load.
RECentral 2017-04-19 03-29-02-03.png
RECentral 2017-04-19 03-29-02-03.png (141.52 KiB) Viewed 11044 times
macro1.ini -> example of a macro for auto pressing the buttons Δ, O, Δ in this order, after you press the R button and repeats indefinitely until you press R button again. You can set it to repeat only 1 time and also the delay of each button pressed or released.
MACROFIRE-MACRO 5

[Info]
Name =
Hotkey = RTrigger
Repeat = 0

[Macro]
ButtonsPress = Triangle
Delay = 999999999
ButtonsRelease = Triangle
Delay = 999999999
ButtonsPress = Circle
Delay = 999999999
ButtonsRelease = Circle
Delay = 999999999
ButtonsPress = Triangle
Delay = 999999999
ButtonsRelease = Triangle
Delay = 999999999
And you can also "auto" create a file like this through the plugin itself too. Just follow the on-screen instructions inside the menu and then add your created file path to macrofire.ini settings, for it to auto load.
RECentral 2017-04-19 03-32-54-55.png
RECentral 2017-04-19 03-32-54-55.png (162.31 KiB) Viewed 11044 times
rapidfire.ini - example of rapidfire on X button. You can also set the press and release delay.
MACROFIRE-RAPIDFIRE 4

[Mode]
SELECT = Normal
START = Normal
Up = Normal
Right = Normal
Down = Normal
Left = Normal
LTrigger = Normal
RTrigger = Normal
Triangle = Normal
Circle = Normal
Cross = Rapid
Square = Normal

[WaitControl]
PressDelay = 0
ReleaseDelay = 0
And again you can "auto" create a file like this through the plugin itself. Just follow the on-screen instructions inside the menu and then add your created file path to macrofire.ini settings, for it to auto load.
RECentral 2017-04-19 03-31-46-33.png
RECentral 2017-04-19 03-31-46-33.png (198.53 KiB) Viewed 11044 times
Link (source code included): MacroFire v3.0.11.zip

If you find any way to load it on POPS, please post it here!

Share your thoughts! :D
Last edited by bosshunter on Wed Apr 19, 2017 10:44 am, edited 4 times in total.
Image
User avatar
hackinformer
Site Admin
Posts: 708
Joined: Sun Feb 16, 2014 3:30 pm

Re: MacroFire for Adrenaline (button remaps/macros/rapidfire)

Post by hackinformer » Wed Apr 19, 2017 4:33 am

Your links to the images is wrong. Just attach them to the post at the bottom is where you can upload pics.

But other than that this is great!!
User avatar
bosshunter
Junior Member
Posts: 6
Joined: Sat Sep 10, 2016 6:26 pm
Location: Portugal
Contact:

Re: MacroFire for Adrenaline (button remaps/macros/rapidfire)

Post by bosshunter » Wed Apr 19, 2017 4:37 am

hackinformer wrote:Your links to the images is wrong. Just attach them to the post at the bottom is where you can upload pics.

But other than that this is great!!
I think it's fixed now. Sorry about that. :crazy:
Image
User avatar
hackinformer
Site Admin
Posts: 708
Joined: Sun Feb 16, 2014 3:30 pm

Re: MacroFire for Adrenaline (button remaps/macros/rapidfire)

Post by hackinformer » Wed Apr 19, 2017 4:39 am

Sweet thanks bud..
Post Reply