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: Can't get dual lightguns working in XP  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

Bill_S

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 242
  • Last login:June 22, 2018, 08:23:57 am
  • aka buzzdalf
Can't get dual lightguns working in XP
« on: October 14, 2003, 06:48:27 pm »
OK,
I connected 2 new ACT LABS TV lightguns and am having trouble getting the 2nd one to work.
I'm running MAME 67 and windows XP.
The player 1 lightgun is working great with no issues (other than re-load bug in Area 51).
The player 2 gun will not register the fire button, though.  When I fire it flashes the screen like it should.  But it won't actually register a shot.  When I hit tab and try to configure the player 2, button 1 it won't respond to the fire button on the gun.

I tried manually going out to the controller config file and setting it for different mouse buttons with no luck.

Has anyone gotten dual TV-Out lightguns working in MAME on XP?
« Last Edit: October 14, 2003, 06:52:26 pm by Bill_S »

Bill_S

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 242
  • Last login:June 22, 2018, 08:23:57 am
  • aka buzzdalf
Re:Can't get dual lightguns working in XP
« Reply #1 on: October 14, 2003, 07:17:02 pm »
OK - I just went out to windows and tested the button 3 thing for the player 2 fire button.
It sure seems to be working correctly.  When I go into IE and press the fire button on player 2's gun, it brings up the scroll arrows as if I pressed the clicker on a mouse wheel (i.e. button 3).
Anyone know what I'm doing wrong that MAME won't see it?

jerryjanis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:February 02, 2023, 01:56:44 am
  • Skate or Die!!!
    • Jake's Joystick
Re:Can't get dual lightguns working in XP
« Reply #2 on: October 14, 2003, 07:36:41 pm »
I don't understand why Mame isn't letting you remap the player 3 trigger.  I know that if you pause Mame, then for some reason the mouse buttons can't be configured, so make sure that you don't try to reconfigure with the game paused.

You have the option of using MameAnalog+ XP with both guns set for player 1 mode.  There's a thread that should explain it here:

http://www.arcadecontrols.org/yabbse/index.php?board=3;action=display;threadid=12287

It's too bad that the lightguns aren't working properly with regular Mame, hopefully someone can shed some light on that.

Bill_S

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 242
  • Last login:June 22, 2018, 08:23:57 am
  • aka buzzdalf
Re:Can't get dual lightguns working in XP
« Reply #3 on: October 14, 2003, 07:41:09 pm »
Just to update everyone:
I'm an IDIOT.

I was modifying my custom controller file, but neglected to tell mame.ini to use it.
I've got shooting, but no movement.  I'm getting closer here.  Looks like it will work once I get it set up properly.

EDIT: OK I am struggling again.  I cannot get movement.  When I tell mame to use mouse 1 button 3, I get shooting and no movement with gun 2.  When I don't tell mame to use any mouse button for gun 2 I get movement (when I pull the trigger the crosshairs move to where the gun is on the screen) with gun 2 but no shooting (pulling the trigger won't actually register a shot it just moves the crosshairs around).  
Why can't I get both???
« Last Edit: October 14, 2003, 08:34:11 pm by Bill_S »

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:Can't get dual lightguns working in XP
« Reply #4 on: October 14, 2003, 11:42:44 pm »
Mame is not set up to use the new actlab 2 player method.  Actually, the code looks like it will work in win98 & winME as a side effect, but not win2k/XP.
// if out of range, skip it
if (!use_lightgun || !win_physical_width || !win_physical_height || player >= lightgun_count)


Win2k/XP can only count one lightgun, while winME/98 do count the number of lightguns.  Sounds like you'll need to either edit above line or use MameAnalog+.

Hmm, I think changing the line to
Code: [Select]
if (!use_lightgun || !win_physical_width || !win_physical_height || (player >= lightgun_count && player > 2)) will do it.
Robin
Knowledge is Power

Bill_S

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 242
  • Last login:June 22, 2018, 08:23:57 am
  • aka buzzdalf
Re:Can't get dual lightguns working in XP
« Reply #5 on: October 15, 2003, 06:51:26 am »
Thanks for the reply!
At least now I know to stop messing around with standard MAME.
I'll give Analog+ a try tonight.