SOLVED: troubles finishing the magic happen ps4 wiimote
Moderator: OFC-Giorgio
9 posts
• Page 1 of 1
SOLVED: troubles finishing the magic happen ps4 wiimote
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
Thanks for any help
-
jackson - Master Sergeant
- Posts: 33
- Joined: Sun Nov 23, 2014 1:13 am
Re: troubles finishing the magic happen ps4 wiimote
Can you copy your script text and paste it here?
-
OFC-Giorgio - Lieutenant
- Posts: 344
- Joined: Mon Sep 15, 2014 4:26 pm
Re: troubles finishing the magic happen ps4 wiimote
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);
}
-
jackson - Master Sergeant
- Posts: 33
- Joined: Sun Nov 23, 2014 1:13 am
Re: troubles finishing the magic happen ps4 wiimote
You have two main functions. You can have only one.
-
OFC-Giorgio - Lieutenant
- Posts: 344
- Joined: Mon Sep 15, 2014 4:26 pm
Re: troubles finishing the magic happen ps4 wiimote
cool. but it still gives me an error on "unmap" area..am I missing a { or } somewhere.
-
jackson - Master Sergeant
- Posts: 33
- Joined: Sun Nov 23, 2014 1:13 am
Re: troubles finishing the magic happen ps4 wiimote
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: troubles finishing the magic happen ps4 wiimote
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);
if(get_val(WII_Z)) {
sensitivity(WII_IRX, NOT_USE, 75);
sensitivity(WII_IRY, NOT_USE, 75);
-
jackson - Master Sergeant
- Posts: 33
- Joined: Sun Nov 23, 2014 1:13 am
Re: troubles finishing the magic happen ps4 wiimote
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: troubles finishing the magic happen ps4 wiimote
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
-
jackson - Master Sergeant
- Posts: 33
- Joined: Sun Nov 23, 2014 1:13 am
9 posts
• Page 1 of 1
Return to Wiimote, Nunchuk and Sensorbar
Who is online
Users browsing this forum: No registered users and 38 guests