64ozgames Posted May 1, 2021 Share Posted May 1, 2021 So bought a pack of 4 controllers off from amazon and I'm of course running into the trouble that the computer does not register the devices in the same order everytime So I need to set it up as a stable controller. Looking into it I've looked at my controllers from doing a verbose start Input: Adding joystick #0: Generic USB Joystick (device id: Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27bd7f40-a85c-11eb-8001-444553540000) Input: Adding joystick #1: Generic USB Joystick (device id: Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27bdcd60-a85c-11eb-8002-444553540000) Input: Adding joystick #2: Generic USB Joystick (device id: Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27bdcd60-a85c-11eb-8003-444553540000) Input: Adding joystick #3: Generic USB Joystick (device id: Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27c0daa0-a85c-11eb-8008-444553540000) Which I gather would lead to this CFG file... " <mameconfig version=”10”> <system name=”default”> <input> <mapdevice device=”Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27bd7f40-a85c-11eb-8001-444553540000” controller=”JOYCODE_1” /> <mapdevice device=”Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27bdcd60-a85c-11eb-8002-444553540000” controller=”JOYCODE_2” /> <mapdevice device=”Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27bdcd60-a85c-11eb-8003-444553540000” controller=”JOYCODE_3” /> <mapdevice device=”Generic USB Joystick product_00060079-0000-0000-0000-504944564944 instance_27c0daa0-a85c-11eb-8008-444553540000” controller=”JOYCODE_4” /> </input> </system> </mameconfig> " Except I keep getting a fatal error whenever I try to run my new config file. I'm totally lost here on what I should do. Any advice or idea why it is giving me a fatal error on this config file? Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 1, 2021 Share Posted May 1, 2021 (edited) Whatever text editor you are using, it appears it is using stylized quotation marks. It must be plain text. Look at the direction of all your opening quotation characters. Edited May 1, 2021 by Headrush69 Quote Link to comment Share on other sites More sharing options...
64ozgames Posted May 1, 2021 Author Share Posted May 1, 2021 Awesome.. now it doesn't crash when I run it... It doesn't actually seem to do anything but it doesn't crash so that's a step up. Quote Link to comment Share on other sites More sharing options...
64ozgames Posted May 1, 2021 Author Share Posted May 1, 2021 Ok, so how does order of operations work with this? That is to say, are the controllers remapped on boot or is it only when I actually start a ROM? I've been experimenting with changing the joystick numbers and it doesn't seem to have any effect but I haven't actually tried it with a rom running. Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 1, 2021 Share Posted May 1, 2021 14 minutes ago, 64ozgames said: That is to say, are the controllers remapped on boot or is it only when I actually start a ROM? I've been experimenting with changing the joystick numbers and it doesn't seem to have any effect but I haven't actually tried it with a rom running. It remaps on each launch of MAME only. If you launch MAME using the -v option from a command prompt, you will see output for all devices and then any remapping it does, if any. Quote Link to comment Share on other sites More sharing options...
64ozgames Posted May 1, 2021 Author Share Posted May 1, 2021 I'm not seeing anything spit out by the verbose option when it runs... so for some reason it's ignoring that line of code. So is it ignoring it because somehow I have the controller names wrong or the syntax? Ugh. At least it isn't crashing. Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 1, 2021 Share Posted May 1, 2021 Only thing I could suggest would be making the matching part of your device entries smaller. Maybe just try the instance part for each entry. (27bd7f40-a85c-11eb-8001 for example) Quote Link to comment Share on other sites More sharing options...
64ozgames Posted May 1, 2021 Author Share Posted May 1, 2021 You're a miracle worker! That was exactly it. It was odd because I found a person who got it working on a different forum and they had to put in the entire string, not just the interface part so I didn't think to try that. I just reconfigured it and we're pretty much good to go I think for 90% of the games. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.