Jump to content
LaunchBox Community Forums

Recommended Posts

Posted (edited)

OK I havn't played MAME in a while but this has worked for years until now. I'm using MAME 287. Here is what is in my cfg in the ctrlr folder. file named mapdevice. Inside my MAME ini is this 

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     mapdevice

and below is the cfg I use for the ID's

 

<?xml version="1.0"?>
<mameconfig version="10">
    <system name="default">
        <input>
            <mapdevice device="VID_0483&amp;PID_5750&amp;MI_00&amp;Col01#8&amp;38255be8&amp;0&amp;0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}" controller="GUNCODE_6" /> 
            <mapdevice device="VID_0483&amp;PID_5751&amp;MI_00&amp;Col01#9&amp;23770f6c&amp;0&amp;0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}" controller="GUNCODE_7" />
            <mapdevice device="3A-3H Retro Shooter 1 product_57500483-0000-0000-0000-594944564944 instance_d13114f0-de41-11ef-8001-4445535400000" controller="GUNCODE_6" />
            <mapdevice device="3A-3H Retro Shooter 2 product_57510483-0000-0000-0000-504944564944 instance_9fffae80-e0b9-11ef-8001-4445535400000" controller="GUNCODE_7" />
            <mapdevice device="Xinput Player 1" controller="JOYCODE_4" />
            <mapdevice device="Xinput Player 2" controller="JOYCODE_5" />
        </input>
    </system>
</mameconfig>

 

Now everytime I shutdown MAME it keeps changing my gun ID's. MAME must of changed something in the past releases.

Edited by Joe35car
Posted

Well seems to be working now. Closed MAME several times and pc. Gun 1 is now 7 and gun is is 6. It use to be different. Not sure why it changed when it worked for a few years with no issues. I even make sure I plug in all the usbs in the same port when I work on my panel. 

  • Game On 1
Posted
21 minutes ago, Joe35car said:

Well seems to be working now. Closed MAME several times and pc. Gun 1 is now 7 and gun is is 6. It use to be different. Not sure why it changed when it worked for a few years with no issues. I even make sure I plug in all the usbs in the same port when I work on my panel. 

With your mapdevice.cfg file, it shouldn't matter which USB port they're plugged into because you're referencing the device by its ID.

If you wish (works either way, but doesn't explain why it was, then wasn't and is now working), you can truncate your 2 lightgun ID's in your cfg file.  e.g.

<mapdevice device="VID_0483&amp;PID_5750 controller="GUNCODE_6" />
<mapdevice device="VID_0483&amp;PID_5751 controller="GUNCODE_7" />

 

For the other 2 GUNCODE_6 and 7, between your Log and your cfg file, there's an extra 0 (zero) at the end of the instance in the cfg file.  Not sure if it makes a difference or not.

cfg file
4445535400000
Log file
444553540000

 

Regardless, glad it's working now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...