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.3m 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 @bbilford83
      last edited by Folly

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

      @Folly Thanks again for this idea, it is definitely on the right track but I can't seem to get it to work. At 1080 and 1920, which are the dimensions I have emulationstation loading at, it is the same as usual. I tried tweaking it to make it a little bigger and it works but it isn't expanding evenly - like, when I expand enough to get rid of the bar on top the bottom still has a bar, and if I expand enough to get rid of that one, the top image is going off the screen. I also noticed for the first time that the default image is to the right of where it should be - like it is not centered left to right either. That's the norm, like before I put anything in the retroarch.cfg. Weird. I will mess around with it a bit more but it seems like mame is placing the image off center to begin with and I am not sure how to fix that.

      Your TV is probably also part of the problem.
      And probably the lines I for the retroarch.cfg are not the most ideal fix, but it's a start of getting somewhere.
      For better centering you can add these lines (replace the zeros with other values) :

      custom_viewport_x = "0"
      custom_viewport_y = "0"
      

      For a better fix I want to try this option, which isn't related to setting the resolution, but to get it working I possibly have to use more options that I didn't find yet :

      video_scaling = "2"
      
      B 1 Reply Last reply Reply Quote 1
      • B
        bbilford83 @Folly
        last edited by

        @Folly Sorry I had not seen this post before! It seems that if I add those two x/y dimension lines along with what I had before, it doesn't do anything no matter what values I give the x and y. Weirdly, when I delete the original custom viewport values and replace it with just the x and y numbers, it is super zoomed in, and I can't even navigate to the scaling in the RA menu to try to fix it. Maybe that is just what happens if I have the scaling set to "custom" but without specifying what?

        Anyway, I appreciate the idea regardless.

        1 Reply Last reply Reply Quote 0
        • B
          bbilford83
          last edited by

          I figured out another way to do it that worked! You can actually adjust the image - both by "stretching" and adjusting along x or y axis - within the mame menu. It is in "slider controls - Screen Horiz Stretch" and "Screen Horiz Position." You can see it change as you adjust so I was able to stretch and center pretty quickly/easily.

          Like you said, it seems like a weird way to fix it, but it worked!

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

            https://github.com/FollyMaddy/RetroPie-Share/commit/0a657e9ccfbab3144c2ae0d66e699d6126c8605a

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

              https://github.com/FollyMaddy/RetroPie-Share/commit/7c8bfc1f8796dd3e68f5fc14888f1ccf70a86fa9
              https://github.com/FollyMaddy/RetroPie-Share/commit/438f8b4aed307bf73cfba705f38d5c7b2dd27bc7

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

                @bbilford83

                I have updated the script to version 247.03 and added your handheld configs for better button mapping (konamih and tigerh).
                Can you do a second check in if the lines work ok ?
                And can you check if the help of these lines are good enough ?

                I will add your name to the first post as you have contributed to the script.

                https://github.com/FollyMaddy/RetroPie-Share/commit/0dddc72c0a36ef8a3c4e619e29159db8031ff57c

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

                  @Folly I think it worked great! At least it seemed like after I updated they downloaded properly and in the right place. Regarding the help lines, I guess the only thing I might add is "Can still remap in MAME menu," though probably everyone who is using this script would know that. I am wondering now if maybe I should've also given you my default.opt file where all it does is map the mame menu to the left analog stick if you wanted to include that too. That way people (like me) who usually don't have a keyboard out could do all the remapping without ever needing one. If you'd like I can add it to the google drive - not a big deal either way.

                  Glad to have contributed!

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

                    @bbilford83

                    I discovered that we probably need to change the directory structure of your files on your google drive with the konamih and tigerh cfg files.
                    I want to be able to use only 1 command to download them all (now I use 2).
                    If, in the future we want to add something then I don't have to add more commands, it would work with the same command and then it's possible to add more in the future without much effort.
                    Can you make a test-structure like this :
                    <category>/lr-mess/*.cfg

                    default.opt "Can still remap in MAME menu"

                    I can look into that one too.
                    Just place the file on your drive, somewhere separate from the other opt files.

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

                      https://github.com/FollyMaddy/RetroPie-Share/commit/7136398c4b4e78e60dacc7a72dbcb25ff39180d9

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

                        @Folly No problem, I just moved them both into the file structure you requested. I added the default.cfg file to the root folder on its own. But if you like the idea of using it, we could just move it into both of the same folders as the button mapping and it will work to change the mame menu toggle to the left analog stick button if you set it up to download with others in the script.

                        I am sorry I didn't use any of the other handheld systems btw - it would probably be better if it was for all-in-one/jak's/classic too.

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

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

                          @Folly No problem, I just moved them both into the file structure you requested.
                          I added the default.cfg file to the root folder on its own.
                          But if you like the idea of using it, we could just move it into both of the same folders as the button mapping and it will work to change the mame menu toggle to the left analog stick button if you set it up to download with others in the script.

                          I am sorry I didn't use any of the other handheld systems btw - it would probably be better if it was for all-in-one/jak's/classic too.

                          I just tested and it basically it works great, however since the default.cfg is in the root it will copy it to in /opt/retropie/configs now.
                          So it is probably better to add the whole directory structure like /opt/retropie/configs and put konamih and tigerh inside.
                          I think then it will be future proof and it would be possible to add all-in-one/jak's/classic in a later stage too and we could use it for much more files if we discover something.
                          For nowcan you place the default.cfg in a directory /share so I can look at it without being copied.
                          Good idea ?

                          PS
                          For everyone who wants to use the option :
                          Download lr-mess configs for better button mapping (+/-1 min.)
                          Beware it doesn't work correctly right now !
                          (WIP)

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

                            @Folly That all makes sense and I have changed the file structure as you requested.

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

                              @bbilford83

                              It has been updated :
                              https://github.com/FollyMaddy/RetroPie-Share/commit/6cf576e38948306d494ee0b71d2aef16591edce1
                              https://github.com/FollyMaddy/RetroPie-Share/commit/fae77ff20b5f83d21a5c765545080bb4d7074888

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

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

                                @DTEAM

                                Here is some news about handheld vfd games :
                                https://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=97003&page=397

                                Looks like we need to update our roms in the next version.

                                Unfortunately, I lost my password and did not leave any information to recover it when creating the account. It was a google account that I opened on the fly.

                                To do that, I'll have to clone the data to a new account or go back to my notes and try to find that password.

                                Have you found your password again ?

                                I am a bit busy with making background overlays for the dual-screen gameandwatch handhelds.
                                I did gnw_bsweep and gnw_dkong2.
                                At first it did seem straight forward pasting both top and bottom in a new file.
                                To some degree that was the case with gnw_dkong2, sadly the others have been zoomed in the regular mame artwork so for these others this means quite some work.
                                Though, I found a way with gnw_bsweep and I am hoping I can use the same trick with the others.
                                If you have access again we can add them to the artwork files on google-drive.
                                I will place the artwork files with newly created Background.png files here :
                                https://drive.google.com/drive/folders/1YkISUXfKsdHvMv6HACwKhsVHBiGGHCjv

                                It took me quite some time to get the trick needed, so I figured to test the regular artwork of mame again for lr-mess, placing it in /home/pi/RetroPie/BIOS/mame/artwork.
                                To my surprise some of them worked now (I used 248 now).
                                I also tried kgradius but that did not work out of the box, making "Screen Focus" the default in the layout did work, so it looks it can be working in the future.
                                Sadly the frame-rate drops to 40% in kgradius and with gnw_sweep it drops to about 80% (both with frame-skipping 10).

                                So the conclusion, for now, is that it's not yet suitable for the pi4 as it is too slow to get good results.
                                So we still have to use "Background overlays" for lr-mess to get the frame-rate to 100% (with frame-skipping 10).

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

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

                                  Have you found your password again ?

                                  Unfortunately no, but I'll create a new account and and a new Google Drive to transfer all those files. I'll keep the actual structure, only the Google Drive link will change.

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

                                    @DTEAM

                                    Ok, a new one is good too.

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

                                      @Folly
                                      I received an answer from Google. I was able to reinitiate my password. I’m good to continue with my Google drive.

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

                                        @DTEAM

                                        You are a lucky man.
                                        Nice that we don't have to change all the links in the script and the posts ;-)

                                        I have done 6 handheld backgrounds now, hopefully I can do some more this week.
                                        I also noticed a few missing artwork files like, gnw_pinball (which I added now).
                                        So we should check for more if we can.

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

                                          @Folly

                                          Sure, give me a download link when you are ready and I'll put all those files on the Google drive. I'll be available to do that Wednesday.

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

                                            @DTEAM

                                            https://drive.google.com/drive/folders/1YkISUXfKsdHvMv6HACwKhsVHBiGGHCjv

                                            Progress :
                                            00-info.png

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