 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
zackflash
Joined: 24 Dec 2006 Posts: 1
Digg It |
Posted: Sun Dec 24, 2006 4:35 am Post subject: Help Please? |
|
|
Im sorry if this topiuc is in the wrong forum. Im a beginner at this stuff (wiitar, etc.) I was wondering if someone could please explain to me all I need to know to get the scripts working etc. I have the software needed i.e. GlovePIE, PPjoy. So just anyone please help me with hooking up my wiimote, getting the stuff to work, and getting a better understanding of this concept.
Thanks. |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Mon Dec 25, 2006 2:19 pm Post subject: |
|
|
Extract GlovePIE into a new directory. You don't need to install it or anything.
Then you need to connect your Wiimote to the PC with bluetooth. How to do that depends on what Bluetooth drivers you are using. But generally it involves holding down the 1+2 buttons on the wiimote and asking your bluetooth software to search for a wiimote.
If you are using BlueSoleil, which is what I am using, you need to hold down 1+2 the whole time. Open BlueSoleil (you can use the CP-Settings > Bluetooth menu in GlovePIE if you want). Press F5. When it finds the Wiimote, right click it and choose "refresh services" or something like that. Then when a mouse icon appears with a box around it, click on that. There will be a line connecting the sun to the Wiimote to show it is connected. You can then release 1+2. You need to do this every time you restart the computer or disconnect the wiimote before you can use the Wiimote in GlovePIE or anything else.
If you want to use virtual joysticks then I suggest you download PPJoy from http://www.geocities.com/deonvdw/PPJoy.htm
and install it. Once PPJoy is installed, you need to add virtual joysticks (PPJoy doesn't do that by default, since it is not PPJoy's main purpose). You can use the CP-Settings > PPJoy menu in GlovePIE or you can go into control panel and click on PPJoy. Then click the Add button. In the Parallel Port box choose "Virtual Port". In the Controller Number box, choose 1. Then click Add. Let it find the driver for the virtual joystick automatically. It will do it twice. Then you need to go back to PPJoy and click on the virtual joystick you just added. Then click on Mapping. Choose to set a custom mapping for this controller (or to modify the mapping for this controller) and choose next. Choose how many axes and buttons and hat switches you want. I recommend using the maximum 8 axes. GlovePIE supports a maximum of 32 buttons minus however many digital inputs are used for hat switches, so don't choose any more buttons than that. Be careful about using analog hat switches, because GlovePIE sets them to DOWN by default unless you set them to something else, which can cause problems in game controller setup menus. But you can use as many hat switches as you want. Then choose which axes you want to be able to control, the order here doesn't matter. I recommend using the axes X, Y, Z, X Rotation, Y Rotation, Z Rotation, Slider and Dial, in any order. Then click Next. In this new page you need to choose which analog inputs should correspond to which axes. You need to remember whatever you choose. But make sure analog0 is x and analog1 is y or you will have problems. Then click next. Choose which buttons you want to assign to which digital inputs. Generally button 1 should be digital 0, up to button 16 being digital 15. Click next. Choose buttons 17-32 if they exist, or choose how the hat switches should be controlled. Digital works best for hat switches, but you must use digital values 31 or less and they must not be assigned to buttons. Then click next and finish.
If you want to control more than one virtual joystick, you will need to add more virtual joysticks with numbers 2 onwards.
Open the TestWiimote.PIE script in GlovePIE and click Run. It should display forces and other stuff in the box near the stop button, and it should light the two middle leds, and it should rumble when you hold down shift, and it should type keys when you press buttons. Stop the script. If only the buttons worked then you should choose the menu "TroubleShooter > Bluetooth fix" and see if that fixes it. If not, then uncheck that menu again. See the WiimoteScripts folder for lots of example scripts.
If you want to use PPJoy in GlovePIE, use lines like this:
PPJoy.analog0 = Wiimote.Nunchuk.JoyX
PPJoy.analog1 = Wiimote.Nunchuk.JoyY
PPJoy.digital0 = Wiimote.Nunchuk.ZButton
You need to remember what analog and digital values correspond to what axes and buttons. Analog values are between -1 and 1.
For analog (continuous) hat (pov) switches you need to use the following values:
-1 = up
-0.5 = right
0 = down
0.5 = left
1 = centred
And the values in between will be angles in between, except values between 0.5 and 1 which are between left and up. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|