n64 mupen64plus.cfg changes keep getting overwritten
-
Hello all,
To get right to the point: I am running Retropie 4.0.2 on a RPi3 and I am using an Ouya wireless controller. It took a while to figure everything out and to get this controller properly mapped and set up, but it is now working as it should everywhere that is NOT the n64 emulator.
I have run the jstest to find the button numbers, remapped my buttons in the InputAutoCfg.ini and InputAutoCfg.ini.bak, and remapped the buttons for exit, save state, and load state in mupen64plus.cfg. After all of this the controller does what I want it to do, except in regards to exit/save/load. I made sure that the buttons that I mapped to the exit/save/load were single buttons rather than button combos and that they were buttons that were otherwise unused, but when I try to use them in game nothing happens. When I look at the mupen64plus.cfg after playing any n64 game I discover that the original mappings overwrite my edits (so, for example, instead of seeing my edit of: Joy Mapping Stop = "J0B13" I see the original: Joy Mapping Stop = "J0B16/B15"). As of right now I have to use a keyboard and hit esc just to be able to exit from the n64 emulator...while this works it is far from ideal.
The only thing that I can come up with is that the OUYA Game Controller.cfg and/or OUYA Game Controller.cfg.bak files are responsible for the overriding of my edits. I had to edit these files so that the enable hotkey/exit/save/load would work because retroarch remapping did not seem to do the trick (I just added the desired mappings to the ends of these files and it has worked like a charm until now). I am extremely annoyed and frustrated by my edits being overwritten at all. This has not been an issue with any of the other edits that I have made, so I do not understand why it is happening with this one particular file.
I would really rather not edit the the OUYA Game Controller.cfg or OUYA Game Controller.cfg.bak files as this will affect how the controller works with other emulators, and not just the n64 (and, as I said, there is no issue in any other emulator that I have used). I am so close to having my system exactly as I want it, I just need to fix this one small issue. Any assistance or insight that you fine folks could provide would be greatly appreciated.
-
So, I discovered that turning off the n64 hotkeys in the autoconf.cfg file stopped the overwriting, but the remapped exit/save/load still does not work. The hotkeys did not work in the first place, so there must be some issue with the key mapping.
-
I have now discovered the solution to my issue! There is a section in the mupen64plus.cfg file labeled for digital mapping that I overlooked. I added this to the end:
Stop = "button(13)"
Save State = "button(6)"
Load State = "button(7)"
This fixed the issue! I didn't think the Save State was working at first as no save state notification pops up, but I was wrong and all is now well with the emulator/controller interaction. -
for anyone else reading this, it seems that the autoconf.cfg file is only read when retroarch is restarted. even though i turned off the hotkeys in autoconf.cfg, mupen64plus.cfg was still being overwritten. after a reboot it was no longer being overwritten.
for whatever reason the auto-generation of mupen64plus.cfg was completely mixing up my USB and bluetooth controllers, which made the key mappings all wrong including the emulator stop chord. turning off autoconfig of hotkeys and fixing up the mupen64plus.cfg file seems to have worked.
-
I ran into the same issues as described here. The following steps resolved my problems:
- Step 1: autoconfigure your joypads once by starting mupen53plus while having all controllers connected properly
- Step 2: in opt/retropie/configs/all/autoconfig.cfg -> Disable N64 Hotkey here (this was my biggest catch because it is in the all directory!)
- Step 3: in opt/retropie/configs/N64/mupen64plus.cfg -> assign the hotkeys and put the mode of all registered joypads from 2 to 0
After this it seems to work for me without any problems. So I hope it helps.
PS: I believe that the WIKI should be updated with Step 1, this is such a catch when trying to follow the WIKI N64 instructions.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.