Jump to content
LaunchBox Community Forums

Static controller ID in MameUI64?


Mattardo

Recommended Posts

5 hours ago, 5thWolf said:

Mine is just a windows error popup box from mame, will send a pic tomorrow when i can, doesn't look like your pic though just that single line i quoted before.

Open the Windows Command Prompt from your MAME folder and start mame.exe.  You'll get a verbose readout in that window, and MAME will start to load then close (no error popup window should appear [this time]).  In the Command Prompt window, about the 2nd line up from the bottom should be that message ("Fatal Error:").  Hopefully the line above that will give some more clarity.

image.thumb.png.9c5ca96ca6bdfc9cae75242c4a84e95a.png

  • Like 1
Link to comment
Share on other sites

Here is the message I get:

 

E:\ARCADES\Arcade\Emulation\MAME>mame -v
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Parsing mame.ini
Loading translation file language\English\strings.mo
Reading translation file: 1 strings, original table at word offset 7, translated table at word offset 9
Loaded 0 translated string from file
Starting plugin data...
Starting plugin hiscore...
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Parsing mame.ini
Attempting load of source\empty.ini
Attempting load of ___empty.ini
Video: Monitor 65592 = "\\.\DISPLAY1" (primary)
Video: Monitor 131073 = "\\.\DISPLAY2"
Direct3D: Using Direct3D 9
Physical width 3840, height 2160
Direct3D: Initialize
Direct3D: Configuring adapter #0 = NVIDIA GeForce GTX 1080
Direct3D: YUV format = RGB
Direct3D: Max texture size = 16384x16384
Direct3D: Device created at 3840x2160
Direct3D: Initialize HLSL
DirectSound: Primary buffer: 48000 Hz, 16 bits, 2 channels
Input: Adding keyboard #1: HID Keyboard Device (device id: \\?\HID#VID_046D&PID_C232#2&1a87f3a8&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #2: HID Keyboard Device (device id: \\?\HID#VID_0C45&PID_7603&MI_00#a&289f0fff&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #3: HID Keyboard Device (device id: \\?\HID#VID_0C45&PID_7603&MI_01&Col05#a&346236&0&0004#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #4: HID Keyboard Device (device id: \\?\HID#VID_AA55&PID_0101&MI_00#8&514d615&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #5: HID Keyboard Device (device id: \\?\HID#VID_0C45&PID_7603&MI_01&Col06#a&346236&0&0005#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #6: HID Keyboard Device (device id: \\?\HID#VID_093A&PID_2533&MI_01&Col02#a&688dfd6&0&0001#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #7: HID Keyboard Device (device id: \\?\HID#VID_0C45&PID_7603&MI_01&Col04#a&346236&0&0003#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #1: HID-compliant mouse (device id: \\?\HID#VID_1241&PID_1111#7&389a3010&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #2: HID-compliant mouse (device id: \\?\HID#VID_093A&PID_2533&MI_00#a&3376a5d7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #3: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1601&MI_02#8&253a70e3&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #4: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1602&MI_02#8&389ab7f3&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #1: HID-compliant mouse (device id: \\?\HID#VID_1241&PID_1111#7&389a3010&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #2: HID-compliant mouse (device id: \\?\HID#VID_093A&PID_2533&MI_00#a&3376a5d7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #3: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1601&MI_02#8&253a70e3&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #4: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1602&MI_02#8&389ab7f3&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding joystick #1: GC101 Controller 1.03 (device id: GC101 Controller 1.03 product_565620bc-0000-0000-0000-504944564944 instance_e0d1ac80-f162-11ed-8001-444553540000)
DirectInput: Device type=0x15 subtype=0x02 HID=yes
DirectInput: Unable to get properties for joystick GC101 Controller 1.03 axis 3.
DirectInput: Unable to get properties for joystick GC101 Controller 1.03 axis 4.
Input: Adding joystick #2: GC101 Controller 1.03 (device id: GC101 Controller 1.03 product_565620bc-0000-0000-0000-504944564944 instance_e0d1ac80-f162-11ed-8002-444553540000)
DirectInput: Device type=0x15 subtype=0x02 HID=yes
DirectInput: Unable to get properties for joystick GC101 Controller 1.03 axis 3.
DirectInput: Unable to get properties for joystick GC101 Controller 1.03 axis 4.
Input: Adding joystick #3: ATRAK Device #1 (device id: ATRAK Device #1 product_1601d209-0000-0000-0000-504944564944 instance_2c2bc310-f0d1-11ed-8009-444553540000)
DirectInput: Device type=0x14 subtype=0x01 HID=yes
Input: Adding joystick #4: T.Flight Hotas X (device id: T.Flight Hotas X product_b108044f-0000-0000-0000-504944564944 instance_ddf5b380-f8a6-11ed-8001-444553540000)
DirectInput: Device type=0x14 subtype=0x01 HID=yes
DirectInput: Unable to get properties for joystick T.Flight Hotas X axis 3.
DirectInput: Unable to get properties for joystick T.Flight Hotas X axis 4.
Input: Adding joystick #5: ATRAK Device #2 (device id: ATRAK Device #2 product_1602d209-0000-0000-0000-504944564944 instance_2c2c1130-f0d1-11ed-800c-444553540000)
DirectInput: Device type=0x14 subtype=0x01 HID=yes
Input: Adding joystick #6: Logitech G HUB G29 Driving Force Racing Wheel USB (device id: Logitech G HUB G29 Driving Force Racing Wheel USB product_c24f046d-0000-0000-0000-504944564944 instance_2c2c8660-f0d1-11ed-8013-444553540000)
DirectInput: Device type=0x16 subtype=0x03 HID=yes
DirectInput: Unable to get properties for joystick Logitech G HUB G29 Driving Force Racing Wheel USB axis 2.
DirectInput: Unable to get properties for joystick Logitech G HUB G29 Driving Force Racing Wheel USB axis 3.
DirectInput: Unable to get properties for joystick Logitech G HUB G29 Driving Force Racing Wheel USB axis 4.
Optional memory region ':screen' not found
Starting No Driver Loaded ':'
  (missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting No Driver Loaded ':'
Checking for icons in directory icons
No candidate icons found for machines
Attempting to parse: controls.cfg
Error parsing XML configuration file controls.cfg
Fatal error: Could not load controller configuration file controls.cfg

Edited by 5thWolf
Link to comment
Share on other sites

54 minutes ago, 5thWolf said:

Error parsing XML configuration file controls.cfg

So the issue is you have some kind of syntaxical error in your ctlr file.

Can you post the complete contents of your that file? (Preferrably within quote or code tags)

Edited by Headrush69
  • Like 2
Link to comment
Share on other sites

Your problem is that you have used smart quotations in your text file.

Not sure what editor you are using, but you need to turn them off. Standard quotations won't have curves in them. 

Here is  a corrected version to copy and paste as well:

Quote

<?xml version="1.0"?>
<mameconfig version="10">
   <system name="default">
      <input>
         <mapdevice device="VID_046D&amp;PID_C24F" controller="JOYCODE_1" />
      </input>
   </system>
</mameconfig>

 

Edited by Headrush69
  • Thanks 2
Link to comment
Share on other sites

17 minutes ago, Headrush69 said:

smart quotations

Appears that was my oversite.  Never even paid attention to that.  What's unfortunate is I copied 5thWolfs [in-line] text and pasted it into the 'code' formatting here when replying.  The original in-line text appears fine, but when pasted, they come out as smart quotes.   Note [to self] for future: pay attention to the quotations.  😊

 

  • Like 1
Link to comment
Share on other sites

15 hours ago, JoeViking245 said:

Appears that was my oversite.  Never even paid attention to that.  What's unfortunate is I copied 5thWolfs [in-line] text and pasted it into the 'code' formatting here when replying.  The original in-line text appears fine, but when pasted, they come out as smart quotes.   Note [to self] for future: pay attention to the quotations.  😊

Who hasn’t wasted time on simple syntax errors like that? I guess it the same reason writers have editors, you read what you know it should be and not what you wrote. 🙂

As a habit I don’t trust copying and pasting in web browsers, (At least on Windows), unless the paste as plain text option is available. I don't think it's right in the original post either... so you are forgiven. ☺️
 

  • Like 2
Link to comment
Share on other sites

So I copy/pasted your code and no more crash!! However It didn't seem to change the controller assignment. Going to double check the IDs and report back. Will also try the copy ID through MAME to see if it works.

image.thumb.png.a791b7fc49604e48bd5386c9f37f4763.png

Edited by 5thWolf
Link to comment
Share on other sites

Ok so it definitely was something on the ID, most likely a mistake since the wheel shows up 2 times in USB Device Manager. Maybe I chose the wrong one or something. But..... I did test the copy past from MAME and it worked perfectly!!! It looks like this:

<?xml version="1.0"?>
<mameconfig version="10">
   <system name="default">
      <input>
         <mapdevice device="Logitech G HUB G29 Driving Force Racing Wheel USB product_c24f046d-0000-0000-0000-504944564944 instance_2c2c8660-f0d1-11ed-8013-444553540000" controller="JOYCODE_1" />
      </input>
   </system>
</mameconfig>

This makes it a million times easier then looking for IDs anywhere else or in Windows!!!!! THANK YOU BOTH!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

7 minutes ago, 5thWolf said:

Ok so it definitely was something on the ID, most likely a mistake since the wheel shows up 2 times in USB Device Manager. Maybe I chose the wrong one or something. But..... I did test the copy past from MAME and it worked perfectly!!! It looks like this:

Some devices can have multiple entries in Device Manager.

I try to keep my matching ID as short as needed. Although rare, I've seen a windows update that slightly changed the longer ID info.

As an example, I just match the following for my Logitech wheel

Quote

 <!-- Logitech MOMO Steering Wheel -->
 <mapdevice device="Logitech MOMO" controller="JOYCODE_2" /> 

Glad you got it working.

  • Unusual Gem 1
Link to comment
Share on other sites

Well I am really glad you said that as for if anything happens I will take a peak at that then shorten. Just don't how I will with the 2 controllers that are the same exact name, # 1 & 2 in my last pic.

Edited by 5thWolf
Link to comment
Share on other sites

53 minutes ago, 5thWolf said:

Well I am really glad you said that as for if anything happens I will take a peak at that then shorten. Just don't how I will with the 2 controllers that are the same exact name, # 1 & 2 in my last pic.

you would need to keep their names longer then, likely needing the instance ID to differentiate between them

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

So I ran into an odd issue. Was mapping everything since I got the forced order figured out. Every game was fine until I hit polposition 2. Its is mapping the #1 controller as #6!!! But when you go in-game nothing works because it's mapping as #6. I tried deleting the polpos2 settings file, but nothing.
Any one have any ideas? This is super strange. Not sure if there are other games but its consistent to that game. This did not happen till I implemented the controller file. But why all games are good but one is off?

Link to comment
Share on other sites

  • 4 weeks later...
On 6/23/2023 at 1:28 PM, 5thWolf said:

Every game was fine until I hit polposition 2. Its is mapping the #1 controller as #6!!! But when you go in-game nothing works because it's mapping as #6. I tried deleting the polpos2 settings file, but nothing.

The games' settings file (..\ini\polepos2.ini) might be telling it to load a different controller config file (on the ctrlr line), but I believe in the order of precedence, the games' configuration file (..\cfg\polepos2.cfg) will supersede.  So you may try deleting both of those.

If Pole Position 2 is still acting up, and it's the only one doing that, the easiest (only?) thing to do is start the game, once loaded press Tab and go into the configure inputs section and set it up manually [for this one game].  It'll automatically save polepos2.cfg for you.

  • Like 1
Link to comment
Share on other sites

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...