Here's my forza 6 script:

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

Here's my forza 6 script:

Postby Gfoke » Sun Sep 13, 2015 3:23 am

I made one with auto clutch during shifts, as well as it holds the clutch down if you hold LT and RT for launches after spinouts and improv drag races.

It has an adjustable throttle stop for easier rpm control at the dragstrip when you hold down the A button. It's adjustable when you hold RT and press the left dpad to adjust down and right dpad to adjust up.

I also put adjustable improved ABS.


http://www.consoletuner.com/gpclib/?s=1045
Last edited by Gfoke on Fri Dec 18, 2015 10:18 am, edited 3 times in total.
User avatar
Gfoke
Master Sergeant
Master Sergeant
 
Posts: 28
Joined: Sat Jul 25, 2015 7:46 am

Re: Here's my forza 6 script:

Postby UK_Wildcats_Fans » Tue Sep 15, 2015 5:17 pm

Thank you for sharing.
User avatar
UK_Wildcats_Fans
Brigadier General
Brigadier General
 
Posts: 2183
Joined: Thu Jan 08, 2015 6:53 pm
Location: San Diego, California USA

Re: Here's my forza 6 script:

Postby J2Kbr » Sun Sep 20, 2015 11:38 pm

UK_Wildcats_Fans wrote:Thank you for sharing.

+1
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19485
Joined: Tue Mar 18, 2014 1:39 pm

Re: Here's my forza 6 script:

Postby TVRacing7818 » Thu Sep 24, 2015 9:34 pm

Can you do one for the X as the shift up and the and the A for shift down with auto clutch ?
User avatar
TVRacing7818
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Aug 29, 2015 9:18 pm

Re: Here's my forza 6 script:

Postby TVRacing7818 » Fri Oct 02, 2015 3:43 pm

I tired changing it myself but when i am in the game the gas and brake are both applied and i cant go anywhere.
User avatar
TVRacing7818
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Aug 29, 2015 9:18 pm

Re: Here's my forza 6 script:

Postby J2Kbr » Fri Oct 02, 2015 4:17 pm

I made the some changes which - I believe - will do what you want. The changes were in the lines 16 and 19. Please note I didn't have chance to test the script in game, hopefully I got it right.

Code: Select all
//Forza 6 script with improved abs, auto clutch, and adjustable throttle stop.
//script is setup for LB clutch, B upshift, X downshift, triggers for gas+brake (default controls)
//press and hold left stick button to engage throttle stop, release to disengage.
//can be adjusted up and down by holding RT and pressing left and right on dpad.
//enjoy - Gfoke

int clutchtime = 50;//delay between clutch activation
int throttlestop = 60;//percentage of throttle stop
int brake_maximum = 81;//hardest brake percentage
int brake_use;

main {
    if(get_val(XB1_LT) && get_val(XB1_RT) ) {
        combo_run(Clutchhold);
    } else combo_stop(Clutchhold);
if(event_press(XB1_X) ) {
        combo_run(Clutchupshift);
}
if(event_press(XB1_A) ) {
        combo_run(Clutchdownshift);
}
if (get_val(XB1_LS) && get_val(XB1_RT)) {
combo_run(revlimiter);
}
if (event_press(XB1_LEFT) && get_val (XB1_RT)) throttlestop = throttlestop -2;
if (event_press(XB1_RIGHT)&& get_val (XB1_RT)) throttlestop = throttlestop +2;
if (throttlestop > 100) throttlestop = 100;
else if (throttlestop < 0) throttlestop = 0;
if (get_val(XB1_LT)) {combo_run (ABS);
}
}
combo ABS {
brake_use = get_val(XB1_LT);
if (brake_use > brake_maximum) brake_use = brake_maximum;
set_val(XB1_LT,brake_use);
wait (70);
set_val(XB1_LT,0);


}
combo Clutchhold {
    set_val(XB1_LB, 100);
}

combo Clutchupshift {
    set_val(XB1_RT, 0);
    wait (clutchtime);
    set_val(XB1_LB, 100);
     wait (clutchtime);
    set_val(XB1_LB, 0);
}
combo Clutchdownshift {
   
    set_val(XB1_LB, 100);
     wait (clutchtime);
    set_val(XB1_LB, 0);
}
combo revlimiter {
set_val(XB1_RT,throttlestop);
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19485
Joined: Tue Mar 18, 2014 1:39 pm

Re: Here's my forza 6 script:

Postby Gfoke » Fri Nov 27, 2015 11:42 am

I updated this with customizable control buttons, and pretty much everything on it works better now.

I hope some people try it with a different control scheme than I use, I can't seem to drive with any other scheme now.
its much easier to change the buttons around, just change the buttons to match yours on the top lines.

http://www.consoletuner.com/gpclib/?s=1045
User avatar
Gfoke
Master Sergeant
Master Sergeant
 
Posts: 28
Joined: Sat Jul 25, 2015 7:46 am

Re: Here's my forza 6 script:

Postby J2Kbr » Sat Nov 28, 2015 11:12 am

Great! :) thanks for keeping the script updated!!
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19485
Joined: Tue Mar 18, 2014 1:39 pm

Re: Here's my forza 6 script:

Postby Gfoke » Sat Nov 28, 2015 3:57 pm

J2Kbr wrote:Great! :) thanks for keeping the script updated!!


I started playing forza a lot more lately, I realized it was pretty primitive in 1.0, especially in circuit racing.

when I first made the script, I used it almost exclusively for drag racing, where you want the shifts to be as fast and hard as possible to keep turbo cars making boost during the shifts. If you let off the gas, it dumps out the boost and has to rebuild it again every shift; so my script has no throttle lift, and the car keeps boost the whole time.

2.0 is still setup to do that on the shifts, which works for most cases, but might be a bit harsh for some hard to handle cars, With a couple of them if you shift during a turn it may break the rear end loose and cause a spin.

I just discovered today that I don't have to have the gas mashed during shifts to keep that boost, if I drop the throttle to 30% during shifts, the car remains in boost and the shifts are pretty smooth, so that will be another update in version 2.1.

I just need to come up with the most efficient timing, then 2.1 will be up.

If anyone else has any suggestions for adding I'm all ears. :innocent_smile_1:
User avatar
Gfoke
Master Sergeant
Master Sergeant
 
Posts: 28
Joined: Sat Jul 25, 2015 7:46 am

Re: Here's my forza 6 script:

Postby J2Kbr » Mon Nov 30, 2015 5:25 pm

thanks for the detailed information. You have no idea how many people ask for forza scripts. You effort with this script is truly appreciated, by me and many other users. :joia: :joia:
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19485
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: navi2283, RoyalLaws and 17 guests