Trying to help a friend

GPC2 script programming for Titan Two. Code examples, questions, requests.

Trying to help a friend

Postby jasp90 » Sun Dec 26, 2021 9:35 pm

How do I convert titan to Scripps from T2 to T1 thanks
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Trying to help a friend

Postby Mad » Sun Dec 26, 2021 9:36 pm

You can convert T1 to T2 but not the other way around.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Trying to help a friend

Postby jasp90 » Sun Dec 26, 2021 9:54 pm

What is the difference in code so I can help him
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Trying to help a friend

Postby Mad » Sun Dec 26, 2021 10:20 pm

If it's super basic it may be possible but GPC2 has a lot of functions built in that GPC1 isn't capable of.

T2 https://www.consoletuner.com/wiki/index ... _reference
T1 https://www.consoletuner.com/kbase/gpc_ ... s=AgAAAAE=
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Trying to help a friend

Postby jasp90 » Mon Dec 27, 2021 6:27 am

Can this be converted thanks for your time mad and could a 2nd script be done with rapid fire thanks


Code: Select all
 #include <xb1.gph>
main { if(is_active(XB1_RT)) combo_run(LS); }
 
combo LS {
    set_val(XB1_LY, 50.0); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
    set_val(XB1_LY, 50.0); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
}
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Trying to help a friend

Postby Mad » Mon Dec 27, 2021 8:44 am

Code: Select all
main { if(get_val(XB1_RT)) combo_run(LS); }
 
combo LS {
    set_val(XB1_LY, 50); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
    set_val(XB1_LY, 50); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Trying to help a friend

Postby jasp90 » Mon Dec 27, 2021 2:27 pm

Sorry what do I put in to stop the script when I let go of RT thanks
User avatar
jasp90
Command Sergeant Major
Command Sergeant Major
 
Posts: 125
Joined: Wed Nov 26, 2014 4:06 pm

Re: Trying to help a friend

Postby Mad » Tue Dec 28, 2021 5:16 am

Code: Select all
main { 
    if(get_val(XB1_RT)) combo_run(LS);
    if(event_release(XB1_RT)) combo_stop(LS);
}
 
combo LS {
    set_val(XB1_LY, 50); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
    set_val(XB1_LY, 50); // Pull down on the left thumb stick a value I can change
    wait(200); // how long to pull down for
    wait(60); // time between next pull down
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 57 guests