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.7m 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.
    • FollyF
      Folly @DTEAM
      last edited by Folly

      @DTEAM

      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.

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

        Seems someone is down-voting posts.
        That is not the way to go if you don't agree with something.
        Write posts and try to convince people otherwise and help with developing the project !

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @Folly
          last edited by mitu

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

          Seems someone is down-voting posts.

          Can you tell me which posts have been downvoted and which user ? Is it in this topic ? I'll take a look.

          EdiT: @Folly are you sure it's not some user error ? One of the downvotes is yours and I think the other one that I've seen in the last 10 replies here is also an user error.

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

            @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:

            Seems someone is down-voting posts.

            Can you tell me which posts have been downvoted and which user ? Is it in this topic ? I'll take a look.

            Post 2262, haven't seen the user info in my environment.

            EdiT: @Folly are you sure it's not some user error ? One of the downvotes is yours and I think the other one that I've seen in the last 10 replies here is also an user error.

            Ok, good to know I will restore my downvote.

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @Folly
              last edited by mitu

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

              Post 2262, haven't seen the user info in my environment.

              Can you give me the permalink ? Click on the post's hamburger menu and choose Copy permalink, then post it here.

              FollyF 1 Reply Last reply Reply Quote 0
              • 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:

                Post 2262, haven't seen the user info in my environment.

                Can you give me the permalink ? Click on the post's hamburger menu and choose Copy permalink, then post it here.

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

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