OS Software




P4 "Lightguns" Testing & Comparison

Started by FrizzleFried, May 03, 2025, 09:20 AM

Previous topic - Next topic

FrizzleFried

Administrator
*****
Sr. Member
Posts: 179
Location: Treasure Valley, ID
Logged
All the testing prior was when it wasn't setup right (showing up as P1)... 

Since I fixed that bit of code,  I am getting zero movement.  I suspect,  again,  a configuration issue.

Movement still shows P1 ... I think i need to make that P3... I just gotta get out there and play around more... 

dee2eR

Administrator
*****
Sr. Member
Posts: 170
Logged
to swap lightgun driver use the terminal (f4 to exit all the menus). 

You have 2 different pre-compiled versions of the lightgun driver, guncon2-master (the original you tried) and guncon2-joy (the current one).  Navigate to the foilder of the one you want to install
cd /home/pi/guncon2-joy/    OR      cd /home/pi/guncon2-master
then run each of these lines: make modules
sudo make modules_install
sudo depmod -a
sudo modprobe guncon2
sudo reboot
 

I think it's worth trying the master one (the master driver is mixed mouse and joystick) again but also re-enabling mouse input in /home/pi/.mame275/mame.ini - you'l also need to re-do the trigger input in game in MAME.

FrizzleFried

Administrator
*****
Sr. Member
Posts: 179
Location: Treasure Valley, ID
Logged
Followed instructions to the T:

I noticed that a couple of the inputs really showed nothing... they just went to the next line not indicating if they did anything.  sudo modprobe guncon2 for example and I think depmod -a...

I also noticed one command had a some sort off .map error at the end of it... I think it was sudo make modues_install.

Anyway... after enabling the mouse... I can see a mouse device... but the guncon is still showing up as joystick 3 and there is no difference in behavior than before.

dee2eR

Administrator
*****
Sr. Member
Posts: 170
Logged
#33
sorry for the slow reply, was sick in bed yesterday.

Edit /home/pi/.mame275/mame.ini in the 'core input options' section:
mouse 0
joystick 1
lightgun 1


Once you're running in MAME again, set the trigger - it should now appear as Gun 1 Button 1.  Joy 3 LSX and Joy 3 LSY should work for the analog settings, no need to change them.

Try testing the tracking in Point Blanks 'Gun Initialize' screens (the one where you press both test and service to open it) as it is bright white and should track about as well as possible.

It may also be worth re-enabling the mouse cursor in the ARpiCADE service menu... although I don't think it will do anything as MAME provides it's own (if you want it to) that is separate to the rest of the system.

EDIT: I went back to the joystick version of the driver, they both seem to work about the same for 1 gun but I found it easier to get 2 guns working on the joystick version.
Also my superglue trigger fix broke (barely used it, not a good fix - the broken area is small for gluing), printing the fix piece I linked on page 1 now.

FrizzleFried

Administrator
*****
Sr. Member
Posts: 179
Location: Treasure Valley, ID
Logged
#34
Quotesorry for the slow reply, was sick in bed yesterday.

No worries, bro... you are allowed to have a life.  This stuff isn't that important.  Hope you're feeling better.

EDIT:

OK... I've had some time and got back to the "newer" driver.  All buttons are back to working...

... BUT... same behavior for the tracking.  Just the top 20% of the screen or so.

:(

I do notice under inputs there is a lightgun mentioned... but unfortunately... same behavior.


FrizzleFried

Administrator
*****
Sr. Member
Posts: 179
Location: Treasure Valley, ID
Logged
BTW... I noticed that in the lightgun settings screen none of the buttons, movements, etc. are associated with the gun.  Not sure if it's supposed to or not.  Guncon2 is still there showing as Joystick 3 of course and in there it shows the buttons working, etc...

dee2eR

Administrator
*****
Sr. Member
Posts: 170
Logged
Which lightgun settings screen?  If it's in a MAME game it would only show the controls a gameboard originally supported, eg. Point Blank would show only start buttons, coin input(s), service, test and triggers.

Did you end up trying a different sync cable?  Without another GunCon2 to test or another way to test the one you have I'm running out of ideas.  Unless we're getting different results because I've been testing on a PVM and (I assume) you're using an arcade monitor... but the sync is being sent by the RJ board and we're both running them...

There is some range calibration built into the driver but it didn't run the one time I tried it months back.  It maybe worth looking into that, assuming you don't have a gun with a hardware issue.  See here for more about the calibrate: https://github.com/beardypig/guncon2 - I can't remember offhand why the command didn't work for me (it's possible evdev-joystick isn't installed or a required lib).

FrizzleFried

Administrator
*****
Sr. Member
Posts: 179
Location: Treasure Valley, ID
Logged
#37
Within MAME when you look at the attached controllers screen it shows the lightgun... if I go in to that setting nothing is attached in there (as I assume it's supposed to).

Yes... arcade monitor.

Things are a little tight right now having just coughed up nearly $3K extra over the last month for various crap that happened (bad month - $1500 for a new ECU & alternator for the truck,  $750 for a new dishwasher, $750 for my portion of Wisdom Teeth surgery, and my main bathroom's frameless shower door exploded at 1:20AM for no apparent reason costing me $250 to replace the damn thing)... so no go on getting another Guncon2 for a while.  Maybe in a couple more months I could justify the purchase.  Unfortunately I don't have a Playstation 2 to verify it's working.  That said,  I did buy from a reputable ebayer who did list it as "tested - working" rather than the dubious "untested".

Oh,  and no,  my lazy ass has not tried a new RCA jack.  That WILL happen.


dee2eR

Administrator
*****
Sr. Member
Posts: 170
Logged
Sounds like a rough month...

RCA jack is probably the easiest thing to try, assuming you already have the bits on hand.  I just tried a GunCon2 without the sync cable, it reacted to movement but wasn't really tracking as such, I don't think it was trapped in a quarter of the screen as you describe though. But, maybe if your sync signal is weak it is the issue.