Main > Lightguns

Wingun, lightgun, guncon 2 troubles aplenty

<< < (5/11) > >>

BadMouth:
wii mouse is another option:
http://home.exetel.com.au/amurgshere/wiimouse.phtml

I've only messed with it one evening, but couldn't get it working.
Hoping it was my ancient bluetooth adapter and not the 3rd party guns. (big ben interactive walther p99 replicas)
I got a new one, but haven't had time to mess with it.

If I can't get them to work well enough, they'll become expensive aim-trak shells.  :lol

Howard_Casto:
I tried that one and it actually pairs pretty well.  The problem is afaik there aren't any settings.... you can't calibrate, ect....

I woudl sure like to know how they got music to work in the speaker though.... I tried it ages ago for mamehooker and anything I sent sounded like crap.

felix pontifex:
I will certainly check out what that program can/can't do tomorrow. It looks interesting, thank you for sharing it BadMouth.

@Howard_Castro: I know that this is a matter of you doing something for a complete stranger with no particular personal incentive aside from intrinsic satisfaction, but when do you think you will have the time to work on a light gun script?

Howard_Casto:
Still no "R" in my last name.  ;)

No I need to do it myself because I've recently upgraded my mame cab to a lcd monitor and my collection of lightguns is now useless. 

I had one of my famous bouts with insomnia tonight so I decided to have a look.  It IS possible to do wiimotes in mame, and dual wiimotes at that, but glovepie still suffers from a lot of the problems it did years ago.  So in order to get a wiimote working on Glovepie you must:

1.  Get a bluetooth stack that glovepie supports (fairly easy to do, but still... your dongle might not be compatable).
2.  Use wiimotes that are NOT paired to a Wii.  I found out the hard way that if you hit the power button on a wiimote while glovepie is running, it isn't connected and you are close enough to your wii it restarts your computer!
3.  Install PPJoy (not a big deal in xp, kind of akward in vista/7)
4.  Change the joystick settings in your mame.ini to a deadzone of 0 and a sensitivity of 1.  This is easy, but if you intend on running joysticks as well, you may need to  make   multiple inis or custom command line launching for gun games.
5.  (Optional) Have a mame ctrlr file/default.cfg that has all the main functions alternately remapped to josytick buttons.  This is because you can't send false keystrokes to MAME, so GlovePie and PPjoy can only send joystick buttons.  By default MAME does this for the player buttons, but not the start, coin and exit buttons, which you might want.

If you want to deal with all of that setup, it works pretty well.  Even without calibration it does a pretty accurate job of motion tracking.  Movement is slightly slow, but there isn't anything we can do about it... it's the nature of a ir camera. 

I made a little test script that basically makes the wiimote control both a virtual mouse (for windows and pc games) and the virtual joystick at the same time.  Once I ironed out all the issues above, it worked pretty reliably.  All that's left is a bit of polish and a way to turn off wiimotes and calibrate the guns.  I'm hoping I can just do what Nintendo did with skyward sword and just press the up button to center the pointer.  That would be a whole heck of a lot simpler than shooting the four corners every time the cursor gets out of whack. 


Howard_Casto:
I did some more experimenting today.  I haven't worked on calibration yet (that'll be the last thing I do) but I wanted to get the cursor output as smooth and steady as I could.  I managed to get it stable enough to hit the little clay targets in duckhunt at their smallest point.  That's the smallest target you'll ever hit in a gun game, so I would say mission accomplished on that bit. 

Just a heads up to people having accuracy issues.  This should be obvious, but I forgot about it, so other people might be running into the same issue.  You can't run hlsl with gun games... period.  Mame is using the dimensions of the game window to locate cursor position, as it should.  Hlsl effects distort the image though (literally, that's hlsl's purpose) so while it looks like you are aiming in one location, if the effects were turned off and the screen was flattened back down, you are actually aiming in another. So hlsl... don't use it.  I could get in the ball park, but I couldn't accurately play duckhunt with them turned on, with them off I got nearly 100%.... so there you go.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version