ps4 reauthenticate script
5 posts
• Page 1 of 1
ps4 reauthenticate script
Just bought and received my titan 1 and cant find any scripts just for ps4 authentication for the 10 min timer. Can someone please write me a script for manual reset for ps4-ps4 controller?
-
splendidkill4me - Private First Class
- Posts: 3
- Joined: Mon Jun 11, 2018 6:36 pm
Re: ps4 reauthenticate script
Here is the code to do that:
https://www.consoletuner.com/kbase/misc ... connection
https://www.consoletuner.com/kbase/misc ... connection
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3251
- Joined: Sun Dec 16, 2012 1:43 pm
Re: ps4 reauthenticate script
lol...sorry guys, whats wrong with this script and how do I fix it? it says there is a error on line 89, here is the error message
> 1: rb62.gpc* : C:\Users\kylel\Downloads\GtunerPro\rb62.gpc
> ERROR line 89: syntax error near unexpected token 'int'.
Build failed with 1 errors ...
> 1: rb62.gpc* : C:\Users\kylel\Downloads\GtunerPro\rb62.gpc
> ERROR line 89: syntax error near unexpected token 'int'.
Build failed with 1 errors ...
- Code: Select all
// GPC Online Library
// rainbow_six_siege.gpc
/**
* @author Gustavo2458
* @plataform PS4
* @since 3/30/2017
* @version 1.0
*/
/* led(0,0,0,0) = None;
* led(1,0,0,0) = Dark Blue;
* led(0,1,0,0) = Dark Red;
* led(0,0,1,0) = Dark Green;
* led(0,0,0,1) = Dark Pink;
* led(1,0,1,0) = Dark SkyBlue;
* led(0,1,1,0) = Dark Yellow;
* led(1,1,1,1) = Dark White;
* led(2,0,0,0) = Blue;
* led(0,2,0,0) = Red;
* led(0,0,2,0) = Green;
* led(0,0,0,2) = Pink;
* led(2,0,2,0) = SkyBlue;
* led(0,2,2,0) = Yellow;
* led(2,2,2,2) = White;
* led(3,0,0,0) = Light Blue;
* led(0,3,0,0) = Light Red;
* led(0,0,3,0) = Light Green;
* led(0,0,0,3) = Light Pink;
* led(3,0,3,0) = Light SkyBlue;
* led(0,3,3,0) = Light Yellow;
* led(3,3,3,3) = Light White;
*/
//DECLARATIONS------------------------------------------------------------------
define shoot = PS4_R2;
define aim = PS4_L2;
define cam = PS4_DOWN;
define up = PS4_UP;
//------------------------------------------------------------------------------
int key = FALSE;
//MAIN--------------------------------------------------------------------------
main{
if( get_val(up) && key == FALSE ){
key = TRUE;
}
if( get_val(up) && key == TRUE ){
key = FALSE;
}
if( key == TRUE ){
led(0,2,2,0);
} else{
led(2,0,0,0);
}
if( get_val(aim) && get_val(cam) ){
set_val(cam, 0);
}
if( get_val(PS4_L1) && get_ptime(PS4_L1) >= 3000 ){
set_val(PS4_L1, 0);
}
if( get_val(aim) && get_val(shoot) && key == TRUE ){
combo_run(RF);
} else if( key == FALSE ){
reset_leds();
}
}
//COMBOS------------------------------------------------------------------------
combo RF{// aka, Rapid Fire(to be used with semiauto's)
led(0,2,0,0);
set_val(shoot, 100);
wait(43);
led(0,2,0,0);
set_val(shoot, 0);
wait(22);
led(0,2,0,0);
set_val(shoot, 0);
}
//LEDS--------------------------------------------------------------------------
function led(a, b, c, d){
set_led(LED_1, a);
set_led(LED_2, b);
set_led(LED_3, c);
set_led(LED_4, d);
}
//------------------------------------------------------------------------------
[color=#BF0000]int last_ps4_auth_timeout;[/color]
main {
// Rumble the controller if the PS4 auth timeout gets below 5.
if(ps4_authtimeout() < 5) {
if(last_ps4_auth_timeout != ps4_authtimeout()) {
last_ps4_auth_timeout = ps4_authtimeout();
combo_restart(AuthRumbleFeedback);
}
}
// Press OPTIONS + PS to force reconnection and reset auth timeout.
if(get_val(PS4_OPTIONS) && event_press(PS4_PS)) {
output_reconnection();
}
}
combo AuthRumbleFeedback {
set_rumble(RUMBLE_A, 100);
set_rumble(RUMBLE_B, 100);
wait(200);
reset_rumble();
}
-
splendidkill4me - Private First Class
- Posts: 3
- Joined: Mon Jun 11, 2018 6:36 pm
Re: ps4 reauthenticate script
Yes it's not allowed to have 2 "main" sections with the Titan One, here is your script fixed:
- Code: Select all
// GPC Online Library
// rainbow_six_siege.gpc
/**
* @author Gustavo2458
* @plataform PS4
* @since 3/30/2017
* @version 1.0
*/
/* led(0,0,0,0) = None;
* led(1,0,0,0) = Dark Blue;
* led(0,1,0,0) = Dark Red;
* led(0,0,1,0) = Dark Green;
* led(0,0,0,1) = Dark Pink;
* led(1,0,1,0) = Dark SkyBlue;
* led(0,1,1,0) = Dark Yellow;
* led(1,1,1,1) = Dark White;
* led(2,0,0,0) = Blue;
* led(0,2,0,0) = Red;
* led(0,0,2,0) = Green;
* led(0,0,0,2) = Pink;
* led(2,0,2,0) = SkyBlue;
* led(0,2,2,0) = Yellow;
* led(2,2,2,2) = White;
* led(3,0,0,0) = Light Blue;
* led(0,3,0,0) = Light Red;
* led(0,0,3,0) = Light Green;
* led(0,0,0,3) = Light Pink;
* led(3,0,3,0) = Light SkyBlue;
* led(0,3,3,0) = Light Yellow;
* led(3,3,3,3) = Light White;
*/
//DECLARATIONS------------------------------------------------------------------
define shoot = PS4_R2;
define aim = PS4_L2;
define cam = PS4_DOWN;
define up = PS4_UP;
//------------------------------------------------------------------------------
int key = FALSE;
int last_ps4_auth_timeout;
//MAIN--------------------------------------------------------------------------
main{
// Rumble the controller if the PS4 auth timeout gets below 5.
if(ps4_authtimeout() < 5) {
if(last_ps4_auth_timeout != ps4_authtimeout()) {
last_ps4_auth_timeout = ps4_authtimeout();
combo_restart(AuthRumbleFeedback);
}
}
// Press OPTIONS + PS to force reconnection and reset auth timeout.
if(get_val(PS4_OPTIONS) && event_press(PS4_PS)) {
output_reconnection();
}
if( get_val(up) && key == FALSE ){
key = TRUE;
}
if( get_val(up) && key == TRUE ){
key = FALSE;
}
if( key == TRUE ){
led(0,2,2,0);
} else{
led(2,0,0,0);
}
if( get_val(aim) && get_val(cam) ){
set_val(cam, 0);
}
if( get_val(PS4_L1) && get_ptime(PS4_L1) >= 3000 ){
set_val(PS4_L1, 0);
}
if( get_val(aim) && get_val(shoot) && key == TRUE ){
combo_run(RF);
} else if( key == FALSE ){
reset_leds();
}
}
//COMBOS------------------------------------------------------------------------
combo RF{// aka, Rapid Fire(to be used with semiauto's)
led(0,2,0,0);
set_val(shoot, 100);
wait(43);
led(0,2,0,0);
set_val(shoot, 0);
wait(22);
led(0,2,0,0);
set_val(shoot, 0);
}
//------------------------------------------------------------------------------
combo AuthRumbleFeedback {
set_rumble(RUMBLE_A, 100);
set_rumble(RUMBLE_B, 100);
wait(200);
reset_rumble();
}
//LEDS--------------------------------------------------------------------------
function led(a, b, c, d){
set_led(LED_1, a);
set_led(LED_2, b);
set_led(LED_3, c);
set_led(LED_4, d);
}
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3251
- Joined: Sun Dec 16, 2012 1:43 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: Lkidd24 and 44 guests