Multiple Macro Sheets

Have something you would like to say? let us know.
Post Reply
mostly
Posts: 2
Joined: Wed Oct 10, 2012 8:43 am

Multiple Macro Sheets

Post by mostly »

Hi Matlo and the team.

Thank you for all your hard work on this awesome project. I currently compile, run and test on xubuntu 11.10 and everything runs great. I have a suggestion:

The option to switch between macro files with a trigger, in a similar way to how configuration-profiles are switched. In this way its possible to set up a macro-file for multiple characters in a game and switch between them while playing. Currently you'd have to restart emuclient with a different macro file in the macro folder if you want to use a character with different moves.

Thanks again :D
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Multiple Macro Sheets

Post by Matlo »

Hi,

I think it's a good idea.
I was thinking of adding a new specific text file "triggers.txt" in the macro directory, with the following syntax:

Code: Select all

#<COMMENT>
<CONFIG FILE> <DEVICE EVENT> <ID> <MACRO FILE>

Code: Select all

<COMMENT>: a comment, not interpreted
<CONFIG FILE>: the config file the macro applies to
<DEVICE EVENT>: KEYDOWN, KEYUP, MBUTTONDOWN, MBUTTONUP, JBUTTONDOWN, JBUTTONUP
<ID>: the event id (case sensitive) as displayed in gimx-config
<MACRO FILE>: the macro file to activate
Example:

Code: Select all

#If config1.xml is loaded, activate macros from macro1.txt when F1 is pressed.
config1.xml KEYDOWN F1 macro1.txt
#If config1.xml is loaded, activate macros from macro2.txt when F2 is pressed.
config1.xml KEYDOWN F2 macro2.txt
#If config2.xml is loaded, activate macros from macro3.txt when F1 is pressed.
config2.xml KEYDOWN F1 macro3.txt
What do you think of this suggestion?
GIMX creator
mostly
Posts: 2
Joined: Wed Oct 10, 2012 8:43 am

Re: Multiple Macro Sheets

Post by mostly »

That would be an excellent solution. Would it be possible for emuclient to load the first listed macro-file for each configuration at startup, and then to keep the macro-file state while triggering between configuration-profiles in game? I'll explain what I mean with an example:

Currently I use 1 macro-file across 2 profiles in my config-file. The only difference between the 2 profiles is that one has the left and right buttons mapped opposite on the ps3-dpad. So when my character is facing right I use the first profile, and when my character is facing left I use the second profile, but the macro-file is valid for both. So I just want to make sure that when I change profiles that I don't have to always trigger load the correct macro sheet.

Although thinking about the proposed solution, it would allow me to use 1 profile and 2 macro-files (per character) to achieve the same thing. In fact the solution would be complete as it would allow for all possible options :D

Thanks Matlo!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Multiple Macro Sheets

Post by Matlo »

I changed a few things:

1- macros/configs.txt allows to specify per config macros

Code: Select all

#If config1.xml is loaded, macros1.txt is read.
config1.xml macro1.txt
#If config1.xml is loaded, macros2.txt is read.
config1.xml macro2.txt
#If config2.xml is loaded, macros2.txt is read.
config2.xml macro2.txt
2- TRIGGER <event> allows to specify different sets of macros

Code: Select all

MACRO F1
#content
MACRO F2
TRIGGER F5
#content
MACRO F3
TRIGGER F6
#content
MACRO F4
TRIGGER F5
#content
F1 remains active all the time as there is no trigger specified.
F2 and F4 are default active. If F6 is pressed, F3 becomes active, F2 and F4 become inactive.
GIMX creator
Post Reply