Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: Kirky 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:
#
# 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.
-
lightgun_device = lightgun
-
I think we need to consolidate all these Aimtrak posts into a FAQ, and forward it to Andy to put on his site.
-
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).
-
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.
-
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.
-
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.
-
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?
-
you can also do:
multimouse 0
dual_lightgun 1