Server Help

Trash Talk - Connecting Wiimotes to computers

Animate Dreams - Sat Jul 14, 2007 3:22 pm
Post subject: Connecting Wiimotes to computers
http://carl.kenner.googlepages.com/glovepie_download

This is an AMAZING program. I was working on getting my Wiimote connected to my computer(so I could use the Classic Controller to play SSB online) when I ran across this. You can script your Wiimote to do just about anything. Not just Wiimotes, it's built to work with any kind of controller, and it's built to accommodate awkward controllers, even things like power gloves. I'm so excited. I haven't exactly got the Classic Controller working the way I want yet(and I haven't even begun actually getting it recognized as a gamepad in my emulator) but I'm sure it's possible. I know a lot of you aren't huge video game players, but a lot of you probably wouldn't mind playing around with an old game you used to play.

Anyway, you have to write scripts for everything, but it's very simple. For most games you can just type things like

A = Wiimote.Classic.A
B = Wiimote.Classic.B

That would bind the A button on the Classic Controller to the A key on your keyboard. But if you want to get advanced, you can use the analog sticks, but it requires PPJoy(I haven't gotten that working yet, either), which is also simple.

PPJoy.Analog0 = Wiimote.Classic.Joy1X
PPJoy.Analog1 = Wiimote.Classic.Joy1Y

That just sets the left analog on the Classic Controller(Joy2X and Joy2Y would be right) to work with PPJoy. If you want to get super fancy, you could write a script to control your mouse with the Wiimote. I actually used it to write a script (it was 5 lines I think) so I can control my mouse with my arrow keys and using control for the left mouse button, for those days I'm exceptionally lazy and don't want to reach for the mouse. Anyway, I thought some of you that either had some of the new bluetooth controllers or still had old joysticks laying around might be interested in toying around with them. I'm going to try to use my controller to play One Must Fall, since it works with DOSBox, too... maybe I can finally pull off that crazy Gargoyle combo.

Oh, if you're interested in seeing what the script looked like that let you use your Wiimote as your mouse, here it is:

Code: Show/Hide
//My wii-mote control of mouse
//by freshgeardude

// Show wiimote forces
debug = "X="+Wiimote.RawForceX+' Y='+Wiimote.RawForceY+' Z='+Wiimote.RawForceZ

//Movement Keys. Works for both arrow keys and WASD.
Keyboard.W and Keyboard.Up = Wiimote.Up
Keyboard.S and Keyboard.Down = Wiimote.Down
Keyboard.A and Keyboard.Left = Wiimote.Left
Keyboard.D and Keyboard.Right = Wiimote.Right

//Key assignments. Feel Free to change
Keyboard.Esc = Wiimote.Home
Keyboard.PageUp = Wiimote.One and Keyboard.pageup = Wiimote.Plus
Keyboard.pagedown = Wiimote.Two and Keyboard.pagedown = Wiimote.Minus

//You might want to switch these depending on your tastes
Mouse.LeftButton = Wiimote.A
Mouse.RightButton = Wiimote.B


//Controls LEDs
if Wiimote.A or Wiimote.B
Wiimote.Led1 = 1
wait 500 ms
Wiimote.Led2 = 1
wait 500 ms
Wiimote.Led3 = 1
wait 500 ms
Wiimote.Led4 = 1
wait 500 ms
endif

if Wiimote.A = 0 and Wiimote.B = 0
Wiimote.Led1 = 0
Wiimote.Led2 = 0
Wiimote.Led3 = 0
Wiimote.Led4 = 0
endif

// set these to the offsets when the wiimote is at rest
// will be different for each wiimote
var.x = Wiimote.RawForceX +11.00 //trim to 0
var.y = Wiimote.RawForceY -35.00 // trim to 0
var.z = Wiimote.RawForceZ +10.00 //trim to 0

//precision
var.sense0 = 500
var.thresh0x = 5
var.thresh0y = 2


Edit: Here's a wiki with a bit of info on the scripting: http://www.wiili.org/index.php/GlovePIE
Sercit - Fri Aug 03, 2007 12:49 pm
Post subject:
I know this is horribly off-topic, but with scripts like this I can't help but wonder if this isn't the next logical step for consoles. Instead of buying the console we end up buying a kinda pseudo-OS to run the games off the PC. I mean, it's not like you can't connect the PC to a high def TV now, or just a regular crappy one.
Animate Dreams - Fri Aug 03, 2007 1:54 pm
Post subject:
This is a step further off-topic, but I just decided last night I wanted to connect my computer to my TV. How would I go about doing that? =\

And it makes sense to me that consoles would eventually die out... but the advantages of consoles are still pretty big. Maybe a hundred years in the future, when computer knowledge is considered as important is the English language, PCs will finally completely take over.
BDwinsAlt - Fri Aug 03, 2007 2:17 pm
Post subject:
I've connected my pc to my tv before. I would suggest not using the cheapo cables. I had to put my pc in the lowest resolution and it still had a bad image on the tv.

Do you have an s-video slot? I think a HD s-video would work better than the cable I had. If you don't have an s-video slot on your tv, you can buy something called a modulator for about $30.

A good cable will be expensive. The s-video cable I got (short, black and white) was around $15. The guy said the good ones usually run for about $50+.

You could also buy a $600 projector (probably the best quality).

The cable I had looked a lot like this (the bad one):

Animate Dreams - Fri Aug 03, 2007 2:58 pm
Post subject:
Well, it's easy for companies to completely overcharge on cables. The markup on those things are insane... I'll just make my own S-Video cable. Do I have to get a video card that has an S-Video output? I'm just about to buy a video card, so I could manage that.
BDwinsAlt - Fri Aug 03, 2007 3:20 pm
Post subject:
Good luck. Remember, you get what you pay for. icon_lol.gif
Smong - Fri Aug 03, 2007 8:41 pm
Post subject:
Even with a better cable don't TVs still have considerably less resolution than computers? A quick check reveals NTSC to be 720x480. If you ever tried emulating a console game you may end up enlarging the image to make it fill the screen, pixelating it in the process (although there are several filters out there that attempt to smooth the edges).
Animate Dreams - Tue Aug 07, 2007 12:26 am
Post subject:
I'm really not concerned with a bit of pixellation(as long as it's as minor as I think it would be). The only things I'd be worried about would be that maybe processing for 2 outputs would be too much for my video card to work amazingly well, and it would start lagging or something.
baseball43v3r - Tue Aug 07, 2007 1:04 am
Post subject:
going even further offtopic. if i wanted to make a tv a node on a network how would i do it? a quick google search returned irrellevant results so maybe i searched the wrong thing. but basically i want to be able to play movies or tv shows from a database (like a NAS, or external HDD) and not have to worry about too much. i kinda had an idea to start a company that did media integration in a house, basically the idea was to do speakers in every corner of every room and have the tv's all wired to the database. and, using something like a pda or small tablet pc, be able to pick movies and music for each tv and room. any idea's or could this be just a pipedream?
Cyan~Fire - Tue Aug 07, 2007 9:37 am
Post subject:
Just hook up a computer to your TV using S-Video (lots of gfx cards have them these days).
Animate Dreams - Thu Aug 16, 2007 9:04 pm
Post subject:
Aye, I tried the S-Video thing... it was horrible. I couldn't make out a single thing. I'm no graphics whore, not in the least. Hell... I play Continuum. But the graphics were honestly bad enough to make it unplayable. Fortunately, my new video-card(I got a 7600GT) can also use component video. Problem with that is the cord is too short, and I don't have extensions. >_>
Cyan~Fire - Sun Aug 19, 2007 10:07 am
Post subject:
Did you have your computer set to the right resolution? American TVs are 640x480, if I recall correctly. When I hooked up my computer to a TV it actually looked great.
Dr Brain - Sun Aug 19, 2007 11:23 am
Post subject:
Cyan~Fire wrote:
American TVs are 640x480, if I recall correctly.


They're less than that, though I forget the exact number.

My card did a pretty good job with S-Video last time I tried it. The high resolutions were absolutely terrible, but 640x480 came out decently.
baseball43v3r - Mon Aug 20, 2007 1:33 pm
Post subject:
i forget if the wiimote is bluetooth or rf, but either way is there any decent internal recievers for a desktop computer for either? since i'm assuming that would also be needed to connect the controller.
Animate Dreams - Wed Aug 22, 2007 8:08 am
Post subject:
It's bluetooth... but you don't need an internal device. I've never actually seen any internal bluetooth devices... except for ones that are built-in to the computer. You could just buy a 10$ Bluetooth USB dongle, that's what I did.

Actually... I haven't been able to get my 10$ Bluetooth dongle to work... I've been borrowing one from Verizon that I use. But either way....
Muskrat - Wed Aug 22, 2007 3:21 pm
Post subject:
Animate Dreams wrote:
I've never actually seen any internal bluetooth devices... except for ones that are built-in to the computer.


No I have one!
baseball43v3r - Sat Sep 01, 2007 7:49 pm
Post subject:
well all laptops have one, and i'm assuming it would be easy to get a built in one. i'm just not sure what to look for an the few random searches i've tried havent panned out. this would be for a desktop though. i imagine it would just plug in and stick out of a 5" or 3.5" bay
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group