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: Problem with disappearing MAME config file when I add analog joycodes  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

jimmer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 561
  • Last login:March 17, 2024, 06:03:11 pm
  • I want to play Defender like at the arcade.

It's my first time with a U360, I'm using it in analog mode on a Sinistar panel.

The problem I'm having is that the default.cfg file with the default key allocations keep going blank. It happens when I put joycode codes like below into it

            <port type="P1_BUTTON1">
                <newseq type="standard">
                    KEYCODE_ENTER OR JOYCODE_1_BUTTON5
                </newseq>
            </port>

And it goes blank after playing 2 non-analog games WITHOUT the U360 plugged in. Eg I play Pengo and Qix and then when I go back to Pengo the keys have all reset to default (Ctrl,ALT, etc)

Anyone seen or heard of this problem before?
Any ideas ?

It's MAME 0171.

I'm working on segregating the analog games into a separate MAME folder so they don't interfere with the main games. But I expect to  have the same problems there if the games are run without the U360 being plugged in.








On forums jimmer speaks for himself as a Defender fan, not as proprietor of www.jbgaming.co.uk  << Is that advertising or disclosure ? or both ?

Robbbert

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 205
  • Last login:April 21, 2024, 06:42:46 am
Re: Problem with disappearing MAME config file when I add analog joycodes
« Reply #1 on: October 19, 2021, 11:01:58 pm »
It's normal. If you unplug your joystick or controller, the MAME settings attached to it will vanish - and they won't come back.

The usual solution is to make your changes, exit MAME, then make default.cfg read-only.

jimmer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 561
  • Last login:March 17, 2024, 06:03:11 pm
  • I want to play Defender like at the arcade.
Re: Problem with disappearing MAME config file when I add analog joycodes
« Reply #2 on: October 21, 2021, 07:04:54 am »

Thanks. It's strange that I didn't know this was a thing, maybe I read it years ago and then forgot because it never cropped up on my system.
On forums jimmer speaks for himself as a Defender fan, not as proprietor of www.jbgaming.co.uk  << Is that advertising or disclosure ? or both ?

Vocalitus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:October 25, 2021, 06:16:58 pm
  • I want to build my own arcade controls!
Re: Problem with disappearing MAME config file when I add analog joycodes
« Reply #3 on: October 21, 2021, 06:42:13 pm »

Thanks. It's strange that I didn't know this was a thing, maybe I read it years ago and then forgot because it never cropped up on my system.

Mamedevs like to mess with us from time to time.  You get used to it.