RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Development of module-script generator for lr-mess, lr-mame and mame standalone

    Scheduled Pinned Locked Moved Ideas and Development
    developmentlr-messmamelr-mamescripts
    2.3k Posts 37 Posters 7.9m 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.
    • mituM
      mitu Global Moderator @Folly
      last edited by

      @Folly said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

      https://retropie.org.uk/forum/post/304483

      I think that's a user error here, from @roslof. Either way, I think it's just a singular occurence, not a recurring patern.

      FollyF 1 Reply Last reply Reply Quote 1
      • FollyF
        Folly @mitu
        last edited by

        @mitu said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

        @Folly said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

        https://retropie.org.uk/forum/post/304483

        I think that's a user error here, from @roslof. Either way, I think it's just a singular occurence, not a recurring patern.

        Ok, thanks for looking at it.
        Then we are all good here. ;-)

        roslofR 1 Reply Last reply Reply Quote 1
        • roslofR
          roslof @Folly
          last edited by

          @Folly said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

          Ok, thanks for looking at it.
          Then we are all good here. ;-)

          Saw the mention. Fixed the inadvertent downvote.
          Cheers

          FollyF 1 Reply Last reply Reply Quote 1
          • FollyF
            Folly @roslof
            last edited by

            @roslof said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

            @Folly said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

            Ok, thanks for looking at it.
            Then we are all good here. ;-)

            Saw the mention. Fixed the inadvertent downvote.
            Cheers

            Thanks for restoring !

            1 Reply Last reply Reply Quote 0
            • DTEAMD
              DTEAM @Folly
              last edited by DTEAM

              @Folly said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

              I added code for detecting here and here.
              I removed the Elektronika drivers from classich.ini here.
              I added elektronikah.ini here.

              I think this is the way to go.

              Thanks for the list, i'll create a system for those games in my theme. Most of those games have a great "MAME's artwork" such as Game & Watch.

              FollyF 1 Reply Last reply Reply Quote 1
              • FollyF
                Folly @DTEAM
                last edited by Folly

                @DTEAM said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

                @Folly said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

                I added code for detecting here and here.
                I removed the Elektronika drivers from classich.ini here.
                I added elektronikah.ini here.

                I think this is the way to go.

                Thanks for the list, i'll create a system for those games in my theme. Most of those games have a great "MAME's artwork" such as Game & Watch.

                Indeed great artwork.
                Not sure if there are backgrounds in the artwork otherwise a rename is appropriate for lr-mess compatiblility.
                If so I think I will have to add elektronikah in my script for extracting backgrounds and creating game specific configs.
                Well that can be done later when we know how all the games look.

                I am experimenting with the command awk to see if I can build the database quicker and better.
                It's basically a program for manipulating text and the basics I know but it is also a sort of program language, I never knew.
                Seems much more powerful with that.
                You might want to read the manual too, see link.

                Here is one nice example :

                #print driver/description/manufacturer from -listxml using 3 field delimiters <>", all on one line
                /opt/retropie/emulators/mame/mame -listxml atakaast|awk -F '[<>"]' '/<machine name/ || /<descr/ || /<manu/ {nlines = nlines + 1} /<machine name/ || /<descr/ || /<manu/ {if (nlines <= 3) total = total  $3 " "}END{print total}'
                

                Output is :
                Driver□atakaast□Ataka asteroidov□bootleg (Elektronika)□:

                Normally I use -listdevices to get the driver and description.
                I get the others, such as manufacturer, with -listxml.
                With above you should be able to extract the same without using -listdevices but with more added info like explained, the manufacturer.
                I think it would also be possible to add certain info as tags without even creating an ini in the first place.
                After creating a list for all drivers you can sort much quicker on certain manufacturers or use it as a presort for the old method of creating ini's quicker as you don't have to check all 30000 drivers for specific ini's.
                Then you do a presort on manufacturers from the created list and use these +/-25 drivers to check if they are valid which saves a lot of time.

                DTEAMD 1 Reply Last reply Reply Quote 1
                • DTEAMD
                  DTEAM @Folly
                  last edited by DTEAM

                  @Folly

                  Hi Folly, I can't find these three artworks files for the wallpaper/background and system. Have you seen a place where we can download them?

                  a9c6298d-9376-4b29-aff2-83707b0839a4-image.png

                  FollyF 1 Reply Last reply Reply Quote 0
                  • FollyF
                    Folly @DTEAM
                    last edited by

                    @DTEAM

                    Will have a look at these artwork files.

                    BTW.
                    Just to let you know I have some basic awk script stuff running.
                    It was a bit of getting used to but until now it's awesome and I am really impressed by it.
                    This is what it already gives when adding the driver as option :

                    :~/awk$ bash awk.sh nupogodi
                    Driver□nupogodi□Nu, pogodi!□bootleg (Elektronika)@good@elektronikah@
                    :~/awk$ bash awk.sh tapollo13
                    Driver□tapollo13□Apollo 13 (Tiger)□Tiger Electronics@good@tigerh@
                    :~/awk$ bash awk.sh jak_disf
                    Driver□jak_disf□Disney Friends (JAKKS Pacific TV Game, Game-Key Ready) (17 MAY 2005 A)□JAKKS Pacific Inc @imperfect@jakks_gamekey_dy@jakks@
                    :~/awk$ bash awk.sh bassmate
                    Driver□bassmate□Bassmate Computer□Telko @good@gameandwatch@
                    :~/awk$ bash awk.sh gnw_ball
                    Driver□gnw_ball□Game &amp; Watch: Ball□Nintendo@good@gameandwatch@
                    :~/awk$ bash awk.sh kgradius
                    Driver□kgradius□Gradius (handheld)□Konami@good@konamih@
                    :~/awk$ bash awk.sh uboat
                    Driver□uboat□U-Boat□Bandai@good@classich@
                    
                    DTEAMD 1 Reply Last reply Reply Quote 1
                    • DTEAMD DTEAM referenced this topic
                    • DTEAMD DTEAM referenced this topic
                    • DTEAMD
                      DTEAM @Folly
                      last edited by DTEAM

                      @Folly

                      Sound issue with MAME 0.278
                      https://github.com/mamedev/mame/issues/13905

                      Supposed to be fixed on MAME 0.279. I have this issue at the moment

                      FollyF 1 Reply Last reply Reply Quote 0
                      • FollyF
                        Folly @DTEAM
                        last edited by

                        @DTEAM said in Development of module-script generator for lr-mess, lr-mame and mame standalone:

                        @Folly

                        Sound issue with MAME 0.278
                        https://github.com/mamedev/mame/issues/13905

                        Supposed to be fixed on MAME 0.279. I have this issue at the moment

                        I did not have any issues here.
                        Hopefully it will be solved.

                        1 Reply Last reply Reply Quote 0
                        • FollyF
                          Folly
                          last edited by

                          I have also news about the drivers that use samples.
                          I found that the sample files found on progettosnaps have more or less different names than the drivers that use them.
                          So my old list did not match real drivers.
                          I found a way to match the samples to the drivers that use them.
                          So the old incorrect list was supposedly 79 drivers.
                          The correct and new list will be containing 312 drivers.

                          DTEAMD 1 Reply Last reply Reply Quote 2
                          • DTEAMD
                            DTEAM @Folly
                            last edited by DTEAM

                            @Folly

                            I temporarily solved my audio problem by adding this to my /opt/retropie/configs/mame/mame.ini file. :

                            # OSD SOUND OPTIONS
                            #
                            sound                     portaudio
                            audio_latency             2
                            

                            I'll try the other options. Only portaudio works for me. The new thing on MAME is wasapi, but it doesn't work on a Pi.

                            FROM MAME 0.278 Documentation:
                            40447003-8519-43d9-b27c-461d78a616fd-image.png

                            1 Reply Last reply Reply Quote 1
                            • 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.