SOLVED: troubles finishing the magic happen ps4 wiimote

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

Moderator: OFC-Giorgio

SOLVED: troubles finishing the magic happen ps4 wiimote

Postby jackson » Wed Nov 26, 2014 5:40 am

Can someone point me in the right direction " how to area" write this kinda script. I don't know where the: if,else,main,combos or { } sorta say or order they are supposed to be.I've remapped the controls of the PS4 for the WIIMote,I can play PS4 AW with my WIIMote. ads needs an adjustment and button combos. individually they work,the sensitivity or button combos or remapped buttons but when I try to combined them on one page I have an error(f7 compile button) here and there depends what I blindly do.
Thanks for any help
User avatar
jackson
Master Sergeant
Master Sergeant
 
Posts: 33
Joined: Sun Nov 23, 2014 1:13 am

Re: troubles finishing the magic happen ps4 wiimote

Postby OFC-Giorgio » Wed Nov 26, 2014 4:38 pm

Can you copy your script text and paste it here?
User avatar
OFC-Giorgio
Lieutenant
Lieutenant
 
Posts: 344
Joined: Mon Sep 15, 2014 4:26 pm

Re: troubles finishing the magic happen ps4 wiimote

Postby jackson » Thu Nov 27, 2014 5:16 pm

sure can .. i would like to add in a few thing you did on the ps3 led wii warnings and a few other things but this is kinda the super basic ...please forgive me if there is something super obvious ..this is the first time ever trying anything like this so just a few days of blindly adding script with out knowing why this or that is need and where.lol I work on cars and am really computer ignorant and scripting


Code: Select all
// 11/23/2014 9:12:08 PM
// Script generated by MaxRemapper Plugin
//----------------------------------------

main  {


if(get_val(WII_Z)) {
        sensitivity(WII_IRX, NOT_USE, 75);
        sensitivity(WII_IRY, NOT_USE, 75);
}
 {  deadzone(WII_IRX, WII_IRY, DZ_CIRCLE, 30);
}





unmap PS4_SHARE;
remap WII_ONE -> PS4_OPTIONS;     I still have to change the "one" for the multi usefor the scorestreaks combo
remap WII_LEFT -> PS4_R1;
remap WII_B -> PS4_R2;
remap WII_DOWN -> PS4_R3;
remap WII_UP -> PS4_L1;
remap WII_A -> PS4_L3;
remap WII_IRX -> PS4_RX;
remap WII_IRY -> PS4_RY;
remap WII_TWO -> PS4_OPTIONS;
remap WII_Z -> PS4_L2;
unmap PS4_DOWN;
unmap PS4_LEFT;
unmap PS4_RIGHT;
remap WII_RIGHT -> PS4_TRIANGLE;
remap WII_C -> PS4_CIRCLE;
remap WII_MINUS -> PS4_CROSS;
remap WII_PLUS -> PS4_SQUARE;
remap WII_NX -> PS4_LX;
remap WII_NY -> PS4_LY;
unmap PS4_ACCX;
unmap PS4_ACCY;
unmap PS4_ACCZ;
unmap PS4_TOUCH;

main {
    sensitivity(WII_IRX, NOT_USE, 170);
    deadzone(WII_IRX, WII_IRY, 0, 0);
    set_val(WII_IRX, inv(get_val(28)));
   
    sensitivity(WII_IRY, NOT_USE, 100);

}

 
 




   


    if(get_val(WII_ONE)) {
        if((get_val(WII_NY)) < -80) {
            combo_run(Tap_1);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NY)) > 80) {
            combo_run(Tap_2);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NX)) < -80) {
            combo_run(Tap_3);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NX)) > 80) {
            combo_run(Tap_4);
        }
    }
}

combo Tap_1 {
    set_val(PS4_UP, 0);
    wait(500);
    set_val(PS4_UP, 100);
    wait(40);
    set_val(PS4_UP, 100);
}

combo Tap_2 {
    set_val(PS4_DOWN, 0);
    wait(500);
    set_val(PS4_DOWN, 100);
    wait(40);
    set_val(PS4_DOWN, 100);
}

combo Tap_3 {
    set_val(PS4_LEFT, 0);
    wait(500);
    set_val(PS4_LEFT, 100);
    wait(40);
    set_val(PS4_LEFT, 100);
}

combo Tap_4 {
    set_val(PS4_RIGHT, 0);
    wait(500);
    set_val(PS4_RIGHT, 100);
    wait(40);
    set_val(PS4_RIGHT, 100);
}
User avatar
jackson
Master Sergeant
Master Sergeant
 
Posts: 33
Joined: Sun Nov 23, 2014 1:13 am

Re: troubles finishing the magic happen ps4 wiimote

Postby OFC-Giorgio » Fri Nov 28, 2014 2:32 pm

You have two main functions. You can have only one.
User avatar
OFC-Giorgio
Lieutenant
Lieutenant
 
Posts: 344
Joined: Mon Sep 15, 2014 4:26 pm

Re: troubles finishing the magic happen ps4 wiimote

Postby jackson » Sat Nov 29, 2014 12:40 am

cool. but it still gives me an error on "unmap" area..am I missing a { or } somewhere.
User avatar
jackson
Master Sergeant
Master Sergeant
 
Posts: 33
Joined: Sun Nov 23, 2014 1:13 am

Re: troubles finishing the magic happen ps4 wiimote

Postby J2Kbr » Sat Nov 29, 2014 12:49 am

this fix the problem? Semantically the code is now correct. I'm just not sure about the operation.

Code: Select all
// 11/23/2014 9:12:08 PM
// Script generated by MaxRemapper Plugin
//----------------------------------------

unmap PS4_SHARE;
remap WII_ONE -> PS4_OPTIONS;     //I still have to change the "one" for the multi usefor the scorestreaks combo
remap WII_LEFT -> PS4_R1;
remap WII_B -> PS4_R2;
remap WII_DOWN -> PS4_R3;
remap WII_UP -> PS4_L1;
remap WII_A -> PS4_L3;
remap WII_IRX -> PS4_RX;
remap WII_IRY -> PS4_RY;
remap WII_TWO -> PS4_OPTIONS;
remap WII_Z -> PS4_L2;
unmap PS4_DOWN;
unmap PS4_LEFT;
unmap PS4_RIGHT;
remap WII_RIGHT -> PS4_TRIANGLE;
remap WII_C -> PS4_CIRCLE;
remap WII_MINUS -> PS4_CROSS;
remap WII_PLUS -> PS4_SQUARE;
remap WII_NX -> PS4_LX;
remap WII_NY -> PS4_LY;
unmap PS4_ACCX;
unmap PS4_ACCY;
unmap PS4_ACCZ;
unmap PS4_TOUCH;


main {
    sensitivity(WII_IRX, NOT_USE, 170);
    deadzone(WII_IRX, WII_IRY, 0, 0);
    set_val(WII_IRX, inv(get_val(28)));
   
    sensitivity(WII_IRY, NOT_USE, 100);

    if(get_val(WII_ONE)) {
        if((get_val(WII_NY)) < -80) {
            combo_run(Tap_1);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NY)) > 80) {
            combo_run(Tap_2);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NX)) < -80) {
            combo_run(Tap_3);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NX)) > 80) {
            combo_run(Tap_4);
        }
    }
}

combo Tap_1 {
    set_val(PS4_UP, 0);
    wait(500);
    set_val(PS4_UP, 100);
    wait(40);
    set_val(PS4_UP, 100);
}

combo Tap_2 {
    set_val(PS4_DOWN, 0);
    wait(500);
    set_val(PS4_DOWN, 100);
    wait(40);
    set_val(PS4_DOWN, 100);
}

combo Tap_3 {
    set_val(PS4_LEFT, 0);
    wait(500);
    set_val(PS4_LEFT, 100);
    wait(40);
    set_val(PS4_LEFT, 100);
}

combo Tap_4 {
    set_val(PS4_RIGHT, 0);
    wait(500);
    set_val(PS4_RIGHT, 100);
    wait(40);
    set_val(PS4_RIGHT, 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: troubles finishing the magic happen ps4 wiimote

Postby jackson » Sat Nov 29, 2014 1:05 am

Yes it does. but am I missing the ads (wiiz)or is this the wrong way to add it?

if(get_val(WII_Z)) {
sensitivity(WII_IRX, NOT_USE, 75);
sensitivity(WII_IRY, NOT_USE, 75);
User avatar
jackson
Master Sergeant
Master Sergeant
 
Posts: 33
Joined: Sun Nov 23, 2014 1:13 am

Re: troubles finishing the magic happen ps4 wiimote

Postby J2Kbr » Sat Nov 29, 2014 1:16 am

ok, got it. You should insert it inside the main block, like this:

Code: Select all
// 11/23/2014 9:12:08 PM
// Script generated by MaxRemapper Plugin
//----------------------------------------

unmap PS4_SHARE;
remap WII_ONE -> PS4_OPTIONS;     //I still have to change the "one" for the multi usefor the scorestreaks combo
remap WII_LEFT -> PS4_R1;
remap WII_B -> PS4_R2;
remap WII_DOWN -> PS4_R3;
remap WII_UP -> PS4_L1;
remap WII_A -> PS4_L3;
remap WII_IRX -> PS4_RX;
remap WII_IRY -> PS4_RY;
remap WII_TWO -> PS4_OPTIONS;
remap WII_Z -> PS4_L2;
unmap PS4_DOWN;
unmap PS4_LEFT;
unmap PS4_RIGHT;
remap WII_RIGHT -> PS4_TRIANGLE;
remap WII_C -> PS4_CIRCLE;
remap WII_MINUS -> PS4_CROSS;
remap WII_PLUS -> PS4_SQUARE;
remap WII_NX -> PS4_LX;
remap WII_NY -> PS4_LY;
unmap PS4_ACCX;
unmap PS4_ACCY;
unmap PS4_ACCZ;
unmap PS4_TOUCH;


main {
    if(get_val(WII_Z)) {
        sensitivity(WII_IRX, NOT_USE, 75);
        sensitivity(WII_IRY, NOT_USE, 75);
    }

    sensitivity(WII_IRX, NOT_USE, 170);
    deadzone(WII_IRX, WII_IRY, 0, 0);
    set_val(WII_IRX, inv(get_val(28)));
    sensitivity(WII_IRY, NOT_USE, 100);

    if(get_val(WII_ONE)) {
        if((get_val(WII_NY)) < -80) {
            combo_run(Tap_1);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NY)) > 80) {
            combo_run(Tap_2);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NX)) < -80) {
            combo_run(Tap_3);
        }
    }
    if(get_val(WII_ONE)) {
        if((get_val(WII_NX)) > 80) {
            combo_run(Tap_4);
        }
    }
}

combo Tap_1 {
    set_val(PS4_UP, 0);
    wait(500);
    set_val(PS4_UP, 100);
    wait(40);
    set_val(PS4_UP, 100);
}

combo Tap_2 {
    set_val(PS4_DOWN, 0);
    wait(500);
    set_val(PS4_DOWN, 100);
    wait(40);
    set_val(PS4_DOWN, 100);
}

combo Tap_3 {
    set_val(PS4_LEFT, 0);
    wait(500);
    set_val(PS4_LEFT, 100);
    wait(40);
    set_val(PS4_LEFT, 100);
}

combo Tap_4 {
    set_val(PS4_RIGHT, 0);
    wait(500);
    set_val(PS4_RIGHT, 100);
    wait(40);
    set_val(PS4_RIGHT, 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: troubles finishing the magic happen ps4 wiimote

Postby jackson » Sat Nov 29, 2014 2:12 am

Ah thanks that works.I'll try it out latter on the system.I have to reread a few things its starting to click now.thanks again
User avatar
jackson
Master Sergeant
Master Sergeant
 
Posts: 33
Joined: Sun Nov 23, 2014 1:13 am


Return to Wiimote, Nunchuk and Sensorbar

Who is online

Users browsing this forum: No registered users and 46 guests