Main > Lightguns
Guncon2 and Guncon3 windows driver
<< < (12/15) > >>
phasermaniac:
Just use it as joysticks not mouse, and configure mame lightgun to joystick inputs
darknezz19:
Okay went back to joy input for the lightgun. Also set the joystick deadzone to 0. I get some movement in groovymame, but it just jumps all over the place. It works pretty good on the desktop resolution when I open vjoy monitor, but in mame the coordinates are not responding the same at all. Try to run calibrate.py, but get an error about usb.core backend not able to find the namco guncon 2. Tried to add the libusb dll from libusb git hub releases as that's what I think is needed. Dropped it in my system32 and wowsys64 folders, but then get a different error. Can someone explain how they get the calibratio.py to run on their windows? Or maybe someone could convert their working calibration.py into an exe and upload it?

https://www.analyticsvidhya.com/blog/2024/01/ways-to-convert-python-scripts-to-exe-files/#h-method-1-using-pyinstaller
phasermaniac:
Sorry cause I don't remember very well, but I think I couldn't use the calibration properly.
I use these values, got them trial-error:
    parser.add_argument("-x", default=(136, 736), type=point_type)
    parser.add_argument("-y", default=(86, 296), type=point_type)
darknezz19:
Thanks for getting those values, still having issues. Has anyone got a working setup of this on a current groovymame release? Again, it seems to work fine on the desktop, but in groovymame menu and in game the coordinates are jumping all over the place.

Edit: It's working. Don't try to set the X and Y to the increment and decrement inputs><, Just set the X and Y lightgun settings in the mame controls.

Edit2: Got the calibrate.py file working. You have to grab that libusb1.0.dll from https://github.com/libusb/libusb and extract the built x32 and x64 dlls to system32 and wowsys64 folder in /windows. It calibrates it for a good baseline, and then you can manually adjust it. Turn your brightness or contrast up to get shots registering. Don't have run.py in the background beforehand, just run calibration first. You alt tab out of the screen when done to see what x and y values it set and then type those in to run.py.
Rion:

--- Quote from: darknezz19 on June 12, 2024, 06:35:58 pm ---Thanks for getting those values, still having issues. Has anyone got a working setup of this on a current groovymame release? Again, it seems to work fine on the desktop, but in groovymame menu and in game the coordinates are jumping all over the place.

Edit: It's working. Don't try to set the X and Y to the increment and decrement inputs><, Just set the X and Y lightgun settings in the mame controls.

Edit2: Got the calibrate.py file working. You have to grab that libusb1.0.dll from https://github.com/libusb/libusb and extract the built x32 and x64 dlls to system32 and wowsys64 folder in /windows. It calibrates it for a good baseline, and then you can manually adjust it. Turn your brightness or contrast up to get shots registering. Don't have run.py in the background beforehand, just run calibration first. You alt tab out of the screen when done to see what x and y values it set and then type those in to run.py.

--- End quote ---

Question is from what folder?
libusb-1.0.27/

MinGW32/dll
MinGW64/dll
VS2013/MS32 & MS64
VS2015/MS32 & MS64
VS2017/MS32 & MS64
VS2019/MS32 & MS64
VS2022/MS32 & MS64


???  :blowup:
Navigation
Message Index
Next page
Previous page

Go to full version