Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: clhug on October 20, 2016, 07:41:39 pm
-
Any ideas? I have a 4 player MAME cabinet, and I've customized some of the controls to avoid special Windows keys and duplicate mappings across different players. I know this is stored in default.cfg, and after I initially change the mappings, I can see that reflected in default.cfg.
But every so often, and I've not been able to identify any pattern, the default.cfg file gets wiped out and just reverts to, well, the default default.cfg, which is essentially empty other that some comment text.
I've gotten to where I need to make a backup copy of the default.cfg file and when I find that it's been wiped out in MAME, then I copy the backup back in.
I'm now running .178. I just updated my arcade machine from a several year old version.
Thanks!
-
Any ideas? I have a 4 player MAME cabinet, and I've customized some of the controls to avoid special Windows keys and duplicate mappings across different players. I know this is stored in default.cfg, and after I initially change the mappings, I can see that reflected in default.cfg.
But every so often, and I've not been able to identify any pattern, the default.cfg file gets wiped out and just reverts to, well, the default default.cfg, which is essentially empty other that some comment text.
I've gotten to where I need to make a backup copy of the default.cfg file and when I find that it's been wiped out in MAME, then I copy the backup back in.
I'm now running .178. I just updated my arcade machine from a several year old version.
Thanks!
To my knowledge, the best way to handle permanent mapping of controls across all games would be to use a .cfg file stored in CTRLR folder.
You can adjust the path and the file used through MAME.ini or using command-line triggers.
-ctrlrpath path to controller definitions
-ctrlr preconfigure for specified controller
Hopefully that will help you out.
-
Known problem, already has a bug report.
Discussed here (http://forum.arcadecontrols.com/index.php/topic,151240.0.html)
Use a ctrlr file or set the read-only attribute on your default.cfg once you have it how you want it.
-
Thanks to both of you. I'll look into the ctrlr config vs. default.cfg.
I do want to clarify, that other thread about the issue seems to have something to do with plugging and unplugging controllers causing it. I don't do that. I have a set of controls that always stay plugged in and never change. So should that bug still affect me somehow?
-
The bug seems to be in the code that rewrites the cfg file. Changing controllers is an easy way to trigger the bug, but that doesn't mean it's the only way.
If you're already replacing the file when it disappears, setting the file to read-only would accomplish the same thing without further intervention.
I like ctrlr files because I copy things from machine to machine and version to version, but the read-only 'fix' is faster and easier.