Wii remote disconnecting [PS3]

Wiimote tutorials, configurations and GPC scripts (FPS like in Nintendo Wii/WiiU).

Moderator: OFC-Giorgio

Wii remote disconnecting [PS3]

Postby NOBODY » Sun Mar 18, 2018 9:55 pm

I am using a modified variation of the Wii remote script created by OFC-Giorgio where the ADS/non ads sensitivity and dz_circle sensitivity settings were changed, the button mapping was changed (Wii remote inputs), and I think I may have changed some other stuff that likely had no effect on the script. The problem I have is that the Wii remote will disconnect sometimes while playing, and I believe it is a result of having Inframe Out, Inframe In, and 1ms Response turned on as I recall only having this problem when these were turned on. This also happens with just Inframe In and 1ms Response Time selected.

When it disconnects, whatever actions I was doing will continue to be done in the game. I believe the lights on the Wii remote also remain lit in the same manner as they were before disconnection. To re-connect, I have to pull the Titan One device completely out of the first USB slot on the PS3 (which causes the lights on the Wiiremote to turn off), plug it back in, reconnect the Wii remote by pressing 1 and 2 on the remote, then go and set the controller as Player 1 (as each time I reconnect after disconnecting I usually get set 1 player higher, player 2 after the first disconnect, player 3, etc.).

Also, sometimes when trying to connect the Wii remote to the Titan One with all three options selected, the Titan One would act like the Wii remote was connected, but the Wii remote's lights would keep flashing like it does when trying to connect it and it would act like it was not connected.

Some extra information that may be helpful:
1. I think sometimes when I didn't pull the T. One device out completely, before putting it back in, the lights on the Wii remote didn't turn off, or there was some problem connecting. I am not sure.
2. When when the Wii remote disconnected when I had the on-the-fly option running (Titan One plugged into PS3), when I selected on the computer screen to turn off the Wii remote, I got an error message that I recall said the device could not be reached (or something like that).

Any idea how to prevent it disconnecting? Could it be the Wii remote or the Bluetooth device plugged into the Titan One? The current Wii remote I am using I have actively used for 3 years 5 months.

The script I am using (the current ADS, non ADS, and dz_circle numbers I am using are different):

Code: Select all
 
 
define ADS_SENSITIVITY     = 6; // a lower value than the standard 50 value means more sensitive
define NON_ADS_SENSITIVITY = 12; // a lower value than the standard 50 value means more sensitive
 
define BRAVO_SETTING       = TRUE; // BRAVO settings
//define BRAVO_SETTING       = FALSE; // ALPHA settings
 
//define RUMBLE_ENABLED = TRUE; // vibrating enabled
define RUMBLE_ENABLED = FALSE// vibrating disabled
 
//define PS4_SHARE_SCREENSHOT = TRUE; // enable trigger PS4_SHARE by holding Left on the +Control Pad and the A button
// See also (4) below (to enable)
// dummy mapping for ps4 share button (remove // on next line to enable)
define PS4_SHARE_SCREENSHOT = FALSE// disable trigger PS4_SHARE by holding Left on the +Control Pad and the A button
 
 
define MOVE_LEFT_RIGHT_3STATES         = TRUE;   // stick is only left/neutral/right (horizontal)
//define MOVE_LEFT_RIGHT_3STATES       = FALSE;  // stick is -100% - 100% (horizontal)
define MOVE_FORWARD_BACKWARD_3STATES   = TRUE;   // stick is only up/neutral/down (vertical)
//define MOVE_FORWARD_BACKWARD_3STATES = FALSE;  // stick is -100% - 100% (vertical)
 
unmap ALL_REMAPS;
 
remap  WII_HOME      -> PS3_PS;       // home menu
remap  WII_MINUS     -> PS3_R2;       // lethal grenade
//remap  WII_MINUS    -> PS3_SQUARE;   // Bravo settings: reload
remap  WII_TWO       -> PS3_START;    // menu/map
remap  WII_ONE       -> PS3_SELECT;   // score
remap  WII_Z         -> PS3_L3;       // "use" action difference:
                                     // in wii: A:use/sprint   -:reload
                                     // in ps3: square=use/reload and L3=sprint
                                     // for now: assign the wii A button to sprinting
                                     //          and use the wii minus (reload) button also
                                     //          to use/take dropped care packages
remap  WII_B        -> PS3_R1;       // fire
remap  WII_RIGHT    -> PS3_CROSS;    // jump/mantle
remap  WII_C        -> PS3_SQUARE;       // reload
remap  WII_DOWN     -> PS3_TRIANGLE; // switch weapon
remap  WII_LEFT     -> PS3_CIRCLE;   // crouch/prone
remap  WII_A        -> PS3_L1;       // zoom/aiming down the sights (ADS)
remap  WII_NX       -> PS3_LX;       // move
remap  WII_NY       -> PS3_LY;       // move
remap  WII_IRX      -> PS3_RX;       // look
remap  WII_IRY      -> PS3_RY;       // look
 
 
unmap PS3_ACCX;
unmap PS3_ACCY;
unmap PS3_ACCZ;
 
// wiimote+nunchuk only buttons:
// WII_ONE/WII_TWO/WII_ACCX/WII_ACCY/WII_ACCZ/WII_ACCNX/WII_ACCNY/WII_ACCNZ/WII_IRX/WII_IRY
 
// Common identical (classic) controller (pro) and wiimote+nunchuk buttons:
// WII_HOME/WII_MINUS/WII_PLUS/WII_UP/WII_DOWN/WII_LEFT/WII_RIGHT/WII_A/WII_B
 
// Overlapping (classic) controller (pro) with wiimote+nunchuk:
// (classic) controller (pro) button WII_LT = nunchuk WII_C
// (classic) controller (pro) button WII_ZL = nunchuk WII_Z
// (classic) controller (pro) button WII_LX = nunchuk WII_NX
// (classic) controller (pro) button WII_LY = nunchuk WII_NY
 
// (classic) controller (pro) buttons that are not used in wiimote+nunchuk mode:
// WII_RX * used by (1)
// WII_RY * used by (1)
// WII_X  * used by (1)
// WII_Y  * used by (1)
// WII_RT * used by (2)
// WII_ZR * used by (3)
// used to bind them to PS3 buttons and force the wii buttons to trigger the PS3 button
// also available for binding (since not in use as wii input) are:
// WII_ACCX * used for detection of twisting wiimote
// WII_ACCY * used by (5)
// WII_ACCZ * used by (4)
// WII_ACCNX
// WII_ACCNY * used by nunchuc reload
// WII_ACCNZ
//
// WII_MINUS 
// by the setval commands in the script (see (1), (2), (3), (4) & (5)):
 
// (1)
// dummy mapping for killstreaks
//Macro by Wiimote Fuzzy. Hold Wii-Left and select with Nunchuk stick up, down, left or right.
//phantom buttons choosen by macro or shaking nunchuk
remap WII_X  -> PS3_LEFT// left
remap WII_RX -> PS3_RIGHT; // right
remap WII_Y  -> PS3_UP;    // up
remap WII_RY -> PS3_DOWN// down
//Macro by Wiimote Fuzzy. Hold Wii-Left and select with Nunchuk stick up, down, left or right.
 
// (2)
// dummy mapping for tactical grenade (instead of lethal grenade)
remap WII_RT -> PS3_L2;       
 
// (3)
// dummy mapping for ps4 touch
remap WII_ZR -> PS4_TOUCH;
 
// (4) see also above
// dummy mapping for ps4 share button (remove // on next line to enable)
//remap WII_ACCZ -> PS4_SHARE;
 
// (5)
// dummy mapping reloading (alpa settings: shake nunchuc / bravo settings: wii minus button
remap WII_ACCY -> PS3_R3;
 
// reloading by shaking nunchuk (like in cod alpha settings)
int KNIFE_VIA_NUNCHUK_SHAKE = 0;
 
// reloading via minus button (like in cod bravo settings)
int RELOAD_VIA_MINUS_BUTTON = 0;
 
// throwing tactical grenades via wii minus button (like in cod alpha settings)
int TACTICALS_VIA_PLUS_BUTTON = 0;
 
// Bravo settings  + while twisting the wiimote 90o is used for throwing tacticals (instead of lethal grenade)
int TACTICALS_VIA_PLUS_BUTTON_AND_WIIMOTE_TWISTED = 0;
 
//activate Specialist weapon or skill by double tapping the lethal grenade button
int BO3_SPECIALIST_WEAPON_VIA_DOUBLE_TAP_LETHAL_GRENADE_BUTTON = 0;
 
int LETHAL_GRENADE         = 0;
int TACTICAL_GRENADE       = 0;
int AIMING_DOWN_THE_SIGHTS = 0;
 
int ps4auth;
 
int TimerSpecialistWeaponOrSkip;
 
 
init
{
    ps4auth = ps4_authtimeout();
    my_init();
}
 
main
{
   if (BRAVO_SETTING) // BRAVO SETTINGS
   {
      KNIFE_VIA_NUNCHUK_SHAKE                                   = 1;
         RELOAD_VIA_MINUS_BUTTON                                    = 0;
      TACTICALS_VIA_PLUS_BUTTON                                 = 1;
      TACTICALS_VIA_PLUS_BUTTON_AND_WIIMOTE_TWISTED              = 0;
      BO3_SPECIALIST_WEAPON_VIA_DOUBLE_TAP_LETHAL_GRENADE_BUTTON = 0;
    }
    else // ALPHA SETTINGS
    {
      KNIFE_VIA_NUNCHUK_SHAKE                                   = 1;
      RELOAD_VIA_MINUS_BUTTON                                    = 0;
      TACTICALS_VIA_PLUS_BUTTON                                 = 1;
      TACTICALS_VIA_PLUS_BUTTON_AND_WIIMOTE_TWISTED              = 0;
      BO3_SPECIALIST_WEAPON_VIA_DOUBLE_TAP_LETHAL_GRENADE_BUTTON = 0;
    }
 
    if(ps4_authtimeout() > ps4auth)
    {
      my_init();
    }
    ps4auth = ps4_authtimeout();
 
    // Console support for PS3, PS4, XBOX360 and XBOX1
    if(get_console() && get_console() != PIO_PS3)
    {
      // PS4, XBOX360 and XBOX1
      swap(WII_B, WII_PLUS)// R1 <-> R2 swap buttons
      swap(WII_Z, WII_RT);    // L1 <-> L2 swap buttons
 
      LETHAL_GRENADE         = WII_B;
      TACTICAL_GRENADE       = WII_Z;
      AIMING_DOWN_THE_SIGHTS = WII_RT;
   }
   else
   {  // PS3
      LETHAL_GRENADE         = WII_PLUS;
      TACTICAL_GRENADE       = WII_RT;
      AIMING_DOWN_THE_SIGHTS = WII_Z;
   }
 
   if(get_console() == PIO_PS4)
   {
      swap(WII_TWO, WII_ZR); // SELECT <-> TOUCH CLICK
   }
 
   // PS3 RXY = Wiimote IRXY by Wiimot3 (Wiimote Fuzzy: adjusted mid point & removed stickize)
   set_val(WII_IRX, inv(get_val(WII_IRX)));
   // PS3 RXY = Wiimote IRXY by Wiimot3 (Wiimote Fuzzy: adjusted mid point & removed stickize)
 
   // use different sensitivity for ADS (aiming down the sights) and non ADS
   if (get_val(AIMING_DOWN_THE_SIGHTS))
   {
     //set_led(LED_3, 1); // indicate ADS
     sensitivity(WII_IRX , ADS_SENSITIVITY, 100);
     sensitivity(WII_IRY , ADS_SENSITIVITY, 100);
   }
   else
   {
     //set_led(LED_3, 0);
     sensitivity(WII_IRX , NON_ADS_SENSITIVITY, 100);
     sensitivity(WII_IRY , NON_ADS_SENSITIVITY, 100);
   }
 
   deadzone(WII_IRX, WII_IRY, DZ_CIRCLE, 38);
 
   // PS3 LXY = Nunchuk NXY by Wiimot3
   //sensitivity(WII_NX , NOT_USE, 150);
   //sensitivity(WII_NY , NOT_USE, 150);
   //deadzone(WII_NX, WII_NY, DZ_CIRCLE, 5);
   // PS3 LXY = Nunchuk NXY by Wiimot3
 
   // make nunchuk stick 3 states only (per direction):
   // - stick is only left/neutral/right (horizontal)
   if (MOVE_LEFT_RIGHT_3STATES)
   {
     if (get_val(WII_NX) < -20)     
     {   
        set_val(PS3_LX, -100); // left
     }
     else
     if (get_val(WII_NX) > 20)     
     {   
        set_val(PS3_LX, 100); // right
     }
     else
     {
        set_val(PS3_LX, 0)// neutral
     }
   }
 
   // - stick is only up/neutral/down (vertical)
   if (MOVE_FORWARD_BACKWARD_3STATES)
   {
     if (get_val(WII_NY) < -20)     
     {   
        set_val(PS3_LY, -100); // up
     }
     else
     if (get_val(WII_NY) > 20)
     {   
        set_val(PS3_LY, 100); // down
     }
     else
     {
        set_val(PS3_LY, 0);   // neutral
     }
   }
   //stickize(WII_IRX, WII_IRY, 129);
 
   //Macro by Wiimote Fuzzy. Hold Wii-Left and select with Nunchuk stick up, down, left or right.
   if(get_val(WII_UP) && get_val(WII_NX) < -90) set_val(WII_X100)// left
   if(get_val(WII_UP) && get_val(WII_NX)90) set_val(WII_RX, 100)// right
   if(get_val(WII_UP) && get_val(WII_NY) < -90) set_val(WII_Y100)// up
   if(get_val(WII_UP) && get_val(WII_NY)90) set_val(WII_RY, 100)// down
   //Macro by Wiimote Fuzzy. Hold Wii-Left and select with Nunchuk stick up, down, left or right.
 
 
   if (KNIFE_VIA_NUNCHUK_SHAKE == 1)
   {
      // Reloading by shaking nunchuk (like in cod alpha settings)
      set_val(WII_ACCY, 0);
      if (get_val(WII_ACCNX) > 15)
      {
        set_val(WII_ACCY, 100)//combo_run(ComboReload)
      }   
   }
 
   if (RELOAD_VIA_MINUS_BUTTON == 1)
   {
      // reloading via minus button (like in cod bravo settings)
      set_val(WII_ACCY, 0);
      if (get_val(WII_MINUS))
      {
        set_val(WII_ACCY, 100)//combo_run(ComboReload)
      }       
   }
 
   if (TACTICALS_VIA_PLUS_BUTTON == 1)
   {
      // throwing tactical grenades via wii plus button (like in cod alpha settings)
      if (get_val(WII_PLUS))
      {
        set_val(TACTICAL_GRENADE, 100); // throw tactical grenade
      }
   }   
 
   if (TACTICALS_VIA_PLUS_BUTTON_AND_WIIMOTE_TWISTED == 1)
   {
      // Bravo settings  + while twisting the wiimote 90o is used for throwing tacticals (instead of lethal grenade)
      if(get_val(LETHAL_GRENADE) && get_val(WII_ACCX) > 20)
      {
         set_val(LETHAL_GRENADE,     0); // stop/prevent throwing lethal
         set_val(TACTICAL_GRENADE, 100); // throw tactical grenade
      }   
   }
 
   if((PS4_SHARE_SCREENSHOT == TRUE) && (get_console() == PIO_PS4))
   {
     // Activate PS4 share button by holding Left on the +Control Pad (nc) and the wiimote A button
     set_val(WII_ACCZ, 0);
     if ((get_val(WII_LEFT)) && (get_val(WII_A)))
     {
       set_val(WII_LEFT,   0)
       set_val(WII_A,      0)
       set_val(WII_ACCZ, 100);
     }
   }
 
   if (BO3_SPECIALIST_WEAPON_VIA_DOUBLE_TAP_LETHAL_GRENADE_BUTTON == 1)
   {
      // Bravo settings (COD Black Ops 3: throwing both lethal and tactical to activate Specialist weapon or skill) 
      // this can not be done in bravo settings so to in bravo settings
      // activate Specialist weapon or skill by double tapping the lethal grenade button
      // TimerSpecialistWeaponOrSkip - Countdown function
      if (TimerSpecialistWeaponOrSkip > 0) { TimerSpecialistWeaponOrSkip = TimerSpecialistWeaponOrSkip - get_rtime(); }    // Reduce the timer value by the elapsed run time
      // Timer - Detection of the release
      if (event_release(LETHAL_GRENADE)) { TimerSpecialistWeaponOrSkip = 300; }   // 300 ms timer (starting the timer)
      // Timer - Detection of the press
      if (event_press(LETHAL_GRENADE) && TimerSpecialistWeaponOrSkip > 0)
      {
        TimerSpecialistWeaponOrSkip = 0;
        combo_run(ComboSpecialistWeaponOrSkip);
      } 
   }   
 
   // test for wiimote out of reach of sensorbar
   if(wiir_offscreen())
   {
     set_val(WII_IRX, 0); // prevent camera from spinning
     set_val(WII_IRY, 0); // prevent camera from spinning
     set_led(LED_4, 1);   // light led 4 to indicate sensorbar is out of sight
   }
   else
   {
     set_led(LED_4, 0);
   }
 
   // Empty battery indicator (led 3 on if battery level less or equal 20%)
   if(get_battery() <= 2)
   {
     set_led(LED_3, 1);
   }
   else
   {
     set_led(LED_3, 0);
   }
 
} // end of main() function
 
combo ComboSpecialistWeaponOrSkip
{
   set_val(LETHAL_GRENADE,   100);
   set_val(TACTICAL_GRENADE, 100);
   set_led(LED_3, 1);
   wait(500);
   set_val(LETHAL_GRENADE,   0);
   set_val(TACTICAL_GRENADE, 0);
   set_led(LED_3, 0);
}
 
combo ComboReload
{
   set_val(PS3_R3, 100);
   set_led(LED_3, 1);
   wait(500);
   set_val(PS3_R3, 0);
   set_led(LED_3, 0);
}
 
function my_init()
{
  if(!RUMBLE_ENABLED)
  {
    block_rumble();
  }
}
 
User avatar
NOBODY
Sergeant
Sergeant
 
Posts: 6
Joined: Sun Mar 18, 2018 6:32 pm

Re: Wii remote disconnecting [PS3]

Postby J2Kbr » Mon Mar 19, 2018 9:48 am

Welcome to our forums.

My first suggestion is disable all speedup settings and check if this solves the disconnections.

Secondly, check if the batteries of your Wiimote are good.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Wii remote disconnecting [PS3]

Postby NOBODY » Sun Apr 08, 2018 11:25 pm

Thanks. 2 weeks ago I tested the batteries in a battery tester and they turned out to be fine. I turned all the speedup settings off and played for around 4 hours (across different days) and had no disconnections. I also tried to change the sensitivity settings in the script to see if I could try to get the in-game cursor as sensitive as when I had the speedup settings on, and found that it wasn't possible.

Do you know of any possible things I could do to solve the problem with speedup settings causing the Wii remote to disconnect?
User avatar
NOBODY
Sergeant
Sergeant
 
Posts: 6
Joined: Sun Mar 18, 2018 6:32 pm

Re: Wii remote disconnecting [PS3]

Postby J2Kbr » Mon Apr 09, 2018 3:43 pm

You can safely enable the 1ms and IN-FRAME OUT speedup settings.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Wiimote, Nunchuk and Sensorbar

Who is online

Users browsing this forum: No registered users and 34 guests