XB1 to PS4 Crossover Skript with Touchpad Suppport

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

XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby Omnivirex » Thu Apr 19, 2018 9:17 pm

Hello,

til now i was playing with the basic xbox to ps4 fix sktipt .
My Setup hat the XBOX ONE Wireless Adapter attached and wireless XBOX ONE Elite Controller.

My first question is if its possible to run two Xbox Controllers at same time assigned to different players.
Right now when i try to connect my wirelss bluetooth XBOX ONE Controller they seem to be run through the same player Account.
After short period the device gets an overflow and disconnects.

The second question is if its possible for someone to provide a functioning crossover xbox1 classic/elite to ps4 skript whre it is possible to use the touchpad inputs through button combinations on xbox one controller.
The skrips i found in the databaser are not working or with big porblems like share option activating on itself.
When i try to lod in the skript into titan two i give like 14 errors.

I would also very apritiate to have a more userfriendly interface for reprogramming the buttuns or in my case especially the touch pad xb1 to ps4 like it was with the titan one or device max plus plugin.

I would be very thankful for your support and help.
User avatar
Omnivirex
First Sergeant
First Sergeant
 
Posts: 55
Joined: Thu Jan 11, 2018 9:35 pm

Re: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby J2Kbr » Fri Apr 20, 2018 10:22 am

Omnivirex wrote:My first question is if its possible to run two Xbox Controllers at same time assigned to different players.

Using a oneTitan Two this is not possible. The Titan Two output only as single player. You can have two Titan Twos in the same console for multiple players.

Omnivirex wrote:The second question is if its possible for someone to provide a functioning crossover xbox1 classic/elite to ps4 skript whre it is possible to use the touchpad inputs through button combinations on xbox one controller.

Please let us know the button combinations and the expected output you want. Thanks.
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: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby Omnivirex » Mon Apr 23, 2018 10:29 am

Thank you for the response.

After last Update im experiencing sometimes disconnects. Is there an issue with the poling rate ? now is is at 4ms like it should be for ps4 controller. Vibration is aktivatet. Could the vibration be an issue ?

Im using right now an XBOX Elite Controller with Wireless Adapter so the back paddels are porgrammed by the XBOX APP.

In older Versions of Skrips tehre was an Issue relatet to the paddels that accasiualy activatet the share button fuktion.
This has been fixed by a temporary skript.

I had a Setup in mind like this.

Dobble tap XBOX button > Sharebutton
Hold view button + X > Tochpad left side
Hold view button + A > Touchpad right side
Hod view button + B > Touchpad right side + left side
Tap view button > Tochpad click
Hold view button + Y > right Stick > Tochpad aktivation for freely move with right stick like with finger
Hold view button + Right stick right > Touchpad Swipe right
Hold view button + right stick left > Touchpad swipe left
Hold view button + right stick up > Touchpad swipe up
Hold view button + right stick down > Touchpad swipe down

A still the question.
Will be there in near future any kind of add on for convenieuntly remapping buttons or programming scrips like on titan one and device max plus ?

Thank you for the support.
User avatar
Omnivirex
First Sergeant
First Sergeant
 
Posts: 55
Joined: Thu Jan 11, 2018 9:35 pm

Re: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby J2Kbr » Tue Apr 24, 2018 8:38 am

Omnivirex wrote:After last Update im experiencing sometimes disconnects. Is there an issue with the poling rate ? now is is at 4ms like it should be for ps4 controller. Vibration is aktivatet. Could the vibration be an issue ? Im using right now an XBOX Elite Controller with Wireless Adapter so the back paddels are porgrammed by the XBOX APP.

this may be the case, please try disable the FFB on the port you have the Wireless Adapter.

The script below implements partially your request, please see the comments in the code. Test to check if what was implemented is working as you expect. With your confirmation we move to the remaining part.

Code: Select all
main {
    // Dobble tap XBOX button > Sharebutton
    if(event_active(BUTTON_1) && time_release(BUTTON_1) < 160) {
        combo_run(ShareButton);
    } inhibit(BUTTON_1, 160);
 
    // Tap view button > Tochpad click
    // THIS MAPPING IS DEFAULT, NO NEEDED CODE
 
    if(get_val(BUTTON_2)) {
        // Hold view button + X > Tochpad left side
        if(get_val(BUTTON_17)) {
            set_val(BUTTON_17, 0.0);
            set_val(POINT_1_X, -75.0);
            set_val(POINT_1_Y, 0.0);
            set_val(BUTTON_19, 100.0);
            set_val(BUTTON_2, 100.0);
        }
 
        // Hold view button + A > Touchpad right side
        if(get_val(BUTTON_16)) {
            set_val(BUTTON_16, 0.0);
            set_val(POINT_1_X, 75.0);
            set_val(POINT_1_Y, 0.0);
            set_val(BUTTON_19, 100.0);
            set_val(BUTTON_2, 100.0);
        }
 
        // Hold view button + B > Touchpad right side + left side
        if(get_val(BUTTON_15)) {
            set_val(BUTTON_15, 0.0);
            set_val(POINT_1_X, -75.0);
            set_val(POINT_1_Y, 0.0);
            set_val(BUTTON_19, 100.0);
            set_val(POINT_2_X, 75.0);
            set_val(POINT_2_Y, 0.0);
            set_val(BUTTON_20, 100.0);
            set_val(BUTTON_2, 100.0);
        }
    }
}
 
combo ShareButton {
    set_val(BUTTON_17, 100.0);
    wait(100);
}
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: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby DRoma82 » Tue Apr 24, 2018 2:11 pm

J2Kbr wrote:
Code: Select all
main {
    // Dobble tap XBOX button > Sharebutton
    if(event_active(BUTTON_1) && time_release(BUTTON_1) < 160) {
        combo_run(ShareButton);
    } inhibit(BUTTON_1, 160);
}
 
 


WOW!
So much easier to implement double click now, with time_release and inhibit!

But leaving the inhibit(BUTTON_1, 160); on the main, outside the IF, would not prevent it to be sent at all to the console?
A better implementation wouldn't be something like this:

Code: Select all
main {
    if(event_active(BUTTON_1))
    {
        if(time_release(BUTTON_1) < 160)
            combo_run(ShareButton);
        else
            inhibit(BUTTON_1, 160);
    }
}
User avatar
DRoma82
Sergeant Major
Sergeant Major
 
Posts: 68
Joined: Sun Apr 08, 2018 11:29 am

Re: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby Omnivirex » Tue Apr 24, 2018 7:08 pm

ank your the fast response.

I would like to test the script but right now the only one working i have ist the controller remapper preset from the source.
I dont know how to implement the remapper into script version , also i dont know how to implement parts of a script into a full functional script.

Image

Thats why i alwas ask for more convinient method to do such things. Like an addon for people like who dont have much time for programming and testing.
User avatar
Omnivirex
First Sergeant
First Sergeant
 
Posts: 55
Joined: Thu Jan 11, 2018 9:35 pm

Re: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby J2Kbr » Wed Apr 25, 2018 9:18 am

DRoma82 wrote:But leaving the inhibit(BUTTON_1, 160); on the main, outside the IF, would not prevent it to be sent at all to the console?

Actually it must be on main, inhibit() works exactly as the code below, but executed in a single VM instruction.
Code: Select all
void inhibit(uint8 io, uint32 ms) {
    if(is_active(io)) {
        if(time_active(io) <= ms) {
            set_val(io, 0.0);
        }
    }
}
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: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby DRoma82 » Wed Apr 25, 2018 11:24 am

Go it! The button will be inhibited for the first X ms everytime it's pressed!
Thanks, that's awesome. =)
User avatar
DRoma82
Sergeant Major
Sergeant Major
 
Posts: 68
Joined: Sun Apr 08, 2018 11:29 am

Re: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby Omnivirex » Mon Apr 30, 2018 9:20 am

Hello would it be possible for someone to share a fuctional script ?
I dont get it, always get an error on testing and cant cody its to device.
Thanl you
User avatar
Omnivirex
First Sergeant
First Sergeant
 
Posts: 55
Joined: Thu Jan 11, 2018 9:35 pm

Re: XB1 to PS4 Crossover Skript with Touchpad Suppport

Postby Omnivirex » Mon May 07, 2018 9:15 am

Hello i tested my new Setting with wireless Xbox Elite and Xbox 1 Controller one over wireless adapter and one over bluetooth adapter.
I shut off FFB over ps4 and set the the output latency to default. After this i didnt have any issues with any connenctions loses.
To this date i have the newest firmare version installed.
It seems that the share button issue with triggeret itslef is solved through one skript . by boonduckie
I only have poblems to implement your partial work ito it.
User avatar
Omnivirex
First Sergeant
First Sergeant
 
Posts: 55
Joined: Thu Jan 11, 2018 9:35 pm

Next

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 128 guests