Splatoon 2 + Titan two

GPC2 script programming for Titan Two. Code examples, questions, requests.

Re: Splatoon 2 + Titan two

Postby osbor » Sun Mar 17, 2019 3:27 am

oh, has mouse translation evolved into its final form of really good and smooth inputs?
now i want to see some gameplay footage from crazycoder
User avatar
osbor
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Sun Oct 08, 2017 12:19 am

Re: Splatoon 2 + Titan two

Postby yza » Thu Apr 04, 2019 12:18 am

hi ^_^/ whats it like using the titan two on splatoon 2 as of right now? is it worth buying a titan two for yet?
User avatar
yza
Private
Private
 
Posts: 1
Joined: Thu Apr 04, 2019 12:13 am

Re: Splatoon 2 + Titan two

Postby nspl » Mon Apr 15, 2019 12:06 pm

Code: Select all
 
#include <switch.gph>
#include <mouse.gph>
 
#define MAXGX 45.0
#define DEFAULT_MMY 0.0
#define MAXR 212.5
 
fix32 mmy;
bool y_toggle = FALSE;
// GIVMXYF:FF0014008000000002000200FC00050A0F14191E23282D32373C41464B50555A5F64
const uint8 mxyc[] = { 0xFF, 0x00, 0x14, 0x00, 0x80, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0xFC, 0x00, 0x05, 0x0A, 0x0F, 0x14, 0x19, 0x1E, 0x23, 0x28, 0x2D, 0x32, 0x37, 0x3C, 0x41, 0x46, 0x4B, 0x50, 0x55, 0x5A, 0x5F, 0x64 };
 
init {
    mxyconverter(mxyc);
    mmy = DEFAULT_MMY;
}
 
 
main {
    set_val(SWITCH_ACCZ,0.0 );
    set_val(SWITCH_ACCY,0.0 );
    set_val(SWITCH_GYROZ, 0.0 );
    set_val(SWITCH_GYROY, 0.0 );
    set_val(SWITCH_GYROX, 0.0 );
    set_val(SWITCH_ACCX, 0.0);
    gyro_aim();
}
 
 
void gyro_aim(){
    if(event_active(SWITCH_Y)) {
        y_toggle = !y_toggle;
        mmy = DEFAULT_MMY;
    }
    if(y_toggle) {
        set_val(SWITCH_Y, 100.0);
    }
 
    fix32 my = rad2deg(get_val(SWITCH_RY) / 200.0 * PI) / MAXGX;
    mmy = clamp( mmy + my , -MAXGX , MAXGX );
    set_val(SWITCH_ACCY, mmy );
    if( abs(mmy) != MAXGX ){
        set_val(SWITCH_GYROX, my * MAXR );
    }
    else {
        set_val(GYRO_1_X,0.0);
    }   
 
    set_val(SWITCH_ACCZ, abs(get_val(SWITCH_ACCY)) - 25.0  );
    fix32 gyroz = rad2deg(get_val(SWITCH_RX) / 200.0 * PI) / 45.0 * MAXR;
    set_val(SWITCH_GYROZ, gyroz * -get_val(SWITCH_ACCZ) / 25.0 );
    set_val(SWITCH_GYROY, gyroz * -get_val(SWITCH_ACCY) / 25.0 );
    set_val(SWITCH_ACCX, 0.0 );
    set_val(SWITCH_RY, 0.0);
    set_val(SWITCH_RX, 0.0);
}
 


fix
User avatar
nspl
Corporal
Corporal
 
Posts: 5
Joined: Wed May 09, 2018 2:58 pm

Re: Splatoon 2 + Titan two

Postby sick » Tue May 28, 2019 3:34 am

hey im trying to use this script, but i'm not sure how to add the above fix into the script. i dont know much about scripting sry so is anyone knows a way to add the fix into gtuner without getting these errors let me know:
GPC error: Splatoon2.gpc(239): Invalid symbol redefinition 'mmy'
GPC error: Splatoon2.gpc(240): Invalid symbol redefinition 'y_toggle'
GPC error: Splatoon2.gpc(242): Invalid symbol redefinition 'mxyc'
GPC error: Splatoon2.gpc(261): Invalid symbol redefinition 'gyro_aim'
User avatar
sick
Corporal
Corporal
 
Posts: 4
Joined: Thu Feb 07, 2019 4:09 pm

Re: Splatoon 2 + Titan two

Postby J2Kbr » Fri May 31, 2019 7:32 am

The latest posted version of the script is compiling without errors:

viewtopic.php?p=83386#p83386
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: Splatoon 2 + Titan two

Postby richardo99110 » Mon Feb 14, 2022 12:00 pm

Hi all,
I am completely new to this and facing an issue.

I got Titan two New model, and I am getting this weird issue where when it is plugged to my switch, the camera constantly spins to the left and my character also constantly moving to the left non stop. I am able to perform other actions like jumping, shooting etc. that paired via input validator.

I am using Gamesir vx2 as my desired input.

Could somebody help what is causing the issue and how to resolve it?
User avatar
richardo99110
Private
Private
 
Posts: 1
Joined: Mon Feb 14, 2022 11:17 am

Re: Splatoon 2 + Titan two

Postby cheddartime » Tue May 03, 2022 5:51 pm

I know this is old, but just want to say these settings feel great - using 6200 DPI (might try higher later)

nspl wrote:
Code: Select all
 
#include <switch.gph>
#include <mouse.gph>
 
#define MAXGX 45.0
#define DEFAULT_MMY 0.0
#define MAXR 212.5
 
fix32 mmy;
bool y_toggle = FALSE;
// GIVMXYF:FF0014008000000002000200FC00050A0F14191E23282D32373C41464B50555A5F64
const uint8 mxyc[] = { 0xFF, 0x00, 0x14, 0x00, 0x80, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0xFC, 0x00, 0x05, 0x0A, 0x0F, 0x14, 0x19, 0x1E, 0x23, 0x28, 0x2D, 0x32, 0x37, 0x3C, 0x41, 0x46, 0x4B, 0x50, 0x55, 0x5A, 0x5F, 0x64 };
 
init {
    mxyconverter(mxyc);
    mmy = DEFAULT_MMY;
}
 
 
main {
    set_val(SWITCH_ACCZ,0.0 );
    set_val(SWITCH_ACCY,0.0 );
    set_val(SWITCH_GYROZ, 0.0 );
    set_val(SWITCH_GYROY, 0.0 );
    set_val(SWITCH_GYROX, 0.0 );
    set_val(SWITCH_ACCX, 0.0);
    gyro_aim();
}
 
 
void gyro_aim(){
    if(event_active(SWITCH_Y)) {
        y_toggle = !y_toggle;
        mmy = DEFAULT_MMY;
    }
    if(y_toggle) {
        set_val(SWITCH_Y, 100.0);
    }
 
    fix32 my = rad2deg(get_val(SWITCH_RY) / 200.0 * PI) / MAXGX;
    mmy = clamp( mmy + my , -MAXGX , MAXGX );
    set_val(SWITCH_ACCY, mmy );
    if( abs(mmy) != MAXGX ){
        set_val(SWITCH_GYROX, my * MAXR );
    }
    else {
        set_val(GYRO_1_X,0.0);
    }   
 
    set_val(SWITCH_ACCZ, abs(get_val(SWITCH_ACCY)) - 25.0  );
    fix32 gyroz = rad2deg(get_val(SWITCH_RX) / 200.0 * PI) / 45.0 * MAXR;
    set_val(SWITCH_GYROZ, gyroz * -get_val(SWITCH_ACCZ) / 25.0 );
    set_val(SWITCH_GYROY, gyroz * -get_val(SWITCH_ACCY) / 25.0 );
    set_val(SWITCH_ACCX, 0.0 );
    set_val(SWITCH_RY, 0.0);
    set_val(SWITCH_RX, 0.0);
}
 


fix
User avatar
cheddartime
Private
Private
 
Posts: 1
Joined: Tue May 03, 2022 5:50 pm

Re: Splatoon 2 + Titan two

Postby lildevilhorns » Fri Jul 01, 2022 4:25 pm

Hey all, I tried using this script alongside all the modifications people have made, but I noticed the motion controls drag/drift when moving the mouse up and down. Like, when you move it up it keeps going up even if you stop moving the mouse. Any fix for this?
User avatar
lildevilhorns
Private First Class
Private First Class
 
Posts: 3
Joined: Fri Jul 01, 2022 4:22 pm

Re: Splatoon 2 + Titan two

Postby osbor » Tue Sep 27, 2022 10:59 pm

Bringing it all back around, looks like this Bocian fellow actually pulled it off, well working gyro mouse inputs in splat 2

https://youtu.be/h-j140DV7Sk

Also a Twitter thread on it

https://twitter.com/MercsGIJO/status/14 ... aWsVb0ewog
User avatar
osbor
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Sun Oct 08, 2017 12:19 am

Re: Splatoon 2 + Titan two

Postby LJ-9 » Tue Oct 04, 2022 4:55 pm

would a conversion to the titan one be possible, since the titan two is impossible to find?
User avatar
LJ-9
Private
Private
 
Posts: 1
Joined: Tue Oct 04, 2022 4:53 pm

PreviousNext

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 112 guests