OS Software




P4 "Lightguns" Testing & Comparison

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

Previous topic - Next topic

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
Oh.... and I assume since I will be configuring the gun as a stick,  it should be pretty basic to assign movements up/down for changing game and fire for ... oh wait... there is a full stick on the gun I think... or enough buttons it shouldn't be a problem.

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
Is there a setting I need to set somewhere to get the "joystick" part to work?   The guncon 2 is recognized.  I can use the positional d-pads and the buttons on the side are all assigned to things.  The trigger should be button A I imagine and the reload at the bottom button b... both do nothing.  I get zero movement of the crosshair no matter how bright as well.

This sounds very "settings are off" ish...

;)

dee2eR

Administrator
*****
Sr. Member
Posts: 199
Logged
Likely it's set to the wrong joystick number... I don't think I made any checks with a guncon after doing the four player driver so may have missed a change or caused a reversion.  I'll check it out.

A quick look later, there's 2 things I'd check while MAME is running
Input Settings > Input Devices (to check if the guncon is picked up and is joystick 3, assuming a 2 player setup)

then check the
Input Settingss -> Input Assignments (this system)    ---I found P1b1 was set to joystick 1, all I had to do was set the trigger (Joy 3 A) as P1B1.  I didn't need to set it (it was correct already) but 'Lightgun X Analog' is set to Joy 3 LSX and  'Lightgun Y Analog' is set to Joy 3 LSY

I didn't use it bit there's also crosshair options in the MAME menu to make the gun movement visible if you need to while troubleshooting.

Tested in Point Blank using GMAME275.

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
That's the thing,  I can't seem to set the trigger or button at the bottom at all.  When I go in to set a button,  pulling the trigger does nothing.  Pushing the button on bottom does nothing.   When I go in to the inputs I see the Guncon... I go in to it and I can see when I am using the D-Pad... i can see when I push the buttons on the side... it shows I am pushing "start" for example when I push one of them.  The A and B buttons (trigger and cock button at the bottom of the handle)?  Nothing.  No activity at all. So I can't even go in to the TAB/Input screens and select either as pushing them does nothing.

I'll keep playing around and check the joystick number, etc...

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
#19
I am striking out thus far.

MAME sees the Guncon 2.  It shows up under joysticks.  The d-pad and side buttons work. I can manipulate Attract mode with them, etc and they show up in MAME as working when I go in to the configuration. That said... everything related to "joystick" doesn't ... the tracking nor the trigger (I assume A button) or cock at the bottom of the handle (I assume B button).  Almost as if the 'joystick' part is turned off... hence my wondering if there was some "joystick" setting somewhere.

I'm only able to play around with it for short periods of time right now (deadline days) but I'll keep at it.

How do I try to make it a mouse (just to see if MAYBE it will work?)...

Also,  am I correct in that if somehow I got a bad gun,  the trigger and B button should still work if the tracking isn't... right?

EDIT: UPDATE - The "A" and "B" buttons actually work ... they are assigned to the big button on the left and right side of the gun.  The start button works and the back button works on the left side of the gun.  The D-Pay works.  The trigger does nothing (nor is there a trigger setting showing up in the Guncon 2 settings?).... the button under the handle does nothing.  And I am getting no tracking.

Is the gun being actually recognized?  Should I not get a flash on trigger pull regardless?

I know... lots of questions...

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
OK... trying to play Point Blank...

Using the button assigned to A on the side I get the FIRE (with flash).  I can not assign the trigger still.  It's simply not showing up as an option (nor as the button at bottom)...

I also turned on the cross hair and I get very very sporratic... and random movement.  That said... there is some movement.  The crosshair is literally way across the screen from where I am pointing but hey,  it showed up and randomly moved... so that's progress.

Does Point Blank have a way to calibrate the guns in the game itself (tried for a bit looking unsuccessfully) or within mame? 

Trying to adjust some of the analog settings went crazy... all the settings would drop to 0 as soon as I went in to them... obviously something was stuck to the left somewhere...

Is there a way to go back to "stock" on a game easy because playing with each setting is screwing up things ... for example,  somehow,  I can't go up in the menus any more.


FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
This is what the Guncon 2 screen looks like when I go in to it...

LIGHTGUN1.jpg

If I press any buttons it adds this number and then the selection starts going down like I am pressing down .... and I have to exit with holding START...

LIGHTGUN2.jpg

As I mentioned before... pressing the two buttons on the left will trigger Start and Back.  Pressing the big button on the left triggers A and the big button on the right triggers B.  The D-Pad works and triggers.  There is nothing indicating trigger or the button below.


FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
I just noted that it says JOYSTICK 1.  How do I make that "Joystick 3"?  Time to get back out there (again,  when I can).  ;)

dee2eR

Administrator
*****
Sr. Member
Posts: 199
Logged
I'm going to dig into this today.  I think I must have released a different version of the Guncon driver to what I tested with yesterday.  It' the only way I can think of that we ended up with different button assignments on the gun.

dee2eR

Administrator
*****
Sr. Member
Posts: 199
Logged
posted a (mildly rushed) update in the 5v2 thread, should fix your trigger up.

I'm honestly not sure which guncon driver version I settled on a while back... I have a few here.  The one I included was the newest of them, seemed to work from a quick test.

dee2eR

Administrator
*****
Sr. Member
Posts: 199
Logged
#25
Quote from: FrizzleFried on Aug 13, 2025, 08:50 AMOK... trying to play Point Blank...

Using the button assigned to A on the side I get the FIRE (with flash).  I can not assign the trigger still.  It's simply not showing up as an option (nor as the button at bottom)...

I also turned on the cross hair and I get very very sporratic... and random movement.  That said... there is some movement.  The crosshair is literally way across the screen from where I am pointing but hey,  it showed up and randomly moved... so that's progress.

Does Point Blank have a way to calibrate the guns in the game itself (tried for a bit looking unsuccessfully) or within mame?

Trying to adjust some of the analog settings went crazy... all the settings would drop to 0 as soon as I went in to them... obviously something was stuck to the left somewhere...

Is there a way to go back to "stock" on a game easy because playing with each setting is screwing up things ... for example,  somehow,  I can't go up in the menus any more.



Point Blanks in game calibrate screen opens with both test and service presssed at once, it's a bit of a weird one - most games tend to have it in the test menu.  MAMEs crosshair will seem off once you calibrate in game as it isn't effected.

Easiest way to go back to stock is probably to replace whichever config file it was entirely but you can usually press 'del' twice when over a setting in MAME to put it to either default or what it was saved last to (I forget offhand which it does).   Maybe this file: https://drive.google.com/file/d/1ShkUHGymicPLrEGGMrA-gj_jgxES0Ybh/view?usp=sharing into /home/pi/.mame275/cfg/ will fix it up for you, but I'm not sure.

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
#26
OK... was able to get in to calibration.  Unfortunately... still having issues.  I CAN see the red dot move a bit and it's responding to my movement on screen... but the red dot is confined to the top right... about the top 20% and right 20% of the screen... no matter where or how many times I attempt to calibrate.  It will never move out of that area...

Tried going over bright... didn't help. 

Tried various settings in the analog settings... nothing I try will get the red dot out of the top right section of the screen.

BTW... what should I set the analog settings at?

EDIT: OK... outside of the top right corner... I "can" see the red dot move VERY sporatically and very quickly to the left but still only at the top 15%ish of the screen... never below.

dee2eR

Administrator
*****
Sr. Member
Posts: 199
Logged
when it's unable to see the screen, either pointed away or not bright enough where it's looking or other reason, the cursor goes to 0,0 so offscreen reloading works.  Maybe that's part of what's going on for you.  I have other versions of the driver here, maybe another would be better.

Not sure re. analog adjustments, I've been calibrating in game.  It sends absolute position so in theory shouldn't need adjusting, but on older Pi4 builds I've definately adjusted it for Sinden guns on a per game basis (they also send absolute position, I think)... I may not have in game calibrated back then though, eg. I only discovered last year that Point Blank could be calibrated in game after working on an original Point Blank cab (I thought it may have been broken in MAME due to the weird button combo I didn't try).

FrizzleFried

Administrator
*****
Sr. Member
Posts: 181
Location: Treasure Valley, ID
Logged
Even if I adjust right up to where it's almost all gray it's so bright... the cursor will never go down below about 2" from the top of the screen...

dee2eR

Administrator
*****
Sr. Member
Posts: 199
Logged
Sounds like something is very wrong.  Even on a mostly dark image any bright bits should be able to track.

Do you know if the gun definately works?