Mupen64Plus with two MAYFLASH N64 Controller Adaptors?

Discussion in 'Games' started by trymeout, Nov 29, 2019.

  1. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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?
  2. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    I noticed you didn't mention Linux in your post.
    What distro are you using?
    Are the controllers recognized in Linux at all?
  3. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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.
  4. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    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.
  5. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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.
  6. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    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.
  7. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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.
  8. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
  9. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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?
  10. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    You may have to post on reddit about that. Ironically I've never compiled anything in all the years I've been using Linux
  11. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
  12. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    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?
  13. trymeout

    trymeout New Member

    Joined:
    Jul 16, 2019
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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
  14. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,339
    Likes Received:
    624
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    Thats it? Just remove the __NextController and it works? Nice find!

Share This Page