Main > Lightguns
Issues with the Act Labs TV lightgun
<< < (2/3) > >>
1UP:
Also, try shooting in bursts of 2-3 shots, and reloading every time.  Most gun games are too fast paced to be sharpshooting every time, so I always just aim and fire 3 shots, one of which will always hit.  This should help since you're saying that the shots only misfire some of the time.

I don't have the guns yet, so can't help more than that...
night:
ive had my guns for a week and im just now getting around to trying it.

it works fine as the mouse. and registers in mame. but it wont give the shoot sound or actually shoot  ???
all i know to try right now is area 51. cant remember any other games. i have HOTD2 but it crashes on loading in win98  >:(
u_rebelscum:

--- Quote from: SuperBoB2Turbo on October 18, 2003, 08:46:17 pm ---You're right about the exact center thing.  When I'm shooting at the center I'm aiming at the default reticle that MAME puts on which is in the exact center.  And since I'm such a good shot  ;D I probably am hitting the center a lot  ;)

I would be interested in hearing about the bug fix.

Thanks for the help!

--- End quote ---

Okay, the fix I was thinking of doesn't make the jump go totally away on my system, but seems to reduce the jump.  Might be different on your system.  What it does is override any analog sensitivity setting, thus making playing anything besides a lightgun more difficult.

Okay, outline: mame is coded so that if no lightgun is installed and the -lightgun option is enabled anyway, you can still use the keyboard for input.  This is done by starting the crosshairs in the center; mame calls this (0,0) internally.  Then mame checks if lightgun X <> 0, use the lightgun X axis data to locate the X axis of the crosshairs, else use last X value of "normal" inputs to do so; repeat for the Y axis.  The normal inputs are the keyboard, mouse, and joysticks.  Now, since the lightgun is also a mouse, albeit with irregular data, and the mame reads the "mouse" differently than a lightgun, the lightgun data read as a mouse is way wacko.  Moving a mouse from the left side to the right side of the screen 1024 width usually totals a delta reported to mame as 1024; with the lightgun the delta is 65535 no matter the screen width, at least in winME/9x.  (And on a 1024 wide screen, a one pixel sideways move is 65535/1024, or 64, which mame treats as 64 pixels)

The easiest fix would be to remove that if lightgun <> 0 check.  

With mame 0.76, comment out (ie: add two slashes "//" at the begining) the four lines 2114, 2119, 2123, 2128 in src/inptport.c.  It will look something like this:

--- Code: ---   if (axis == X_AXIS) {
//      if (lightgun_delta_axis[player][X_AXIS] || lightgun_delta_axis[player][Y_AXIS]) {
         analog_previous_axis[player][X_AXIS]=0;
         analog_current_axis[player][X_AXIS]=lightgun_delta_axis[player][X_AXIS];
         input_analog_scale[port]=0;
         sensitivity=100;
//      }
   }
   else
   {
//      if (lightgun_delta_axis[player][X_AXIS] || lightgun_delta_axis[player][Y_AXIS]) {
         analog_previous_axis[player][Y_AXIS]=0;
         analog_current_axis[player][Y_AXIS]=lightgun_delta_axis[player][Y_AXIS];
         input_analog_scale[port]=0;
         sensitivity=100;
//      }
   }
--- End code ---

It might act differently on different versions of mame than on my system (winME): I can use the keyboard until I use the lightgun/mouse/trackball, then I can't use the keyboard for any player.  WinXP might let you control player 1 with a lightgun and player 2 with the keyboard at the same time, or never let you use the keyboard.
Smack:
I'm gonna give that a whirl later today myself.

Just curious, do you plan on adding that little fix to your port of analog mame+?

Smack
Howard_Casto:
About the hogans alley/duckhunt issues......  On the old nes (and i'm assuming the arcades as well) the lightgun was a "half gun" that didn't calculate the screen rather it replaced the characters with large bright squares when you fired.  If your gun was pointing at one the hit would register.  What this means is large, inaccurate targets that were farily easy to hit.  

As these guns don't work this way, you have smaller (particularly in duck hunt) more precise targets.  They do work with the gun, you just have to be REALLY accurate.  In other words line up your shot with both sites.  
Navigation
Message Index
Next page
Previous page

Go to full version