Brand new to forum. Actually brand new to Gamecube/Wii Emulation.
In an effort to get my Wiimote working with Wind Waker in Dolphin, I became increasingly frustrated with all the terrible Glovepie Wiimote Scripts out there. Most of them map the nunchuck's analog stick to WASD and ignore necessary controls such as the C-Stick (which is necessary in wind waker). Additionally, the motion controls are usually tacked on using the default wiimote1.swinghorizontal, completely ignoring any vertical or horizontal swings. Lastly, the Spin Attack mapped to the Nunchuk (as in Twilight Princess) is usually ignored too.
I have fixed all of these problems (mostly). The script requires PPJoy and Glovepie and a Wiimote connected via Bluetooth. The controls are mapped to the second PPJoy controller and it MUST have 17 buttons enabled (16 is default) and 2 analog stick enabled at least.
There are a few problems. The sword is mapped to a wiimote waggle. This means any menus that you need to quit using "B" require you to waggle. It a minor issue, easy to ignore. One of the hardest parts to code was the spin attack. I loved how easy it was to do in Twilight Princess and I set out to match it. It doesn't quite come out perfect. First of all, if your sword is not drawn, the spin attack will be unsuccessful. Secondly if you have the analog stick pointed down or at a hard left and waggle the nunchuck to execute a spin attack, it likely won't work. This is because it is not yet context sensitive (although I may add this in the future). Lastly the C-Stick is mapped to the Wiimote's D-pad when you are holding down C on the nunchuck. Sometimes I forget to hold C down when using the Wind Waker. You will too, but its not that big a deal.
I'd love thoughts/changes. It wasn't hard to code, especially since I have never used Dolphin or GlovePie before.
Heres the script, you can figure out the mappings yourself. Lastly, when you run it, make sure only the 1st LED is on. If there are more or less than just the 1st one, it isnt working and you need to stop it and run it again. This is an issue with Glovepie, not my code. Remember it must be PPJoy joystick 2 and have 17 buttons enabled.
In an effort to get my Wiimote working with Wind Waker in Dolphin, I became increasingly frustrated with all the terrible Glovepie Wiimote Scripts out there. Most of them map the nunchuck's analog stick to WASD and ignore necessary controls such as the C-Stick (which is necessary in wind waker). Additionally, the motion controls are usually tacked on using the default wiimote1.swinghorizontal, completely ignoring any vertical or horizontal swings. Lastly, the Spin Attack mapped to the Nunchuk (as in Twilight Princess) is usually ignored too.
I have fixed all of these problems (mostly). The script requires PPJoy and Glovepie and a Wiimote connected via Bluetooth. The controls are mapped to the second PPJoy controller and it MUST have 17 buttons enabled (16 is default) and 2 analog stick enabled at least.
There are a few problems. The sword is mapped to a wiimote waggle. This means any menus that you need to quit using "B" require you to waggle. It a minor issue, easy to ignore. One of the hardest parts to code was the spin attack. I loved how easy it was to do in Twilight Princess and I set out to match it. It doesn't quite come out perfect. First of all, if your sword is not drawn, the spin attack will be unsuccessful. Secondly if you have the analog stick pointed down or at a hard left and waggle the nunchuck to execute a spin attack, it likely won't work. This is because it is not yet context sensitive (although I may add this in the future). Lastly the C-Stick is mapped to the Wiimote's D-pad when you are holding down C on the nunchuck. Sometimes I forget to hold C down when using the Wind Waker. You will too, but its not that big a deal.
I'd love thoughts/changes. It wasn't hard to code, especially since I have never used Dolphin or GlovePie before.
Heres the script, you can figure out the mappings yourself. Lastly, when you run it, make sure only the 1st LED is on. If there are more or less than just the 1st one, it isnt working and you need to stop it and run it again. This is an issue with Glovepie, not my code. Remember it must be PPJoy joystick 2 and have 17 buttons enabled.
Quote:wiimote1.Led1=true
wiimote1.Led2=false
wiimote1.Led3=false
wiimote1.Led4=false
//movement
if (ppjoy2.Digital16 = false) then
ppjoy2.Analog0 = nunchuk1.JoyX
ppjoy2.Analog1 = nunchuk1.JoyY
endif
ppjoy2.Digital0 = wiimote1.A
ppjoy2.Digital1 = wiimote1.B
ppjoy2.Digital2 = wiimote1.Up and (not Nunchuk1.C)
ppjoy2.Digital3 = wiimote1.Right and (not Nunchuk1.C)
ppjoy2.Digital4 = wiimote1.Down and (not Nunchuk1.C)
ppjoy2.Digital5 = wiimote1.Left and (not Nunchuk1.C)
ppjoy2.Digital6 = wiimote1.Up and Nunchuk1.C
ppjoy2.Digital7 = wiimote1.Right and Nunchuk1.C
ppjoy2.Digital8 = wiimote1.Down and Nunchuk1.C
ppjoy2.Digital9 = wiimote1.Left and Nunchuk1.C
ppjoy2.Digital10 = wiimote1.Plus
ppjoy2.Digital11 = wiimote1.Minus
ppjoy2.Digital12 = wiimote1.One
ppjoy2.Digital13 = wiimote1.Two
ppjoy2.Digital14 = Nunchuk1.Z
//ppjoy2.Digital15 = wiimote1.SwingHorizontal or wiimote1.SwingVertical or wiimote1.Stabbing
//Rumble
if (wiimote1.RelAccX > 12) or (wiimote1.RelAccY > 15) or (wiimote1.RelAccZ > 15) then
if (ppjoy2.digital16 = false) then
wiimote1.Rumble = true
ppjoy2.Digital15 = true
wait 160 ms
wiimote1.Rumble = false
ppjoy2.Digital15 = false
endif
endif
//Spin Attack
if (wiimote1.Nunchuk.RawAccX > 18) or (wiimote1.Nunchuk.RawAccY > 18) or (wiimote1.Nunchuk.RawAccZ > 18) then
ppjoy2.digital15 = false
ppjoy2.digital16 = true
ppjoy2.analog1 = 0
ppjoy2.analog1 = 0
wait 25 ms
ppjoy2.analog1 = -1000
wait 10 ms
ppjoy2.analog0 = -1000
wait 10 ms
ppjoy2.analog1 = 0
wait 10 ms
ppjoy2.analog1 = 1000
wait 10 ms
ppjoy2.analog0 = 0
wait 10 ms
ppjoy2.analog0 = 1000
wait 10 ms
ppjoy2.analog1 = 0
wait 10 ms
ppjoy2.analog1 = -1000
wait 10 ms
ppjoy2.analog0 = 0
wait 10 ms
ppjoy2.analog1 = 0
ppjoy2.Digital15 = true
wiimote.Rumble = true
wait 160 ms
ppjoy2.Digital16 = false
wait 440 ms
wiimote.Rumble = false
ppjoy2.digital15 = false
endif