Help Resolving a Error
5 posts
• Page 1 of 1
Help Resolving a Error
I was trying to convert a T1 script to the T2 an cant seem to figure out the one error after reading countless guides. If anyone could help it would be greatly appreciated!
else set_va l( TRACE_1, 0 )
GPC error: DD.gpc(28): syntax error, unexpected ELSE, expecting C 'else'.
else set_va l( TRACE_1, 0 )
GPC error: DD.gpc(28): syntax error, unexpected ELSE, expecting C 'else'.
-
BuM - Staff Sergeant
- Posts: 11
- Joined: Tue May 12, 2015 2:38 am
Re: Help Resolving a Error
Post the full script please..
Have you read this guide viewtopic.php?f=26&t=7591
Scroll a bit down to "Summary - How to convert T1/CM scripts:" there are the most common errors and their fixes listed.
Have you read this guide viewtopic.php?f=26&t=7591
Scroll a bit down to "Summary - How to convert T1/CM scripts:" there are the most common errors and their fixes listed.
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Help Resolving a Error
Yeah I have tried using it on multiple scripts
This one worked converting with no errors but does nothing in games. The previous one is here
- Code: Select all
#include <titanone.gph>
define A_Button = BUTTON_16;
define Right_Trigger = BUTTON_5;
define Left_Stick_Down = BUTTON_9;
define Right_Stick_Down = BUTTON_6;
define D_Pad_Up = BUTTON_10;
define D_Pad_Right = BUTTON_13;
define D_Pad_Down = BUTTON_11;
define D_Pad_Left = BUTTON_12;
define LeftStick_Left_Right = STICK_2_X;
/* Rumble packs */
define Rumble_Right = RUMBLE_B;
/* Notes:
- Right_Rumble value will continue to rise by 4 after Max_Rumble is hit(I found ending at 10 is perfect)
- 200 MS at 100 stick intensity moves over 1 tumbler
*/
int OpeningLock = FALSE;
int Max_Rumble = 75;
int TumblersToOpen;
main{
if(get_val(Left_Stick_Down) == 100 && event_press(Right_Stick_Down)){
combo_run(InitOpenScript);
}
if(OpeningLock && event_press(Right_Trigger)){
combo_run(ResetAll);
}
//Lock
if(OpeningLock){
set_val(Right_Trigger, 100);
}
if(get_rumble(Rumble_Right) > Max_Rumble && OpeningLock && TumblersToOpen > 0){
combo_run(OpenScript);
}
}
combo InitOpenScript
{
//Wait for lock to load then move to far left.
set_val(A_Button, 100);
wait(200);
set_val(A_Button, 0);
wait(750);
set_val(LeftStick_Left_Right, -100);
wait(400);
set_val(LeftStick_Left_Right, 0);
TumblersToOpen = 5;
OpeningLock = TRUE;
}
combo OpenScript
{
//Stop right trigger press and move to next.
set_val(Right_Trigger, 0);
set_val(LeftStick_Left_Right, 100);
wait(200);
set_val(LeftStick_Left_Right, 0);
TumblersToOpen = TumblersToOpen - 1;
if(TumblersToOpen <= 0){OpeningLock = FALSE;}
}
combo ResetAll
{
set_val(A_Button, 0);
set_val(Right_Trigger, 0);
set_val(Left_Stick_Down, 0);
set_val(Right_Stick_Down, 0);
OpeningLock = FALSE;
}
This one worked converting with no errors but does nothing in games. The previous one is here
- Code: Select all
#include <titanone.gph>
//here is a ESO auto fishing script......
//found from Excalibur, a member of the community in the device Forums
//modified by XIVILAI666 on 8-03-15
//I had to fix it up a little bit... it seems to work ok now...
//make sure that you have your PS4 ESO controller options set to alternate interact.
//8.07.15 I updated it to include TRACE of the RUMBLE_A for fine tuning, and I tweaked it a little more.
int vibrate_power = 1;
int rumble_time;
int time_to_catch = 2000; // time to start combo inms.
main {
if(get_rumble(RUMBLE_A) >= vibrate_power)
{rumble_time = rumble_time + get_rtime();}
else{rumble_time = 0;}
if(rumble_time > time_to_catch)
{combo_run(REEL_IN); rumble_time = 0;}
if( get_rumble(RUMBLE_A) )
set_val( TRACE_1, get_rumble(RUMBLE_A) )
else set_val( TRACE_1, 0 )
}
combo REEL_IN {
set_val(PS4_CROSS, 100);
wait(200);
set_val(PS4_CROSS, 0);
wait(3000);
set_val(PS4_CROSS, 100);
wait(200);
set_val(PS4_CROSS, 0);
wait(200);
}
-
BuM - Staff Sergeant
- Posts: 11
- Joined: Tue May 12, 2015 2:38 am
Re: Help Resolving a Error
The "previous one" is missing two ;
one at the end of line 27
one at the end of line 28
Have you run any official gamepacks for any games already ?
If they aren't working you may be missing some first time configuration settings as stated in the manual.
one at the end of line 27
one at the end of line 28
Have you run any official gamepacks for any games already ?
If they aren't working you may be missing some first time configuration settings as stated in the manual.
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Help Resolving a Error
Make sure your controller is set to work with USB cable instead of Bluetooth. (this is stated in the manual)
-
Derivates - Sergeant Major
- Posts: 75
- Joined: Sat Jan 19, 2019 6:15 pm
5 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: midg3t2 and 78 guests