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.2k Posts 35 Posters 6.0m 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.
    • F
      Folly @Ashpool
      last edited by

      @Ashpool

      I looked at the file asteroids_acc_backdrop.png.
      You can use it as an background overlay but you need to use some transparency in the config file just like I use for the handhelds (konamih, tigerh, etc) using lr-mess.

      The config roms/arcade/asteroids.zip.cfg would look like this :

      input_overlay =  /opt/retropie/configs/all/retroarch/overlay/asteroids.cfg
      input_overlay_enable = true
      input_overlay_opacity = 0.500000
      input_overlay_scale = 1.000000
      

      The config /opt/retropie/configs/all/retroarch/overlay/asteroids.cfg would look like this (placing the .png in the same directory):

      overlays = 1
      overlay0_overlay = asteroids_acc_backdrop.png
      overlay0_full_screen = false
      overlay0_descs = 0
      

      That is one solution that should work.

      AshpoolA 1 Reply Last reply Reply Quote 0
      • AshpoolA
        Ashpool @Folly
        last edited by Ashpool

        @Folly Right, and for lr-mame that maybe should perform faster then using mame-artwork together/instead of lr-overlays. But the reason I wanted to try with backdrop -> quick comparison: mame artwork (Mr.Do's old mame artwork) backdrop vs. lr-overlay in lr-mame2003Plus (nowadays default vector settings) and using asteroid deluxe (as that backdrop is more obstrusive compared to my mentioned asteroid one and therefor better suited for the comparison) ... And IMHO by having a real backdrop (where the vectors are drawn on) it ain't competing/messing with the vector setup(s) as it is IMHO with an overlay (drawn over the vectors) ;)

        So, here we go -> left is mame_artwork/backdrop, right is libretro-overlay with 0.5 opacity.
        Backdrop_vs_Overlay.jpg

        P.S.: The Backdrop/Overlay may slightly differ in their AspectRatio, as for that test I've taken the backdrop from the mame artwork, resized it to 4:3 vertical res of my display and added black borders for the horizontal res and then using your configs with it (And for the mame artwork, i omitted the bezel from the artfile, so that it is just the backdrop used by it).

        F 1 Reply Last reply Reply Quote 0
        • F
          Folly @Ashpool
          last edited by Folly

          @Ashpool

          Nice to see that you have got it working. (nice backdrop btw.)
          Indeed, using RA-overlays has it limitations.
          What about the speed ?

          I tried the artwork file astdelux.zip (renaming it asteroid.zip) on both mame (in roms/mame/artwork) and lr-mame (in BIOS/mame/artwork) on my pi4.
          The file seems a bit different than yours but for the test that doesn't matter.
          Speed on mame is 100%
          Speed on lr-mame is 78% (and more if frameskipping is used)

          Altough the speed is lower on lr-mame it is still playable and it looks better than using an RA-overlay.

          DTEAMD AshpoolA 2 Replies Last reply Reply Quote 0
          • DTEAMD
            DTEAM @Folly
            last edited by DTEAM

            @Folly

            Hi Folly, for classich and Game&Watch games from Madrigal romset, I got an idea to autorun the games with the good emulator.

            For all roms, by default it could be MAME or lr-Mess (doesn't matter). For madrigal, you could create a scritp with your list or the list on my tutorial thread to generate a execution path for each Madrigal roms in /opt/retropie/configs/all/emulators.cfg like classich_ExplorersofSpace = "lr-gw" . That way, the user doesn't have to know if it's a Madrigal rom or MAME rom.

            What do you think about this approch.

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

              @DTEAM

              Could be a good approach.
              Just tested a few and it works beautifully.

              Looks like we still need the runcommand for "lr-gw" on "classich" though.

              I think it could be as easy as making the emulators.cfg and add both gameandwatch games and classich games then you can just share it on google-drive and I add a command that will download that file and place it in /opt/retropie/configs/all.

              Good idea ?

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

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

                I think it could be as easy as making the emulators.cfg and add both gameandwatch games and classich games then you can just share it on google-drive and I add a command that will download that file and place it in /opt/retropie/configs/all.

                No problem, I'll do that.

                1 Reply Last reply Reply Quote 1
                • AshpoolA
                  Ashpool @Folly
                  last edited by Ashpool

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

                  Speed on mame is 100%
                  Speed on lr-mame is 78% (and more if frameskipping is used)
                  Altough the speed is lower on lr-mame it is still playable and it looks better than using an RA-overlay.

                  Well... using "F11" in both lr-mame and mame is somewhat ambiguous over my tests/tryouts and I am not sure what detail(s) is(/are) making the difference(s)... in all of my experiments, neither core got a constant 100%... in worse cases it droped down to don't mention it&please deactivate the audio, over midterms around 45 -20/+15% and then in good scenarious around 96-98|100%. On fresh installs (mame and lr-mame (in this order)) mame seems to be a bit faster, but from there onward (after meddling with ini files and artwork) lr-mame performed slightly better). Regardless of that, once I've got some more experience/data and configurations done, I am now inclined to open up a showcase/WIP/some ideas anyone? thread for that scenario of my ventures into this sub-project of my reasons to try current mame/lr-mame (mame backdrop/libretro bezel) in the near future ;]

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    Folly @Ashpool
                    last edited by

                    @Ashpool

                    Good idea to bundle your experience in a new thread.

                    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 think it could be as easy as making the emulators.cfg and add both gameandwatch games and classich games then you can just share it on google-drive and I add a command that will download that file and place it in /opt/retropie/configs/all.
                      Good idea ?

                      It only works for games with no space in there names. I don't know whaat to do with games like : gameandwatch_Donkey Kong (Multi Screen)="lr-gw"
                      it only works for games with a single name like : gameandwatch_Egg="lr-gw"
                      Any idea @folly @mitu

                      See here on my drive
                      File name : emulators.cfg

                      To place in : /opt/retropie/configs/all/

                      F mituM 4 Replies Last reply Reply Quote 0
                      • F
                        Folly @DTEAM
                        last edited by

                        @DTEAM

                        The example you gave also had a space which was removed.
                        Did you try this ? :
                        gameandwatch_DonkeyKong(Multi Screen) = "lr-gw"

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

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

                          It only works for games with no space in there names. I don't know whaat to do with games like : gameandwatch_Donkey Kong (Multi Screen)="lr-gw"
                          it only works for games with a single name like : gameandwatch_Egg="lr-gw"
                          Any idea @folly @mitu

                          Easy - start the game and choose your emulator from the runcommand launch menu, then see how it's stored in the .cfg file. Or look-up the function that does the name substitution - it's here.

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

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

                            Donkey Kong (Multi Screen)

                            The function clean_name gives :
                            DonkeyKongMultiScreen

                            So this should work :
                            gameandwatch_DonkeyKongMultiScreen = "lr-gw"

                            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:

                              The function clean_name gives :
                              DonkeyKongMultiScreen
                              So this should work :
                              gameandwatch_DonkeyKongMultiScreen = "lr-gw"

                              Yes, it works now. Thanks
                              See here on my drive
                              File name : emulators.cfg

                              To place in : /opt/retropie/configs/all/

                              It's very usefull for classich and gameandwatch with MADrigal romset.

                              F 3 Replies Last reply Reply Quote 1
                              • F
                                Folly @DTEAM
                                last edited by

                                @DTEAM

                                If I have time tomorrow I will look at it.
                                Also busy with changing the "lr-gw" install.
                                Hopefully I can implement before Sunday because next 2 weeks I don't have any time.

                                duglorD 1 Reply Last reply Reply Quote 1
                                • duglorD
                                  duglor @Folly
                                  last edited by

                                  @Folly (interjection, pardon me, Folly is there a thread or something you can point me to to the most minutae step by step installation of the latest/newest/ folly-updated lr-mess/mame-fmtowns emulator and how to make it work?--please resume chat without me now..lol..)....

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

                                    @DTEAM

                                    I can only download folders containing files with my function.
                                    Theoretically it's possible to download only 1 file with the gdrivedl.py script however the fileurl is unknown.
                                    Therefor the best solution is to just put the file in a separate folder without any other files.
                                    Can you do that for me ? Not needed anymore, I placed the file in my repository.

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      Folly @duglor
                                      last edited by Folly

                                      @duglor

                                      There is no tutorial for installing fmtowns using my script.
                                      You can find some older stuff, that might be useful, over here :
                                      https://retropie.org.uk/forum/topic/27806/tutorial-fujitsu-fm-towns-marty-with-lr-mess
                                      https://retropie.org.uk/forum/topic/27806/tutorial-fujitsu-fm-towns-marty-with-lr-mess/45
                                      We also discussed these systems in this thread, for example, over here :
                                      https://retropie.org.uk/forum/topic/28345/old-computer-appreciation-thread/1268

                                      Basically it's just like any other install.
                                      However some software does need more ram so I have added installer lines for fmtowns and fmtmarty in my section Systems: with extra options.
                                      My advice is install these ones.

                                      After that it's just a matter of adding the correct bios files.
                                      You can check the /dev/shm/runcommand.log for the missing bios files after a failed run.

                                      You should open a new thread reserving your fist post for a summarize on how to install things using my script.
                                      That would be a good addition to this thread.

                                      duglorD 1 Reply Last reply Reply Quote 0
                                      • duglorD
                                        duglor @Folly
                                        last edited by duglor

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

                                        Systems: with extra options.

                                        Your "Systems: with extra options thread?" meaning this thread here? starting from the top?

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          Folly @duglor
                                          last edited by Folly

                                          @duglor

                                          You can find the section/menu item "Systems: with extra options" over here : 1663431603837-2022-09-17-181420_1600x900_scrot.png

                                          My advise is just to make a new thread, just like you did over here :
                                          https://retropie.org.uk/forum/topic/33956/fujitsu-fm-towns-marty
                                          ( or just use that thread )

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

                                            @DTEAM

                                            I changed the lr-gw install significantly as I wasn't happy about how it was earlier on.
                                            Now the install basically works just like the install lines for mame/lr-mess/lr-mame and so the binary install will now also possible.
                                            On top of the regular install I added the patches described in the commit.
                                            I don't expect huge issues as I tested it, partly, myself.
                                            However I want to ask you if you can test it too ?

                                            Btw. I have added the emulators.cfg to my repository, that way I can do the download in proper way.

                                            These are the commits :
                                            https://github.com/FollyMaddy/RetroPie-Share/commit/3e0609072780b0bf8a26a34f0f829110e5502298
                                            https://github.com/FollyMaddy/RetroPie-Share/commit/ddbcf189c9852c8ef5140a881eb376bd5787dbb3
                                            Fix emulators.cfg (correct clean_names) :
                                            https://github.com/FollyMaddy/RetroPie-Share/commit/ae78a1c57cc8e05ef9be4af15ec75e61d2ddc63d

                                            duglorD 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.