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.
    • jamrom2J
      jamrom2 @Folly
      last edited by

      @folly yes, but I've since switched back over to the correct RetroPie repository. I had issues with updating because his script left me on 4.7.11.

      I have a bunch of other emus from the Mess build running without issue. If that matters.

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

        @jamrom2

        Strange, I have updated my post, have a look at that first.
        Can you try the other BIOS directory first ?

        Check your runcommand.log and look at line 19 containing -rp, after the -rp you will have the path where the bios has to be in.

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

          @folly \t_biosdir: /home/pi/RetroPie/BIOS

          In line 19 after the -rp the directory is the same as above. Maybe it's my BIOS files? I've pulled a few different one. The ones I have seem to work without issue on Xroar.

          here's my runcommand.log I tried two more d32.rom files. still the same.

          https://pastebin.com/hvtTZJ0k

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

            @jamrom2

            I will have a look at your log later.

            My working bios sha1sums are :
            pi@raspberrypi:~/Desktop/dragon32 $ sha1sum *

            f2dab125673e653995a83bf6b793e3390ec7f65a  d32.rom
            a8918c71d319237c1e3155bb38620acb114a80bc  ddos10.rom
            27a2a6bf5c98fb69e174b927f240973033881826  dragon32.zip
            77bb4c81d1078d7bd0b2378bbf831c007e2252ff  dragon_fdc.zip
            
            1 Reply Last reply Reply Quote 0
            • I
              isidoro80
              last edited by isidoro80

              hi i have installed your script but i have problems. i want to install apfm1000 games. Your script created the folder opt / config / apfm1000 then I put the bios in home / pi / RetroPie / BIOS / mame; I put the zip files of the roms in / home / pi / RetroPie / roms / apfm1000. I tried all the various runcommand launch systems: lr-mess cmd; lr-mess; mame-cmd; etc ... if I try to start a retroarch rom it crashes and I have to force it to close. in the runcommand log file it says WARN ... driver not found .... what is the problem?
              i have already installed lr-mess manually before trying your script to play arcadia games. arcadia games work very well. i dont understand why apfm1000 games don't work. the roms are correct.

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

                @isidoro80

                Nice to hear that arcadia works oob for you.

                I am not able to test your desired system at the moment.
                When I am in the right place I will test it for you.
                (over 11 hours, or so)

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

                  @folly got it working... your BIOS file list there helped. From there I did a little more searching to find what I needed which was the answer. I needed to create two more .zip files with the names dragon32.zip and dragon_fdc.zip with the files in it listed like this...

                  dragon32.zip -- contains d32.rom, and ddos10.rom
                  dragon64.zip -- contains d64_1.rom , d64_2.rom , and ddos10.rom
                  dragon_fdc.zip -- contains ddos10.rom

                  This little list might need to be added to docs at some point. I know a lot of these Emus are very finicky as to what they need for BIOS files and how they need to be named.

                  I created the dragon32.zip file with what is listed above and it boots to a DragonDOS prompt. But no games run.

                  so... how do the games play? I have a ton of CAS based files. All that happens it the emulator goes to DOS.

                  Thanks for the help!

                  JamR

                  J F 3 Replies Last reply Reply Quote 0
                  • J
                    JimmyFromTheBay @jamrom2
                    last edited by JimmyFromTheBay

                    @jamrom2

                    I created the dragon32.zip file with what is listed above and it boots to a DragonDOS prompt. But no games run.

                    so... how do the games play? I have a ton of CAS based files. All that happens it the emulator goes to DOS.

                    Thanks for the help!

                    With a .CAS file you need to load it. Most games will be in machine code so you need to type CLOADM. If you get an "FM ERROR" it was in BASIC, so you'd type CLOAD instead.

                    Most will autorun on loading, but if they don't you need to type EXEC for machine-code games or RUN for BASIC ones.

                    HOWEVER, if you're working from a Dragon DOS prompt you may find that games appear to have loaded but then don't run properly. That's because lots and lots of them really don't like the DDOS BIOS. The solution is to edit your EMULATORS.CFG to include this line:

                    lr-mess-system-dragon32-cass = "/home/pi/RetroPie-Setup/scriptmodules/run_mess.sh /opt/retropie/emulators/retroarch/bin/retroarch /opt/retropie/libretrocores/lr-mess/mess_libretro.so /opt/retropie/configs/dragon32/retroarch.cfg \dragon32 /home/pi/RetroPie/BIOS/mame -autoframeskip -ui_active -ext ram -cass %ROM%"
                    

                    and run it from that. That should boot from the standard Dragon OS, not the disk one, and your games should work.

                    Raspberry Pi 3b and 8GB Raspberry Pi 4, both running Retropie 4.7.1 installed from scratch using Raspberry Pi Imager, with wired keyboard, wireless mouse and double arcade joystick attached.

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

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

                      @folly got it working... your BIOS file list there helped.

                      Nice !

                      I created the dragon32.zip file with what is listed above and it boots to a DragonDOS prompt. But no games run.

                      so... how do the games play? I have a ton of CAS based files. All that happens it the emulator goes to DOS.

                      With mame and lr-mess you have to know how the computer works.
                      There isn't an autoboot by default. (although there are options that can be added into the commandline)
                      Read post one from this thread and look at @dmmarti 's google sheet, there you should find how to load the cas files.
                      And there are other posts on the forum on how to do it.
                      If you can't work it out then let me know, then I will look for it.
                      EDIT: Jimmy has already made a post for you.
                      Remember that the emulators.cfg line he proposes uses the BIOS/mame directory.
                      And... , as said earlier, you can just install that line from the front-end.
                      That way you have all emulators.cfg line including the mame and the lr-mess game-specific ones ;-)

                      I think mine is booting into basic and from there I insert the commands.
                      Sometimes you have to use the scroll-lock button to go into game-focus-mode.
                      Otherwise the keys will act as hotkeys.

                      Thanks for the help!

                      JamR

                      Your welcome.
                      Please upvote post 1, if you think this is a good project ;-)

                      jamrom2J 1 Reply Last reply Reply Quote 1
                      • J
                        JimmyFromTheBay @Folly
                        last edited by

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

                        @jimmyfromthebay

                        Have you sent the originals, not resized or something like that ?

                        I got both of them from the artwork files on Mr Do's page.

                        Raspberry Pi 3b and 8GB Raspberry Pi 4, both running Retropie 4.7.1 installed from scratch using Raspberry Pi Imager, with wired keyboard, wireless mouse and double arcade joystick attached.

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

                          @isidoro80

                          I just tested apfm1000 for you.
                          For me it was the first time and it worked out the box with both lr-mess and mame.
                          I didn't even need a game.
                          I just created a dummy file rocketp.zip as a game file and it booted a rocket game by default.
                          So it should work.
                          Maybe you have wrong bios files.
                          I use this one :
                          pi@raspberrypi:~/RetroPie/BIOS/mame $ sha1sum apfm*
                          87fd4de8f8b3d2dbb65eb0d89f43e02a0543d743 apfm1000.zip
                          But looking at the mame log it seems I have a wrong bios file.
                          I wants this one within the zip :
                          apf_4000.rom SHA1(1110a234bcad99bd0894ad44c591389d16376ca4)

                          2021-09-29-190934_800x600_scrot-resized.png2021-09-29-190756_800x600_scrot-resized.png

                          I 3 Replies Last reply Reply Quote 0
                          • F
                            Folly @JimmyFromTheBay
                            last edited by

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

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

                            @jimmyfromthebay

                            Have you sent the originals, not resized or something like that ?

                            I got both of them from the artwork files on Mr Do's page.

                            Thanks,

                            I have tried with the warp transformation with better results.
                            But I tried lr-mame2003 and after testing my leds are gone, no idea why.
                            I will try something different, if I have the time.

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

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

                              This little list might need to be added to docs at some point. I know a lot of these Emus are very finicky as to what they need for BIOS files and how they need to be named.

                              Basically, when you download the correct mame bios files the are already named that way.
                              And... the runcommand.log will give you the "names" of the zip files it's looking for.
                              You can also use the command mame to list which bios files it needs with, for example :

                              pi@raspberrypi:~/RetroPie/BIOS/mame $ /opt/retropie/emulators/mame/mame -listroms dragon32
                              ROMs required for driver "dragon32".
                              Name                                   Size Checksum
                              d32.rom                               16384 CRC(e3879310) SHA1(f2dab125673e653995a83bf6b793e3390ec7f65a)
                              ddos10.rom                             8192 CRC(b44536f6) SHA1(a8918c71d319237c1e3155bb38620acb114a80bc)
                              
                              1 Reply Last reply Reply Quote 0
                              • I
                                isidoro80 @Folly
                                last edited by isidoro80

                                @folly i have only apfm1000.zip. i use rom.zip it's wrong?

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

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    isidoro80 @Folly
                                    last edited by isidoro80

                                    @folly now all right. The bios wrong. I have two questions. where do i find the mess gui commands? i can't navigate mess gui. apfm1000 only works with lr-mess cmd while with lr-mess basename it doesn't work. When should the different mess start options be used?

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

                                      @isidoro80
                                      Try "select" and "Y" on your game pad (sometime it works for lr-mess).

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

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

                                        @folly now all right. The bios wrong. I have two questions. where do i find the mess gui commands? i can't navigate mess gui. apfm1000 only works with lr-mess cmd while with lr-mess basename it doesn't work. When should the different mess start options be used?

                                        Do you mean that you have apfm1000 running now because earlier you had a wrong bios file ?

                                        Basically the cmd and basename lines are for running filenames that match the mame_softlists.
                                        The cmdline can also load a text-file that contains a manual command.

                                        The other options are for loading the media directly without checking the softlist database, sort of speak.
                                        With the game specific option you are running media directly and it will store mame/mess configs per game if the mame/mess gui is used.

                                        To get into the GUI @DTEAM made a suggestion for using the gamepad.
                                        You can also use TAB from your keyboard.
                                        If the TAB key doesn't work you have use SCROLL-LOCK to switch game-focus back and forth.

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

                                          @folly 552 / 5000
                                          Risultati della traduzione
                                          I had two problems. corrupted bios file. furthermore, the apfm1000 bios file must be placed inside the folder where the roms are and not in / home / pi / RetroPie / roms / bios. I don't know why in my case it works like this but I used the same configuration for emerson arcadia and it works. I am able to enter mess gui and with the tab key to move in the different menu frames. I can't find a button to confirm the choices and move between the different items in the boxes.NewMAME.png

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

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

                                            @folly 552 / 5000
                                            Risultati della traduzione
                                            I had two problems. corrupted bios file. furthermore, the apfm1000 bios file must be placed inside the folder where the roms are and not in / home / pi / RetroPie / roms / bios. I don't know why in my case it works like this but I used the same configuration for emerson arcadia and it works. I am able to enter mess gui and with the tab key to move in the different menu frames. I can't find a button to confirm the choices and move between the different items in the boxes.

                                            Placing the bios in the rom directory can indeed work.
                                            We did that also years ago running Philips CDI the first time when the scripts weren't there yet.
                                            Read the comments in this script, and you learn a lot about the structure on how you are using it now :
                                            https://github.com/FollyMaddy/retropie-philips-cdi-tools/blob/master/retropie_philips_cdi_setup.sh

                                            Trouble is though, lr-mess and mame will check the directory structure for system names and will run to the softlist database accordingly.
                                            If there is just 1 thing that is missing or changed it won't work and it's very hard to get a solution.
                                            That is why we focus here more on running the media directly VS running them using the softlists.

                                            I noticed that you have a very old mame running, it's ancient !
                                            I already run mame 0.233.
                                            If everything is that old, including retropie, you should make a new image and try everything again.
                                            Your problems could just depend on the software being just too old.
                                            Also, you should not get into the screen you posted.
                                            You should be able to run directly into a system.

                                            I also suggest you read post 1 of this thread thoroughly.
                                            This will help you on how everything works.
                                            If you can, also try to read the script, i have placed many comments in the script. that should make you aware of how everything works.

                                            Be cheerful, in time you will get it.

                                            I jamrom2J 2 Replies 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.