N64 Controllers & Config File Issue

Hello,

I am posting here because I really cannot for the life of me figure this out. I am using a recalbox with mupen64plus. My issue is that both of the config files (InputAutoCfg.ini & mupen64plus.cfg) keep overwriting themselves upon starting mupen64plus. I am using a USB Generic n64 controller and I have checked to see if all of the buttons work correctly using jstest /dev/input/js0 and everything seems to be working fine.

On every controller I have the Controller configuration mode set to 0.

I have read the previous issue with Bluerose and countless other threads but cannot find an answer to this overwriting problem.

I normally dont give up in these situations but I've been scouring the internet for over 4 hours troubleshooting this and I just cannot figure it out. If you have any insight I would be forever grateful.

Solved it!

Hey guys, I know no one has replied yet, but I have been hard at work getting this working. I have tried a number of things and I believe I finally got it. I think my biggest enemy along the way was patience. When you think you got it, wait a bit to make sure its absolutely loaded onto your pi.

Since I am using recalbox (a raspberry pi OS) things are a bit different than the norm here. (I am on a raspberry pi 3)

Step 3: Run a test to see what each button does on your controllers one at a time. Do this by entering the command in PuTTy: jstest /dev/input/js0 (this allows you to press buttons and if they switch on in the terminal then you can see how the controller is responding. Take note of what each button does. Lets say when you press B, the 6 goes on... then you know 6 is B... Test all the buttons and take note of each.

Step 4: After taking note of how the buttons are mapped in your controller now its time to setup the InputAutoCfg.ini for your first and only your first controller. Here is my file:

If you are mapping your controller and you see that its only coming up as an axis, use the number. The negative and positive just would mean left or right. so above for example X Axis = axis(0-,0+)Make sure afterwards you set it to read-only file by right clicking and going into properties.

Step 5: Now we must edit the mupen64plus.cfg. You can begin this step after you have written down the map for each controller (if using different controller types). Setup the mupen64plus.cfg for all of your controllers and set this to read-only as well. I had 2 different kinds of controllers. You can see in my file that the first controller config is different. (The only thing really different about the way you put things in here is that each button map is in quotes.. I skipped down just to the input controller area to get to the point)