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: LCD Topgun configuration in MAME - Need Help! -verbose & Ini details included!  (Read 4338 times)

0 Members and 1 Guest are viewing this topic.

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
I'm trying to get my LCD Topgun to work in MAME - it works fine in Windows XP and moves the mouse cursor reasonably accurately. However, I cannot, for the life of me figure out how to get it to work in MAME. I have now installed Mame 0.105 just for my gun games... the first game I'm trying to get to work is Chiller (rubbish game) just because I know its a gun game and if I can get it to work I can get others to work too.

This is what the MS DOS Command -verbose told me...


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\December 2007 Restor\Desktop\mame104>mame roms/chiller
 -verbose
error: trailing garbage: "1" on line: 86 of file: mame.ini
   ignoring line
Parsing mame.ini : OK
Parsing exidy440.ini : N/A
Parsing chiller.ini : N/A
Using DirectInput 7
Using RAWMOUSE for Mouse input
Mouse 1 : PS/2 Compatible Mouse
Mouse 2 : USB Device
Mouse 3 : Elo Serial Touchmonitor Interface
Mouse 4 : HID-compliant mouse
Joystick 1: Thrustmaster 360 Modena« / 360 Modena« Pro (USB) (3 axes, 8 buttons,
 1 POVs)
  Axis 0 (X Axis)
  Axis 1 (Y Axis)
  Axis 2 (Z Axis)
Keyboards=1  Mice=4  Joysticks=1  Lightguns=4
Primary buffer: 44100 Hz, 16 bits, 2 channels
Enumerating video device display
Hardware stretching supported
Best mode = 640x480x16 @ default Hz
Primary surface created: 640x480x16 (R=0000f800 G=000007e0 B=0000001f)
Blit surface created: 338x242x16 (R=0000f800 G=000007e0 B=0000001f)
SSE supported
Joystick 0 axis 0 is now analog
Joystick 0 axis 2 is now analog
User cancelled



To outline the controls I have linked upto my computer they are as follows -

Serial Elo Touchscreen
PS/2 Mouse
PS/2 Keyboard
USB Thrustmaster 360 Modena Steering Wheel and pedals
USB LCD Topgun




Now this is the controls section of my MAME.ini -


### Input device options ###
mouse                   0
joystick                0
lightgun                1
dual_lightgun           0
offscreen_reload        1
steadykey               0
keyboard_leds           1
led_mode                ps/2
a2d_deadzone            0.300000
# ctrlr                 <NULL> (not set)
paddle_device           keyboard
adstick_device          keyboard
pedal_device            keyboard
dial_device             keyboard
trackball_device        keyboard
lightgun_device         mouse
digital                 none


What am I doing wrong? And how can I correct it? I don't really know what to do and I have looked at quite a few sources (including the Wiki) and I'm not getting anywhere...

Any help would be great!

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+
This is what the MS DOS Command -verbose told me...
Microsoft Windows XP [Version 5.1.2600]

You're not using DOS, you're using MS WinXP command line.  Huge difference. 
(DirectX, Direct3d, DirectDraw, DirectInput, RawInput, etc are windows only.)  [rant=off]  ;)

Quote
error: trailing garbage: "1" on line: 86 of file: mame.ini
   ignoring line

What's on line 86?  Probably not the problem, but should be checked out anyway.

Quote
Using RAWMOUSE for Mouse input
Mouse 1 : PS/2 Compatible Mouse
Mouse 2 : USB Device
Mouse 3 : Elo Serial Touchmonitor Interface
Mouse 4 : HID-compliant mouse
...
Serial Elo Touchscreen
PS/2 Mouse
PS/2 Keyboard
USB Thrustmaster 360 Modena Steering Wheel and pedals
USB LCD Topgun

Windows is showing mame 4 mouse devices, you only list three.  I wonder what the fourth mouse is?  (Not important, though.)

Quote
### Input device options ###
mouse                   0
joystick                0
lightgun                1
dual_lightgun           0
offscreen_reload        1
...
lightgun_device         mouse

Okay, just FYI, this setup is like having "mouse 1" for all games that mame thinks used lightguns.  Some people on some versions of mame do better with mouse disabled, others with it enabled.  After you try the next paragraph and if still doesn't work, try disabling by changing the last line to say keyboard just like the others above it.


Finally get to the help. ;)  IIRC, that version of mame is forcing multiple mouse support.  Your gun isn't mouse 1, and only mouse 1 is mapped to player 1.  Just like joystick 2, mouse 2 is mapped to player 2, same with 3 & 4.  So you need to remap the gun (mouse 2 or 4, not sure with what's shown) to player 1.  Start game, tab, "Input (this game)" (<-- I'm assuming you want to use you mouse for other games), go to the lightgun inputs, err... just follow this wiki.  You might have to disable mouse to remap correctly (mame should show lightgun, not mouse, as remap).  You can repeat this for all lightgun games you want to play, or apply to general and effect all games by doing it to "Input (general)" instead of "this game", or make ctrlr files (IIRC, done differently than current mame).
Robin
Knowledge is Power

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Thanks for the advice - I will give this a go when I feel a bit better (been out of action for a few days because illness!)