t2:gtuner_iv:macro_editor_interface

Macro Editor Interface

Tutorial created by prototype

A Micro SD card is mandatory to use the Titan Two's Macro features and also to load, test and debug the Macros from Gtuner IV. Click the REC button in the Macro Recorder Interface to start the recording then you can hit the button to stop. You can now click the Save button and save the file somewhere in your computer then drag and drop the file from the File Explorer to the Macro Explorer (Micro SD).1)

To create a Macro you can record the inputs from the controller with the Macro Recorder, it can also record any output from a script or a Gamepack because the Macro Recorder record each output sent to the console. You can also edit any Macro or create one from scratch with the Macro Editor and that's the most interesting part!

To start, create a New empty Macro file by clicking the GMK icon in the Macro Editor or load any saved gmk from the file explorer. From here there is two ways:

  • The first is to enable only the buttons that will be used by the Macro, this way allow to use the others buttons while the Macro is running.
  • The second way is to enable all of the buttons, this way you can't use any button while the Macro is running as these buttons are set to 0, that avoid combos failure!

When you record the inputs from a Dualshock 4 it looks like that:

The first thing i do is to remove all the entries that i don't want to keep in the Macro and have a clear view to work:

If you want to reduce or delete a portion of the inputs, click to select the start point then hold Right Shift and click to select the end point:

Then use the toolbar to remove the selection.

When you start from an empty file it's better to begin the Macro at 0 and start the inputs at 1ms like that:

The 2 points here are the nodes and can be used as a function to edit the Macros.

For example here i recorded a slow QCF2), this move use 2 buttons:

Just remove some parts to make the move quicker:

To convert this move into a QCB3), uncheck the down button and select the starting point of the forward button at 0:

Then check the Left button with a right click to enable the input and click the node icon to start the input:

Do so for all nodes enabled for the Right button to the Left button then remove the Right button's nodes by clicking the nodes icons. All that's left to do is to build and run to have your QCF converted into a QCB:

When a cutoff node is set, means the Macro will not overwrite the value for that input starting from this node until the next (if exists), meaning the value from the controller will be used instead.

Interpolate is useful for analog inputs4), where the value from one node to the next will gradually go from the value from the initial node to the value of the next:

Without interpolation the value from the first node is used until reach the next:

Both the cutoff node and interpolation are more useful when creating a Macro manually, if capturing via Device Monitor there is no much need of use these features.

To delete stuff just remove the used nodes. You can also remove or delete a selection with the toolbar. Recovering stuff once you screwed up is an issue because each time you build and run to test the Macro, the file is saved and the only way to go back is to make a backup of the work each time you are good!

Now that you have a Macro saved you need to write a script to run it, here is how to do:

main {
    if(event_active(BUTTON_4)) { // Run the Macro once.
            macro_run("Example.gmk");
    }
}
main {
    if(get_val(BUTTON_5)) { // Loop the Macro until the button is released.
            macro_run("Example.gmk");
    } else macro_stop();
}

See Also

1) Some more details: The Titan Two needs to be connected to the PC to use the Macro features from Gtuner IV. If you want to record your Macro without Gtuner IV you have to use a script. Luckly Scachi has published the necessary to facilitate the task! Here it is: MacroRecPlay
2) Quarter Circle Forward
3) Quarter Circle Back
4) i.e. Sticks and Triggers
t2/gtuner_iv/macro_editor_interface.txt · Last modified: 2018/11/16 05:19 by prototype