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 - How do I set this up in MAME?  (Read 1771 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
LCD Topgun - How do I set this up in MAME?
« on: December 15, 2008, 10:19:52 am »
I have now modified the title of this... look at the last post...
« Last Edit: December 15, 2008, 04:08:46 pm by slapaham »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Can you mount the sensor bars horizontally? I never tried mine are vertical.

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
You sure can... read up on the Wiki for the gun. Vertical is meant to be marginally better but I don't have that luxury unfortunately!

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Are you sure you calibrated properly?  Since you have your sensor bars mounted horizontally, calibration will be different.

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
You're totally right! I hadn't calibrated it correctly... a lot of faffing but its working as the cursor in Windows now - reasonably accurately... any tips for getting it to work in MAME? Just tried it in Chiller and it mainly stayed stuck at the top centre of the screen! I'm chuffed I've got this far as last week I was ready to give it up - wish I'd have experimented a bit more with it in the first place!

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #5 on: December 15, 2008, 04:10:26 pm »
Has anyone got a step-to-step guide or know of one for setting up the LCD Topgun in MAME? I have hardware calibrated it and it is emulating the mouse in Windows but I don't know where to start with getting it to work in MAME. I'm running MAME V.0.56.

mrserv0n

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:May 25, 2021, 09:20:06 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #6 on: December 15, 2008, 04:36:19 pm »
Why are you running such an old mame version?

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #7 on: December 15, 2008, 04:43:50 pm »
Easy answer... I have a crappy old computer and thats the best it can handle!

Its odd, I just did mame gamename -verbose and it says MAME is only picking up one mouse - even though I have a mouse, touchscreen and the lightgun functioning in Windows...

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: LCD Topgun - How do I set this up in MAME?
« Reply #8 on: December 15, 2008, 07:37:36 pm »
If you can find a way, you should try to upgrade.  Newer versions of mame have much better analog input support. 

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: LCD Topgun - How do I set this up in MAME?
« Reply #9 on: December 15, 2008, 08:48:31 pm »
I thought Dual mouse support in mame came a lot later than that version?  Since the lightgun is seen as a mouse, isn't this the reason why it's not working?

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #10 on: December 16, 2008, 06:49:07 am »
So I assume in my circumstance I would have to upgrade to a newer version that has dual mouse support? Any idea on what version was the first to incorporate this? Is there no other way I can do this without getting a newer version?

Thanks for the input guys...

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #11 on: December 16, 2008, 06:52:52 am »
Well, I just found out versions 104 or 105 are good starting points... I'll try them, but I can't think they are going to run all that well on my system, so in the meantime, as I said before, if anyone knows another way of doing this without updating MAME I'd be really grateful!

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #12 on: December 16, 2008, 07:27:56 am »
For those of you wanting to know - the version is specifically 0.104u5

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #13 on: December 16, 2008, 09:57:49 am »
I posted this in the software forum as a new thread as I thought it belonged there now (I didn't think it would do any harm to put it here too as this is obviously related!)


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!
« Last Edit: December 16, 2008, 09:59:29 am by slapaham »

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: LCD Topgun - How do I set this up in MAME?
« Reply #14 on: December 16, 2008, 10:14:58 am »
You want to go into the user interface(press TAB).  Select Input(general), then select Player 1 controls and scroll down to the lightgun section.   You will need to program the Lightgun X analog and the Lightgun Y analog inputs.  Do this by highlighting, press Enter, and then move the gun left or right for the X input and up or down for the Y input.

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #15 on: December 16, 2008, 10:22:59 am »
Thanks for that Popcorrin - I'll give that a quick go now... and post back before I head out to work!
 :cheers:


slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #16 on: December 16, 2008, 10:31:41 am »
Well, just had a look and it says Lightgun n/a in the tab menu - so I'm guessing that means MAME isn't picking up any lightgun - which would correspond with getting no signs of life when I try what you suggested. I don't think the lightgun or mouse are properly set up in MAME yet and thats whats causing the problem.

Todd H

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 658
  • Last login:August 26, 2024, 02:23:32 pm
  • It's Gameday!
Re: LCD Topgun - How do I set this up in MAME?
« Reply #17 on: December 16, 2008, 10:41:54 am »
Change mouse in the .ini to 1 instead of 0 and see what happens.

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: LCD Topgun - How do I set this up in MAME?
« Reply #18 on: December 16, 2008, 12:06:11 pm »
I'm not experienced with this but again, isn't the LCD Topgun seen as a mouse?  ie: should that be how it appears to Mame?

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #19 on: December 16, 2008, 01:25:13 pm »
Yeah, I tried it with mouse set to enabled - nothing happened...  :angry:   ...thanks for the input though!

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: LCD Topgun - How do I set this up in MAME?
« Reply #20 on: December 16, 2008, 01:38:39 pm »
When you say nothing happened, do you mean the lightgun input assignment still says n/a.

Try using the command line switches -mouse and -lightgun to make sure they are getting enabled.   Then try to assign the lightgun inputs.  Try your lightgun first(when trying to assign the inputs, move the gun fairly quickly in the proper directions) and if that doesn't work at least see if you can assign the inputs to your mouse.   Does your mouse work on trackball games and such?

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: LCD Topgun - How do I set this up in MAME?
« Reply #21 on: December 16, 2008, 04:02:44 pm »
Must admit, never tried my mouse in MAME. I know I'm probably being thick here but I've read about the command line switches -mouse and -lightgun elsewhere but it never says where or how to use them!!

Referring to what I was saying - yes, above the x,x,y,y axis button mappings, the field remains as 'n/a'.

Thanks for your help so far... if you can give some guidance as to what and where to use the command lines that would be brilliant... :cheers:

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: LCD Topgun - How do I set this up in MAME?
« Reply #22 on: December 16, 2008, 07:16:53 pm »
You'll want your command line to look like this
mame zeropnt -mouse -lightgun