T1/CM to Titan Two Script Converter [v0.28r6 - 11/30/2020]

Tutorials, How-tos and FAQs for the Titan Two device.

Re: T1/CM to Titan Two Script Converter [v0.28r4 - 10/20/202

Postby bcarrasco18 » Thu Oct 22, 2020 3:51 pm

Code: Select all
*/
//=========================================================//
//LED COLOURS//======Don't Touch===========================//
//=========================================================//
                                                           //
                                                            //
data( 1,                                                   //
  2,0,0,0 , //1. Blue                                      //
  0,2,0,0 , //2. Red                                       //
  0,0,2,0 , //3. Green                                     //
  0,0,0,2 , //4. Pink                                      //
  2,0,2,0 , //5. SkyBlue                                   //
  0,2,2,0 , //6. Yellow                                    //
  2,2,2,2   //7. White                                     //
);                                                         //
                                                           //
define Green      =  3;                                    //
int LED_OFF       = -2;                                    //
//=========================================================//
 
//=========================================================//
// SET YOUR DEFAULTS BELOW
//=========================================================//
//=========================
// Is Meter on or off?   //
// Off=0 On=1            //
int Meter=1;             //
//=========================
 
 
//=========================
// Move meter point      //
// Lower moves it left   //
// Higher moves it right //
// Default = 19        //
int MeterPosition = 19;//
//=========================
 
 
//=========================
// Move no meter point   //
// Lower moves it left   //
// Higher moves it right //
// Default = 7           //
int NoMeterPosition = 7; //
//=========================
 
 
//=========================
// This is for the delay //
// in which L2 is tapped //
// after the stick shot  //
// to increase green     //
// percentage.           //
// If too late decrease  //
// If too early increase //
int delay = 21;          //
//=========================
 
 
//=========================
// Enabled Dribbles?     //
// Yes=1 No=0            //
int Dribbles = 1;        //
//=========================
 
 
//========================
// If Dribbles Enabled  //
// which dribble set do //
// you want bound to    //
// L3 and R3?           //
//----------------------//
// Curry Slide = 0      //
// Expl Behind Back = 1 //
// Momentum = 2         //
// Momentum BTB = 3     //
int DribbleSet = 5;     //
//========================
 
 
 
 
define MAX_RANGE = 330;
int stepWait;
 
 
 
 
main
{
    if(Meter)  LED_CM(Green); //Green LED means Meter Script is active       
    else     LED_CM(LED_OFF); //No LED means "No Meter" script is active 
 
    if(get_rumble(RUMBLE_A) || get_rumble(RUMBLE_B))
    {
        combo_run(wait_time);
    }
 
    if(get_val(PS4_L2) && get_val(PS4_R2))
    {
        stepWait = MAX_RANGE - (FindMax(abs(get_val(XB1_LX)),abs(get_val(XB1_LY))) * 3);
        combo_run(ALTERNATE_STEP);
        combo_run(RUMBLE);
    }
 
      if(get_val(PS4_SQUARE))
    {
        if(event_press(PS4_LEFT))
        {
            delay--;
            combo_run(RUMBLE);
        }
 
        if(event_press(PS4_RIGHT))
        {
            delay++;
            combo_run(RUMBLE);
        }
    }
 
    if(get_val(PS4_OPTIONS)) //Hold Options
    {
        if(event_press(PS4_SQUARE)) //If Options is held and (PS4)Square/(XBOX)X is pressed, toggle Meter/No Meter Script
        {
            Meter=!Meter;
            set_val(PS4_SQUARE, 0);
        }
 
        if(event_press(PS4_L3)) //If Options is held and (L3 is pressed, toggle Dribble Script on/off
        {
            Dribbles=!Dribbles;
            set_val(PS4_L3, 0);
        }
 
    }
 
    if(get_val(PS4_R3)) //Hold R3
    {   
        if(event_press(PS4_RIGHT)) //If R3 is held and (D-PAD Right is pressed, toggle Dribble sets
        {
            DribbleSet++;
            if (DribbleSet >6)
                DribbleSet = 0;
                combo_run(RUMBLE);
        }
 
        if(event_press(PS4_LEFT)) //If R3 is held and (D-PAD Left is pressed, toggle Dribble sets
        {
            DribbleSet--;
            if (DribbleSet <0)
                DribbleSet = 6;
                combo_run(RUMBLE);
        }
    }
 
 
    if (Meter == 1) //If "Meter" script is active, run commands below
    { 
        if(get_val(PS4_R2))
        {   
            if(get_val(PS4_L1))
            {
                set_val(PS4_RX, MeterPosition);
                set_val(PS4_RY,100);
            }
        }
 
        if(get_val(PS4_L1))
        {   
            if(event_press(PS4_LEFT))
            {
                MeterPosition--;
                combo_run(RUMBLE);
            }
 
            if(event_press(PS4_RIGHT))
            {
                MeterPosition++;
                combo_run(RUMBLE);
            }
        }
 
 
        //Dribble Set 0, Curry Slide
        if(Dribbles == 1 && DribbleSet == 0)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHSLIDE);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHSLIDE);
                    }
                }
        }
 
        //Dribble Set 1, Explosive behind the back
        if(Dribbles == 1 && DribbleSet == 1)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHExplosiveBB);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHExplosiveBB);
                    }
                }
        }
 
        //Dribble Set 2, Momentum
        if(Dribbles == 1 && DribbleSet == 2)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHMomentum);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHMomentum);
                    }
                }
        }
 
        //Dribble Set 3, Momentum behind the back
        if(Dribbles == 1 && DribbleSet == 3)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHMomentumBTB);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHMomentumBTB);
                    }
                }
        }
 
        //Dribble Set 4, Momentum Curry Slide
        if(Dribbles == 1 && DribbleSet == 4)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHMomentumSLIDE);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHMomentumSLIDE);
                    }
                }
        }
 
        //Dribble Set 5,Halfspin
        if(Dribbles == 1 && DribbleSet == 5)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHHS);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHHS);
                    }
                }
        }
 
        //Dribble Set 6, Glitched Speed Boost
        if(Dribbles == 1 && DribbleSet == 6)
        {
            if (event_press(PS4_L3))
            {
                set_val(PS4_R2,0);
                combo_run(BoostLH);
            }
 
            if (event_press(PS4_R3))
            {
                set_val(PS4_R2,0);
                combo_run(BoostRH);
            }
        }
    }
 
 
 
    if (Meter == 0) //If "No Meter" script is active, run commands below
    { 
        if(get_val(PS4_R2))
        {   
            if(get_val(PS4_L1))
            {
                set_val(PS4_RX, NoMeterPosition);
                set_val(PS4_RY,100);
            }
        }
 
        if(get_val(PS4_L1))
        {
            if(event_press(PS4_LEFT))
            {
                NoMeterPosition--;
                combo_run(RUMBLE);
            }
 
            if(event_press(PS4_RIGHT))
            {
                NoMeterPosition++;
                combo_run(RUMBLE);
            }
        }
 
        //Dribble Set 0, Curry Slide
        if(Dribbles == 1 && DribbleSet == 0)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHSLIDE);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHSLIDE);
                    }
                }
        }
 
        //Dribble Set 1, Explosive behind the back
        if(Dribbles == 1 && DribbleSet == 1)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHExplosiveBB);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHExplosiveBB);
                    }
                }
        }
 
        //Dribble Set 2, Momentum
        if(Dribbles == 1 && DribbleSet == 2)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHMomentum);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHMomentum);
                    }
                }
        }
 
        //Dribble Set 3, Momentum behind the back
        if(Dribbles == 1 && DribbleSet == 3)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHMomentumBTB);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHMomentumBTB);
                    }
                }
        }
 
        //Dribble Set 4, Momentum Curry Slide
        if(Dribbles == 1 && DribbleSet == 4)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHMomentumSLIDE);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHMomentumSLIDE);
                    }
                }
        }
 
        //Dribble Set 5,Halfspin
        if(Dribbles == 1 && DribbleSet == 5)
        {
                if(get_val(PS4_R2))
                {       
                    if (event_press(PS4_L3))
                    {
                        combo_run(LHHS);
                    }
 
                    if (event_press(PS4_R3))
                    {
                        combo_run(RHHS);
                    }
                }
        }
 
        //Dribble Set 6, Glitched Speed Boost
        if(Dribbles == 1 && DribbleSet == 6)
        {
            if (event_press(PS4_L3))
            {
                set_val(PS4_R2,0);
                combo_run(BoostLH);
            }
 
            if (event_press(PS4_R3))
            {
                set_val(PS4_R2,0);
                combo_run(BoostRH);
            }
        }
    }
}
 
 
//=======================================
// Dribble Moves //======================
//=======================================
 
 
//-Left hand half spin
combo LHHS
{
    set_val(PS4_RX, -100);
    wait(10);
 
    set_val(PS4_RX, -100);
    set_val(PS4_RY, -30);
    wait(10);
 
    set_val(PS4_RX, -20);
    set_val(PS4_RY, -100);
    wait(10);
 
    set_val(PS4_RY, -100);
    wait(10);
}
 
 
//-Right hand half spin
combo RHHS
{
    set_val(PS4_RX, 100);
    wait(10);
 
    set_val(PS4_RX, 100);
    set_val(PS4_RY, -30);
    wait(10);
 
    set_val(PS4_RX, 20);
    set_val(PS4_RY, -100);
    wait(10);
 
    set_val(PS4_RY, -100);
    wait(10);
}
 
 
//-Left hand Momentum
combo LHMomentum
{
    set_val(PS4_RX, 100);
    wait(40);
 
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -75);
    wait(100);
}
 
 
//-Right hand Momentum
combo RHMomentum
{
    set_val(PS4_RX, -100);
    wait(40);
 
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(100);
}
 
 
//-Left hand Momentum Behind The Back
combo LHMomentumBTB
{
    set_val(PS4_RX, 100);
    wait(40);
 
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -75);
    wait(300);
 
    call(RHExplosiveBB);
}
 
 
//-Right hand Momentum Behind The Back
combo RHMomentumBTB
{
    set_val(PS4_RX, -100);
    wait(40);
 
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(300);
 
    call(LHExplosiveBB);
}
 
 
//-Left hand Momentum Curry Slide
combo LHMomentumSLIDE
{
    set_val(PS4_RX, 100);
    wait(40);
 
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -75);
    wait(300);
 
    call(RHSLIDE);
}
 
 
//-Right hand Momentum Curry Slide
combo RHMomentumSLIDE
{
    set_val(PS4_RX, -100);
    wait(40);
 
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(300);
 
    call(LHSLIDE);
}
 
 
//-Left hand curry slide
combo LHSLIDE
{
    set_val(PS4_RX, 100);
    set_val(PS4_RY, 50);
    wait(400);
}
 
 
//-Right hand curry slide
combo RHSLIDE
{
    set_val(PS4_RX, -100);
    set_val(PS4_RY, 50);
    wait(400);
}
 
 
//-Right hand explosive behind the back
combo RHExplosiveBB
{
    set_val(PS4_RX, -75);
    set_val(PS4_RY, 75);
    wait(80);
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(100);
    set_val(PS4_LX, -75);
    set_val(PS4_LY, -75);
    wait(200);
}
 
 
//Left hand explosive behind the back
combo LHExplosiveBB
{
    set_val(PS4_RX, 75);
    set_val(PS4_RY, 75);
    wait(80);
   set_val(PS4_RX, 75);
    set_val(PS4_RY, 75);
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -75);
    wait(100);
    set_val(PS4_LX, 75);
    set_val(PS4_LY, -70);
    wait(200);
}
 
 
//Left hand Boost
combo BoostLH
{
    set_val(PS4_RX, 100);
    wait(60);
    set_val(PS4_RX, 0);
    wait(350);
    set_val(PS4_LX, 100);
    wait(60);
    set_val(PS4_LX, 100);
    set_val(PS4_R2, 100);   
    wait(400);
}
 
 
//Right hand Boost
combo BoostRH
{
    set_val(PS4_RX, -100);
    wait(60);
    set_val(PS4_RX, 0);
    wait(350);
    set_val(PS4_LX, -100);
    wait(60);
    set_val(PS4_LX, -100);
    set_val(PS4_R2, 100);   
    wait(400);
}
//=======================================
 
//======================================
// Defense Mod Combos //================
//======================================
 
 
combo ALTERNATE_STEP {
    set_val(XB1_LT,100);
    wait(30);
    wait(stepWait);
    set_val(XB1_RT,100);
    wait(30);
    wait(stepWait);
}
 
//======================================
 
combo wait_time
{
    wait(delay);
    set_val(PS4_L2, 100);
    set_val(PS4_SQUARE, 0):
    wait(100);
    set_val(PS4_L2, 0);
    wait(200):
}
 
 
combo RUMBLE
{
    set_rumble(RUMBLE_A, 50);
    wait(200);
    set_rumble(RUMBLE_A, 0);
}
 
function FindMax(a,b) {
    if(a > b){
        return a;
    }
    return b;
}
 
function LED_CM(Colour)                                    //
{                                                          //
    set_led(LED_1,dbyte(( Colour * 4)- 3     ));           //
    set_led(LED_2,dbyte(((Colour * 4)- 3) + 1));           //
    set_led(LED_3,dbyte(((Colour * 4)- 3) + 2));           //
    set_led(LED_4,dbyte(((Colour * 4)- 3) + 3));           //
}
 

i dot see what i did wrog i keep get error
User avatar
bcarrasco18
Private
Private
 
Posts: 1
Joined: Thu Oct 22, 2020 3:49 pm

Re: T1/CM to Titan Two Script Converter [v0.28r4 - 10/20/202

Postby Mad » Thu Oct 22, 2020 7:33 pm

bcarrasco18 wrote:i dot see what i did wrog i keep get error

You're opening the original file and not the converted one, check the folder where you converted the gpc script.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: T1/CM to Titan Two Script Converter [v0.28r4 - 10/20/202

Postby AndoG10 » Thu Oct 22, 2020 10:29 pm

Is there any chance the convertor is going to get an update to support the new titan two FW? Since after the new FW the paddles are handled differently. Or maybe give advice on how to make the paddles work using the convertor?
User avatar
AndoG10
Sergeant First Class
Sergeant First Class
 
Posts: 19
Joined: Wed Apr 08, 2020 1:48 pm

Re: T1/CM to Titan Two Script Converter [v0.28r5 - 10/22/202

Postby RandomZero » Mon Oct 26, 2020 11:06 am

Are there are guides or information for converting device Zen gpc scripts to T2 using this tool?
Basically any info on removing or commenting out the Zen OLED code, or redirecting to GPC2 printf() calls will be helpful.
User avatar
RandomZero
Corporal
Corporal
 
Posts: 4
Joined: Mon Oct 26, 2020 11:00 am

Re: T1/CM to Titan Two Script Converter [v0.28r5 - 10/22/202

Postby Mad » Mon Oct 26, 2020 8:09 pm

RandomZero wrote:Are there are guides or information for converting device Zen gpc scripts to T2 using this tool?
Basically any info on removing or commenting out the Zen OLED code, or redirecting to GPC2 printf() calls will be helpful.

This is for T1/CM, you'll need to manually convert it. A guide wont be much help as different issues arise with each script, you'll need to be familiar with GPC.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

I tried doing your steps but got lost

Postby Sloppyname41 » Sat Jan 23, 2021 1:16 pm

I downloaded Java but I don't know what I'm supposed to do with it? I actually don't understand what I'm supposed to do. :ashamed:
User avatar
Sloppyname41
Sergeant First Class
Sergeant First Class
 
Posts: 21
Joined: Fri Feb 28, 2020 8:28 pm

Re: I tried doing your steps but got lost

Postby Mad » Sat Jan 23, 2021 8:15 pm

Sloppyname41 wrote:I downloaded Java but I don't know what I'm supposed to do with it? I actually don't understand what I'm supposed to do. :ashamed:

Open the file you downloaded and install it.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: T1/CM to Titan Two Script Converter [v0.28r6 - 11/30/202

Postby actionmainly » Sat Mar 13, 2021 3:12 pm

Having a bit of trouble with this, think I am doing everything right but simply cannot get the converted scripts to work. Hitting left stick and nothing at all this is the original script
Code: Select all
// GPC Online Library
// street_fighter_4_(original)_trials_series_-_ryu_hard_trial_5.gpc

//Push the characters all the way to the right. Take a few steps backwars and activate using LS.

int i;

define lk = XB360_A;
define mk = XB360_B;
define hk = XB360_RT;

define lp = XB360_X;
define mp = XB360_Y;
define hp = XB360_RB;

define LY = XB360_LY;
define LX = XB360_LX;

define d = XB360_DOWN;
define r = XB360_RIGHT;
define l = XB360_LEFT;
define u = XB360_UP;

define p = XB360_LB;
define k = XB360_LT;

main
{
    if(get_val(XB360_BACK))
    {
        i = 1;
    }
    if(get_val(XB360_RS))
    {
        i = 0;
    }
   
   
    if(i==1)
    {
        combo_run(move1);
    }
    if(i==0)
    {
        combo_stop(move1);
    }
}

combo move1
{
    //Jump Heavy Punch
    set(u);
    set(r);
    wait(500);
    set(hp);
    wait(450);
    //Crouch Medium Punch
    set(d);
    set(mp);
    wait(425);
    //Crouch Heavy Punch
    set(d);
    set(hp);
    wait(200);
    //EX Tatsumaki Senpukyaku
    set(d);
    wait(25);
    set(d);
    set(l);
    wait(25);
    set(l);
    set(k);
    wait(1200);
    //EX Shoryuken
    set(r);
    wait(25);
    set(d);
    wait(25);
    set(d);
    set(r);
    set(p);
    wait(25);
    rel(p);
    wait(250);
    //EX Focus General
    set(mk);
    set(mp);
    wait(100);
    set(r);
    wait(20);
    rel(r);
    wait(20);
    set(r);
    wait(20);
    rel(r);
    wait(300);
    //Metsu Hadoken
    set(d);
    wait(25);
    set(d);
    set(r);
    wait(25);
    set(r);
    wait(25);
    set(d);
    wait(25);
    set(d);
    set(r);
    wait(25);
    set(r);
    set(p);
    wait(100);
    i = 0;
}

function set(button)
{
    set_val(button, 100);
}

function rel(button)
{
    set_val(button, 0);
}[/code}

and this is what the converter is giving me but just doesn't seem to want to work

[code=gps2]#pragma METAINFO("street_fighter_4_(original)_trials_series_-_ryu_hard_trial_5.gpc", 1, 0, "Buffy's GPC Converter v0.28r6")
#include <titanone.gph>


#define _ot_i _ot_i2
const uint8 _ot_i2[42] = {
    BUTTON_1,  BUTTON_2,  BUTTON_3,  BUTTON_4,  BUTTON_5,  BUTTON_6,
    BUTTON_7,  BUTTON_8,  BUTTON_9,  STICK_1_X, STICK_1_Y, STICK_2_X,
    STICK_2_Y, BUTTON_10, BUTTON_11, BUTTON_12, BUTTON_13, BUTTON_14,
    BUTTON_15, BUTTON_16, BUTTON_17, ACCEL_1_X, ACCEL_1_Y, ACCEL_1_Z,
    GYRO_1_X,  GYRO_1_Y,  GYRO_1_Z,  PADDLE_1, POINT_1_X, POINT_1_Y,
    PADDLE_2, PADDLE_3, PADDLE_4, ACCEL_2_X, ACCEL_2_Y, ACCEL_2_Z,
    0, 0, BUTTON_18, BUTTON_19, BUTTON_20, BUTTON_21,
};
// GPC Online Library
// street_fighter_4_(original)_trials_series_-_ryu_hard_trial_5.gpc
//Push the characters all the way to the right. Take a few steps backwars and activate using LS.
//Jump Heavy Punch
//Crouch Medium Punch
//Crouch Heavy Punch
//EX Tatsumaki Senpukyaku
//EX Shoryuken
//EX Focus General
//Metsu Hadoken


define lk = XB360_A;
define mk = XB360_B;
define hk = XB360_RT;
define lp = XB360_X;
define mp = XB360_Y;
define hp = XB360_RB;
define LY = XB360_LY;
define LX = XB360_LX;
define d = XB360_DOWN;
define r = XB360_RIGHT;
define l = XB360_LEFT;
define u = XB360_UP;
define p = XB360_LB;
define k = XB360_LT;
#define __LAST_COMBO__ c_move1
#define _VM_BTN_COUNT_ 42
#define DISABLE_VM_ // delete underscore to disable VM mode
#ifndef DISABLE_VM
#define VM_TIME 10
#define vm_tctrl(time) ___vm_time___ = (((10+ time) < 0) ? 0 : (10+ time))
#define wait(a) wait(vm_tctrl_wait(a));
#else
#define VM_TIME 0
#endif

int i;
uint8 __COMBO_RUN__[1];
int8 __io_vals__[_VM_BTN_COUNT_];
uint8 __io_val_events__[_VM_BTN_COUNT_];
uint32 __vm_run_time__ = 0;
uint8 __run_vm__ = 1,  ___vm_time___ = VM_TIME,  ___i____i;

main {
    if(__run_vm__) {
        if (get_val(XB360_BACK)) {
            i = 1;
        }
        if (get_val(XB360_RS)) {
            i = 0;
        }
        if (i == 1) {
            combo_run(c_move1);
        }
        if (i == 0) {
            combo_stop(c_move1);
        }
    }
}

combo c_move1 {
    f_set(u);
    f_set(r);
    wait(500);
    f_set(hp);
    wait(450);
    f_set(d);
    f_set(mp);
    wait(425);
    f_set(d);
    f_set(hp);
    wait(200);
    f_set(d);
    wait(25);
    f_set(d);
    f_set(l);
    wait(25);
    f_set(l);
    f_set(k);
    wait(1200);
    f_set(r);
    wait(25);
    f_set(d);
    wait(25);
    f_set(d);
    f_set(r);
    f_set(p);
    wait(25);
    f_rel(p);
    wait(250);
    f_set(mk);
    f_set(mp);
    wait(100);
    f_set(r);
    wait(20);
    f_rel(r);
    wait(20);
    f_set(r);
    wait(20);
    f_rel(r);
    wait(300);
    f_set(d);
    wait(25);
    f_set(d);
    f_set(r);
    wait(25);
    f_set(r);
    wait(25);
    f_set(d);
    wait(25);
    f_set(d);
    f_set(r);
    wait(25);
    f_set(r);
    f_set(p);
    wait(100);
    i = 0;
}


function f_set(button) {
    set_val(button, 100);
}

function f_rel(button) {
    set_val(button, 0);
}


main {
    if(__run_vm__) {
        __run_vm__ = system_time() >= (__vm_run_time__+ ___vm_time___);
        if(__run_vm__) __vm_run_time__ = system_time();
        else {
            memset( & __io_vals__[0],  0,  _VM_BTN_COUNT_);
            memset( & __io_val_events__[0],  0,  _VM_BTN_COUNT_);
            for(___i____i = 0; ___i____i < _VM_BTN_COUNT_; ++ ___i____i) {
                if(get_val(___i____i)) __io_vals__[___i____i] = get_val(___i____i);
                if(get_val( ++ ___i____i)) __io_vals__[___i____i] = get_val(___i____i);
            }
            #ifdef __LAST_COMBO__
            for(___i____i = 0; ___i____i < sizeof(__COMBO_RUN__); ++ ___i____i) {
                if(__LAST_COMBO__[(___i____i * 3) + ___i____i]) {
                    __LAST_COMBO__[(___i____i * 3) + ___i____i] = 0;
                    __COMBO_RUN__[___i____i] = 1;
                }
            }
            #endif
        }
    }
    else {
        ___i____i = 0;
        do {
            if(__io_vals__[___i____i]) set_val(___i____i,    __io_vals__[___i____i]);
            if(event_press(___i____i)) __io_val_events__[___i____i] = 1;
            if(event_release(___i____i)) __io_val_events__[___i____i] = 3;
            if(__io_vals__[ ++ ___i____i]) set_val(___i____i,    __io_vals__[___i____i]);
            if(event_press(___i____i)) __io_val_events__[___i____i] = 1;
            if(event_release(___i____i)) __io_val_events__[___i____i] = 3;
        } while( ++ ___i____i < _VM_BTN_COUNT_);
        if(system_time() >= (__vm_run_time__+ ___vm_time___)) {
            __run_vm__ = 1; __vm_run_time__ = system_time();
            #ifdef __LAST_COMBO__
            for(___i____i = 0; ___i____i < sizeof(__COMBO_RUN__); ++ ___i____i) {
                if(__COMBO_RUN__[___i____i]) {
                    __LAST_COMBO__[(___i____i * 3) + ___i____i] = 1;
                    __COMBO_RUN__[___i____i] = 0;
                }
            }
            #endif
        }
    }
}


int vm_tctrl_wait(int num) {
    return ___vm_time___ ? ((num / ___vm_time___) + ((num % ___vm_time___) ? 1 : 0)) : num;
}

bool _event_press(uint8 io) {
    return event_press(io) || __io_val_events__[io] == 1;
}

bool _event_release(uint8 io) {
    return event_release(io) || __io_val_events__[io] == 3;
}




When I run the compiler it is giving me a warning that says GPC: Unreferenced: dbyte, dchar, dword, remap, unmap, get_pvar, set_pvar, swap, sensitivity, deadzone, stickize, get_led, set_led, set_ledx, get_ledx, reset_leds, get_rumble, block_rumble, isqrt, irand, turn_off, ps4_touchpad, ps4_set_touchpad, output_protocol, output_reconnection, get_battery, get_console, get_controller, _event_press, _event_release

Can anyone shed any light?
User avatar
actionmainly
Private First Class
Private First Class
 
Posts: 2
Joined: Sat Mar 13, 2021 2:08 pm

Re: T1/CM to Titan Two Script Converter [v0.28r6 - 11/30/202

Postby Mad » Mon Mar 15, 2021 8:59 am

actionmainly wrote:Having a bit of trouble with this, think I am doing everything right but simply cannot get the converted scripts to work. Hitting left stick and nothing at all this is the original script

Add this line to the top of the original script and it'll compile:
Code: Select all
#include <titanone.gph>

You can ignore the warning with the converter. :smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: T1/CM to Titan Two Script Converter [v0.28r6 - 11/30/202

Postby mistaken2501 » Sat Mar 27, 2021 4:26 am

Can someone help me convert this to t2
Attachments
dricon4.0_beta1.5.gpc
(22.12 KiB) Downloaded 221 times
Jaiwalkkin3.0ALPHA.gpc
(19.59 KiB) Downloaded 194 times
User avatar
mistaken2501
Private
Private
 
Posts: 1
Joined: Sat Sep 26, 2020 10:56 pm

PreviousNext

Return to Tutorials and FAQs

Who is online

Users browsing this forum: No registered users and 49 guests