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 and MAME problem  (Read 3774 times)

0 Members and 1 Guest are viewing this topic.

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
AimTrak and MAME problem
« on: January 28, 2016, 05:53:17 pm »
Hello everyone, first post here!

My AimTrak gun is having nothing but problems.  I just restarted my computer when I open up the Ultimarc AimTrak program it keeps crashing.  Thats a new problem that just happened right now.

The original problem I am having is with MAME.  I am running all my emulators through HyperSpin and when I use the gun in other emulators it has no problem but when I go through MAME the crosshair is going ALL OVER THE PLACE.  I set the inputs and made sure the X is set to X only and Y is set to Y only.  The gun is regonized as Mouse 1 and when I use a regular mouse or even the trackball it works perfectly, this problem in MAME is strictly limited to the Lightgun. 

I am at a lost with this for now.

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #1 on: January 29, 2016, 06:52:09 am »
A little update.

When I turn the gun to an emulated joystick it works perfect in MAME. I prefer to have it a mouse though but it but I hope this can help someone with more info to figure this out.

ABACABB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 224
  • Last login:August 26, 2023, 12:37:07 pm
Re: AimTrak and MAME problem
« Reply #2 on: January 29, 2016, 08:26:20 am »
Are you using MAMEUI?  If so, in the Options section where you define controllers, I would suggest setting the lightgun controller to your Aimtrak.  That way trackball games can be set to mouse.  Define the X and Y axis for the lightgun (which would be your Aimtrak).  Start here and see if this gets you anywhere

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:July 30, 2025, 12:13:36 pm
Re: AimTrak and MAME problem
« Reply #3 on: January 29, 2016, 09:01:03 am »
Yeah, it should recognize as "Gun 1 X" when mapping in MAME.

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #4 on: January 29, 2016, 09:44:04 am »
Not using MAMEUI. I got my drive with hyperspin setup so I don't know how to setup mame except pressing tab during a game as the ini file.

I know where the mame exe file is, is there a way I can use MAMEUI with my exsisting mame? I am a huge noob when it comes to mame which is why I went with a setup drive to avoid this...

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:July 30, 2025, 12:13:36 pm
Re: AimTrak and MAME problem
« Reply #5 on: January 29, 2016, 10:16:31 am »
Is there an INI folder where the MAME exe is?  Do you see an .ini file for the game you are trying to play?

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Yesterday at 09:08:34 pm
  • ...
Re: AimTrak and MAME problem
« Reply #6 on: January 29, 2016, 10:38:17 am »
In the control mapping screen (TAB), make sure the lines marked INC and DEC aren't mapped to anything.
Those are for button presses and would result in ANY movement of the gun being interpreted as holding down the button for that direction.
(ALL OVER THE PLACE  :lol )


Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #7 on: January 29, 2016, 11:05:32 am »
There is an ini file in the folder where the exe is MAME/mame.ini. There is also a ini folder with another ini file in it MAME/INI/mame.ini so I don't know which ini file I should change so I changed both lol.

I did set INC and DEC to NONE.

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:July 30, 2025, 12:13:36 pm
Re: AimTrak and MAME problem
« Reply #8 on: January 29, 2016, 11:21:10 am »
This should help explain how to use the .ini files:
http://easyemu.mameworld.info/mameguide/mameguide-inifiles.html

Change the two I have bolded to "lightgun" instead of "keyboard".  The reason why you should also do it for adstick_device is because some games like T2, Revolution X and Operation Wolf actually use an analog stick that's shaped like a gun.

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

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #9 on: January 29, 2016, 11:29:30 am »
i set light gun device to light gun but not adstick.
« Last Edit: January 29, 2016, 11:36:33 am by Dennis691 »

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:July 30, 2025, 12:13:36 pm
Re: AimTrak and MAME problem
« Reply #10 on: January 29, 2016, 11:38:21 am »
I was just copying from the site I sent you.  I assume those are default. If the trackball games work then there is no need to change anything.

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:July 30, 2025, 12:13:36 pm
Re: AimTrak and MAME problem
« Reply #11 on: January 29, 2016, 11:39:56 am »
i set light gun device to light gun but not adstick.

What game are you trying to play? Check the .ini file for that individual game.

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #12 on: January 29, 2016, 12:47:04 pm »
I tried time crisis, police training and Area 51 and all were the same. Where would the game ini files be?

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #13 on: January 29, 2016, 06:41:02 pm »
Little update.

Installed MAMEUI and it fixed the problem! 

Only problem I am having now is the left and right buttons aren't mappable but I have to check the aimtrak configure tool to make sure I have those buttons enabled. I will heck that later though.

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7919
  • Last login:July 27, 2025, 11:06:50 am
Re: AimTrak and MAME problem
« Reply #14 on: January 29, 2016, 11:28:07 pm »
I will never own a lightgun on a cabinet. All I ever see is posts like these. I like the lightgun and the PS2 setup, but lightgun and computer just seems too iffy.

Good job getting yours fixed. :)

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #15 on: January 29, 2016, 11:46:32 pm »
Yea I def wouldn't recommend it unless you have the knowledge to tinker around and figure all the bigs out.

I did figure out the buttons, I had to enable joysticks bc the buttons are reconized as a gamepad yet the movement is a mouse. Go figure....

Runadumb

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:January 30, 2016, 04:51:42 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #16 on: January 30, 2016, 04:51:43 am »
I will never own a lightgun on a cabinet. All I ever see is posts like these. I like the lightgun and the PS2 setup, but lightgun and computer just seems too iffy.

Good job getting yours fixed. :)

While it may be entirely user error I find the guns to be the biggest pain in the ass.  Just started trying to set mine up again after them sitting unused for over a year since the last time and I'm having to look up how to do it again.
 Both MAME and Aimtrak are so well established at this point why there isn't simple integration is surprising to me.

Dennis691

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:December 27, 2017, 07:04:36 am
  • I want to build my own arcade controls!
Re: AimTrak and MAME problem
« Reply #17 on: January 30, 2016, 10:11:33 am »
Yea the guns are sometimes not worth the extra effort to get them working. Even though I have mine fully working I am afraid to restart my computer and loose it all lol.

They should make a better install and setup process for this, I find myself working on the arcade than I do playing it!