Main > Lightguns

Wingun, lightgun, guncon 2 troubles aplenty

<< < (4/11) > >>

felix pontifex:
Considering I haven't sunk money into the most expensive part of the setup (The Penguin United blah blah pistol) I haven't gotten -too- ambitious yet. I bought a blue tooth adapter that was said to be compatible according to the list (only cost $7), and I have the Toshiba stack. Just waiting for the adapter to come in the mail. Besides, I was planning to get the bluetooth anyway so I could play wii games on Dolphin.

I have to ask about the MAME non-compatibility thing, is that to do with later versions using raw inputs? would it work with an earlier version (or a MAME that has had the raw inputs thing modded out of it)?

Furthermore, this leaves me with more questions about the script itself... what does the author of the script mean by "most PC light gun games"? there are light gun games that were made for the PC? I thought it was all consoles and arcade.

Lastly, why didn't you mention you knew how to do stuff in GlovePIE? It would have saved me a lot of headaches if I could have just turned to you and asked the things I didn't get any useful advice about before. Like for example: Do you think the blah blah pistol will work with GlovePIE as is? if it doesn't would you be able to help me to get it to work, or is that a more complex coding issue?

Howard_Casto:
Heh..... I know you are new, but I didn't think you were THAT new.  I do a little bit of everything around here.  ;)

The glovepie problems with mame are a two-fold issue, I *think* most problems have been mostly resolved at this point, but you are going to have to use a REALLY new verison of mame where direct input is put in non-exclusive mode and that script isn't going to work because it uses high-level mouse manipulation instead of low-level (raw mouse). 

Thus why that script you found was so old. 

Glovepie now supports raw mouse input but I haven't tried it in mame.  I've got all the hardware, I just haven't had time to play with it recently.  Even if it doesn't work, glovepie allows you to map the wiimote to a virtual joystick and mame has no problems handling two joysticks at once.

As I said before, doing something similar to what andy does for the calibration of his guns is fairly easy to write... his roll compensation... that's a little beyond me.


Those guns are just oddly shaped wiimotes.  Afaik they should work as well as any wiimote, but I don't have one, so I can't tell you for certain.


Yeah there are a couple dozen or so pc lightgun games.... mostly ports of arcade titles. 

felix pontifex:
yes Mr. Castro, I am a most verdant member of this operation. I think I need to be clearer with how I ask my questions, because I still have more:

I plan to ask Penguin United about the software used in their peripheral, however, assuming that it is different from a first party wii...

1. Let us assume that the Penguin Pistol emits data that can be captured by the blue tooth device, but due to a difference in coding it is not recognizing GlovePIE. If I were to use a piece of software capable of gathering the data emitted from the device (such as wireshark or something) and gave you that information, would you be able to manipulate GlovePIE on either a script or coding level in order to make the device compatible?

2. If you cannot, do you know someone who could?

Furthermore, regarding a light gun script:

3. in the script I provided, is there roll compensation in there that you can use? (I assume "no", but I must ask)

4. What is roll compensation anyway?

5. What is the complexity of roll compensation such that it is difficult to write?

6. Would asking Andy about how to write roll compensation be of any help? (I can do the asking if you are too shy  ;) )

Howard_Casto:
No "r" in my name.... I'm not a Dictator of a small bananna republic.  ;)

1.  It most likely will.  Remember it has to work on the Wii, which means it has to show up as a supported device.  I wouldn't worry much about it.

2.  not personally no

3.  no.

4.  A wiimote uses a series of ir leds in a straight line to help determine position.  If you are holding the wiimote at an angle (gangsta style or ect) the dots are no longer in a straight line to the camera in the wiimote and thus without roll compensation, it gets confused.  Glovepie has some built in roll compensation, but as I haven't messed with it that much, I have no clue how good it is.   The last time I messed with Glovepie you had to do almost all wii functionality manually.  Now a lot of the stuff has automated functions, which is easier, but I don't know how good they are.

5.  It's not complex, it just requires math and geometry and ... ugh I do this for fun. 

6.  I don't know if he'd let out a trade secret.... if we get a good script working it could hurt his business afterall.  He's a nice guy though, you could always ask.

felix pontifex:
Ok, I wanted to give an update to what is going on:

I got my bluetooth adapter today, and although it was difficult at first to get the windows bluetooth stack to recognize my wii remote before it shut off, I finally got it working. Funny enough, I think the reason why it got working was because I was trying to install the Toshiba bluetooth stack, and in order to do that you have to rename an .ini file to a bak file, and i am wondering if that is what did the trick for the windows stack.

I called Penguin United today to ask about the pistol, and I got the same response as from you (an assumption that it should work). So once you decide to make a light gun script I will buy the pistol. Funny enough, I asked how sales for it were coming along and he said that they were planning to discontinue it soon, so Andy doesn't have much competition to worry about. Maybe I can get in on a sweet clearance deal or something, they do have an open line to their sales department...

Speaking of the light gun script, I tried out the one I posted in here earlier and it works decently for a mouse. When you make yours, if possible please make it so that you calibrate by aiming at the corners as opposed to just regular top, bottom and sides. While it will be easier to figure out where to aim with an actual set of crosshairs, I can never be entirely sure if I am aiming directly center at the top/bottom/sides, and changing it to aim at the corners is easier, because I know where the corners are without making a custom desktop background. While the accuracy wasn't pixel perfect (then again this could be because I wasn't aiming perfectly) the pointer seemed to remain roughly where I aimed it (as I tried my best to act like the buttons on the remote were the bead on a shotgun). My biggest complaint is it seemed that the pointer was slightly delayed. I don't know if there is a way to fix that, whether it is an issue with the script, glovePIE or hardware.

I tried the controller at a jaunty angle and it did skip around a bit, but if you can make a script that lets me aim at corners to calibrate (and any other dead obvious improvements to the script that you can see) just release it to me without roll compensation added in, and just add it later if it doesn't require a full rewrite, because from what I can tell, I won't be holding the gun at enough of an angle to cause any real functionality issues.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version