MK11

GPC script programming for Titan Two device. Code examples, how to, questions, requests.

Moderators: The_Rabid_Taco, pablosscripts, bonefisher

MK11

Postby fettyup1 » Fri Apr 26, 2019 11:06 pm

Anybody know if there will be a combo pack
User avatar
fettyup1
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Thu Feb 07, 2019 5:21 am

Re: MK11

Postby Relinquished » Sat Apr 27, 2019 3:02 pm

i can make a combo pack depending if i can get my other script converted to titan two :)
User avatar
Relinquished
Sergeant Major
Sergeant Major
 
Posts: 82
Joined: Thu May 21, 2015 4:19 pm

Re: MK11

Postby bonefisher » Sat Apr 27, 2019 4:23 pm

Code: Select all
 
#pragma METAINFO("FightGames", 1, 0, "bonefisher")
bool on_off;
int Forward;
int Back;
int BUTTON;
main
{
    // - STANCE TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define STANCE_RIGHT     0
    #define STANCE_LEFT      1
    static uint8 stance;
    if(event_active(BUTTON_13) || event_active(STICK_2_X) && get_actual(STICK_2_X) >= 20.0) {
        stance = STANCE_RIGHT;
        goto STANCE_LIGHTBAR;
    } else if(event_active(BUTTON_12)  || event_active(STICK_2_X) && get_actual(STICK_2_X) <= -20.0) {
        stance = STANCE_LEFT;
        goto STANCE_LIGHTBAR;
    if(stance || !stance) {
        switch(stance) {
            case STANCE_RIGHT: stance = STANCE_LEFT;  break;
            case STANCE_LEFT:  stance = STANCE_RIGHT; break;
        }
    }
        STANCE_LIGHTBAR:
        led_reset();
        switch(stance) {
            case STANCE_RIGHT: Forward = BUTTON_13; Back = BUTTON_12;led_set(LED_4, -1.0, 0);led_set(LED_3, -1.0, 0); break;
            case STANCE_LEFT:  Forward = BUTTON_12; Back = BUTTON_13;led_set(LED_4, -1.0, 0); break;
        }
    }
    // - BUTTON TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define BUTTON_X     BUTTON_17
    #define BUTTON_Y     BUTTON_14
    #define BUTTON_A     BUTTON_16
    #define BUTTON_B     BUTTON_15
    static uint8 button_cycle;
    if(event_active(BUTTON_17)) {
        button_cycle = BUTTON_X;
        BUTTON = BUTTON_X;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_14)) {
        button_cycle = BUTTON_Y;
        BUTTON = BUTTON_Y;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_16)) {
        button_cycle = BUTTON_A;
        BUTTON = BUTTON_A;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_15)) {
        button_cycle = BUTTON_B;
        BUTTON = BUTTON_B;
        goto BUTTON_LIGHTBAR;
    if(button_cycle || !button_cycle) {
        switch(button_cycle) {
            case BUTTON_X: button_cycle = BUTTON_Y; break;
            case BUTTON_Y: button_cycle = BUTTON_A; break;
            case BUTTON_A: button_cycle = BUTTON_B; break;
            case BUTTON_B: button_cycle = BUTTON_X; break;
        }
    }
        BUTTON_LIGHTBAR:
        led_reset();
        switch(button_cycle) {
            case BUTTON_X: led_set(LED_1, -1.0, 0); break;
            case BUTTON_Y: led_set(LED_2, -1.0, 0);led_set(LED_3, -1.0, 0); break;
            case BUTTON_A: led_set(LED_3, -1.0, 0); break;
            case BUTTON_B: led_set(LED_2, -1.0, 0); break;
        }
        }
    if(get_actual(STICK_1_Y)<-90.0)
    {
        combo_run(BB);
    }
    else combo_stop(BB);
    if(event_active(STICK_1_Y))
    {
        on_off = 1;
    }
    if(on_off == 1 && get_actual(STICK_1_Y)> 90.0)
    {
        combo_run(DBFB);
    }
    else combo_stop(DBFB);
 
    if(get_actual(STICK_1_X)<-90.0)
    {
        combo_run(DBB);
    }
    else combo_stop(DBB);
 
    if(get_actual(STICK_1_X)> 90.0)
    {
        combo_run(BFB);
    }
    else combo_stop(BFB);
 
    if(event_active(BUTTON_6))combo_run(DBBRTB);
 
    if(event_active(BUTTON_9))combo_run(FBBRTF);
 
    if(get_actual(BUTTON))combo_run(rapid);
}
combo rapid
{
    set_val(BUTTON, 100);
    wait(50);
    set_val(BUTTON, 0);
    wait(50);
}
 
combo DBB
{
    set_val(BUTTON_11, 100);
    wait(50);wait(50);
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(BUTTON_16, 100);
    wait(50);wait(200);
}
 
combo BFB
{
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(Forward, 100);
    wait(50);wait(50);
    set_val(BUTTON_17, 100);
    wait(50);wait(200);
}
 
combo DBFB
{
    /*set_val(BUTTON_14, 100);
    wait(50);wait(100);
    set_val(BUTTON_17, 100);
    wait(50);wait(375);*/

    set_val(Back, 100);
    wait(50);
    set_val(BUTTON_17, 100);
    wait(50);wait(100);
    set_val(BUTTON_14, 100);
    wait(50);
    set_val(BUTTON_17, 100);
    wait(50);wait(50);
    on_off = 0;
}
 
combo BB
{
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(Forward, 100);
    wait(50);wait(50);
    set_val(BUTTON_15, 100);
    wait(50);wait(200);
}
 
combo DBBRTB
{
    set_val(BUTTON_11, 100);
    wait(50);wait(50);
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(BUTTON, 100);
    wait(50);wait(200);
}
 
combo FBBRTF
{
    set_val(Forward, 100);
    wait(50);wait(50);
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(BUTTON_5, 100);
    set_val(BUTTON, 100);
    wait(50);wait(50);
    set_val(Forward, 100);
    wait(50);wait(200);
}
 

Here is a good example which you can put in your combo's to keep track which side your facing!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5241
Joined: Thu Jan 29, 2015 10:49 am

Re: MK11

Postby Relinquished » Sat Apr 27, 2019 4:34 pm

bonefisher wrote:
Code: Select all
 
#pragma METAINFO("FightGames", 1, 0, "bonefisher")
bool on_off;
int Forward;
int Back;
int BUTTON;
main
{
    // - STANCE TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define STANCE_RIGHT     0
    #define STANCE_LEFT      1
    static uint8 stance;
    if(event_active(BUTTON_13) || event_active(STICK_2_X) && get_actual(STICK_2_X) >= 20.0) {
        stance = STANCE_RIGHT;
        goto STANCE_LIGHTBAR;
    } else if(event_active(BUTTON_12)  || event_active(STICK_2_X) && get_actual(STICK_2_X) <= -20.0) {
        stance = STANCE_LEFT;
        goto STANCE_LIGHTBAR;
    if(stance || !stance) {
        switch(stance) {
            case STANCE_RIGHT: stance = STANCE_LEFT;  break;
            case STANCE_LEFT:  stance = STANCE_RIGHT; break;
        }
    }
        STANCE_LIGHTBAR:
        led_reset();
        switch(stance) {
            case STANCE_RIGHT: Forward = BUTTON_13; Back = BUTTON_12;led_set(LED_4, -1.0, 0);led_set(LED_3, -1.0, 0); break;
            case STANCE_LEFT:  Forward = BUTTON_12; Back = BUTTON_13;led_set(LED_4, -1.0, 0); break;
        }
    }
    // - BUTTON TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define BUTTON_X     BUTTON_17
    #define BUTTON_Y     BUTTON_14
    #define BUTTON_A     BUTTON_16
    #define BUTTON_B     BUTTON_15
    static uint8 button_cycle;
    if(event_active(BUTTON_17)) {
        button_cycle = BUTTON_X;
        BUTTON = BUTTON_X;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_14)) {
        button_cycle = BUTTON_Y;
        BUTTON = BUTTON_Y;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_16)) {
        button_cycle = BUTTON_A;
        BUTTON = BUTTON_A;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_15)) {
        button_cycle = BUTTON_B;
        BUTTON = BUTTON_B;
        goto BUTTON_LIGHTBAR;
    if(button_cycle || !button_cycle) {
        switch(button_cycle) {
            case BUTTON_X: button_cycle = BUTTON_Y; break;
            case BUTTON_Y: button_cycle = BUTTON_A; break;
            case BUTTON_A: button_cycle = BUTTON_B; break;
            case BUTTON_B: button_cycle = BUTTON_X; break;
        }
    }
        BUTTON_LIGHTBAR:
        led_reset();
        switch(button_cycle) {
            case BUTTON_X: led_set(LED_1, -1.0, 0); break;
            case BUTTON_Y: led_set(LED_2, -1.0, 0);led_set(LED_3, -1.0, 0); break;
            case BUTTON_A: led_set(LED_3, -1.0, 0); break;
            case BUTTON_B: led_set(LED_2, -1.0, 0); break;
        }
        }
    if(get_actual(STICK_1_Y)<-90.0)
    {
        combo_run(BB);
    }
    else combo_stop(BB);
    if(event_active(STICK_1_Y))
    {
        on_off = 1;
    }
    if(on_off == 1 && get_actual(STICK_1_Y)> 90.0)
    {
        combo_run(DBFB);
    }
    else combo_stop(DBFB);
 
    if(get_actual(STICK_1_X)<-90.0)
    {
        combo_run(DBB);
    }
    else combo_stop(DBB);
 
    if(get_actual(STICK_1_X)> 90.0)
    {
        combo_run(BFB);
    }
    else combo_stop(BFB);
 
    if(event_active(BUTTON_6))combo_run(DBBRTB);
 
    if(event_active(BUTTON_9))combo_run(FBBRTF);
 
    if(get_actual(BUTTON))combo_run(rapid);
}
combo rapid
{
    set_val(BUTTON, 100);
    wait(50);
    set_val(BUTTON, 0);
    wait(50);
}
 
combo DBB
{
    set_val(BUTTON_11, 100);
    wait(50);wait(50);
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(BUTTON_16, 100);
    wait(50);wait(200);
}
 
combo BFB
{
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(Forward, 100);
    wait(50);wait(50);
    set_val(BUTTON_17, 100);
    wait(50);wait(200);
}
 
combo DBFB
{
    /*set_val(BUTTON_14, 100);
    wait(50);wait(100);
    set_val(BUTTON_17, 100);
    wait(50);wait(375);*/

    set_val(Back, 100);
    wait(50);
    set_val(BUTTON_17, 100);
    wait(50);wait(100);
    set_val(BUTTON_14, 100);
    wait(50);
    set_val(BUTTON_17, 100);
    wait(50);wait(50);
    on_off = 0;
}
 
combo BB
{
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(Forward, 100);
    wait(50);wait(50);
    set_val(BUTTON_15, 100);
    wait(50);wait(200);
}
 
combo DBBRTB
{
    set_val(BUTTON_11, 100);
    wait(50);wait(50);
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(BUTTON, 100);
    wait(50);wait(200);
}
 
combo FBBRTF
{
    set_val(Forward, 100);
    wait(50);wait(50);
    set_val(Back, 100);
    wait(50);wait(50);
    set_val(BUTTON_5, 100);
    set_val(BUTTON, 100);
    wait(50);wait(50);
    set_val(Forward, 100);
    wait(50);wait(200);
}
 

Here is a good example which you can put in your combo's to keep track which side your facing!


hey man you got discord so i could talk to you about some things too do with me making these combos and this script
User avatar
Relinquished
Sergeant Major
Sergeant Major
 
Posts: 82
Joined: Thu May 21, 2015 4:19 pm

Re: MK11

Postby bonefisher » Sat Apr 27, 2019 4:36 pm

Just pm me if you need help or post combo's in here and I'll transfer to script for your testing!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5241
Joined: Thu Jan 29, 2015 10:49 am

Re: MK11

Postby Relinquished » Sat Apr 27, 2019 5:18 pm

bonefisher wrote:Just pm me if you need help or post combo's in here and I'll transfer to script for your testing!

done my man :)
User avatar
Relinquished
Sergeant Major
Sergeant Major
 
Posts: 82
Joined: Thu May 21, 2015 4:19 pm

Re: MK11

Postby bonefisher » Sat Apr 27, 2019 7:50 pm

Code: Select all
 
#pragma METAINFO("FightGames", 1, 0, "bonefisher")
 
int Forward;
int Back;
int BUTTON;
main
{
    // - STANCE TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define STANCE_RIGHT     0
    #define STANCE_LEFT      1
    static uint8 stance;
    if(event_active(BUTTON_13) || event_active(STICK_2_X) && get_actual(STICK_2_X) >= 20.0) {
        stance = STANCE_RIGHT;
        goto STANCE_LIGHTBAR;
    } else if(event_active(BUTTON_12)  || event_active(STICK_2_X) && get_actual(STICK_2_X) <= -20.0) {
        stance = STANCE_LEFT;
        goto STANCE_LIGHTBAR;
    if(stance || !stance) {
        switch(stance) {
            case STANCE_RIGHT: stance = STANCE_LEFT;  break;
            case STANCE_LEFT:  stance = STANCE_RIGHT; break;
        }
    }
        STANCE_LIGHTBAR:
        led_reset();
        switch(stance) {
            case STANCE_RIGHT: Forward = BUTTON_13; Back = BUTTON_12;led_set(LED_4, -1.0, 0);led_set(LED_3, -1.0, 0); break;
            case STANCE_LEFT:  Forward = BUTTON_12; Back = BUTTON_13;led_set(LED_4, -1.0, 0); break;
        }
    }
    // - BUTTON TRACKING - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define BUTTON_X     BUTTON_17
    #define BUTTON_Y     BUTTON_14
    #define BUTTON_A     BUTTON_16
    #define BUTTON_B     BUTTON_15
    static uint8 button_cycle;
    if(event_active(BUTTON_17)) {
        button_cycle = BUTTON_X;
        BUTTON = BUTTON_X;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_14)) {
        button_cycle = BUTTON_Y;
        BUTTON = BUTTON_Y;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_16)) {
        button_cycle = BUTTON_A;
        BUTTON = BUTTON_A;
        goto BUTTON_LIGHTBAR;
    } else if(event_active(BUTTON_15)) {
        button_cycle = BUTTON_B;
        BUTTON = BUTTON_B;
        goto BUTTON_LIGHTBAR;
    if(button_cycle || !button_cycle) {
        switch(button_cycle) {
            case BUTTON_X: button_cycle = BUTTON_Y; break;
            case BUTTON_Y: button_cycle = BUTTON_A; break;
            case BUTTON_A: button_cycle = BUTTON_B; break;
            case BUTTON_B: button_cycle = BUTTON_X; break;
        }
    }
        BUTTON_LIGHTBAR:
        led_reset();
        switch(button_cycle) {
            case BUTTON_X: led_set(LED_1, -1.0, 0); break;
            case BUTTON_Y: led_set(LED_2, -1.0, 0);led_set(LED_3, -1.0, 0); break;
            case BUTTON_A: led_set(LED_3, -1.0, 0); break;
            case BUTTON_B: led_set(LED_2, -1.0, 0); break;
        }
        }
    if(get_actual(STICK_1_Y)<-90.0)
    {
        combo_run(Erron);
    }
    else combo_stop(Erron);
 
    if(get_actual(BUTTON))combo_run(rapid);
}
combo rapid
{
    set_val(BUTTON, 100);
    wait(50);
    set_val(BUTTON, 0);
    wait(50);
}
 
combo Erron
{
    set_val(BUTTON_14, 100);
    wait(40);wait(20);
    set_val(BUTTON_17, 100);
    wait(40);wait(20);
    set_val(BUTTON_14, 100);
    wait(40);wait(20);
    set_val(BUTTON_17, 100);
    wait(40);wait(20);
    set_val(BUTTON_14, 100);
    wait(40);wait(1100);
    set_val(BUTTON_11, 100);
    wait(40);wait(50);
    set_val(Back, 100);
    set_val(BUTTON_17, 100);
    wait(40);wait(770);
    set_val(Forward, 100);
    set_val(BUTTON_17, 100);
    wait(40);wait(50);
    set_val(BUTTON_17, 100);
    wait(40);wait(50);
    set_val(Forward, 100);
    set_val(BUTTON_17, 100);
    wait(40);wait(7700);
}
 
 

Here is erron combo on right stick up! Don't forget I can put a lot of combo's just by switching and have a different option on same stick so bring on the combo's!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5241
Joined: Thu Jan 29, 2015 10:49 am

Re: MK11

Postby Kuyl » Mon Apr 29, 2019 1:14 pm

bonefisher wrote:Just pm me if you need help or post combo's in here and I'll transfer to script for your testing!
do you think you can implement some combos like these https://www.youtube.com/watch?v=-7Zs3oFQc6Y ideally some of the higher damage longer combos?
User avatar
Kuyl
Sergeant First Class
Sergeant First Class
 
Posts: 16
Joined: Tue Jun 26, 2018 1:05 pm

Re: MK11

Postby bonefisher » Mon Apr 29, 2019 2:11 pm

Kuyl wrote:
bonefisher wrote:Just pm me if you need help or post combo's in here and I'll transfer to script for your testing!
do you think you can implement some combos like these https://www.youtube.com/watch?v=-7Zs3oFQc6Y ideally some of the higher damage longer combos?

Yes I have done a lot of strings that long but the problem is the changes of internet connection throught the days of the week that you'll have a perfect combo put out then at the end of the week people saying it is not working. Plus there different connection that works for you perfect but for them running the first set of combos doesn't even work because different connection... I'm going to try dialing in on this for the in between times to either add or subtract for the lag of different connection to see if it works but will take weeks of testing. If it don't work to well then there might be short set combos which usually don't mess up! Just letting you know if you start building the long one's they will piss you off staying up with there tune!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5241
Joined: Thu Jan 29, 2015 10:49 am

Re: MK11

Postby fettyup1 » Tue Apr 30, 2019 6:23 pm

Thank You bonefisher
User avatar
fettyup1
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Thu Feb 07, 2019 5:21 am

Next

Return to GPC Script Programming (Titan Two)

Who is online

Users browsing this forum: No registered users and 13 guests