MacroRecPlay - record and playback a macro on the fly

Documentation, usage tips and configuration guides for Titan Two scripts and bytecodes published by the community users.

MacroRecPlay - record and playback a macro on the fly

Postby Scachi » Fri Aug 10, 2018 1:33 pm

SD-Card !required!

Update 1.06 :
  • Added optional wait ime in minutes to pause before the next run of the macro loop starts
Hint: If you download a newer version of the same script and you drag it / install it on the same slot to replace the old one you can hold down the ctrl key while doing the install to keep your current settings.

This script uses the macro_ functions to record and playback a macro on the fly without using GTuner IV.
This operations requires a usable SD-Card inserted into your Titan Two.

Get the script from the Online Resource in GTuner IV, search for "MacroRecPlay"

Before messing around with the complex settings please try the default settings first.

You can choose from different start and stop conditions in the Interactive Configuration.
Read the instructions carefully before adjusting the settings.
There is some error checking for the configuration included and run at the start of the script.
If the T2 led flashed RED fast it has found some errors and you won't be able to use the script.

You can now choose the filename to use (A..I) via Interactive Configuration or ingame when you choose a button combination to use for "Cycle through macro files"
The resulting filename on the sd-card will be macrp{slot}{fileselection}.gmk
Example: Script running from Slot 1 and selecting "A" : macrp1A.gmk
Running via GTuner IV "Test and Debug" mode will use 0 as the slot number.


The default settings:
Macro file to use:
A , resulting filename: macrp{slot}A.gmk

Start Recording:
Prepare recording with hold down L3/LS for >= 2 seconds. The LED will start flash yellow.
The next recognized input will start the macro recording.

Stop Recording:
Recording stop after 5sec of idle time when no input was active (accel/touch/gyro excluded).

Play back
Hold down R3 >= 2 seconds to start playback.
Default mode is endless loop playback.
The idle time of the Stop Recoding conditions will be skipped on playback so you won't recognize the 5sec delay at the end.
Release and hold down R3 >= 2 seconds again to stop playback.



Interactive Configuration options:
Choose a button or button combo to start, stop conditions, play back and filename selection.
You can adjust the idle timer check from 1sec to up to 120sec.
Keep in mind that the idle time is recorded too
as the initial button to start the recording when you don't select the checkbox "Start recording on next activity..." right below the Start Recording condition.

You can optionally set playback loop count for each of the 9 macro files.

Important: You can't use the same button/s to start recording and start playback.
The T2 will blink Red fast and you won't be able to use the script if it has found such a configuration issue.
Last edited by Scachi on Sun Oct 13, 2019 1:48 pm, edited 11 times in total.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: MacroRecPlay - record and playback a macro on the fly

Postby Ninjaporchcats » Fri Aug 10, 2018 5:02 pm

I am going to try this now!!!!! THANKS!! HUGE HELP!!!!

UPDATE::::::: How do i change the STOP to a button? I would like it to stop when i hit button 17. I do not know how to get into the interactive menu.
User avatar
Ninjaporchcats
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Aug 09, 2018 10:04 pm

Re: MacroRecPlay - record and playback a macro on the fly

Postby Scachi » Fri Aug 10, 2018 6:27 pm

There is a small gear like icon on the Slot where you installed it to. Click on it and the Interactive Configuration opens.

IC.png
IC.png (9.08 KiB) Viewed 6678 times



At the moment the stop button is the same as start button, I 'll add the option to use another button to stop in the next version.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: MacroRecPlay - record and playback a macro on the fly

Postby Scachi » Sat Aug 11, 2018 3:08 pm

Update, there are more start and stop conditions available, including a simple tap of a button.
You can now skip a configurable time from the end of the file during playback to get rid of the stop condition during playback.
Also added some more configuration error checking.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: MacroRecPlay - record and playback a macro on the fly

Postby Ninjaporchcats » Sun Aug 12, 2018 1:34 pm

Scachi--- YOU ARE THE BEST!!!!! Man i was lost, and still am.. BUT i am trying to learn all of this.. I got the micro to do what i want and it works GREAT!!! I have a power supply coming today for this.. I can not wait!! I am going to try the DRAG SCRIPT that someone made.. I hope it will work.. If you get a chance anyway you can look at it? I am not sure if they have it all worked out.. SCACHI--- I THANK YOU!!
User avatar
Ninjaporchcats
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Aug 09, 2018 10:04 pm

Re: MacroRecPlay - record and playback a macro on the fly

Postby Scachi » Sun Aug 12, 2018 2:47 pm

You are welcome, thank you for the nice feedback. :smile0517:
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: MacroRecPlay - record and playback a macro on the fly

Postby filoogaroo » Thu Aug 30, 2018 4:01 am

it seams like to record - but sadly do not start the macro after holding R3 --- what did i miss ?
User avatar
filoogaroo
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Thu Aug 30, 2018 2:47 am

Re: MacroRecPlay - record and playback a macro on the fly

Postby Scachi » Thu Aug 30, 2018 4:29 am

Do you use the default settings ?
Make sure the recording did stop, default setting is no input/idle time for 5 seconds, or you won't be able to start the playback of it. You need an sd-card for this, do you have one inserted into the T2 ?
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: MacroRecPlay - record and playback a macro on the fly

Postby filoogaroo » Thu Aug 30, 2018 3:49 pm

Mate - my r3 button was dying - with another controller - this is working incrediblelly well - this is a killer script - u rock ! Thks fir the follow up really appreciate it
User avatar
filoogaroo
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Thu Aug 30, 2018 2:47 am

Re: MacroRecPlay - record and playback a macro on the fly

Postby Scachi » Thu Aug 30, 2018 10:00 pm

filoogaroo wrote:Mate - my r3 button was dying - with another controller - this is working incrediblelly well - this is a killer script - u rock ! Thks fir the follow up really appreciate it

Glad that you figured that one out and thanks for the feedback.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Next

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 102 guests