Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Solved Ajout d'une entrée dans EmulationStation pour pico8

    Recalbox Général
    ajout dune entré
    6
    85
    34377
    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.
    • voljega
      voljega Banned @acris last edited by

      @acris efff... pourtant de mon côté j'avais tué EmulationStation avant de tester

      1 Reply Last reply Reply Quote 0
      • acris
        acris last edited by acris

        Moi aussi jai tt lancé via ssh y compris pico-8

        Ma ligne de commande était la suivante :

        killall emulationstation
        /recalbox/share/system/configs/loadmap/loadmap /recalbox/share/system/configs/loadmap/gamepad.map & SDL_VIDEO_GL_DRIVER=/usr/lib/libGLESv2.so SDL_VIDEO_EGL_DRIVER=/usr/lib/libGLESv2.so /recalbox/share/system/configs/pico8/pico8 -run pico-man.p8.png
        

        Le jeu s'est bien lancé mais loadmap a mis Failed to grab device: Device or resource busy etc....

        1 Reply Last reply Reply Quote 0
        • acris
          acris last edited by acris

          @voljega @Substring

          sur le forum de linux mapping , l'auteur a indiqué ceci :

          Failed to grab device: Device or resource busy
          Failed to lock device with vendor=0x054c, product=0x0268. Continuing anyway...
          That usually means that some other software has already grabbed the input device for use. So the joymap software is then unable to receive events for that device. You can try use "lsof" to find out if any process has the joystick devices open. (It could be X windows or some other software).

          Ce qui veut dire que c'est pico-8 qui utilise déjà la ressource sans doute et du coup c'est pas libre pour loadmap ??

          voljega 1 Reply Last reply Reply Quote 0
          • voljega
            voljega Banned @acris last edited by voljega

            @acris non parce que moi j'ai juste lancé joymap et j'ai le même résultat. donc ça doit être un process du système qui utilise déjà le joy

            bon de toute façon effectivement si on ne peut plus utiliser le joystick par ailleurs après dans pico8 ou autre ça n'a pas trop d'intérêt....

            faudrait ptet se rabattre sur joy2key mais ça a l'air imbitable http://manpages.ubuntu.com/manpages/zesty/man1/joy2key.1.html

            sinon y'a aussi qjoypad http://qjoypad.sourceforge.net/

            EDIT : "QJoyPad is only meant for Linux computers and will only work in XWindows. That means it can't help you at the console, and if you're a Microsoft Windows user, you'll have to look elsewhere. " Bwaaaaaaaaaaaaaaaaaaaah

            1 Reply Last reply Reply Quote 0
            • acris
              acris last edited by

              @voljega
              utilise le loadmap.zip provenant du google drive, j'ai pu sortir du jeu avec

              voljega 1 Reply Last reply Reply Quote 0
              • voljega
                voljega Banned @acris last edited by

                @acris coooool même avec les id à 0x0000 ?

                1 Reply Last reply Reply Quote 0
                • acris
                  acris last edited by acris

                  @voljega
                  Oui par contre il faut configurer complètemement la manette car c'est lui qui a priorité sur la config pico-8 semble t il
                  je suis encore dans les tests
                  si je tue le processus loadmap il me redonne la main mais je peux plus quitter.

                  
                  # /recalbox/share/system/configs/loadmap/loadmap /recalbox/share/system/configs/loadmap/gamepad.map & SDL_VIDEO_GL_DRIVER=/usr/lib/libGLESv2.so SDL_VIDEO_EGL_DRIVER=/usr/lib/libGLESv2.so /recalbox/share/system/configs/pico8/pico8 -run /recalbox/share/roms/pico8/pico-man.p8.png
                  [1] 1467
                  0 joysticks.
                  Found device HID 04d9:2517 (vendor=0x04d9, product=0x2517)
                  Found device HID 04d9:2517 (vendor=0x04d9, product=0x2517)
                  Found device idroid:con (vendor=0x0000, product=0x0000)
                  Found device JOYMAP Code Device (vendor=0x00ff, product=0x0000)
                  4 button assignments.
                  0 axes assignments.
                  
                  voljega Substring 2 Replies Last reply Reply Quote 0
                  • voljega
                    voljega Banned @acris last edited by

                    @acris Hmmm pas optimal alors mais c'est pas parce que t'as pas mis le paramètre -joystick 0 à la fin de la commande pico8 ?

                    1 Reply Last reply Reply Quote 0
                    • acris
                      acris last edited by

                      @non j'ai testé

                      voljega 1 Reply Last reply Reply Quote 0
                      • acris
                        acris last edited by acris

                        @voljega
                        pour le moment je me heurte sur la compréhension de la configuration des axes.

                        axis vendor=0x0000 product=0x0000 src=0 target=kbd plus="right" minus="left" flags="binary"
                        axis vendor=0x0000 product=0x0000 src=1 target=kbd plus="down" minus="up" flags="binary"
                        button vendor=0x0000 product=0x0000 src=0 target=kbd button="z"
                        button vendor=0x0000 product=0x0000 src=10 target=kbd button="leftctrl"
                        button vendor=0x0000 product=0x0000 src=11 target=kbd button="q"
                        
                        1 Reply Last reply Reply Quote 0
                        • voljega
                          voljega Banned @acris last edited by

                          @acris zut pour les jeux à deux joueurs ça va pas marcher si les deux joysticks ont les mêmes id alors

                          1 Reply Last reply Reply Quote 0
                          • acris
                            acris last edited by acris

                            @voljega
                            pour le moment j arrive pas à faire fonctionner mon stick analogique.
                            as tu réussi ?

                            Pour deux joueurs on peut mettre l'information device=0 en plus

                            tu connais un jeu deux joueurs ?

                            voljega 1 Reply Last reply Reply Quote 0
                            • voljega
                              voljega Banned @acris last edited by

                              @acris y'en a un avec sumo dans le titre

                              1 Reply Last reply Reply Quote 0
                              • acris
                                acris last edited by acris

                                Bon
                                J'ai testé aussi avec -splore et nada, j'ai le menu qui devient fou et
                                avec -run filename.p8.png
                                c'est comme si ça restait bloqué

                                voljega 1 Reply Last reply Reply Quote 0
                                • voljega
                                  voljega Banned @acris last edited by voljega

                                  @acris ben pour splore faut juste mettre -splore, pas -run filename. Chopes mon script il fait les deux facilement, tu as juste à éditer le répertoire de lancement au début du script

                                  1 Reply Last reply Reply Quote 0
                                  • acris
                                    acris last edited by

                                    Mes lignes de commandes sont ok pas de soucis. Par contre j'ai vraiment un soucis sur les D-PAD.

                                    Jai installé raspbian sur une microsd pour compiler correctement loadmap.
                                    J'ai testé avec la dernière version toujours pas mieux par moment le stick répond une fraction de seconde et plus rien.

                                    Avec joymap 0.4.2 il y a un fichier supplémentaire qui serait à ajouter dans init.d reserve.js pour indiquer le numéro de pad peut être .....
                                    joymap0.4.2
                                    reserve.js

                                    Readme.txt

                                    1) Make sure that the module uinput is loaded,
                                         I have
                                            rmmod ehci_hcd
                                            rmmod ohci_hcd
                                            rmmod uinput
                                            modprobe uinput
                                            /sbin/reserve_js
                                            modprobe ehci_hcd
                                            modprobe ohci_hcd
                                        in /etc/rc.d/rc.local. This ensures that js0 through 16 are reserved
                                        for the program. The program /sbin/reserve_js waits 10 seconds
                                        before releasing js0 through 16.
                                    
                                    2) You need permissions on /dev/uinput and /dev/input/event*
                                    3) The uinput device can now be specified with --uinput_dev,
                                       and the event device prefix with --event_dev
                                    4) Run the program loadmap with your script, it will continue running
                                       and provide the joystick events programmed until the program is
                                       terminated.
                                    5) Joystick selection by number is broken, the vendor and product
                                       identifier must be used
                                    
                                    voljega 1 Reply Last reply Reply Quote 0
                                    • voljega
                                      voljega Banned @acris last edited by

                                      @acris hmmm pas encore essayé mais en l'état ça semble pas entièrement utilisable

                                      1 Reply Last reply Reply Quote 0
                                      • acris
                                        acris last edited by

                                        @voljega, j'ai posté sur le forum wait & see , peut être qu'il y a un truc que je ne fais pas juste.

                                        1 Reply Last reply Reply Quote 0
                                        • Substring
                                          Substring @acris last edited by

                                          @acris said in Ajout d'une entrée dans EmulationStation pour pico8:

                                          /recalbox/share/system/configs/loadmap/loadmap /recalbox/share/system/configs/loadmap/gamepad.map & SDL_VIDEO_GL_DRIVER=/usr/lib/libGLESv2.so SDL_VIDEO_EGL_DRIVER=/usr/lib/libGLESv2.so /recalbox/share/system/configs/pico8/pico8 -run /recalbox/share/roms/pico8/pico-man.p8.png

                                          Vaudrait mieux avec 2 & :

                                          # /recalbox/share/system/configs/loadmap/loadmap /recalbox/share/system/configs/loadmap/gamepad.map && SDL_VIDEO_GL_DRIVER=/usr/lib/libGLESv2.so SDL_VIDEO_EGL_DRIVER=/usr/lib/libGLESv2.so /recalbox/share/system/configs/pico8/pico8 -run /recalbox/share/roms/pico8/pico-man.p8.png
                                          

                                          Former dev - Please reply with @substring so that i am notified when you answer me
                                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                          voljega 1 Reply Last reply Reply Quote 0
                                          • voljega
                                            voljega Banned @Substring last edited by

                                            @Substring ça fait quoi && à la place de & ?

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

                                            Want to support us ?

                                            83
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com