Splatoon 2 + Titan two

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

Re: Splatoon 2 + Titan two

Postby J2Kbr » Thu Mar 15, 2018 10:10 am

I will try get this done within the upcoming days. Just need finish some tasks I am currently working on.
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 samchan119 » Thu Mar 15, 2018 11:51 am

J2Kbr wrote:I will try get this done within the upcoming days. Just need finish some tasks I am currently working on.

thanks J2!
User avatar
samchan119
First Sergeant
First Sergeant
 
Posts: 58
Joined: Mon Jun 29, 2015 12:38 am

Re: Splatoon 2 + Titan two

Postby osbor » Thu Mar 15, 2018 3:52 pm

J2Kbr wrote:I will try get this done within the upcoming days. Just need finish some tasks I am currently working on.


Hey take your time man, no need to rush!
User avatar
osbor
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Sun Oct 08, 2017 12:19 am

Re: Splatoon 2 + Titan two

Postby samchan119 » Mon Mar 19, 2018 10:30 am

After plugging in power cable to titan two, i notice that the mouse translation becomes more smooth and responsive.
And making the deadzone with smaller value will definitely increase micro movement .
Thats worth to try.
I have increased my kda up to 10 every battle
User avatar
samchan119
First Sergeant
First Sergeant
 
Posts: 58
Joined: Mon Jun 29, 2015 12:38 am

Re: Splatoon 2 + Titan two

Postby J2Kbr » Mon Mar 19, 2018 10:58 am

For the mouse Y to motion Y translation I am still working on it, but this is what I have so far.

Code: Select all
#pragma METAINFO("Splatoon 2 Mouse Motion", 1, 0, "J2Kbr")
 
#include <remapper.gph>
#include <keyboard.gph>
#include <mouse.gph>
 
fix32 mmy;
bool toggle = TRUE;
 
init {
    remapper_disable(ACCEL_1_X);
    remapper_disable(ACCEL_1_Y);
    remapper_disable(ACCEL_1_Z);
    remapper_swap(BUTTON_6, BUTTON_9);
    remapper_swap(BUTTON_15, BUTTON_16);
    remapper_mask(RMP_BT_A);
 
    const uint8 kmap[] = {
        KEY_P,              BUTTON_21,
        KEY_OPENBRACKET,    BUTTON_14,
        KEY_CLOSEBRACKET,   BUTTON_17,
        KEY_BACKSLASH,      BUTTON_3,
    }; keymapping(kmap);
 
    const uint8 mmap[] = {
        MOUSE_X,            STICK_1_X,
        MWHEEL_FORWARD,     BUTTON_15,
        MBUTTON_1,          BUTTON_5,
        MBUTTON_2,          BUTTON_16,
        MBUTTON_3,          BUTTON_9,
        MBUTTON_4,          BUTTON_2,
        MBUTTON_5,          BUTTON_4,
    }; mousemapping(mmap);
 
    const uint8 mxyc[] = {
        0xFF, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x13, 0x01, 0x1A, 0xE1, 0x20, 0xEB, 0x26, 0x03, 0x2A,
        0x80, 0x2E, 0x8E, 0x32, 0x49, 0x35, 0xC2, 0x39, 0x05, 0x3C, 0x1A, 0x3F,
        0x09, 0x41, 0xD7, 0x44, 0x87, 0x47, 0x1D, 0x49, 0x9C, 0x4C, 0x06, 0x4E,
        0x5D, 0x50, 0xA3, 0x52, 0xD9, 0x55, 0x00
    }; mxyconverter(mxyc);
 
    combo_run(ResetYMM);
}
 
main {
    if(event_release(BUTTON_21) && time_active(BUTTON_21) < 200) {
        toggle = !toggle;
        led_feedback();
    }
    if(toggle) {
        if(get_val(BUTTON_5)) {
            combo_run(Rapidfire);
        }
    }
    if(get_val(BUTTON_21)) {
        set_val(BUTTON_5, 100.0);
    }
 
    if(mouse_status(MREPORT_UPDATED)) {
        mmy += (fix32) mouse_status(MOUSE_Y) / 300.0;
        mmy = clamp(mmy, -15.0, 15.0);
    }
 
    set_val(STICK_1_Y, 0.0);
    set_val(ACCEL_1_X, 0.0);
    set_val(ACCEL_1_Y, mmy);
    set_val(ACCEL_1_Z, -25.0);
    set_val(GYRO_1_X, 0.0);
    set_val(GYRO_1_Y, 0.0);
    set_val(GYRO_1_Z, 0.0);
}
 
combo ResetYMM {
    set_val(ACCEL_1_Y, 0.0);
    wait(40);
    set_val(ACCEL_1_Y, 0.0);
    set_val(BUTTON_14, 100.0);
    mmy = 0.0;
}
 
combo Rapidfire {
    set_val(BUTTON_5, 100.0);
    wait(20);
    set_val(BUTTON_5, 0.0);
    wait(9);
    set_val(BUTTON_5, 0.0);
}
 
void led_feedback() {
    if(toggle) {
        led_set(LED_3, -1.0, 0);
    } else led_reset();
}
 


Using the motion for the Y axis is definitively better for micro-movements, but fells to have too much inertia for fast movements.
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 samchan119 » Mon Mar 19, 2018 11:44 am

wooo..........its working,
the script uses right stick to control X movement, and motion control for Y movement,
its nice, but the fast movement will generate great amount of inertia, dont know why
User avatar
samchan119
First Sergeant
First Sergeant
 
Posts: 58
Joined: Mon Jun 29, 2015 12:38 am

Re: Splatoon 2 + Titan two

Postby samchan119 » Mon Mar 19, 2018 12:00 pm

its weird, when i use with input translator of splatoon, the script stop working,
while without it, the script is working.
User avatar
samchan119
First Sergeant
First Sergeant
 
Posts: 58
Joined: Mon Jun 29, 2015 12:38 am

Re: Splatoon 2 + Titan two

Postby sky418 » Mon Mar 19, 2018 12:57 pm

This string
Code: Select all
#include <remapper.gph>

So, it won't work with input translator. It's "Input translator itself".
What do you want from input translator? I'll try to help if i can.
Last edited by sky418 on Mon Mar 19, 2018 1:53 pm, edited 1 time in total.
User avatar
sky418
Command Sergeant Major
Command Sergeant Major
 
Posts: 124
Joined: Fri Nov 25, 2016 4:28 am

Re: Splatoon 2 + Titan two

Postby osbor » Mon Mar 19, 2018 1:26 pm

samchan119 wrote:After plugging in power cable to titan two, i notice that the mouse translation becomes more smooth and responsive.


that's weird, i didn't think the T2 would get better while on external power, does it run in an underclocked state without an external power source?
User avatar
osbor
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Sun Oct 08, 2017 12:19 am

Re: Splatoon 2 + Titan two

Postby osbor » Tue Mar 20, 2018 4:09 am

also, if the Y motion works out with gyro, might as well duplicate it for X, gyro as an input method for splatoon was just given a lot more thought by the developers
User avatar
osbor
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Sun Oct 08, 2017 12:19 am

PreviousNext

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 88 guests