Mupen64Plus with two MAYFLASH N64 Controller Adaptors?

trymeout

New Member
Does anyone own two MAYFLASH N64 Controller Adaptors? I am trying to be able to use four N46 controllers with M64Py which is a front end Mupen64Plus emulator. For whatever reason when I plug in 2 mayflash adapters I am not able to set each controller to Player1, Player2, Player3 and Player4. But for whatever reason it will set Player1 to controller 1 and 3, and set Player 2 to controller 2 and 4 and not allowing you to control Player3 and Player4.


Anyone know why this is and how to solve this. I did some testing and the culprit is mupen64plus itself, not the controllers, not the controller adapters, and not M64Py. I tested the four N64 controllers with the Dolphin emulator and they all worked file. I tried editing the mupen64plus.cfg and manually setting the controllers and launching a four player game in mupen64plus (not M64Py) and the issue occurred and it altered the mupen64plus.cfg file after setting Player1 to controller 1 and 3, and set Player 2 to controller 2 and 4.

I also tried four Xbox 360 wireless controllers in mupen64plus and I had no issue.

Anyone know how to fix this?
 
I noticed you didn't mention Linux in your post.
What distro are you using?
Are the controllers recognized in Linux at all?
 
I am using Manjaro right now but I also had this issue on Linux Mint. Linux seems to reconize the controllers right when I plug them in. They do work in other programs such as the Dolphin emulator.

With all the testing I have done with the controllers it has something to do with Mupen64Plus in how it reads them.
 
Yeah, sounds like Mupen64Plus is the problem since your controllers are working fine elsewhere.
Have you searched their forums or reddit page?
Someone else must be having this problem as well.
 
Which forums should I search? I cannot find a Mupen64Plus forum. I did try searching reddit and I even made a post on reddit awhile back but now it is burreid and forgotten

I also opened an issue on Github about a month ago and still got no responses
https://github.com/mupen64plus/mupen64plus-input-sdl/issues/87

Since I have switched to Linux I had to solve many minor issues here and there which is expected but this is the one issue I cannot resolve.
 
Dang, I just assumed they had a forum somewhere...
These are the unique problems with Linux as we try something that no one else attempts.
Like I purchased an Amazon Xbox Basics controller and it didn't work at all. After a bunch of tests, posts and frustration... it ended up working fine with the next kernel release for Mint.

Are there configurations for Mupen64plus?
I don't have your controller, but I can try it with my Xbox Basics controller.
 
I did try configuring them in the mupen64plus.cfg file but as I launch a game it will change the controller settings and mess it up.
 
I cannot seem to build the mupen64plus-input-raphnetraw-1.1.0 package. When I enter "make all" I get this error...

Code:
$ make all
    CC  _obj/plugin_front.o
../../src/plugin_front.c:43:10: fatal error: config.h: No such file or directory
  43 | #include "config.h"
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:307: _obj/plugin_front.o] Error 1

Is this package outdated?
 
You may have to post on reddit about that. Ironically I've never compiled anything in all the years I've been using Linux
 
Dang, well guess you are out of luck for now.
You may have to stick with Xbox controllers for now

At least its documented here so others can read about it. Then maybe we'll get some attention from Raphnet?
 
I have found a solution.

Open the /usr/share/mupen64plus/InputAutoCfg.ini. If there is no InputAutoCfg.ini in that directory open the /usr/local/share/mupen64plus/InputAutoCfg.ini
In InputAutoCfg.ini press CTRL+F and search for "HuiJia USB GamePad". You will find this controller configuration...

[Linux: HuiJia USB GamePad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 100,100
AnalogPeak = 20000,20000
DPad R = button(13)
DPad L = button(15)
DPad D = button(14)
DPad U = button(12)
Start = button(9)
Z Trig = button(8)
B Button = button(2)
A Button = button(1)
C Button R = axis(3-)
C Button L = axis(3+)
C Button D = axis(2+)
C Button U = axis(2-)
R Trig = button(7)
L Trig = button(6)
Mempak switch = key(109)
Rumblepak switch = key(114)
X Axis = axis(0-,0+)
Y Axis = axis(1-,1+)
__NextController:
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 100,100
AnalogPeak = 20000,20000
DPad R = button(29)
DPad L = button(31)
DPad D = button(30)
DPad U = button(28)
Start = button(25)
Z Trig = button(24)
B Button = button(18)
A Button = button(17)
C Button R = axis(7-)
C Button L = axis(7+)
C Button D = axis(6+)
C Button U = axis(6-)
R Trig = button(23)
L Trig = button(22)
Mempak switch = key(109)
Rumblepak switch = key(114)
X Axis = axis(4-,4+)
Y Axis = axis(5-,5+)

Remove the "__NextController:" line and all the lines after it in the configuration so it looks like this after

[Linux: HuiJia USB GamePad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 100,100
AnalogPeak = 20000,20000
DPad R = button(13)
DPad L = button(15)
DPad D = button(14)
DPad U = button(12)
Start = button(9)
Z Trig = button(8)
B Button = button(2)
A Button = button(1)
C Button R = axis(3-)
C Button L = axis(3+)
C Button D = axis(2+)
C Button U = axis(2-)
R Trig = button(7)
L Trig = button(6)
Mempak switch = key(109)
Rumblepak switch = key(114)
X Axis = axis(0-,0+)
Y Axis = axis(1-,1+)

Click Save and close te InputAutoCfg.ini file
 
Thats it? Just remove the __NextController and it works? Nice find!
 
Back
Top