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

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

      @Folly No sorry I meant the OSX Mame nightly built of 0.278. so standalone Mame works and boots up on my Raspberry pi 5. Games like Daytona USA, Dynamite Cop I tried and they booted. Only problem is I'm not getting audio, I imagine I need to add some dependancies or change some settings to get it to look for alsa

      Anyway, I'm building lr-mame first and if that works as well or if the fps is a significantly lower

      No problem running it directly on OSX.
      But if you like and can then try to run debian12 or above with mate desktop on your M1 and you can just install RetroPie on top. You can even use the raspberry pi binaries and you can also make the binaries for the rpi on your M1 (only 64bit though). mame compiles within an hour on the M1. If you have enough ram (16Mb+) then half an hour can be possible (vs 4-5 hours on an rpi).
      That is how I do it and these binaries are placed on the gdrives to share within the script. So if you want you could help me with that building lr-mame versions for example.

      I added code for creating model2/model3 ini files containing the systems that are model2 or model3 systems. that way the systems can be added to the next databases to be able to categorize model2 and model3 into separate roms folders.
      The commit of model2.ini can be found here.

      I also added the model2 data to the old 277 database here, so it's possible now to install model2 as a category and easily link the roms using the 277 database.
      Remember to update the script, then it will get the updated database too.

      With linking the roms remember to remove (&& /@good@/) in the search input option to link all model2 roms as most of them are marked "preliminary".

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

        @Folly

        Here's the list of new handhelds for us (based on MAME 0.278). It's a lot for a MAME new version.

        0.278.png

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

          @DTEAM

          My script detected also these 2 for classich :
          uchitari (Uchitel' arifmetiki (prototype?)) Elektronika
          vesarif (Vesolaya arifmetika) Elektronika

          For jakks these 2 are also detected :
          jak_mpaco (Ms. Pac-Man Collection 5-in-1 (JAKKS Pacific TV Game) (01 APR 2004 A))
          jak_mpacq (Ms. Pac-Man Collection 7-in-1 (JAKKS Pacific TV Game) (QVC version, 12 JUL 2004 A))

          I will add these too.

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

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

            uchitari (Uchitel' arifmetiki (prototype?)) Elektronika
            vesarif (Vesolaya arifmetika) Elektronika

            Read this post and the one after

            https://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=124522#Post124522

            no evidence of a real unit yet. Not sure we should add it for now. The other one is a clone

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

              @DTEAM

              I see what you mean.
              I will keep manually removing those 2 until we think we should add it again.

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

                @Folly
                I don't have the time to do it now, but someday, maybe we should add Elektronica as a system
                https://en.wikipedia.org/wiki/Elektronika

                retropieuser555R FollyF 2 Replies Last reply Reply Quote 1
                • retropieuser555R
                  retropieuser555 @DTEAM
                  last edited by

                  @DTEAM thing is, would you add Dendy as a system? As all these old Soviet games were basically clones of others (most of these like Nu pogodi are game and watch clones)

                  Pi 5 4GB

                  Retroflag GPI with raspberry pi zero 2 w/ wifi

                  Retroachievements:- lovelessrapture

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

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

                    @DTEAM thing is, would you add Dendy as a system? As all these old Soviet games were basically clones of others (most of these like Nu pogodi are game and watch clones)

                    Somehow you mentioned something in your post that we missed somehow.
                    Seems nupogodi wasn't in our lists.
                    After some investigation the manufacturer part is not Elektronika but bootleg Elektronika so my ini-creation script missed the bootlegs.
                    After all it turns out there are far more Elektronika handhelds.

                    I see what you mean by saying you don't install dendy as a default system as it's basically the same as the nes.
                    I agree with that.
                    I think however with the Elektronika handhelds this is a bit different as they are clones but the looks is very different.
                    So it's probably not a bad idea to separate them from the classich category after all.
                    I detected 21 Elektronika handhelds where only 2 of them were in the classich category and recently 2 others which we didn't want in the classih category.
                    So making it separately could be a win win here.

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