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: setup 2 aimtrak light guns issues with mame  (Read 6344 times)

0 Members and 1 Guest are viewing this topic.

pfabbro

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:February 09, 2014, 12:02:41 am
setup 2 aimtrak light guns issues with mame
« on: February 02, 2014, 02:11:45 pm »
Hi everyone,
I have a small issue with my Aimtrak light guns both guns are being detected by MAME as player 1.  Both guns are functioning perfectly in windows and they are assigned different ids in the Aimtrak software.

I have read on some other posts that one of the main reasons this is happening is because MAME's not using DirectInput in RAW mode.

Does the version of MAME on their website have DirectInput in RAW mode enabled by default?   or do I need to recompile MAME with this feature enabled?

Thanks everyone really appreciate it!

fleskebacon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:November 22, 2024, 01:58:55 pm
Re: setup 2 aimtrak light guns issues with mame
« Reply #1 on: February 02, 2014, 03:35:12 pm »
Does enabling multimouse in mame.ini help at all?

charlieram

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 140
  • Last login:June 03, 2024, 03:42:30 pm
    • TTA Games
Re: setup 2 aimtrak light guns issues with mame
« Reply #2 on: February 03, 2014, 03:39:53 am »
Hi, Just seen your message. This is taken from the aimtrak setup guide
To enable the AimTrak Light Gun(s) in MAME, edit the following lines in your mame.ini file as shown (these are the lines that apply to the Light Gun configuration):
#
# CORE INPUT OPTIONS
#
joystick 1
lightgun 1
offscreen_reload 1

so once you have created the Mame.ini just edit the above lines and you should be able to setup the lightguns as p1 and p2

pfabbro

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:February 09, 2014, 12:02:41 am
Re: setup 2 aimtrak light guns issues with mame
« Reply #3 on: February 03, 2014, 10:59:23 pm »
Thanks for all the information everyone.  The version of MAME that I was trying to use was compiled by someone else and after trying a fresh install of MAME everything seem to work.  With a fresh install of MAME I tried the suggestions and everything is working great!!  I tried a couple of games and everything seems to be running fine now.

I was actually thinking about compiling MAME 0.149.  Is this hard to do?  I want the games to load with out warnings and able to save hi-scores. 

Thanks everyone I really appreciate your time and help.    :)

fleskebacon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:November 22, 2024, 01:58:55 pm
Re: setup 2 aimtrak light guns issues with mame
« Reply #4 on: February 04, 2014, 02:10:11 am »
Very nice. :)

There's a thread on compiling MAME the way you're looking for here:
http://forum.arcadecontrols.com/index.php/topic,64298.0.html

pfabbro

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:February 09, 2014, 12:02:41 am
Re: setup 2 aimtrak light guns issues with mame
« Reply #5 on: February 09, 2014, 12:02:41 am »
ok so I figured out how to compile mame and was able to enable the hi-score + remove all warning screens.  One of the major things with light guns that everyone talks about is making sure the Force Direct Input is not enabled.  You must make sure there is no check mark under the build tab in Mame Compiler 64 when compiling mame otherwise you will get weird things happening with light guns in mame. 

I am using the dos version of mame 0.149 and using 2 aimtrak light guns with out any issues.  I configured the light guns in the input general options in mame and both guns were set for all gun games in mame.  The only thing that will have to be setup would be the trigger button and in some cases like in time crisis you would also need to configure the foot pedal.

If anyone knows how to default the trigger button to all the light gun games please let me know.  From what I have experienced each game is different and each games has its own config so Im thinking there would be no way in doing this.

I used this site for compiling mame.  http://headsoft.com.au/index.php?category=mame&page=mc64  I pretty much followed these instuctions and everything seems to be working great.  I did not update my verison of mame the only update I applied to the mame binary was the hi_149.txt. After compiling mame I created my mame.ini and edited some settings.

Another issue that I came across was that my guns ids were gun2 for player1 and gun3 for player2.  If you want your guns to show up as Gun 1 and Gun 2 you must unplug your mouse or any other devices that act as a mouse like a trackball etc... then go into the aimtrak software and reset your ids to your guns.  Once you do that the guns should now have the correct ids.

In the mame.ini these are the settings I changed to get my guns to work.

#
# CORE INPUT OPTIONS
#
coin_lockout                 1
ctrlr                     
mouse                          1
joystick                        0
lightgun                        1
multikeyboard               0
multimouse                   0
steadykey                     0
ui_active                       0
offscreen_reload             0
joystick_map                  auto
joystick_deadzone          0.3
joystick_saturation         0.85
natural                          0
joystick_contradictory    0
coin_impulse                 0



#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            lightgun
pedal_device              keyboard
dial_device                 keyboard
trackball_device          keyboard
lightgun_device           lightgun
positional_device         keyboard
mouse_device              keyboard


#
# INPUT DEVICE OPTIONS
#
dual_lightgun             2

The dual lightgun option I tried putting a 1 there but mame did not like it.  If someone else has an idea to why please let me know.

Everything is working great and I am very thankful for the people that pointed me in the right direction.