Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Act Labs lightgun reload button  (Read 2225 times)

0 Members and 1 Guest are viewing this topic.

doctorhifi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:July 05, 2013, 08:21:41 am
    • My cabinet
Act Labs lightgun reload button
« on: September 05, 2008, 12:04:14 pm »
I am using MAME .126 and two USB TV light guns.  They work really well with one exception.

Both the FIRE and RELOAD buttons register as Player 1 button 1.  This makes it impossible to map the RELOAD button to do something else, like launch a grenade (which I would like it to do for Operation Wolf)

Anyone else experience this?
I have the first gun's switch set to the middle position and the second guns switch set to the top position.
What am I missing?

thanks

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Act Labs lightgun reload button
« Reply #1 on: September 05, 2008, 12:18:59 pm »
What am I missing?

I'm going to get technical.  ;)  You have mame's -offscreen_reload enabled.  This translates lightgun button 2 to button 1 & the location of one of the corners.  What it's translated to is what many of the original games expected to get on a reload, as most didn't have a second button.  The reason it's needed is that your guns (& most other PC guns) send, when shot offscreen, button 2 & location of last onscreen shot.  Since the gun sends the same thing with an onscreen button 2 press, mame cannot tell if it's an offscreen trigger shot (reload) or an onscreen button 2 shot (what you want).

So to be able to use button 2 as a normal button, change -offscreen_reload back to 0 in mame.ini.  You'll lose the reload, though.
Robin
Knowledge is Power

doctorhifi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:July 05, 2013, 08:21:41 am
    • My cabinet
Re: Act Labs lightgun reload button
« Reply #2 on: September 05, 2008, 12:23:45 pm »
Great, thanks for that quick answer.

So in a game like Area 51, where my off-screen reload is currently working, if I turn it off I won't completely lose the ability to reload if I assign button 2 to do this, correct?  I'll just lose the off-screen reload.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Act Labs lightgun reload button
« Reply #3 on: September 05, 2008, 05:46:16 pm »
Great, thanks for that quick answer.

So in a game like Area 51, where my off-screen reload is currently working, if I turn it off I won't completely lose the ability to reload if I assign button 2 to do this, correct?  I'll just lose the off-screen reload.

Nope, you'll lose reload on area 51 if you disable reload.  :-\ The original game reloaded only by shooting offscreen (game saw trigger + corner location); it didn't have a reload button.  So there's no place to map your button2 to.  For games with reload enabled, that second button will also reload and cannot be used for anything else.  For games with reload disabled, you can use the second button for any button the original game had.

What I'd do is set offscreen_reload to 0 in mame.ini, and make game specific ini files that only contain "offscreen_reload 1" (not including quotes) for the few games that need offscreen reload.  So for area51, I'd name that one line file area51.ini and put it in the ini folder.

With reload enabled, any none lightgun button 2 input can be used to shot grenades.  (But I wouldn't use the trigger. ;))
Robin
Knowledge is Power

doctorhifi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:July 05, 2013, 08:21:41 am
    • My cabinet
Re: Act Labs lightgun reload button
« Reply #4 on: September 06, 2008, 02:54:44 pm »
that worked perfectly.  Thanks for the tips!