The NEW Build Your Own Arcade Controls

Main => Lightguns => Topic started by: 442much on March 02, 2007, 06:32:39 pm

Title: Can't get Light Gun to work in Mame
Post by: 442much on March 02, 2007, 06:32:39 pm
I have an LCD Top Gun and I'm using Mame32 Version 0.104u7.  I also have a trackball and spinner (both USB) which I suspect may be part of the problem.  The light gun works fine in Windows, but is not recognized in Mame32.  I have enabled both mouse input and Light Gun support in MAME32.  I figured I needed to go into the game setup and setup the gun, but when I go into the controls section and I want to change the player one button to my trigger, the trigger pull is not recognized.  I've searched around for answers but haven't come up with anything.

Title: Re: Can't get Light Gun to work in Mame
Post by: btp2k2 on March 03, 2007, 01:31:16 am
I had the same problem....screen would flash but no hit registered and MAME would map the button click....ended up returning the gun and getting a new one
Title: Re: Can't get Light Gun to work in Mame
Post by: 442much on March 03, 2007, 10:52:16 am
After reading the above post it made me think it is not the gun, because it does work in Windows.  I tried a simple test to remove the USB spinner and restart the cab.  After that the gun was working in MAME.  javascript:replaceText(' :applaud:', document.forms.postmodify.message); 

I guess this is really a USB / MAME / XP issue as I believe XP doesn't statically assign the same USB inputs every time. 

What is the best way to trouble shoot this and get it working?
Title: Re: Can't get Light Gun to work in Mame
Post by: u_rebelscum on March 05, 2007, 03:01:21 pm
I have enabled both mouse input and Light Gun support in MAME32.

IIRC, lightgun option is not needed in XP, and if enabled, forces the lightguns to be mouse 1 or 2.

Could you test with mouse enabled, lightgun disabled, and your mouse, spinner & lightgun plugged in?  And report if works?  Hmm, I could be confusing reload_offscreen option with your problem.  Could you also try the reload_offscreen option on and off, with & without the spinner, please?  Thanks, I hope to find a fix it it's mame. :)
Title: Re: Can't get Light Gun to work in Mame
Post by: Derrick Renaud on March 05, 2007, 07:42:41 pm
mame gamename -verbose
tells you what devices MAME finds connected and their numbers.

D.
Title: Re: Can't get Light Gun to work in Mame
Post by: 442much on March 05, 2007, 11:50:34 pm
I have enabled both mouse input and Light Gun support in MAME32.
Could you test with mouse enabled, lightgun disabled, and your mouse, spinner & lightgun plugged in?  And report if works?  Hmm, I could be confusing reload_offscreen option with your problem.  Could you also try the reload_offscreen option on and off, with & without the spinner, please? 

I tried it with mouse enabled, lightgun disable + spinner, trackball & lightgun -- it didn't work.  I tried turning on/off reload_offscreen, enabling/disabling the mouse input and could not get it to work.  The only way is to unplug the spinner.  I did discover that my trackball works for lightgun 1 and the spinner for lightgun 2.  Given that, you would think I would need to unplug the trackball, instead of the light gun.
Title: Re: Can't get Light Gun to work in Mame
Post by: 442much on March 05, 2007, 11:58:23 pm
mame gamename -verbose
tells you what devices MAME finds connected and their numbers.

D.


I tried that and it didn't help because I hadn't setup my config file for MAME (I normally run MAME32) and all the inputs were defaulted as off.  Then I generated a config file and set:
     mouse      1
     joystick     1
     lightgun    1
     offscreen_reload 1

When I ran MAME, the lightgun worked! :applaud:  In fact, I could control it with the mouse or the lightgun.  I went to the MAME32 directory to find a similar .ini file, but it did not contain these type of settings.  Also, the game I picked (Area51) had the video messed up along with the sound.  I guess this is why I run MAME32, because it was easier to set up. 

I would think if this works with MAME, then it should work with MAME32.