Recalbox Forum

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

    [SCRIPT] Full Audit ROM

    Community projects
    [script] full audit rom
    3
    7
    2578
    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 last edited by voljega

      merci à @manatlan pour m'avoir donné l'idée de ce script et l'envie de faire du python 😉

      found there : https://github.com/Voljega/scripts4recalbox/tree/master/FullAuditRom

      This script allows you to launch an audit of all your roms

      It will display for each rom the following information :
      "System Of The Rom" "Name of The Rom" "Rom File Exists" "Rom Scrape Image Exists" "Rom Is Scraped" "Rom is Hidden" "Rom Full Path" "Rom Scrape Image Full Path"

      Script usage is simple : copy it where you like in the share partition then execute it with python FullAuditRom.py
      Additionaly you can limit the systems you want to audit directly on the command line i.e. python SystemSorter.py snes gb

      The audit file can then be found at the end of the process in /recalbox/share

      How it works

      The script uses the /recalbox/share_init/system/.emulationstation/es_systems.cfg to get the list of systems and the extensions of their roms.
      For every non-excluded system it then get the full list of roms and match them with the gamelist.xml of the system.

      French Version :

      Ce script vous permet de lancer un audit complet de vos roms

      Pour chaque rom il va lister les informations suivantes :
      "Système de la rom" "Nom de la rom" "Fichier de la rom existant" "Image de scrape de la rom existante" "Rom scrapée" "Rom cachée" "Chemin complet du fichier de la rom" "Chemin complet de l'image de la rom"

      L'utilisation est simple : copiez le script où vous souhaitez dans la partition share and lancez là avec python FullAuditRom.py
      Vous pouvez aussi limiter les systèmes à auditer avec des arguments supplémentaires : python SystemSorter.py snes gb

      Le fichier d'audit se trouvera à la fin du processus dans /recalbox/share

      Comment ça marche

      Le script utilise /recalbox/share_init/system/.emulationstation/es_systems.cfg pour obtenir la liste des systèmes et les extensions de leur roms
      Pour chaque système non exclus il récupère ensuite la liste complète de ses roms et la fait correspondra avec les informations du gamelist.xml du système.

      Substring 1 Reply Last reply Reply Quote 1
      • lackyluuk
        lackyluuk Translator last edited by

        @voljega Nice work!
        Could this script be used to show the scraped image, Name of the game and the Systemname on a secondary screen? Like a screen in a cartridge? 🙂

        NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

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

          @voljega Hey great idea !

          2 suggestions :

          • add a wget https://raw.githubusercontent.com/Voljega/scripts4recalbox/master/FullAuditRom/FullAuditRom.py -O FullAuditRom.py command to your tutorial
          • Make sure it doesn't fail when no gamelist is found 😉
          # python FullAuditRom.py 
          found 1 roms for amstradcpc
          unscraped roms left : 0
          found 0 roms for apple2
          Traceback (most recent call last):
            File "FullAuditRom.py", line 114, in <module>
              genCSV(pa&ast;&ast;eSystems(systems if len(paramSystems) ==0 else paramSystems))
            File "FullAuditRom.py", line 86, in pa&ast;&ast;eSystems
              pSystems.append(System(system.name, system.extension, gameListExtraction(system,roms)))
            File "FullAuditRom.py", line 24, in gameListExtraction
              games = etree.pa&ast;&ast;e(gamelistFile, pa&ast;&ast;er=pa&ast;&ast;er).findall(".//game")
            File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in pa&ast;&ast;e
              tree.pa&ast;&ast;e(source, pa&ast;&ast;er)
            File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in pa&ast;&ast;e
              source = open(source, "rb")
          IOError: [Errno 2] No such file or directory: '/recalbox/share/roms/apple2/gamelist.xml'
          

          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 @lackyluuk last edited by

            @lackyluuk hmmm what you want would be more about the currently launched game no ? Someone posted a script about that a while ago

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

              @substring i'll do that but should'nt the gamelist.xml be created in any case by emulation station ? I have a lot of systems i don't use but the script didn't fail on my side

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

                @voljega This is a vanilla install, no roms ni the appleII folder, and I've run the "update gamelists" in ES already, so no exmpty gamelist.xlm is created in such case

                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 ok anyway it's already fixed 😛

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

                  Want to support us ?

                  95
                  Online

                  98.7k
                  Users

                  28.1k
                  Topics

                  187.0k
                  Posts

                  Copyright © 2021 recalbox.com