(If you already know how to play PC games using the Wiimote, the GlovePIE script is in a code block further down.)
To do this, you need:
-A PC with The Universal and at least 1 USB port
-A Wii Remote
-A Nunchuk
-A BlueSoleil-compatible Bluetooth dongle
-BlueSoleil (It should come with the dongle. If not, http://www.bluesoleil.com/download/index.asp )
---
(0. Connect the Bluetooth dongle and get your Wiimote. Just in case you didn't think of that yourself.)
1. Install BlueSoleil (if you haven't already) and GlovePIE, which can be downloaded here.
2. Open BlueSoleil, and click the orange sphere in the center of the window.
3. Right after clicking the orange sphere, press '1' and '2' on your Wiimote at the same time.
4. BlueSoleil should say it's searching for devices, and finds some device. Its name consists entirely of numbers, I think. Anyways, wait until it's finished doing that.
5. Right-click the new device and click Refresh Services. If your Wiimote's LEDs stop flashing, press '1' and '2' again.
6. It should recognize the Wiimote as Nintendo RVL-CNT-01. Windows might pop up to quickly install something, or it might not. Anyways, wait until it's done again.
7. You'll have noticed that the mouse icon at the top became yellow. Click it.
8. It should now be green with a box around it. Open GlovePIE and copy the following script:
Code: Select all
//The Universal Wiimote Gloviepie Script With Very Long Name
//v1.00
//by VDZ
if(var.mode = 0) //Regular mode
Wiimote.Leds = 1
debug = "Regular mode!"
//debug = var.state + ", " + var.state2 + ": " + Wiimote.Nunchuk.JoyX + " , " + Wiimote.Nunchuk.JoyY + "
//-----Vertical stuff----------------
if (Wiimote1.Nunchuk.JoyY < -0.80)
key.Shift = 1
key.Up = 1
var.state = "Shift-up"
endif
if ((-0.80 < Wiimote1.Nunchuk.JoyY < -0.35))
key.Shift = 0
key.Up = 1
var.state = "Up"
endif
if (-0.35 < Wiimote1.Nunchuk.JoyY < 0.35)
key.Up = 0
key.Down = 0
key.Shift = 0
var.state = "None"
endif
if ((0.80 > Wiimote1.Nunchuk.JoyY > 0.35))
key.Down = 1
key.Shift = 0
var.state = "Down"
endif
if (Wiimote1.Nunchuk.JoyY > 0.80)
key.Shift = 1
key.Down = 1
var.state = "Shift-Down"
endif
//----Horizontal stuff------
if (Wiimote1.Nunchuk.JoyX < -0.80)
key.Shift = 1
key.Left = 1
var.state2 = "Shift-left"
endif
if ((-0.80 < Wiimote1.Nunchuk.JoyX < -0.35))
key.Shift = 0
key.Left = 1
var.state2 = "Left"
endif
if (-0.35 < Wiimote1.Nunchuk.JoyX < 0.35)
key.Shift = 0
key.Left = 0
key.Right = 0
var.state2 = "None"
endif
if ((0.80 > Wiimote1.Nunchuk.JoyX > 0.35))
key.Shift = 0
key.Right = 1
var.state2 = "Right"
endif
if (Wiimote1.Nunchuk.JoyX > 0.80)
key.Shift = 1
key.Right = 1
var.state2 = "Shift-Right"
endif
//----Controls----
key.Ctrl = Wiimote.B
key.End = Wiimote.A
key.PageUp = Wiimote.Up
key.Pagedown = Wiimote.Down
key.Escape = Wiimote.Nunchuk.CButton
key.Delete = Wiimote.Nunchuk.ZButton
key.F3 = Wiimote.Plus
key.F9 = Wiimote.Minus
key.F10 = Wiimote.One
key.Tab = Wiimote.Two
//----Switch----
if (Wiimote1.Home)
Wiimote.Leds = 15
wait 200ms
var.mode = 1
endif
endif
//-------------------------------------------------
if (var.mode = 1) //Crowfight mode
//debug = var.state + ", " + var.state2 + ": " + Wiimote.Nunchuk.JoyX + " , " + Wiimote.Nunchuk.JoyY + "
debug = "Crowfight mode!"
Wiimote.Leds = 2
//-----Movement-----
if ((Wiimote1.Nunchuk.JoyY < -0.35))
key.Up = 1
var.state = "Up"
endif
if (-0.35 < Wiimote1.Nunchuk.JoyY < 0.35)
key.Up = 0
key.Down = 0
var.state = "None"
endif
if ((Wiimote1.Nunchuk.JoyY > 0.35))
key.Down = 1
var.state = "Down"
endif
if ((Wiimote1.Nunchuk.JoyX < -0.35))
key.Left = 1
var.state2 = "Left"
endif
if ((-0.35 < Wiimote1.Nunchuk.JoyX < 0.35))
key.Left = 0
key.Right = 0
var.state2 = "None"
endif
if ((Wiimote1.Nunchuk.JoyX > 0.35))
key.Right = 1
var.state2 = "Right"
endif
//----Controls---
key.Tab = Wiimote.B
key.Ctrl = Wiimote.A
key.Shift = Wiimote.Nunchuk.ZButton
key.F5 = Wiimote.Plus
//----Rumble----
if (Wiimote.A)
Wiimote.Rumble = 1
wait 50ms
Wiimote.Rumble = 0
wait 200ms
endif
if (Wiimote.B)
Wiimote.Rumble = 1
wait 200ms
Wiimote.Rumble = 0
wait 200ms
endif
//----Switch----
if (Wiimote1.Home)
Wiimote.Leds = 15
wait 200ms
var.mode = 0
endif
endif
10. When finished playing, you can exit GlovePIE and BlueSoleil. I recommend saving the script in GlovePIE first, otherwise you'll have to copy it again. Unless BlueSoleil crashes, you won't have to detect and refresh the Wiimote anymore.
The controls:
The script doesn't have space controls yet. You could use the regular controls for that, but you'll still have to press the F keys to dock, trade, etc.
---Mode 1 (regular planet ground vehicle control)---
Nunchuk analog stick - Arrow keys (and shift when pressed far enough)
A - End
B - Control
Z - Delete
Up - PageUp
Down - PageDown
C - Escape
+ - F3
- - F9
1 - F10
2 - Tab
Home - Switch to mode 2 (crowfighting mode)
---Mode 2 (crowfighting mode)---
Nunchuk analog stick - Arrow keys
A - Control
B - Tab
Z - Shift
+ - F5
Home - Switch to mode 1
Crowfighting mode has rumble when shooting with CTRL or TAB. Unfortunately, because of technical restrictions, no rumble when you're killed.
So...have fun with this, if you have the necessary stuff.