XIM Community

General Category => Tutorials => Topic started by: eccentric on 09:47 PM - 04/10/09

Title: Tutorial: Wiimote -> PC -> XIM -> Xbox 360 (not finished)
Post by: eccentric on 09:47 PM - 04/10/09
In this tutorial I will show you how to setup the wiimote for playing any game on the Xbox360.

This is easy even if your not a programmer you should be able to follow this. GlovePIE is very simple language with an easy syntax and works well.
I'll have lots of pictures and links to help you get started.

Topics covered;

So why am I here...? Zombies. Yes, zombies. I prefer swarms of slow zombies to the faster more intelligent kind. But I like both. Yes, this relates to video games.

I really enjoyed playing RE4 on the Wii. The gameplay is great and it's a fun game plus it's cheap. So I was excited when I first saw the new RE5 previews.  Sadly the Wii doesn't have the hardware to run RE5.  So I needed to find my own way to get the same gameplay.  That is how I found the XIM.

Now XIM is suppose to work out of the box with the wiimote. It didn't for me. If it had I still would have done this. From the sample script I saw/tried it didn't offer the control I wanted.

I'll be posting the RE5 script soon.  I haven't been able to work more then a few hours after the first weekend (yep haven't been playing RE5 either). So it needs some work.  But it's playable so I might post it just for feedback.

Required Hardware:
You should all ready have one of these.
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/IMG_1624.jpg) (http://xim360.com/)

Whole reason your reading this right?
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/IMG_1622.jpg) (http://en.wikipedia.org/wiki/Wii_Remote)

This could be candles or some other IR light source it doesn't take much for the wiimotes to calibrate.
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/IMG_1627.jpg) (http://www.joystiq.com/2006/11/24/diy-erless-wii-sensor-bar/)

I'll be using the Kensington Micro.  It's cheap and small so I can leave it plug all the time.  It also works in both Windows and Linux.
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/IMG_1623.jpg) (http://www.wiili.org/index.php/Compatible_Bluetooth_Devices)

You might already have one of these
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/IMG_1625.jpg) (http://en.wikipedia.org/wiki/Xbox_360)

I'll be using a C64.
(http://www.vgfrequency.com/wp-content/uploads/commodore-64-keyboard.jpg) (http://en.wikipedia.org/wiki/Commodore_64)

This is how my setup looks (yeah it's a laptop not a C64 you got me ;)). It works well other then I'm a little to close to the screen for playing.  But it works for testing.

Required Software:
I installed it just so I could run XIM, no really I did.
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/Desktop.jpg) (http://www.thezombiehunters.com/)

You should already have this working, if not FAQs (http://xim3.com/community/index.php?topic=1796.0) should be your first stop.
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/XIMConfig.jpg) (http://xim360.com/)

I'll be using 0.29.  You can view the documentation online here (http://www.scribd.com/full/8522064?access_key=key-2em40mqhuv3y4d03hgd1).
(http://i509.photobucket.com/albums/s337/eccentric_album/XIM/GlovePie.jpg) (http://carl.kenner.googlepages.com/glovepie_download)
This might not apply to your game but I thought I should point it out.  In the copyright documentation for GlovePIE it has the following restrictions.
* You may not use this software to cheat at online or multiplayer games. What constitutes cheating depends on the game and the server. Just using a different input device shouldn't be considered cheating, but complex scripted actions to make things easier may be considered cheating. Don't get GlovePIE banned, or you will hurt everyone who wants to play with a VR glove. But feel free to cheat at single player!

I'll be using Toshiba Stack (http://ftp://ftp.kensington.com/PC/Input/) because it came with my dongle.  I have heard of problems with it but I haven't had any issues so far. If you need help finding what will work consult theWiimote compatibility list (http://www.wiili.org/index.php/Compatible_Bluetooth_Devices).
(http://hotline.ccsinsight.com/_images-article/Bluetooth-Logo.jpg) (http://en.wikipedia.org/wiki/Bluetooth)
Title: Connecting wiimotes to the PC:
Post by: eccentric on 09:47 PM - 04/10/09
Connecting wiimotes to the PC:
As I mentioned I'll be using Toshiba Stack. If you are using BlueSoleil (http://www.wiili.org/index.php/BlueSoleil) you can find out how to use it here (http://www.wiili.org/index.php/HowTo:BlueSoleil)

The Settings Manager should be the little Bluetooth symbol in the notification area.  Double-click on it.
If it's not in the tray look in Start->All Programs->Bluetooth->Bluetooth Settings.

You can see I have one wiimote connected already.  But I have 2 so I'll show you how to connect it. 

Express mode works fine. 

It will start searching for any Bluetooth signals.  Right now your wiimote is off so to wake it up.

It should find a Nintendo wii remote and anything else in range.

Now it will finalize the connection and finish up.

That's it.
Tip: You should Disconnect them when you are writing code or are done playing.
Simple right?
Title: Basic programing GlovePIE:
Post by: eccentric on 09:47 PM - 04/10/09
I needed to change this.
Title: Create a short script for WASD:
Post by: eccentric on 09:48 PM - 04/10/09
Please don't delete this I'm saving these for room to grow the topic later.  It was getting late and I wanted to reserve this space.
Title: Jumping into your own project:
Post by: eccentric on 09:48 PM - 04/10/09
Please don't delete this I'm saving these for room to grow the topic later.  It was getting late and I wanted to reserve this space.
Title: IR or rotation?
Post by: eccentric on 09:49 PM - 04/10/09
Thanks for not deleting all these posts. I'll fill them in tomorrow.