Main > Lightguns
Lightgun calibration issues with USB2GUN board in MAME
purbeast:
I have 2 happ guns connected to USB2GUN and have a JPAC hooked up to my Maximum Force cabinet with MAME. I have all of it setup and everthing.
I am having issues with the gun calibration. Like the calibration goes well and in the little preview window it looks like the gun is aiming correctly.
However when I am playing Lethal Enforcers, it seems like the further away from the center of the screen I get, the more offset my shots are. When I'm trying to aim at guys off center, like say about 1/2 way between the center and left edge of the screen, the bullet holes are showing to the left of where I am aiming.
I have noticed that this doesn't seem to be the case with the vertical positioning though. If I shoot towards the top of the screen at the center horizontally, it appears to be working fine and seems pretty accurate.
I am guessing this has to do with the screen being 4:3 yet the analog controller it THINKS the gun is, would be 4:4 or 3:3?
The odd part is I had this all setup in my other MAME cabinet as a proof of concept, and the accuracy was perfect. When I first was getting this new project setup I had another monitor in it and the tracking was even worse, so I swapped them, and now in my Maximum Force cabinet I have the exact monitor that I was using with my proof of concept that was working perfectly.
Is there some trick that I am forgetting to do with the calibration of the gun that I don't remember from doing it in my other cabinet? To be fair it was over a year ago. I'm also wondering if there are maybe some settings I need to set in MAME possibly?
Any help is appreciated, thanks.
Jollywest:
Make sure the games aren’t changing your resolution from what your windows resolution is. You have to stick to the same resolution of which you calibrated the guns in. I use 640x480.
purbeast:
--- Quote from: Jollywest on March 09, 2025, 01:35:10 am ---Make sure the games are changing your resolution from what your windows resolution is. You have to stick to the same resolution of which you calibrated the guns in. I use 640x480.
--- End quote ---
Hey man thanks for chiming in, I found a lot of the help you gave me the first time I set this up over a year ago via google.
So I just checked my resolutions and it looks like you are correct.
I am calibrating in 320x240, however when MAME loads up I see it is loading in the resolution of 360x240, and that would explain exactly why the Y axis seems fine and as I get away from the center of the screen, it thinks I am aiming further towards the edge.
So where do I go exactly to make sure that MAME loads up in 320x240? Is this something I have to set manually somewhere and run vmmaker again or something?
Thanks for the help.
Jollywest:
Been a while since I tinkered with it but isn’t it just a matter of having ‘switchres’ set to 0 in mame.ini
purbeast:
So I just tried doing that and then loaded up MAME. When booting up the games it still shows video mode is 360x240, however right below that it also says "switchres is disabled".
Then I turned that setting back to 1 in mame.ini and It showed the super res that Switch res is using, but the video mode is still 360x240.
Here's a screen shot of it with switchres flag set to 1 and it is using the super res.
I'm going to do some googling though as well to see if I can figure it out now that I believe you pointed out the problem though for sure.
Navigation
[0] Message Index
[#] Next page
Go to full version