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 @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
                      • DTEAMD
                        DTEAM @Folly
                        last edited by DTEAM

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

                        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"

                        No, in /opt/retropie/configs.hdmi/all/retroarch/overlay/realistic my 720.cfg look like this :

                        overlays = 1
                        
                        overlay0_overlay = 720.png
                        
                        
                        overlay0_full_screen = true
                        
                        overlay0_descs = 0
                        
                        
                        This Realistic Arcade Overlay was made by: OrionsAngel
                        

                        in /opt/retropie/configs.hdmi/all/retroarch/config/MAME/realistic, it looks like this

                        **720.zip.cfg ** and **720.7z.cfg **

                        custom_viewport_height = "303"
                        custom_viewport_width = "365"
                        custom_viewport_x = "220"
                        custom_viewport_y = "89"
                        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"
                        
                        
                        F 1 Reply Last reply Reply Quote 0
                        • F
                          Folly @DTEAM
                          last edited by Folly

                          @DTEAM

                          I mean > /home/pi/RetroPie/roms/realistic/720.zip.cfg

                          I tried "core" (22) and then the viewport settings are off.
                          When I set it from core to custom into the RetroArch GUI (scaling) it will shrink again to the viewport values.
                          Can you try that, to see if it works ?

                          Edit I see what the problem is.
                          It's the configs.hdmi directory.
                          I think it was part of the Valerino fork.

                          It should be linked to the normal /opt/retropie/configs directory.
                          But when it's not the .zip.cfg and .7z.cfg can't be moved by my script to the /home/pi/RetroPie/roms/realistic roms directory.
                          (or by definition there wasn't a /home/pi/RetroPie/roms/realistic in the first place so the files can't be moved, perhaps)

                          So you should move or copy the .zip.cfg and .7z.cfg to the /home/pi/RetroPie/roms/realistic roms directory.

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

                            /home/pi/RetroPie/roms/realistic/

                            I have no folder realistic in /home/pi/RetroPie/roms/
                            The only one I have is in /opt/retropie/configs.hdmi/all/retroarch/config/MAME/

                            It should be linked to the normal /opt/retropie/configs directory.
                            But when it's not the .zip.cfg and .7z.cfg can't be moved by my script to the /home/pi/RetroPie/roms/realistic roms directory.
                            So you should move or copy the .zip.cfg and .7z.cfg to the /home/pi/RetroPie/roms/realistic roms directory.

                            I will do that. I have to go now, I'll try tomorrow

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

                              @DTEAM

                              EDIT: Skip this part, look at the next post.

                              Install this again.
                              Choose and install HANDHELD/PLUG&PLAY/CATEGORIES > Submenu
                              Forcing Arcade Category => realistic

                              Then you should have the /home/pi/RetroPie/roms/realistic

                              • Place your 720.zip there.
                              • Move the 720.zip.cfg there.
                              • Test the rom.
                              • If it doesn't work, edit the file 720.zip.cfg so it will find the config.hdmi directory.

                              Select realistic in emulationstation.

                              I think it should work then. ;-)

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

                                @DTEAM

                                Good luck tomorrow, I think we are on the right track now.
                                With the information from yesterday I updated the script.

                                So try this update first.

                                I did some tests with linking directories.
                                Moving and removing from within linked directories should work.
                                So you probably have :
                                /opt/retropie/configs.hdmi/all/retroarch/...... (is the actual folder)
                                /opt/retropie/configs/all/retroarch/...... (is the linked folder)

                                You did not have the roms/realistic directory.
                                When not there it can't move the files.
                                So I fixed this when selecting "Setup Orionsangels Arcade Overlays Part1 > roms/realistic" it will check if the roms/realistic directory exists.
                                If not the it will automatically install the Arcade realistic category/folder.

                                Just press <n> when you see this, it will skip downloading the file again :

                                getting your desired file
                                File exists !, do you want to overwrite it ? [Y/N] n
                                

                                https://github.com/FollyMaddy/RetroPie-Share/commit/268c0e19b0dc974976a15211b8f377a98ca99ee2
                                https://github.com/FollyMaddy/RetroPie-Share/commit/461719f82c8bedbdbf5e08c2369d278c47b23ab0

                                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:

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

                                  Nothing on my side. the folder doesn't contain those files.

                                  In my /opt/retropie/configs.hdmi/arcade, my retroarch.cfg contain this :

                                  # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
                                  input_overlay = "/opt/retropie/configs/all/retroarch/overlay/MAME-Horizontal.cfg"
                                  input_overlay_opacity = "1.000000"
                                  
                                  input_remapping_directory = "/opt/retropie/configs/arcade/"
                                  
                                  #include "/opt/retropie/configs/all/retroarch.cfg"
                                  

                                  The MAME-Horizontal.cfg doesn't exist

                                  Note: For configs.hdmi , it doesn't matter because I have a symbolic link (configs = configs.hdmi ). It should be good.

                                  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:

                                    Nothing on my side. the folder doesn't contain those files.

                                    Ok, that looks good too then.

                                    In my /opt/retropie/configs.hdmi/arcade, my retroarch.cfg contain this :

                                    # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
                                    input_overlay = "/opt/retropie/configs/all/retroarch/overlay/MAME-Horizontal.cfg"
                                    input_overlay_opacity = "1.000000"
                                    
                                    input_remapping_directory = "/opt/retropie/configs/arcade/"
                                    
                                    #include "/opt/retropie/configs/all/retroarch.cfg"
                                    

                                    The MAME-Horizontal.cfg doesn't exist

                                    Note: For configs.hdmi , it doesn't matter because I have a symbolic link (configs = configs.hdmi ). It should be good.

                                    Strange, the script part I added, for setting up the realistic overlays, does nothing with that directory.

                                    What's inside that retroarch.cfg will only have effect when you run roms from the arcade folder.
                                    I would suggest you remove the overlay lines in that retroarch.cfg.


                                    Have you tried my updated script ?
                                    I have updated it again to get rid of possible issues with /config.hdmi/ folder
                                    I would like you to run it.
                                    You only have to do this :
                                    CHEATS/ARTWORK/BEZELS > Submenu
                                    Setup Orionsangels Arcade Overlays Part1 > roms/realistic

                                    I hope this is the solution to the problem.

                                    When no .zip.cfg and .7z.cfg files come into the /home/pi/RetroPie/roms/realistic then I would like to see your latest log from /home/pi/RetroPie-Setup/logs.
                                    Just extract the latest, after you tried.
                                    Then we might find the error.
                                    Hopefully it will not be necessary.

                                    https://github.com/FollyMaddy/RetroPie-Share/commit/ab2643eaaff18007e68b6d0213d0d29457cba121

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

                                      @Folly
                                      It works if I put 720.7z.cfg and 720.zip.cfg directly in

                                      /home/pi/RetroPie/roms/arcade/

                                      It don't recognize /home/pi/RetroPie/roms/realistic

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

                                        Have you tried my updated script ?

                                        yes

                                        When no .zip.cfg and .7z.cfg files come into the /home/pi/RetroPie/roms/realistic then I would like to see your latest log from /home/pi/RetroPie-Setup/logs.
                                        Just extract the latest, after you tried.
                                        Then we might find the error.

                                        Parameters: 
                                        Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2016/mamearcade2016_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/baddudes.7z" --appendconfig /dev/shm/retroarch.cfg
                                        SOURCE FILE: ../../../../../src/mame/drivers/dec0.cpp
                                        PARENT: 0
                                        NAME: baddudes
                                        DESCRIPTION: Bad Dudes vs. Dragonninja (US)
                                        YEAR: 1988
                                        MANUFACTURER: Data East USA
                                        Value  not supported for option netdevprovider - falling back to auto
                                        ei31.9a NO GOOD DUMP KNOWN
                                        WARNING: the machine might not run correctly.
                                        MAIN FIRST
                                        w:256 h:240 a:1.333333
                                        RETRO DEINIT
                                        retro_finish begin
                                        Average speed: 99.43% (3 seconds)
                                        retro exit machine
                                        retro_finish end
                                        
                                        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:

                                          @Folly
                                          It works if I put 720.7z.cfg and 720.zip.cfg directly in

                                          /home/pi/RetroPie/roms/arcade/

                                          It don't recognize /home/pi/RetroPie/roms/realistic

                                          Does the 720.zip.cfg contain this now ? :

                                          input_overlay = "/home/pi/RetroPie/downloads/Orionsangels_Arcade_Overlays_For_Retroarch_Part1/overlay/realistic/720.cfg"
                                          

                                          So the viewport is ok and the bezel is loaded now when running from :
                                          /home/pi/RetroPie/roms/arcade/

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

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

                                            lr-mame2016/mamearcade2016_libretro.so

                                            Not the log I was expecting ;-)

                                            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.