Step 4: Preparing the Software Configuration

Finally, let's set everything up to do our bidding. First off is GlovePIE.

Open GlovePIE. Click File->New. Copy the following code into the window:

Nunchuck Stick - Up, Down, Left, Right
Nunchuck Flick Up - Jump
C - Buff 1
Z - Buff 2

Wiimote Flick Horizontally - Attack
Wiimote Flick Horizontally+A - Spell 1
Wiimote Flick Horizontally+B - Spell 2

Plus - Spell 3
Minus - Spell 4

D-Pad Up - Item 1
D-Pad Right - Item 2
D-Pad Left - Item 3
D=Pad Down - Item 4

Home+Nunchuck Tilt - Mouse Movement
1 - Left Mouse Click
2 - Right Mouse Click

//Map Nunchuck stick digitals 0,1,2,3
PPJoy.Digital0=Wiimote.Nunchuk.JoyX < -0.2
PPJoy.Digital1=Wiimote.Nunchuk.JoyX > 0.2
PPJoy.Digital2=Wiimote.Nunchuk.JoyY < -0.2
PPJoy.Digital3=Wiimote.Nunchuk.JoyY > 0.2
//c and z to digital4,5
//Plus Digital 6, Minus Digital 7
//D-Pad Up, Down, Left, Right, Digital 8,9,10,11
//If Home then Nunchuck tilt=Analog 0,1
if (Wiimote.Home) then
//Map Nunchuck flick up to Digital0
//1 digital 12, 2 digital 13
//Wiimote flick horizontally to Digital 14, a+flick Digital 15, b+flick Digital 16
if Wiimote.A then
if Wiimote.B then
if Wiimote.A==false&&Wiimote.B==false

Click File->Save and save the file as MapleStory.PIE.

Now, in GlovePIE, click CP-Settings->PPJoy. The PPJoy Joystick and Gamepad configuration Utility window should pop up. If you haven't already, add a Virtual joystick. More Found New Hardware wizards will appear. Do as before and let them install automatically. Once done, click on PPJoy Virtual joystick 1 then click the Mapping... button. Select Set A Custom Mapping and click Next. Select 2 axes and 18 buttons. Make sure Axis 1 is X Axis, and Axis 2 is Y Axis, then click Next. In the next page, make X Axis Analog0 and Y Axis Analog1, then click Next. In the next page make sure that buttons 1 through 16 are mapped to digitals 0 through 15, and click Next again. Finally, on the next page be sure that buttons 17 and 18 are mapped to digitals 16 and 17. Click Next, then Finish. Back in the PPJoy config window, click Done. PPJoy is now configured.

Next is JoyToKey. Now, you may be wondering why we're taking these extra steps using PPJoy and JoyToKey instead of simply mapping all the buttons in GlovePIE. The 'hack prevention system' called GameGuard that runs alongside many MMOGs including MapleStory blocks emulated inputs through GlovePIE, however it will allow JoyToKey. Now, onwards.

From GlovePIE, click CP-Settings->Joystick. Remember which joystick is the PPJoy joystick. If it is first in the list, then it is 1, if it is third, the it is joystick 3 in JoyToKey.

Now open JoyToKey. It should have already created your first configuration. Click Preferences on the far right. Set the number of joysticks to at least as many as your PPJoy is in the list. For example, if your PPJoy joystick is third in the list, make sure you have the number of joysticks in the JoyToKey preferences as 3 at least. Now click Joysticks on the far right, and click on the tab corresponding to the joystick number, e.x. Joystick 3, at the top of the JoyToKey window. All gamepad keys should be unmapped, and reading 'DISABLED'. Set the keys as follows:

Button 1 - Arrow - Left
Button 2 - Arrow - Right
Button 3 - Arrow - Up
Button 4 - Arrow - Down
Button 5 - Page Up
Button 6 - Page Down
Button 7 - Home
Button 8 - End
Button 9 - 1
Button 10 - 2
Button 11 - 3
Button 12 - 4
Button 13 - Leave Disabled for now
Button 14 - Leave Disabled for now
Button 15 - Insert
Button 16 - Delete
Button 17 - Control
Button 18 - Shift

Now minimize all applications.

Lastly, open up MapleStory. Log in and choose a server/channel/character. Once you're loaded on to a map move yourself someplace safe; to a town or on a safe ledge away from monsters. Go to the Key Config window. This is how I set up my keys. Feel free to change it around as you wish.

Attack - Ctrl
Jump - Shift

Item 1 - 1
Item 2 - 2
Item 3 - 3
Item 4 - 4

Main Spell 1 - Insert
Main Spell 2 - Delete

Buff Spell 1 - PageUp
Buff Spell 2 - PageDn

Other Spell 1 - Home
Other Spell 2 - End

Be sure to click OK when done.
I Know I May take a bit of your time i want to swing my WiiMote Up Down Forwards and Backwards and the Nuncuck: Left Right Forwards and Backwards If you do this it might make this instructables even better! :) But GOOD JOB BTW! (note: your heaps good at programing T_T its so hard for me and that code is just to confusing.)
&nbsp;im sorry to&nbsp;inform&nbsp;you that the link is broken
Not to be mean but why wold you wast your time making it work for Maplestory Maplestory no offense but it's a poor man's Wow.
its a great game, and since maplestory is free to play then EVERYONE can play, except those with no computer and internet connection......<br /> wow needs a fee to play, which means that wow hasnt got a good player list.<br /> Maplestory has optional extras for those who pay<br /> <br /> free&nbsp;games with optional extras get more players than pay2play games (ie. WoW)<br /> <br />
Because it works, and it's fun. You should also note that Maplestory has been around much longer than WoW. Thanks for trolling!
Ok man don't assume I am stupid I know Maplestory has been around longer than Wow.
That doesn't mean you have a right to flame.
*dumps water*
Yeah dude don't assume he's stupid. Geez. People these days.
i love your tutorial so far but when i go in to choose ppjoy in glovepie nothing happens
same here
oh wait, go to step one, (ppjoy wasnt installed)
To Gordon, first, nice name and secong a wow glove-pie script is already pacaged with glove-pie.
So, can this be used for any windows application and not just maple? and, is all that is needed is the remote, and a bluetooth adapter? do you have to have a wii for this to work?
Definately do not need a Wii, just a Wiimote.
Thank you. And my friend made a website explaining it all. I will post the link here if he says it's ok.
Isn't Buuf great?
Quite. When I used Windows, it was my poison of choice, along with Litestep.
Do you need an IR Sensor bar for this? I thought you needed one to pick up movement.
Nope. All movement controls used in this are based on the accelerometers. There's no way (that I know of) that allows a third-party app to control a "hack-protected" game or I would have added IR support, eliminating the use of a keyboard (essentially).
Hmmm, then there's something wrong with my bluetooth dongle. I guess it should have been a clue when it wasnt listed on the list of bluetooth dongles you supplied. Not even tested.... The battery was kind of low on the wii remote I tried it on so I'll try a different one today.
I don't know if my Bluetooth dongle will work because its not on the list you provide. Its a Belkin Model: F8T003 Version 2 It works fine for connecting the wii remote to the pc but I can't do anything with it.
i have an ir sensor in my computer whats that?
first of all, ir means infared, and an ir sensor picks up data sent over an infared beam.
is ppjoy compatible with windows xp? when i install it there is a warning that says the program hasn't been aproved by the windows logo or something like that.
Tell it to "continue anyway". It's compatible, and the Windows Logo program is bollocks ;)
you're positive right, because i don't want bad side effects.
IT WILL WORK the logo thing means it isn't bought, sponsored by, or recognized by the Microsoft corp, it is just installing a driver, it'll be ok
No I'm just guessing I actually have no clue as to whether or not it will wor-- oh wait, yeah, I'm positive ;) I wouldn't say something like that unless sure.
3 questions: Do you have to do the key configuration in maple story? I tried to use the wiimote in maple story but it isn't working. When i minimize PPJOY, why does it close? Thanks a lot:)
in the second step on the paragraph about ppjoy, you said "Next, use the EXE file to download a second ZIP file." how do you do that??? maybe a video or an exact explanation would help ( i have windows xp) thank:)
I have update the instructable. I am now hosting the complete package and no sandbox program is required. See step 2.
thanks but i still have a problem. i can't seem to open the ppjoy program. i click the website, click save the file (the file is rar), then i try to extract but there is nothing to extract, if i open it it doesn't open. what should i do?
Be sure to use the latest version of Winrar from RARLabs as other package programs don't necessarily work right with later versions of Winrar archives.
The problem is that the author of that program has his application strewn across two hosts. The original file is on an old host and the new file is hosted by a file distribution service that requires you to use a "downloader" that will install spyware on your system. If I can contact the author then perhaps I can host the complete package, since both parts are needed to get it working. That's the best I can do right now, sorry.
lol i know how to do this iwth a ps2/ps1 controller

About This Instructable




More by Lunis:How to play MapleStory with a Wiimote+Nunchuk 
Add instructable to: