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 36 Posters 6.4m 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 @mitu
      last edited by

      @mitu

      This morning my laptop it reacted like before. (redirected to external page)
      So I cleared the browser cache to see if it worked, but it was still the same.

      I tested it now again, to my surprise it's ok now.

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

        @mitu

        I was thinking that it worked again.
        But there is still a problem.
        Google Chrome and Safari in OSX react both the old way no matter what I wipe.

        On the same laptop using debian 11/firefox inside VMware it works ok.
        I probably used debian and I was thinking that it worked again.

        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 and mame standalone:

          Google Chrome and Safari in OSX react both the old way no matter what I wipe.

          Hm, Safari and Chrome seem to work fine for me (on macOS), though I may not have their latest version installed. I'll try with a recent Chromium. The only browser that doesn't seem to be working right is Windows Firefox.

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

            @mitu

            Here some info :
            I use Version 100.0.4896.75 (Officiƫle build) (x86_64) of Chrome.
            Safari is Version 15.3 (17612.4.9.1.8).
            On OSX 12.2.1 .

            Not the end of the world if we can't find it ;-)

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

              @Folly Unfortunately there seem to be a limitation of embedding AsciiCast via iframe (which is what I've used to configure the embed link).

              • Firefox (latest) works, but (on Windows) cuts the right side of your cast.
              • Chrome (lastest, 100.x) and Edge just provide a link.
              • Safari (older version from macOS Mojave) seems to work, but shows some displaced characters on the right side of the cast.

              I've tried to work-around the issues appearing on the right side of the cast by fiddling with the width/height, but doesn't seem to work.
              I'll try to see we can embed the AsciiCast differently (i.e. not using iframe).

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

                @mitu

                Would be really nice if you can find a solution.
                Thanks for looking at it ;-)

                1 Reply Last reply Reply Quote 0
                • DTEAMD DTEAM referenced this topic on
                • F
                  Folly
                  last edited by Folly

                  @Orionsangel

                  If you don't mind, I want to add an implementation to install/setup your realistic bezels from within my script so more people can enjoy it.

                  The reason I want to do it is that I now implemented arcade/non-arcade detection.
                  So for arcade, lr-mame loaders are installed now.
                  On top of that we can "force create arcade categories" so now it's possible to add for example the roms directory realistic that can be used for, for example, running arcade games with your realistic overlays without having any effect on other roms directories.
                  This makes it possible for the future to use more directories with different types of overlays.

                  I used Orionsangels_Arcade_Overlays_For_Retroarch_Part1.zip.
                  I had to overcome some issues because these overlays are :

                  • for "windows"
                  • created for 1920x1080
                  • without custom aspect-ratio and shader settings

                  Seems I have solved all the issues, so it now possible for me to :

                  • download and extract the pack from within the script
                  • patch the .cfg files with adding shader and custom aspect ratio
                  • detect the resolution of the host and converting the viewport values to the correct values for the host computer and use these values to have correct .cfg files for computer on which it is installed
                  • patching with host resolutions will work for both 16:9 and 4:3
                  • and move the patched files to the realistic roms directory

                  I wonder though, it would be nice to have all your overlays in one zip archive.
                  Did you push all of them in pack1 or do you use more files ?

                  @DTEAM @jamrom2
                  Are you both interested in testing 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 and mame standalone:

                    patching with host resolutions will work for both 16:9 and 4:3

                    Could you also add (800x480) small touchscreen or LCD (for people with Retropie on a handheld)

                    Are you both interested in testing too ?

                    Sure!!!

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

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

                      ould you also add (800x480) small touchscreen or LCD (for people with Retropie on a handheld)

                      Edit : sorry for the may edits ;-)

                      The patching should work for all resolutions.

                      You can test it all.
                      Look at the last five commits :
                      https://github.com/FollyMaddy/RetroPie-Share/commits/4887c84cabd100ed8da8cb244e0f4c6f1cf40bb0

                      Setup in this order :
                      Choose and install HANDHELD/PLUG&PLAY/CATEGORIES > Submenu
                      Forcing Arcade Category => realistic
                      CHEATS/ARTWORK/BEZELS > Submenu
                      Setup Orionsangels Arcade Overlays Part1 > roms/realistic (dowloading can take 10 min)

                      Only issue can be that the mouse is enabled for lr-mame because it shares still that creation part with lr-mess.
                      Perhaps I have to separate disable that in the future for lr-mame.
                      Other than that I think it works great.

                      BTW. :
                      Can you also see if the "asciinema demo", in the script, works for you ?

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

                        @DTEAM

                        Forgot to tell.
                        With a lower resolution the shader will become less attractive.
                        If so, then you/we need to try an other CRT shader for the lower resolutions.
                        Let me know if that is the case, perhaps it's possible to make some fix for that in the script.

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

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

                          BTW. :
                          Can you also see if the "asciinema demo", in the script, works for you ?

                          It works perfectly, not centered but it doesn't matter

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

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

                            It works perfectly, not centered but it doesn't matter

                            Indeed, not centred , that's the issue.
                            On the other hand, now people can see it's not part of the regular menu, which is nice.

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

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

                              Only issue can be that the mouse is enabled for lr-mame because it shares still that creation part with lr-mess.
                              Perhaps I have to separate disable that in the future for lr-mame.
                              Other than that I think it works great.

                              I tried alien3, and when mouse is enabled you can play it with the mouse.
                              So that's nice, I think I will keep the mouse enabled.
                              In the Desktop environment I see the mouse pointer.
                              I might have to add an input_grab_mouse_toggle key for that in the retroarch config.
                              I am thinking of adding this to hide the desktop mouse pointer :
                              input_grab_mouse_toggle = insert

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

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

                                Edit : sorry for the may edits ;-)
                                The patching should work for all resolutions.
                                You can test it all.
                                Look at the last five commits :
                                https://github.com/FollyMaddy/RetroPie-Share/commits/4887c84cabd100ed8da8cb244e0f4c6f1cf40bb0
                                Setup in this order :
                                Choose and install HANDHELD/PLUG&PLAY/CATEGORIES > Submenu
                                Forcing Arcade Category => realistic
                                CHEATS/ARTWORK/BEZELS > Submenu
                                Setup Orionsangels Arcade Overlays Part1 > roms/realistic (dowloading can take 10 min

                                It works for well for the Bezels, but I encountered 2 issues:

                                • The screen (video game) doesn't match de Bezel (800x480)
                                • The Bezel doesn't load automatically.
                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  Folly @DTEAM
                                  last edited by Folly

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

                                  I was hoping that it would work perfectly ;-)

                                  The Bezel doesn't load automatically

                                  Is the shader working but you can't see the bezel ?

                                  The screen (video game) doesn't match de Bezel (800x480)

                                  All the games or just a few ?
                                  Can you send a picture so I can see how it looks ?

                                  Can you do this command for me in the terminal ?

                                  fbset -s
                                  

                                  What mode resolution does it give ?

                                  And did you install with the 5'' screen attached or did you use a normal monitor when doing that ?

                                  Edit : I detected that there are bezels missing from the pack, like neogeo.

                                  DTEAMD 2 Replies Last reply Reply Quote 0
                                  • FloobF Floob referenced this topic on
                                  • DTEAMD
                                    DTEAM @Folly
                                    last edited by DTEAM

                                    @Folly

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

                                    Is the shader working but you can't see the bezel ?

                                    No, the Bezel cuts the videogame visual output. It's too big for the bezel. The videogame visual output should be resized with the Bezel.
                                    thumbnail_IMG_4752.jpg
                                    thumbnail_IMG_4753.jpg

                                    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 and mame standalone:

                                      Can you do this command for me in the terminal ?
                                      fbset -s

                                      800x480

                                      And did you install with the 5'' screen attached or did you use a normal monitor when doing that ?

                                      5" screen. During the installation, I saw 800x480, so your conversion tool seems to work for the bezels.

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

                                        @DTEAM

                                        Ok, that is good information.
                                        Not sure whats the problem.
                                        I will have to think about it for a while.

                                        I tried a low resolution 720x400 and it looks good, so low resolutions are not the problem. (good to know)
                                        2022-04-11-205355_720x400_scrot.png

                                        Is your config looking like this ?, with a bit different values :

                                        custom_viewport_height = "252"
                                        custom_viewport_width = "329"
                                        custom_viewport_x = "198"
                                        custom_viewport_y = "74"
                                        input_overlay = "/opt/retropie/configs/all/retroarch/overlay/realistic/720.cfg"
                                        aspect_ratio_index = "23"
                                        video_shader = "/opt/retropie/configs/all/retroarch/shaders/fake-crt-geom.glslp"
                                        

                                        My runcommand.log does not find cfg overides, does yours find some (so it will undo some settings from the overlay cfg) ?:

                                        [INFO] [Overrides]: No core-specific overrides found at "/home/pi/.config/retroarch/config/MAME/MAME.cfg".
                                        [INFO] [Overrides]: No content-dir-specific overrides found at "/home/pi/.config/retroarch/config/MAME/realistic.cfg".
                                        [INFO] [Overrides]: No game-specific overrides found at "/home/pi/.config/retroarch/config/MAME/ 720.cfg".
                                        

                                        Can you find the scaling options in the RetroArch GUI, mine look like this (here we can see that the viewport values are working) (z > settings > video > scaling) :
                                        2022-04-11-212739_1600x900_scrot.png

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

                                          @Folly
                                          Aspect Ratio = Core provided

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

                                            @DTEAM

                                            Not sure why, but it has to be "custom".
                                            I will try "core" here, and see what happens.

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