Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
01861 DIP/Input Major Always Jun 3, 2008, 15:27 Jun 26, 2008, 00:44
Tester Gatinho View Status Public Platform MAME (Official Binary)
Assigned To Resolution Unable to reproduce OS Windows XP/Vista 32-bit
Status [?] Closed Driver
Version 0.123 Fixed in Version Build Normal
Fixed in Git Commit Github Pull Request #
Summary 01861: Setting of Player1Button1 for Lightgun is not working correctly
Description According to BYOACwiki, setting the player 1 button 1 (P1B1) (trigger fire) for a lightgun should produce this result:
["It shows "Mouse 4 Button 1"]

Setting button one with the lightgun pointed at the screen does not produce that result. [See "additonal information" section below]

It will produce that result only if the lightgun is fired offscreen during the set up for P1B1. Doing so sets the P1B1 so that during game play it updates the cursor (moves it to the pointed-at location) but does not fire the weapon. In fact, this effects also produces the off-screen reload on games which allow it, even though the cursor is clearly and accurately updated on screen.

To set P1B1 to actually fire the weapon in addition to updating the cursor, the light gun must be pointed at the screen when setting P1B1. When doing this, the result is not "Mouse 4 Button 1", but instead produces a formula, which varies depending upon where on the screen you pointed the lightgun when setting P1B1. By formula I am not referring to accidently setting multiple keystrokes which will be accepted as P1B1, but an actual formula based upon the x and y coordinates of the mouse (lightgun). This formula will allow the lightgun to work properly only on specific portions of the screen. For example, the gun may fire at all targets on the left side of the screen (the side for which the forumla provides the proper result). For the right side of the screen it will only update the cursor (move it to the selected position), but not fire the weapon, and if allowed, will also reload as if fired off screen.

This essentially renders the lightgun ineffective for all lightgun games.
Steps To Reproduce Is 100% reproducable on all light gun games on my system by following the lightgun set up instructions provided by BYOACwiki...

http://wiki.arcadecontrols.com/wiki/Mame_Lightgun_Setup
Additional Information I have scoured forums and have seen many players also suffering this problem, with no working solutions posted.

Mame.ini is configured to allow the mouse, to allow multiple mice, to allow off-screen reload, to refresh rate 60, to auto resolution, and the gun is calibrated for the specific lightgun game being attempted using the calibration switch on the lightgun itself. Calibration is effective and accurate (meaning the cursor updates to exactly where the lightgun is pointed). Holding 9 and f2 to calibrate the game has no additional effect.

Windows XP desktop screen resolution is 1024x768, in case that is in any way relevant.

The lightgun used is ACT Blue lightgun, set for Player 1
http://www.act-labs.com/scripts/proddetails.asp?Pid=993
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.01186
Tafoid
Administrator
Jun 3, 2008, 16:11
edited on: Jun 3, 2008, 16:11
First off, Critical bugs are only for games which crash MAME or the game itself. (changed) Also, please verify any bugs you report are reproducible ONLY using the very latest development build. (in this case, MAME 0.125u3). You can get links to that latest command-line build from the "Rules and Guidlines" link above, Item #1.

That being said, there have been substantial input changes in this series of development releases (starting in 0.125u2). Retest your ability to map/use your gun in this latest environment. The wiki you mentioned might need to be updated with new instructions or screenshots - unforunately with MAME, things rarely stay the same for long.

Anyone reading that has a lightgun with the same make or not.. please test and report here.
User avatar
No.01387
Tafoid
Administrator
Jun 26, 2008, 00:44
This was resolved by the user and was a configuration error.
http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=155304