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: AimTrak setup  (Read 3594 times)

0 Members and 1 Guest are viewing this topic.

Kirky

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 13, 2010, 03:03:26 pm
AimTrak setup
« on: December 21, 2009, 11:54:17 am »
OK, I've been playing with one AimTrak for a bit and it's been working pretty good.  This weekend I tried to get two going and that's where things really went belly up.

In MAME.INI I have the following:

Code: [Select]
#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     1
joystick                  0
lightgun                  1
multikeyboard             0
multimouse                1
steadykey                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85

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

I also have dual_lightgun 1  for giggles, but that hasn't helped either.

Both guns are updated to the 1.3 firmware, one is device_id 1 the other is device_id 3 (I've got a third gun that's device_id 2).  All three are calibrated within Windows and all seem to work fairly good within Windows.  Of course, only one mouse cursor...  Within MAME (I have been using the command line version to eliminate any other problems a FE or whatever might cause) it only seems to recognize one gun at a time.  I'm trying to assign player one controls to one gun (general inputs)  and player two to the other.  MAME only seems to be able to recognize one gun at a time, I have to unplug one of the guns to get the other one to be recognized.

Now, I can't seem to get any games to calibrate correctly (MAME calibration not the AimTrak calibration).  One one gun can physically be plugged in at a time and in T2 (which was working) I constantly fire at the top left of the screen when I pull the trigger.    Exit out of MAME and the AimTrak moves the cursor perfectly!

I don't get it... 

Any thoughts?  I'm sure it's something stupid and I can't see the forest through the trees.

I have two other mice on the machine, one of them is a trackball the other is a real wireless mouse.  All seem to work fine in windows.  MAME seems to puke though one I attempt to use the light guns.

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: AimTrak setup
« Reply #1 on: December 21, 2009, 01:11:20 pm »
lightgun_device = lightgun

1UP

  • Token Junkie
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2081
  • Last login:November 11, 2014, 01:37:18 am
  • Yes, that is a joystick in my pocket.
    • 1UPArcade
Re: AimTrak setup
« Reply #2 on: December 21, 2009, 02:45:54 pm »
I think we need to consolidate all these Aimtrak posts into a FAQ, and forward it to Andy to put on his site.

Free resource for building your own rotating control panels!

My other job...


bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: AimTrak setup
« Reply #3 on: December 21, 2009, 02:59:30 pm »
A lot of the problems people are having with the AimTrak are the same as what others (including myself) have experienced in the past just because of how MAME is constructed.  It seems like this should be on the wiki somewhere as a general "get your gun working" FAQ.  But, having the info on Andy's site would be good too (especially for the AimTrak specific stuff obviously).

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: AimTrak setup
« Reply #4 on: December 21, 2009, 03:33:28 pm »
Tell ya one thing, since the latest update, my accuracy has increased by quite a bit! I'm pointing and shooting more and relying on the crosshair less.

Kirky

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 13, 2010, 03:03:26 pm
Re: AimTrak setup
« Reply #5 on: December 21, 2009, 09:32:56 pm »
Thanks, you're right, I couldn't find anything anywhere, a FAQ would be great...  Somewhere, anywhere, it doesn't matter...  Google thinks I'm looking for Amtrac...

Anyway, after a little playing around, I went and reassigned the device IDs to 1 and 4 I believe.  lightgun_device = lightgun (minus the =) didn't do anything.  In the MAME Player 1 Control config screen, I could see moving the gun up and down scrolled like it would with the mouse, however upon assignment, it wouldn't recognize that movement.  I changed it back to lightgun_device mouse and it worked.  My guns are detended as GUN 4 and GUN 5.  It wouldn't recognize the trigger or button (Guncon shell) as pressed, so I went in and enabled Joystick (joystick 1) and now it does.  So, movemet is detected as GUN X and buttons are detected as JOYSTICK X BUTTON X

I set dual_lightgun back to 0 as well...

I'm on MAME .135 if it matters, using the stock vanilla i686 optimized sources from MAMEDEV.ORG.

Sounds like this is totally non standard, so if anyone has some directions, maybe even for a basic out of the box MAME config, I'm sure they would be appreciated in the community.

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: AimTrak setup
« Reply #6 on: December 22, 2009, 01:50:11 am »
IIRC, the AimTrak sends button presses as joysticks and the movement as mouse.  As such, you wouldn't expect to see the lightgun trigger show up as lightgun or mouse.  Yes, you would need joystick enabled to have the triggers work.

Ragtag83

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 30
  • Last login:August 28, 2011, 07:03:57 am
Re: AimTrak setup
« Reply #7 on: December 22, 2009, 03:07:13 am »
My mame.ini to get my dual AimTraks working:

joystick                1
lightgun                1
multikeyboard             0
multimouse                1
steadykey               0
offscreen_reload        1

lightgun_device         lightgun

dual_lightgun           0

Mame reads the additional buttons as joystick buttons but the trigger is still read as a gun, or it comes up so on mine. I am still working on my system. It's only software being controlled by the AimTraks with Mala as the FE. A somewhat portable system to be plugged into any PC with minor adjustments to get working.  I must say thanks to this forum for otherwise I wouldn't have made it this far.  :applaud: I am currently playing HOD2 and 3 PC version, Time Crisis psxfin version, and dozen Mame games. It's been a blast. Sadly the system I am working on is for my brother so when it's complete I will need to get my gun wired up...though that will also be more fun.

I am wondering though if it is actually possible to get epsxe working with the AimTraks. I've tried but all I get is a bouncing cursor all over the screen.  I also read that Demul has lightgun support but my current computer can't run it yet to try it out, anybody try it?

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: AimTrak setup
« Reply #8 on: December 22, 2009, 11:39:31 am »
you can also do:

multimouse                0
dual_lightgun              1