Script Conversion Request Megathread

GPC1 script programming for Titan One. Code examples, questions, requests.

Re: NBA 2K21 Convert script/fix error

Postby vBlasts » Wed Oct 07, 2020 12:52 am

Could someone rewrite this script for XB1 please?
User avatar
vBlasts
First Sergeant
First Sergeant
 
Posts: 61
Joined: Mon Mar 21, 2016 2:05 am

Re: NBA 2K21 Convert script/fix error

Postby Mad » Wed Oct 07, 2020 1:33 am

vBlasts wrote:Could someone rewrite this script for XB1 please?

Scripts will work on either console, no need to change. :smile0517:
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Brigadier General
Brigadier General
 
Posts: 2527
Joined: Wed May 22, 2019 5:39 am

converting to T1

Postby coolfedorabro » Wed Oct 07, 2020 7:39 pm

Hi can anyone help me convert this code for the Titan 1.

thank you!

Code: Select all
int on;              //if the script is on or off
int gamesplayed = 0;         //How many games are played
int runCombo = 130;     //Run the ingame combo this many times
 
//Rumble
int rumble_type = RUMBLE_A;
int startGame,inGame,restartGame,SkipAllStar;
 
//LED
int a,b;
 
///////////////////////////////////////////////////////
                    /*MAIN SECTION*/
///////////////////////////////////////////////////////
main {
    if(event_press(PS4_DOWN)) {
           on = !on;
           if(on){
               a = 0;
               b = 2;
               startGame = TRUE;
           }else{
               a = 2;
               b = 0;
               combo_stop(START_GAME);
            combo_stop(DELETE_CREATE_PLAYER);
            combo_stop(RESTART_GAME);
            combo_stop(IN_GAME);
           }
           combo_run(NOTIFY)
   }
    if(on) {
        if(startGame) {
            combo_run(START_GAME);
        }
        if(inGame) {
            if(runCombo) {
                   combo_run(IN_GAME);
            }else{
                   inGame = FALSE;
                   restartGame = TRUE;
               }
        }
        if(restartGame) {
            combo_run(RESTART_GAME);
        }
        if(gamesplayed == 60) {
        inGame = FALSE;
        restartGame = FALSE;
        startGame = FALSE;
        combo_stop(START_GAME);
        combo_stop(DELETE_CREATE_PLAYER);
        combo_stop(RESTART_GAME);
        combo_stop(IN_GAME);
        SkipAllStar = TRUE;
 
        }
        if(SkipAllStar) {
        combo_run(AllStar);
        }
 
 
    }
}
 
 
///////////////////////////////////////////////////////
              /*START GAME */
///////////////////////////////////////////////////////
 
    combo START_GAME {
     set_val(PS4_CROSS,100);
     wait(500)
     set_val(PS4_CROSS,0);
     wait(2000)
     set_val(PS4_DOWN,100);
     wait(500)
     set_val(PS4_DOWN,0);
     wait(2000);
     set_val(PS4_CROSS,100);
     wait(500)
     set_val(PS4_CROSS,0);
     wait(2000);
     startGame = FALSE;
     inGame = TRUE;
     runCombo = 130;
}
 
///////////////////////////////////////////////////////
                    /*PLAYS THE GAME*/
///////////////////////////////////////////////////////
combo IN_GAME {
    wait(2000);
    set_val(PS4_CROSS, 100);
    wait(100);
    wait(100);
    runCombo -= 1;
}
 
///////////////////////////////////////////////////////
              /*RESTART GAME */
///////////////////////////////////////////////////////
 
 
combo RESTART_GAME {
    set_val(PS4_CIRCLE, 100);
    wait(150);
    set_val(PS4_CIRCLE, 0);
    wait(100);    
    set_val(PS4_CROSS, 100);
    wait(150);
    set_val(PS4_CROSS, 0);
    wait(100);
    set_val(PS4_CIRCLE, 100);
    wait(150);
    set_val(PS4_CIRCLE, 0);
    wait(100);
    set_val(PS4_CROSS, 100);
    wait(150);
    set_val(PS4_CROSS, 0);
    wait(100);
    set_val(PS4_RIGHT, 100);
    wait(100);
    set_val(PS4_RIGHT, 0);
    wait(100);
    set_val(PS4_CROSS, 100);
    wait(110);
    set_val(PS4_CROSS, 0);
    wait(100);
    set_val(PS4_DOWN, 100);
    wait(130);
    set_val(PS4_DOWN, 0);
    wait(100);
    set_val(PS4_CROSS, 100);
    wait(130);
    set_val(PS4_CROSS, 0);
    wait(100);
    set_val(PS4_DOWN, 100);
    wait(80);
    set_val(PS4_DOWN, 0);
    wait(380);
    set_val(PS4_CROSS, 100);
    wait(110);
    set_val(PS4_CROSS, 0);
    wait(2000)
    restartGame= FALSE;
    inGame = TRUE;
     runCombo = 130;
     gamesplayed += 1;
 
 
}
 
///////////////////////////////////////////////////////
              /*RESTART GAME */
///////////////////////////////////////////////////////
 
 
combo AllStar {
         //set_val(TRACE_1,3);
    set_val(PS4_CIRCLE, 100);
    wait(150);
    set_val(PS4_CIRCLE, 0);
    wait(100);    
    set_val(PS4_CROSS, 100);
    wait(150);
    set_val(PS4_CROSS, 0);
    wait(100);
    set_val(PS4_CIRCLE, 100);
    wait(150);
    set_val(PS4_CIRCLE, 0);
    wait(100);
    set_val(PS4_CROSS, 100);
    wait(150);
    set_val(PS4_CROSS, 0);
    wait(100);    
    set_val(PS4_RIGHT, 100);
    wait(150);
    set_val(PS4_RIGHT, 0);
    wait(100);
    set_val(PS4_RIGHT, 100);
    wait(150);
    set_val(PS4_RIGHT, 0);
    wait(100);
    set_val(PS4_RIGHT, 100);
    wait(150);
    set_val(PS4_RIGHT, 0);
    wait(100);
    set_val(PS4_RIGHT, 100);
    wait(150);
    set_val(PS4_RIGHT, 0);
    wait(100);
    set_val(PS4_RIGHT, 100);
    wait(150);
    set_val(PS4_RIGHT, 0);
    wait(150);
    set_val(PS4_CROSS, 100);
    wait(150);
    set_val(PS4_CROSS, 0);
    wait(5000);
    set_val(PS4_CROSS, 100);
    wait(150);
    set_val(PS4_CROSS, 0);
    wait(2000);
    SkipAllStar = FALSE;
    startGame = TRUE;
     runCombo = 130;
     gamesplayed = 0;
}
 
 
///////////////////////////////////////////////////////
     /*Deletes top player and creates new one*/
///////////////////////////////////////////////////////
 
combo DELETE_CREATE_PLAYER {
    set_val(PS4_CIRCLE, 0);
    wait(240);
    set_val(PS4_CIRCLE, 100);
    wait(120);
    set_val(PS4_CIRCLE, 0);
    wait(220);
    set_val(PS4_CIRCLE, 100);
    wait(100);
    set_val(PS4_CIRCLE, 0);
    wait(230);
    set_val(PS4_CIRCLE, 100);
    wait(120);
    set_val(PS4_CIRCLE, 0);
    wait(180);
    set_val(PS4_CIRCLE, 100);
    wait(130);
    set_val(PS4_CIRCLE, 0);
    wait(180);
    set_val(PS4_CIRCLE, 100);
    wait(130);
    set_val(PS4_CIRCLE, 0);
    wait(180);
    set_val(PS4_CIRCLE, 100);
    wait(120);
    set_val(PS4_CIRCLE, 0);
    wait(690);
    set_val(PS4_RIGHT, 100);
    wait(110);
    set_val(PS4_RIGHT, 0);
    wait(240);
    set_val(PS4_RIGHT, 100);
    wait(110);
    set_val(PS4_RIGHT, 0);
    wait(260);
    set_val(PS4_RIGHT, 100);
    wait(120);
    set_val(PS4_RIGHT, 0);
    wait(270);
    set_val(PS4_RIGHT, 100);
    wait(110);
    set_val(PS4_RIGHT, 0);
    wait(330);
    set_val(PS4_RIGHT, 100);
    wait(130);
    set_val(PS4_RIGHT, 0);
    wait(310);
    set_val(PS4_RIGHT, 100);
    wait(120);
    set_val(PS4_RIGHT, 0);
    wait(310);
    set_val(PS4_RIGHT, 100);
    wait(100);
    set_val(PS4_RIGHT, 0);
    wait(310);
    set_val(PS4_RIGHT, 100);
    wait(80);
    set_val(PS4_RIGHT, 0);
    wait(130);
    set_val(PS4_RIGHT, 100);
    wait(110);
    set_val(PS4_RIGHT, 0);
    wait(350);
    set_val(PS4_CROSS, 100);
    wait(110);
    set_val(PS4_CROSS, 0);
    wait(850);
    set_val(PS4_CROSS, 100);
    wait(100);
    set_val(PS4_CROSS, 0);
    wait(1020);
    set_val(PS4_DOWN, 100);
    wait(140);
    set_val(PS4_DOWN, 0);
    wait(680);
    set_val(PS4_CROSS, 100);
    wait(130);
    set_val(PS4_CROSS, 0);
    wait(4000);
    wait(4000);
    wait(4000);
    wait(4000);
    set_val(PS4_RIGHT, 100);
    wait(80);
    set_val(PS4_RIGHT, 0);
    wait(240);
    set_val(PS4_RIGHT, 100);
    wait(90);
    set_val(PS4_RIGHT, 0);
    wait(450);
    set_val(PS4_CROSS, 100);
    wait(190);
    set_val(PS4_CROSS, 0);
    wait(1140);
    set_val(PS4_LEFT, 100);
    wait(110);
    set_val(PS4_LEFT, 0);
    wait(540);
    set_val(PS4_SQUARE, 100);
    wait(130);
    set_val(PS4_SQUARE, 0);
    wait(760);
    set_val(PS4_DOWN, 100);
    wait(100);
    set_val(PS4_DOWN, 0);
    wait(140);
    set_val(PS4_CROSS, 100);
    wait(140);
    set_val(PS4_CROSS, 0);
    wait(540);
    set_val(PS4_DOWN, 100);
    wait(80);
    set_val(PS4_DOWN, 0);
    wait(100);
    set_val(PS4_DOWN, 100);
    wait(90);
    set_val(PS4_DOWN, 0);
    wait(80);
    set_val(PS4_DOWN, 100);
    wait(100);
    set_val(PS4_DOWN, 0);
    wait(90);
    set_val(PS4_DOWN, 100);
    wait(100);
    set_val(PS4_DOWN, 0);
    wait(90);
    set_val(PS4_DOWN, 100);
    wait(70);
    set_val(PS4_DOWN, 0);
    wait(80);
    set_val(PS4_DOWN, 100);
    wait(140);
    set_val(PS4_DOWN, 0);
    wait(310);
    set_val(PS4_CROSS, 100);
    wait(120);
    set_val(PS4_CROSS, 0);
    wait(450);
    set_val(PS4_CROSS, 100);
    wait(130);
    set_val(PS4_CROSS, 0);
    wait(4000);
    wait(520);
    set_val(PS4_DOWN, 100);
    wait(110);
    set_val(PS4_DOWN, 0);
    wait(240);
    set_val(PS4_CROSS, 100);
    wait(140);
    set_val(PS4_CROSS, 0);
    wait(4000);
    wait(4000);
    wait(3980);
    set_val(PS4_CROSS, 100);
    wait(130);
    set_val(PS4_CROSS, 0);
    wait(800);
    set_val(PS4_CROSS, 100);
    wait(100);
    set_val(PS4_CROSS, 0);
    wait(960);
    set_val(PS4_CROSS, 100);
    wait(120);
    set_val(PS4_CROSS, 0);
    startGame = TRUE;
    gamesplayed = 0;
    runCombo = 130;
    deletecreate = FALSE;
}
 
///////////////////////////////////////////////////////
                    /*NOTIFY*/
///////////////////////////////////////////////////////
combo NOTIFY {
    set_rumble(RUMBLE_B,65);
    set_led(LED_1, 0);
    set_led(LED_2, a);
    set_led(LED_3, b);
    set_led(LED_4, 0);
    wait(550);
    reset_rumble();
    set_led(LED_1, 0);
    set_led(LED_2, 0);
    set_led(LED_3, 0);
    set_led(LED_4, 0);
    wait(250);
    set_led(LED_1, 0);
    set_led(LED_2, a);
    set_led(LED_3, b);
    set_led(LED_4, 0);
    wait(250);
    set_led(LED_1, 0);
    set_led(LED_2, 0);
    set_led(LED_3, 0);
    set_led(LED_4, 0);
    wait(250);
    set_led(LED_1, 0);
    set_led(LED_2, a);
    set_led(LED_3, b);
    set_led(LED_4, 0);
    wait(250);
    reset_leds();
}
 
///////////////////////////////////////////////////////
            /*Rumbles*/
///////////////////////////////////////////////////////
function rumble_A_if_true(var) {
if (var) rumble_type = RUMBLE_A;
else rumble_type = RUMBLE_B;
}
 
 
User avatar
coolfedorabro
Sergeant
Sergeant
 
Posts: 9
Joined: Mon Oct 05, 2020 6:14 am

Re: converting to T1

Postby Mad » Wed Oct 07, 2020 9:25 pm

converted:
T1.gpc
(8.85 KiB) Downloaded 18 times
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Brigadier General
Brigadier General
 
Posts: 2527
Joined: Wed May 22, 2019 5:39 am

Re: converting to T1

Postby coolfedorabro » Wed Oct 07, 2020 11:23 pm

Mad wrote:converted:
T1.gpc


thank you!
User avatar
coolfedorabro
Sergeant
Sergeant
 
Posts: 9
Joined: Mon Oct 05, 2020 6:14 am

Re: NBA 2K21 Convert script/fix error

Postby peacock201 » Thu Oct 08, 2020 12:10 am

can some one help me convert this to titan one
Attachments
MyCareerVCGenAFK.gpc
(9.22 KiB) Downloaded 8 times
User avatar
peacock201
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Oct 07, 2020 11:50 pm

Re: NBA 2K21 Convert script/fix error

Postby Mad » Thu Oct 08, 2020 12:41 am

peacock201 wrote:can some one help me convert this to titan one

converted here: viewtopic.php?f=6&t=16444#p103852
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Brigadier General
Brigadier General
 
Posts: 2527
Joined: Wed May 22, 2019 5:39 am

Re: NBA 2K21 Convert script/fix error

Postby peacock201 » Fri Oct 09, 2020 1:12 am

can some one help me convert this to t1
Attachments
dricon perfect stick shot .gpc
(6.33 KiB) Downloaded 10 times
User avatar
peacock201
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Oct 07, 2020 11:50 pm

Re: NBA 2K21 Convert script/fix error

Postby coolfedorabro » Fri Oct 09, 2020 5:07 am

peacock201 wrote:can some one help me convert this to t1


same i need it in T1
User avatar
coolfedorabro
Sergeant
Sergeant
 
Posts: 9
Joined: Mon Oct 05, 2020 6:14 am

Re: NBA 2K21 Convert script/fix error

Postby Mad » Fri Oct 09, 2020 6:42 am

peacock201 wrote:can some one help me convert this to t1

converted:
T1 dricon perfect stick shot .gpc
(5.58 KiB) Downloaded 178 times
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Brigadier General
Brigadier General
 
Posts: 2527
Joined: Wed May 22, 2019 5:39 am

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 25 guests