Main > Lightguns

USB2GUN not working on PC - looking for some help - offscreen reload not working

(1/4) > >>

purbeast:
I decided to start a new thread about this instead of the other happ emulation thread I was kind of hijacking.

I have a Friction I/O board and tested it out with my MAME PC that I have Hyperspin setup in, and I kind of got it tracking.  One monitor it tracked OK and one monitor I couldn't get it to track at all, which happened to be the same monitor that Friction in general would not track with - so I'm guessing it's the Friction IO board.

So I got a USB2GUN board and basically have it connected the same way - VGA in/out going to it, USB plug going to PC, and powered with the PSU.  I see 2 solid red LED lights on it so I know it's getting power.

However inside of Windows, it's not finding it.  I looked at all the jumpers and everything is set correctly.  I don't see anything at all in the device manager.  I also noticed when I remove the USB plug, the screen goes all weird, which is very odd to me and not what I would have expected.

With the Friction board, even with no guns attached, it would show up in device manager as a controller named CRTGUN and would have 2 guns on it if the guns were attached.  Also, with the Friction board, just pressing the trigger at any point would cause a screen flash in Windows.

But again, I am not seeing anything at all with this with the USB2GUN board.  I don't see any screen flash and I don't see it in device manager, which makes sense as to why the guns aren't causing flashes.

I believe this is a Windows 11 machine.  So could that be the problem that it's "too new" of an OS or something?  I'd think it would be backwards compatible and work but so far I can't find anything.  It also isn't connected to the internet but I would think even if it found the new device and couldn't get drivers, it would still show up as "unknown" or something.

I am going to try hooking up the USB2GUN to my Windows 10 desktop at some point and see if it is recognized in there.

I purchased this from someone who said it was working when pulled so I am taking his word that it worked fine. 

Is there something I am doing wrong and something I have to do to get it to show up?

​Thanks.

purbeast:
Here's a little bit more information...

I just tried plugging it into my Windows 10 PC and same thing - it just doesn't show up.   I didn't have VGA cables going through it or anything, just the USB cable going to the PC.  I noticed when I pulled the USB plug out the monitor did not get all weird like it did on my arcade cabinet with the PC hooked up there, but I am not surprised since the video wasn't being routed through it.

One thing to mention I guess is that the manual says to plug the USB2GUN board into a PCI USB card and NOT directly to the motherboard.  I do not have a PCI USB card and am plugging directly into the motherboard, and on my desktop, I tried plugging into the front of the PC.  Could this potentially be the problem?  Has anyone plugged it directly into the USB ports on the motherboard?  I read the reason for using the PCI card was due to possible static shorting or something along those lines though, not because it won't work on there.

I also have the one with the JAMMA edge connector.  I had to change 2 jumpers to tell the board to get power from the AUX PSU plug instead of the JAMMA edge.

purbeast:
Okay so I have made some progress.

First I got a USB2GUN board that has the JAMMA edge connector, and I couldn't get any Windows PC to recognize it.

The guy who sold it to me came across the original USB2GUN board without the JAMMA edge and he let me swap, and I got it and finally messed with it and both of my Windows PCs recognize it.

So just to throw that out there, the one with the JAMMA edge does NOT work in a Windows PC.  Windows simply does not recognize it.

Now that I have it working, I got it calibrated and have been testing it out with my GroovyMAME setup and it looks to be working fairly well in Lethal Enforcers.

My only issue however is the offscreen reloading is not working.

There is a setting in the mame.ini file that is for offscreen reloading, and I turned it on, and it's still not working.  I have tried setting the "lightgun" option in the mame.ini file to both "joystick" and "lightgun" just to see if it'll work (the guns are recognized in Windows as analog joysticks) and it isn't working no matter what I try.  I did get some random reloads so I don't know what is triggering that.

Just to clarify, this is a groovymame setup in a PC running at 320x240 resolution on a CRT and using Happ light guns.

Here is a video of it in action showing the issue.

https://www.youtube.com/shorts/cKGxYjKx7vU

BadMouth:
From JollyWest's thread that I linked to in your first thread on the subject:

--- Quote from: Jollywest on July 28, 2014, 03:43:55 pm ---I had to change a few settings in mame.ini to get them to work though.
I had to enable joystick and off screen reload in device input, have joystick as the lightgun and positional controller and had to change joystick deadzone from 0.3 to 0.0 and joystick saturation from 0.85 to 0.95.
The games that originally used a lightgun that I've tested so far (Beast Busters/Lethal Enforcers/Time Crisis) work highly accurately and the games which used a mounted gun (T2/Alien 3) work ok and are accurate but the gun only registers a position on the screen on each individual trigger press, so if you were to hold the trigger down it would only register shots in the one position no matter where you moved the gun whilst holding the trigger down.
The white flash on screen on each trigger press is a bit much on these games as well.

--- End quote ---

Also make sure there isn't an individual ini file (in MAME's ini folder) for the game or that the individual ini file has the correct options set.
The game's individual ini file will override mame.ini

purbeast:

--- Quote from: BadMouth on June 26, 2023, 08:28:18 am ---From JollyWest's thread that I linked to in your first thread on the subject:

--- Quote from: Jollywest on July 28, 2014, 03:43:55 pm ---I had to change a few settings in mame.ini to get them to work though.
I had to enable joystick and off screen reload in device input, have joystick as the lightgun and positional controller and had to change joystick deadzone from 0.3 to 0.0 and joystick saturation from 0.85 to 0.95.
The games that originally used a lightgun that I've tested so far (Beast Busters/Lethal Enforcers/Time Crisis) work highly accurately and the games which used a mounted gun (T2/Alien 3) work ok and are accurate but the gun only registers a position on the screen on each individual trigger press, so if you were to hold the trigger down it would only register shots in the one position no matter where you moved the gun whilst holding the trigger down.
The white flash on screen on each trigger press is a bit much on these games as well.

--- End quote ---

Also make sure there isn't an individual ini file (in MAME's ini folder) for the game or that the individual ini file has the correct options set.
The game's individual ini file will override mame.ini

--- End quote ---

Yeah I've already done all of those changes to mame.ini that JollyWest said to do and it's still not working.  I've messed with changing a lot of other settings in there too and had no luck.

And there are no game specific files down in the ini directory either.

I've tried Lethal Enforcers, Maximum Force, and Area 51/Maximum Force and the offscreen reload isn't working for anything.

When aiming the gun on screen it fires "joystick button 1" and when firing the gun off screen it fires "joystick button 2" as you can see in the windows calibration.  Supposedly the offscreen_reload option is supposed to make it so that "joystick button 2" moves the cursor to (0, MAX) which is the edge of the screen and inputs "joystick button 1".  But that just isn't happening.

I've also found some info that offscreen_reload should enable right click reload on the mouse, and that also isn't working on this setup. The right click on the mouse doesn't do anything.

Navigation

[0] Message Index

[#] Next page

Go to full version