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: MAME switching gun numbers without even a reboot  (Read 30 times)

0 Members and 2 Guests are viewing this topic.

Jayinem

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 330
  • Last login:Yesterday at 09:26:39 pm
  • I want to build my own arcade controls!
MAME switching gun numbers without even a reboot
« on: Yesterday at 09:15:23 pm »
I've had this problem before I seem to remember being able to somewhat fix it I know I had to go into the cfg files but I don't remember what I did. I just set all the lightgun controls and it had assigned them to gun 4, every game I tried working fine well without even rebooting about an hour later I just tried a game that I just added to Launchbox and it didn't work. Sure enough I go to check the input and it switched them to gun 3. I am hoping for a permanent fix to this to where I'm not constantly having to switch the gun settings back and forth.

thanks

Jayinem

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 330
  • Last login:Yesterday at 09:26:39 pm
  • I want to build my own arcade controls!
Re: MAME switching gun numbers without even a reboot
« Reply #1 on: Yesterday at 09:24:46 pm »
I should have looked first before asking because I remember now I'll go ahead and say what I did in case someone also needs a fix for this. Just go into cfg folder and open default.cfg, go to edit > replace, let's say the last number your gun was in MAME was gun 3 you want to replace anything that says CODE_1 or CODE_2 or CODE_4 with CODE_3 so you put in find what the code that the cfg says and in the replace box replace it with CODE_3.

But it'll probably change the gun number again so what you want to do after you've saved and closed the default.cfg is right click on it go to properties and click the box that says read-only and hit ok. This should prevent it from changing the numbers on you, I believe so anyway, hopefully.
« Last Edit: Yesterday at 09:26:39 pm by Jayinem »