RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Joy2key causing controller issues

    Scheduled Pinned Locked Moved Help and Support
    joy2keyopenborportscontrollerexits emulator
    36 Posts 4 Posters 6.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BiZzAr721B
      BiZzAr721
      last edited by

      I restored a backup that wasn't noticeably having the joy2key issue, and upon first boot, first try I was had the issue. I reinstalled ES from source but no change. Is there a possibility this specific SD card is causing the issue? I don't see how, but literally all I did was backup and restore to this SD.

      cyperghostC 1 Reply Last reply Reply Quote 0
      • cyperghostC
        cyperghost @BiZzAr721
        last edited by

        @bizzar721 I believe it has something to do with your controller config. I suggest to manually check if instance of joy2key is running, or to use my delay kill script.

        I sadly can not reproduce any of your issues maybe other users can

        BiZzAr721B 1 Reply Last reply Reply Quote 0
        • BiZzAr721B
          BiZzAr721 @cyperghost
          last edited by BiZzAr721

          @cyperghost My controller config only consists of the 1 SNES clone (This build I never added any additional controllers EXCEPT the logitech wireless dongle for my keyboard/touchpad combo)

          I turned of joypad support for runcommand and I have no issues since joy2key never starts. I still have joy2key support with your OpenBOR game selector AND it kills joy2key properly.

          The Joy2Key on_start scripts you wrote up never worked (which must have something to do why runcommand will not kill it) Somehow joy2key has infinite lives!

          EDIT
          Pressing buttons on loading screen I received a message on bottom left of screen
          readonly mode, sorry [start with --edit?]

          Edit 2

          Resetting ownership/permissions of /home/pi/RetroPie/roms
          That seems to be tied to that specific error

          Edit 3
          Restoring permissions did not help. I have been checking manually. I have done ps -a countless times. It's normal practice for me to run ps -a when ANY game is loaded lol

          cyperghostC 1 Reply Last reply Reply Quote 0
          • cyperghostC
            cyperghost @BiZzAr721
            last edited by cyperghost

            @bizzar721 I know that these SNES controllers behave a bit unusual. I used your controller config for openbor and it worked also with mine so I assume that mine got the same chip set.

            So what is unusual of these? The DPAD is mapped as analog input - that is really the last thing I can think your issues are affected from this. Does this happen with a keyboard connected only?
            Why do you think your file permission is wrong?

            BiZzAr721B 1 Reply Last reply Reply Quote 0
            • BiZzAr721B
              BiZzAr721 @cyperghost
              last edited by

              @cyperghost It happens no matter what is plugged in. This last time I reset controllers, then when I got the controller screen I setup a keyboard as controller and still have the issue. Even without keyboard plugged have the issue. I can tell when the issue is back because SNES will have a delay before the loading screen.

              The reason I reset permissions was that searching for the error shown on loading screen let to a post where resetting permissions cleared the error.

              1 Reply Last reply Reply Quote 0
              • BiZzAr721B
                BiZzAr721
                last edited by BiZzAr721

                While I was messing with the latest & greatest OpenBOR, while hitting keys on the controller I could get the console under the game to show (flash) so I recorded it, so I could replay it and pause when it flashed on screen. I don't know if this is anything substantial. Below is what is shown.

                0_1537718414282_VideoCapture_20180923-112812.jpg

                Traceback (most recent call last):
                     File "/opt/retropie/supplementary/runcommand/joy2key.py", line 227, in <module>
                          chars = get_hex_chars(arg)
                     File "/opt/retropie/supplementary/runcommand/joy2key.py", line 139, in get_hex_chars
                          return key_str[2:].decode('hex')
                     File "/usr/lib/python2.7/encodings/_init_.py", line 100, in search_function
                          level=0)
                     File "/usr/lib/python2.7/encodings/hex_codec.py", line 52, in <module>
                          class IncrementalEncoder(codecs.IncrementalEncoder):
                     File "/opt/retropie/supplementary/runcommand/joy2key.py", line 134, in signal_handler
                           close_fds(js_fds)
                MameError: global name 'js_fds' is not defined
                

                fds may be Famicon Disk System which I have installed. MameError - I am certain I did not open/play any mame games between boot and this error. This error may be totally unrelated but it is too much of a coincidence to not post.

                I am curious how many people have this joy2key issue but are unaware since most games play just fine with it present. It seems OpenBOR is the only program to show ill effect from it.

                cyperghostC 1 Reply Last reply Reply Quote 0
                • cyperghostC
                  cyperghost @BiZzAr721
                  last edited by

                  @BiZzAr721 there is a progress in resolving this issue. It would be nice to give report if the patch is ready and merged (PR#2654)
                  @psyke83 is working on your issues related to joy2key (=kryptonite agony)

                  1 Reply Last reply Reply Quote 0
                  • BiZzAr721B
                    BiZzAr721
                    last edited by

                    @psyke83 This is great news! I have been restoring backups, and switching sd cards to get rid of it. At this moment I haven't noticed having the issue, but I will look to see if I have my abandoned sd card with the issue. When I recreate the issue, how do I use your remedy?

                    @cyperghost Thanks for thinking of me. I'd sure like some piece of mind on this issue haha

                    BuZzB 1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators @BiZzAr721
                      last edited by

                      @BiZzAr721 the fix is now merged into retropie. Just update retropie-setup (can do just a script update in this case) and you should get the fix.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      1 Reply Last reply Reply Quote 1
                      • BiZzAr721B
                        BiZzAr721
                        last edited by

                        Awesome news! Thank you!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        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.