Using Titan 1 script on Titan 2
Re: Using Titan 1 script on Titan 2
It seems to work somehow as it lift the club. "Not working at all" in terms of ready to use for play I think.
Porting a script might not work with the expected result on the first try because of the quality of the script and how the script is written. This script isn't using combos for setting the output of the stick and the downswing gets executed so fast on the T2 that its output isn't registered correctly.
Try if this is working:
To change the 50ms to 5ms you can change 50 to 5 in the line 141:
Porting a script might not work with the expected result on the first try because of the quality of the script and how the script is written. This script isn't using combos for setting the output of the stick and the downswing gets executed so fast on the T2 that its output isn't registered correctly.
Try if this is working:
- Code: Select all
/* The Golf Club 2019
v1.2.T2.custom
T2 converted for decimal value usage
Added RND_MOD. Decimal value the axis will vary (+-)
v1.2
Added X_VARIANCE. Maximum amount X axis will vary (+-)
v1.1
Chip - LT/L2 + A/Cross
Swing Strenth - Hold A/Cross then Up/Down (+- 5 each tap) TRACE_4 shows max backswing value
------------------------------------------------------------------------------------------
v1.0
***IF YOU USE LEFT STICK TO SWING SET SWING_STICK = LEFT;***
To use Random Delay Times at Top of The Swing set RANDOM_DELAY_TOP = TRUE
Full Swing - HOLD LT/L2 then tap RT/R2
Smooth Follow Through on Putt - Pull swing stick back untill putter head is at desired location then tap
either LT/L2 or RT/R2
**///--Change to LEFT for Left Stick Swing
//--Change to FALSE to Use a Random Delay Time
//--Maximum Amount X will Vary (+-) During Swing
//--------------------------------------------------
//--swing strength
//--swing
//--chip
//--putt smooth follow through
//--------------------------------------------------------------
//--Swing
//--new RX every 50 ms
//--------------------------------------------------------------
//--PUTT
//--------------------------------------------------------------
//--SCROLL VALS
#include <xb1.gph>
#define RIGHT 22
#define LEFT 24
#define SWING_STICK RIGHT
#define RANDOM_DELAY_TOP TRUE
#define X_VARIANCE 15.0
#define RND_MOD 1.11
#define BACK_SWING_LOWER 10.0
#define BACK_SWING_UPPER 20.0
#define DOWN_SWING_LOWER 30.0
#define DOWN_SWING_UPPER 40.0
#define DELAY_TOP_LOWER 700
#define DELAY_TOP_UPPER 800
int SP[12];
fix32 rnd_back, back_val;
fix32 rnd_down, down_val;
int rnd_delay, delay;
fix32 rnd_x, rx_val, rx_count;
fix32 ry_val, back_max_val;
int swing, set, back, down;
uint8 swing_y, swing_x;
int putt, idx;
fix32 putt_val;
int b;
int bb;
int bb_array[3];
init{
SP[0] = 100;
SP[1] = 95;
SP[2] = 90;
SP[3] = 85;
SP[4] = 80;
SP[5] = 75;
SP[6] = 0;
SP[7] = 12;
SP[8] = 14;
SP[9] = 16;
SP[10] = 18;
SP[11] = 20;
swing_y = SWING_STICK;
swing_x = SWING_STICK - 1;
back_max_val = 100.0;
}
main {
set_val(30, back_val);
set_val(31, down_val);
set_val(32, delay / 10);
set_val(33, back_max_val);
set_val(34, rx_val);
if (get_val(XB1_A) && event_active(XB1_DOWN)) back_max_val = back_max_val - 5.0;
if (get_val(XB1_A) && event_active(XB1_UP)) {
back_max_val = back_max_val+5.0;
if (back_max_val > 100.0) back_max_val = 100.0;
}
if (get_val(XB1_LT) && event_active(XB1_RT)) {
swing = TRUE;
set = FALSE;
if (!RANDOM_DELAY_TOP) delay = 750;
}
if (get_val(XB1_LT) && event_active(XB1_A)) {
swing = TRUE;
set = FALSE;
delay = 900;
}
if (get_val(swing_y) > 20.0 && event_active(XB1_LT)) {
putt = TRUE;
ry_val = get_val(swing_y);
if (ry_val < 30.0) putt_val = 5.0;
if (ry_val > 30.0 && ry_val < 70.0) putt_val = 10.0;
if (ry_val > 70.0) putt_val = 20.0;
}
if (swing) {
if (!set) {
combo_run(c_SET);
}
else {
if (elapsed_time()) {
if (back) {
ry_val = ry_val +back_val;
if (ry_val > back_max_val) {
ry_val = back_max_val;
back = FALSE;
combo_run(c_DELAY_TOP);
}
}
if (down) {
ry_val =ry_val- down_val;
if (ry_val <- 100.0) {
ry_val = -100.0;
down = FALSE;
swing = FALSE;
back_max_val = 100.0;
combo_run(c_set_xy);
}
}
rx_count = rx_count+ 1.0;
if (rx_count >= 50.0) {
rx_val = rnd_x;
rx_count = 0.0;
}
}
set_val(swing_y, ry_val);
set_val(swing_x, rx_val);
}
}
if (putt) {
ry_val = ry_val-putt_val;
if (ry_val <= - 100.0) {
ry_val =- 100.0;
putt = FALSE;
combo_run(c_set_y);
}
set_val(swing_y, ry_val);
}
if (elapsed_time()) {
rnd_back =rnd_back+RND_MOD;
rnd_down =rnd_down+RND_MOD;
rnd_x = rnd_x+RND_MOD;
rnd_delay =rnd_delay +10;
if (rnd_back > BACK_SWING_UPPER) rnd_back = BACK_SWING_LOWER;
if (rnd_down > DOWN_SWING_UPPER) rnd_down = DOWN_SWING_LOWER;
if (rnd_x > X_VARIANCE) rnd_x = inv(X_VARIANCE);
if (rnd_delay > DELAY_TOP_UPPER) rnd_delay = DELAY_TOP_LOWER;
}
}
combo c_SET {
wait(1000);
rx_val = rnd_x;
back_val = rnd_back;
down_val = rnd_down;
if (RANDOM_DELAY_TOP) delay = rnd_delay;
set = TRUE;
back = TRUE;
}
combo c_DELAY_TOP {
wait(delay);
down = TRUE;
}
combo c_set_xy {
set_val(swing_y, ry_val);
set_val(swing_x, rx_val);
wait(40);
}
combo c_set_y {
set_val(swing_y, ry_val);
wait(40);
}
To change the 50ms to 5ms you can change 50 to 5 in the line 141:
- Code: Select all
if (rx_count >= 50.0) {
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: script conversion
i tested the hell out of it and the combos dont run properly, the club starts back swing about 80% and down swing 5% when using combos. in this script you converted ,when i use the analog stick to swing that part of script works by limiting the mis hit window. i am at aloss as to why the combos wont work?
- Code: Select all
// Converted to GPC2
//v1.2.T2.custom
//Posted by Batts, a member of the community in the device Forums - https://device.com/forums
//Posted : Wednesday 19th of June, 2019 23:01 UTC
/* The Golf Club 2019
v1.2
Added X_VARIANCE. Maximum amount X axis will vary (+-)
v1.1
Chip - LT/L2 + A/Cross
Swing Strenth - Hold A/Cross then Up/Down (+- 5 each tap) TRACE_4 shows max backswing value
------------------------------------------------------------------------------------------
v1.0
***IF YOU USE LEFT STICK TO SWING SET SWING_STICK = LEFT;***
To use Random Delay Times at Top of The Swing set RANDOM_DELAY_TOP = TRUE
Full Swing - HOLD LT/L2 then tap RT/R2
Smooth Follow Through on Putt - Pull swing stick back untill putter head is at desired location then tap
either LT/L2 or RT/R2
*/
#include <xb1.gph>
#define RIGHT XB1_RY
#define LEFT XB1_LY
//--Change to LEFT for Left Stick Swing
#define SWING_STICK LEFT
//--Change to FALSE to Use a Random Delay Time
#define RANDOM_DELAY_TOP FALSE
//--Maximum Amount X will Vary (+-) During Swing
#define X_VARIANCE 5.0
#define BACK_SWING_LOWER 38.0
#define BACK_SWING_UPPER 38.0
#define DOWN_SWING_LOWER 32.0
#define DOWN_SWING_UPPER 32.0
#define DELAY_TOP_LOWER 685
#define DELAY_TOP_UPPER 685
//--------------------------------------------------
const int8 S[] = {
100,95,90,85,80,75,
0,12,14,16,18,20};
fix32 rnd_back,back_val;
fix32 rnd_down,down_val;
int rnd_delay,delay;
fix32 rnd_x,rx_val,rx_count;
fix32 ry_val,back_max_val;
int swing,set,swing_y,swing_x,back,down;
fix32 putt_val;
int putt,idx;
int b,bb,bb_array;
init {
swing_y = SWING_STICK;
swing_x = SWING_STICK - 1;
back_max_val = 100.0;
}
combo SET {
wait(1000);
rx_val = rnd_x;
back_val = rnd_back;
down_val = rnd_down;
if(RANDOM_DELAY_TOP) delay = rnd_delay;
set = TRUE;
back = TRUE;
wait(10);
}
combo DELAY_TOP {
wait(delay);
down = TRUE;
wait(10);
}
main {
set_val(30,back_val);
set_val(31,down_val);
set_val(32,delay / 10);
set_val(30,back_max_val);
set_val(34,rx_val);
//--swing strength
if(get_val(XB1_A) && event_active(XB1_DOWN))
back_max_val -= 16.0;
if(get_val(XB1_A) && event_active(XB1_UP)) {
back_max_val -= 2.0;
if(back_max_val > 100.0) back_max_val = 100.0;
}
//--swing
if(get_val(XB1_RT) && event_active(XB1_A)) {
swing = TRUE;
set = FALSE;
if(!RANDOM_DELAY_TOP) delay = 780;
}
//--#1
if(get_val(XB1_LT) && event_active(XB1_A)) {
swing = TRUE;
set = FALSE;
delay = 685;
}
//--#3
if(get_val(XB1_UP) && event_active(XB1_A)) {
swing = TRUE;
set = FALSE;
delay = 865;
}
//--#4
if(get_val(XB1_DOWN) && event_active(XB1_A)) {
swing = TRUE;
set = FALSE;
delay = 935;
}
//--#5
if(get_val(XB1_UP) && event_active(XB1_RT)) {
swing = TRUE;
set = FALSE;
delay = 995;
}
//--#6
if(get_val(XB1_UP) && event_active(XB1_B)) {
swing = TRUE;
set = FALSE;
delay = 1050;
}
//--#7
if(get_val(XB1_DOWN) && event_active(XB1_RT)) {
swing = TRUE;
set = FALSE;
delay = 1135;
}
//--#8
if(get_val(XB1_UP) && event_active(XB1_Y)) {
swing = TRUE;
set = FALSE;
delay =1325;
}
{
if(get_val(XB1_RT)) set_val(XB1_LX, 0.0);
if(get_val(XB1_LX) > 3.0) set_val(XB1_LX, 3.0);
if(get_val(XB1_LX)<-3.0) set_val(XB1_LX, -3.0);
}
//--------------------------------------------------------------
//--Swing
if(swing) {
if(!set) {
combo_run(SET);
}else{
if(back) {
ry_val += back_val;
if(ry_val > back_max_val) {
ry_val = back_max_val;
back = FALSE;
combo_run(DELAY_TOP);
}
}
if(down) {
ry_val -= down_val;
if(ry_val < -100.0) {
ry_val = -100.0;
down = FALSE;
swing = FALSE;
back_max_val = 100.0;
}
}
rx_count += 1.0;
if(rx_count == 5.0) {
//--new RX every 20 ms
rx_val = rnd_x;
rx_count = 0.0;
}
set_val(swing_y,ry_val);
set_val(swing_x,rx_val);
}
}
//--------------------------------------------------------------
//--PUTT
if(putt) {
ry_val -= putt_val;
if(ry_val <= -100.0) {
ry_val = -100.0;
putt = FALSE;
}
set_val(swing_y,ry_val);
}
//--------------------------------------------------------------
//--SCROLL VALS
rnd_back += 1.0;
rnd_down += 1.0;
rnd_x += 1.0;
rnd_delay += 10;
if(rnd_back > BACK_SWING_UPPER) rnd_back = BACK_SWING_LOWER;
if(rnd_down > DOWN_SWING_UPPER) rnd_down = DOWN_SWING_LOWER;
if(rnd_x > X_VARIANCE) rnd_x = inv(X_VARIANCE);
if(rnd_delay > DELAY_TOP_UPPER) rnd_delay = DELAY_TOP_LOWER;
}
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Re: Using Titan 1 script on Titan 2
No luck my friend... I thought Titan one and Titan two are very similar?
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Re: Using Titan 1 script on Titan 2
Scachi wrote:It seems to work somehow as it lift the club. "Not working at all" in terms of ready to use for play I think.
Porting a script might not work with the expected result on the first try because of the quality of the script and how the script is written. This script isn't using combos for setting the output of the stick and the downswing gets executed so fast on the T2 that its output isn't registered correctly.
Try if this is working:
- Code: Select all
/* The Golf Club 2019
v1.2.T2.custom
T2 converted for decimal value usage
Added RND_MOD. Decimal value the axis will vary (+-)
v1.2
Added X_VARIANCE. Maximum amount X axis will vary (+-)
v1.1
Chip - LT/L2 + A/Cross
Swing Strenth - Hold A/Cross then Up/Down (+- 5 each tap) TRACE_4 shows max backswing value
------------------------------------------------------------------------------------------
v1.0
***IF YOU USE LEFT STICK TO SWING SET SWING_STICK = LEFT;***
To use Random Delay Times at Top of The Swing set RANDOM_DELAY_TOP = TRUE
Full Swing - HOLD LT/L2 then tap RT/R2
Smooth Follow Through on Putt - Pull swing stick back untill putter head is at desired location then tap
either LT/L2 or RT/R2
**///--Change to LEFT for Left Stick Swing
//--Change to FALSE to Use a Random Delay Time
//--Maximum Amount X will Vary (+-) During Swing
//--------------------------------------------------
//--swing strength
//--swing
//--chip
//--putt smooth follow through
//--------------------------------------------------------------
//--Swing
//--new RX every 50 ms
//--------------------------------------------------------------
//--PUTT
//--------------------------------------------------------------
//--SCROLL VALS
#include <xb1.gph>
#define RIGHT 22
#define LEFT 24
#define SWING_STICK RIGHT
#define RANDOM_DELAY_TOP TRUE
#define X_VARIANCE 15.0
#define RND_MOD 1.11
#define BACK_SWING_LOWER 10.0
#define BACK_SWING_UPPER 20.0
#define DOWN_SWING_LOWER 30.0
#define DOWN_SWING_UPPER 40.0
#define DELAY_TOP_LOWER 700
#define DELAY_TOP_UPPER 800
int SP[12];
fix32 rnd_back, back_val;
fix32 rnd_down, down_val;
int rnd_delay, delay;
fix32 rnd_x, rx_val, rx_count;
fix32 ry_val, back_max_val;
int swing, set, back, down;
uint8 swing_y, swing_x;
int putt, idx;
fix32 putt_val;
int b;
int bb;
int bb_array[3];
init{
SP[0] = 100;
SP[1] = 95;
SP[2] = 90;
SP[3] = 85;
SP[4] = 80;
SP[5] = 75;
SP[6] = 0;
SP[7] = 12;
SP[8] = 14;
SP[9] = 16;
SP[10] = 18;
SP[11] = 20;
swing_y = SWING_STICK;
swing_x = SWING_STICK - 1;
back_max_val = 100.0;
}
main {
set_val(30, back_val);
set_val(31, down_val);
set_val(32, delay / 10);
set_val(33, back_max_val);
set_val(34, rx_val);
if (get_val(XB1_A) && event_active(XB1_DOWN)) back_max_val = back_max_val - 5.0;
if (get_val(XB1_A) && event_active(XB1_UP)) {
back_max_val = back_max_val+5.0;
if (back_max_val > 100.0) back_max_val = 100.0;
}
if (get_val(XB1_LT) && event_active(XB1_RT)) {
swing = TRUE;
set = FALSE;
if (!RANDOM_DELAY_TOP) delay = 750;
}
if (get_val(XB1_LT) && event_active(XB1_A)) {
swing = TRUE;
set = FALSE;
delay = 900;
}
if (get_val(swing_y) > 20.0 && event_active(XB1_LT)) {
putt = TRUE;
ry_val = get_val(swing_y);
if (ry_val < 30.0) putt_val = 5.0;
if (ry_val > 30.0 && ry_val < 70.0) putt_val = 10.0;
if (ry_val > 70.0) putt_val = 20.0;
}
if (swing) {
if (!set) {
combo_run(c_SET);
}
else {
if (elapsed_time()) {
if (back) {
ry_val = ry_val +back_val;
if (ry_val > back_max_val) {
ry_val = back_max_val;
back = FALSE;
combo_run(c_DELAY_TOP);
}
}
if (down) {
ry_val =ry_val- down_val;
if (ry_val <- 100.0) {
ry_val = -100.0;
down = FALSE;
swing = FALSE;
back_max_val = 100.0;
combo_run(c_set_xy);
}
}
rx_count = rx_count+ 1.0;
if (rx_count >= 50.0) {
rx_val = rnd_x;
rx_count = 0.0;
}
}
set_val(swing_y, ry_val);
set_val(swing_x, rx_val);
}
}
if (putt) {
ry_val = ry_val-putt_val;
if (ry_val <= - 100.0) {
ry_val =- 100.0;
putt = FALSE;
combo_run(c_set_y);
}
set_val(swing_y, ry_val);
}
if (elapsed_time()) {
rnd_back =rnd_back+RND_MOD;
rnd_down =rnd_down+RND_MOD;
rnd_x = rnd_x+RND_MOD;
rnd_delay =rnd_delay +10;
if (rnd_back > BACK_SWING_UPPER) rnd_back = BACK_SWING_LOWER;
if (rnd_down > DOWN_SWING_UPPER) rnd_down = DOWN_SWING_LOWER;
if (rnd_x > X_VARIANCE) rnd_x = inv(X_VARIANCE);
if (rnd_delay > DELAY_TOP_UPPER) rnd_delay = DELAY_TOP_LOWER;
}
}
combo c_SET {
wait(1000);
rx_val = rnd_x;
back_val = rnd_back;
down_val = rnd_down;
if (RANDOM_DELAY_TOP) delay = rnd_delay;
set = TRUE;
back = TRUE;
}
combo c_DELAY_TOP {
wait(delay);
down = TRUE;
}
combo c_set_xy {
set_val(swing_y, ry_val);
set_val(swing_x, rx_val);
wait(40);
}
combo c_set_y {
set_val(swing_y, ry_val);
wait(40);
}
To change the 50ms to 5ms you can change 50 to 5 in the line 141:
- Code: Select all
if (rx_count >= 50.0) {
The problem seems to be in the Divine left and right with the numbers 22 and 24. I played around with them I could not dial it in as I don't know what they do but I was able to get a full swing
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Re: Using Titan 1 script on Titan 2
Which stick are you using for your swing ? Left or right ?
leave the left and right untouched.
Change this line if you are use swign with left:
to
Reading the comment in the script would have saved you a lot of trouble in case you are using the left one:
leave the left and right untouched.
Change this line if you are use swign with left:
- Code: Select all
#define SWING_STICK RIGHT
to
- Code: Select all
#define SWING_STICK LEFT
Reading the comment in the script would have saved you a lot of trouble in case you are using the left one:
v1.0
***IF YOU USE LEFT STICK TO SWING SET SWING_STICK = LEFT;***
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: script conversion
DontAtMe wrote:I am having a hard time believing you even tested any of the scripts made for you today.
I added decimals to the sticks in this script.
Please test the script before leaving anymore feedback .
Had a bit of a breakthrough the problem seems to lie in the sidings for left and right. When I change the number right to 12 and left the 24 I was able to to get a full swing however I don't know what these numbers do, hopefully you do, I'm sure you do. Maybe this will be helpful
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Re: Using Titan 1 script on Titan 2
Scachi wrote:Which stick are you using for your swing ? Left or right ?
leave the left and right untouched.
Change this line if you are use swign with left:
- Code: Select all
#define SWING_STICK RIGHT
to
- Code: Select all
#define SWING_STICK LEFT
Reading the comment in the script would have saved you a lot of trouble in case you are using the left one:i know that, iuse left stick so i changed in scriptv1.0
***IF YOU USE LEFT STICK TO SWING SET SWING_STICK = LEFT;***
the problem is in the timing
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Re: Using Titan 1 script on Titan 2
Have you tried if changing the values of "DELAY_TOP_LOWER" and/or "DELAY_TOP_UPPER" can fix the timing issue ?
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: script conversion
I figured it out. It was a speed of the lower and upper back swing I had to set it to like 1.5 instead of 36. I know us newbies can be frustrating but thanks for your help
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Re: Using Titan 1 script on Titan 2
Scachi wrote:Have you tried if changing the values of "DELAY_TOP_LOWER" and/or "DELAY_TOP_UPPER" can fix the timing issue ?
That's what I've done and it seem to be working
-
Flyers1987 - Sergeant Major
- Posts: 74
- Joined: Mon Apr 29, 2019 7:22 pm
Who is online
Users browsing this forum: No registered users and 55 guests