Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visual scripting #185

Closed
abufhad opened this issue Oct 7, 2017 · 1 comment
Closed

visual scripting #185

abufhad opened this issue Oct 7, 2017 · 1 comment

Comments

@abufhad
Copy link

abufhad commented Oct 7, 2017

can you please add visual scripting in GtunerIV #
@J2Kbr
Copy link
Owner

J2Kbr commented Apr 19, 2020

The implementation of visual scripting interface for GPC2 would require significant efforts and yet be limited to very basic operations, flow control and simple pre-built combos.

You can still use the Visual Script from Gtuner Pro to program the Titan Two.

In the Visual Scripting interface, click on the toolbar icon “Visual to GPC”, this command will generate the equivalent GPC code for the visual blocks, example:

//
// Tue Apr 17 2018 06:22:55
// Script generated by Visual to GPC
//----------------------------------------

main {
    if((get_val(PS4_R2)) && (get_val(PS4_L2))) {
        combo_run(Turbo_1);
    }
}

combo Turbo_1 {
    set_val(PS4_R2, 100);
    wait(40);
    set_val(PS4_R2, 0);
    wait(30);
    set_val(PS4_R2, 0);
}

All you need to do is copy and paste the code on Gtuner IV and add #include <titanone.gph> at the very beginning, example:

#include <titanone.gph>

//
// Tue Apr 17 2018 06:22:55
// Script generated by Visual to GPC
//----------------------------------------

main {
    if((get_val(PS4_R2)) && (get_val(PS4_L2))) {
        combo_run(Turbo_1);
    }
}

combo Turbo_1 {
    set_val(PS4_R2, 100);
    wait(40);
    set_val(PS4_R2, 0);
    wait(30);
    set_val(PS4_R2, 0);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants