• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.1m 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.
  • D
    DTEAM @Folly
    last edited by DTEAM 30 Mar 2021, 13:03

    @folly

    9:00 am (2021-03-30)

    F 1 Reply Last reply 30 Mar 2021, 13:07 Reply Quote 0
    • F
      Folly
      last edited by 30 Mar 2021, 13:04

      @DTEAM

      I tried a .T64 in the menu, because it would not start.
      I got this :

      2021-03-30-150145_800x600_scrot-resized.png

      1 Reply Last reply Reply Quote 0
      • F
        Folly @DTEAM
        last edited by Folly 30 Mar 2021, 13:07

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

        @folly

        9:00 am (2021-03-30)

        Aha, 6 hour earlier.
        So, you have a whole day ahead of you !

        I had a look in the mame output :

        pi@raspberrypi:~ $ /opt/retropie/emulators/mame/mame -listmedia c64        
        SYSTEM           MEDIA NAME       (brief)    IMAGE FILE EXTENSIONS SUPPORTED
        ---------------- --------------------------- -------------------------------
        c64              cassette         (cass)     .wav  .tap  
                         floppydisk       (flop)     .d64  .g64  .g41  .g71  .d77  .d88  .1dd  .dfi  .hfe  .imd  .ipf  .mfi  .mfm  .td0  .cqm  .cqi  .dsk  
                         cartridge        (cart)     .80   .a0   .e0   .crt  
                         quickload        (quik)     .p00  .prg  .t64
        

        Seems we have to use (quik) for .t64. (edit: didn't work)

        D 1 Reply Last reply 30 Mar 2021, 13:13 Reply Quote 0
        • D
          DTEAM @Folly
          last edited by 30 Mar 2021, 13:13

          @folly
          It will be easier with this output. Thanks

          F 1 Reply Last reply 30 Mar 2021, 13:31 Reply Quote 0
          • F
            Folly @DTEAM
            last edited by Folly 30 Mar 2021, 13:31

            @dteam

            This is a .tap file with the (cass) option :
            2021-03-30-151133_800x600_scrot-resized.png 2021-03-30-151816_800x600_scrot-resized.png 2021-03-30-151820_800x600_scrot-resized.png
            2021-03-30-151907_800x600_scrot-resized.png 2021-03-30-152014_800x600_scrot-resized.png 2021-03-30-152135_800x600_scrot-resized.png

            The joystick doesn't work.
            But I think I have to change this in "slot devices" before load.

            D 1 Reply Last reply 30 Mar 2021, 13:38 Reply Quote 0
            • D
              DTEAM @Folly
              last edited by 30 Mar 2021, 13:38

              @folly
              I'm fighting with Bios files. I'll be good to do something soon... I hope.

              F 1 Reply Last reply 30 Mar 2021, 13:42 Reply Quote 0
              • F
                Folly @DTEAM
                last edited by Folly 30 Mar 2021, 13:42

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

                @folly
                I'm fighting with Bios files. I'll be good to do something soon... I hope.

                I am using old MESS-0.151.BIOS.ROMs .
                For many systems they still work.
                I think you know where to find it.

                I loaded the .prg of boulder-dash with (quik).
                Went to the menu, slot devices, turned off joy2, turned on joy1, reset, I think it will exit to basic.
                Then I did run in basic, now I could play boulder-dash.

                2021-03-30-154551_800x600_scrot.png

                D 1 Reply Last reply 30 Mar 2021, 13:48 Reply Quote 0
                • D
                  DTEAM @Folly
                  last edited by 30 Mar 2021, 13:48

                  @folly
                  I'm using MAME 0.229. I'm gonna try 0.151

                  D 1 Reply Last reply 30 Mar 2021, 14:39 Reply Quote 0
                  • D
                    DTEAM @DTEAM
                    last edited by DTEAM 30 Mar 2021, 14:39

                    @dteam
                    Now It works hehe

                    Mess romset (.zip) works and BIOS 0.229 also. I did a bad file extraction from zip to FileZilla. Sometime the gameplay is a pain in the ass, but It works.

                    F 1 Reply Last reply 30 Mar 2021, 15:54 Reply Quote 1
                    • F
                      Folly @DTEAM
                      last edited by Folly 30 Mar 2021, 15:54

                      @dteam

                      Seems most people do it that way.

                      I use my pi as desktop computer + retropie.

                      Perhaps an idea to use a "raspberry pi os with desktop" and install retropie on top, then you don't have to struggle with ssh and filezilla.
                      On the pi4 "emulationstation" can run in the desktop environment.
                      Or you can just boot in cli or go back in cli and run "emulationstation" without going to the desktop. (works with pretty much all pi's)
                      You can even run games from the file manager if you install my RetroRun script. (works with pretty much all pi's)

                      Interesting ?

                      D 1 Reply Last reply 31 Mar 2021, 15:25 Reply Quote 1
                      • D
                        DTEAM @Folly
                        last edited by DTEAM 31 Mar 2021, 15:25

                        @folly

                        On my side, I'm running RetroPie on a handheld build. I did that for a Pi3 more than 2 years ago and I converted It for a Pi4 (It's really tight). I have used recycled materials (screws, old controller, LEGO parts, wooden tin for clementines, door screen, springs, old plank, old pencil basket) and materials from my children's DIY material basket (Popsicle sticks and toothpicks). Maybe It looks like hell but the gameplay is wonderfull , it's solid and the battery is huge (10000 mAh). For the controller, I have used a Teensy LC and for the touchscreen, It's a 5 inch (The touchscreen works well with Drastic for Nintendo DS). For USB and HDMI, I have used ribbon wiring. I have used a small amp for the speakers (stereo sound). SD card = 512 GB

                        04.jpg
                        05.jpg
                        03.jpg
                        02.jpg
                        01.jpg

                        F 1 Reply Last reply 31 Mar 2021, 16:30 Reply Quote 2
                        • F
                          Folly @DTEAM
                          last edited by 31 Mar 2021, 16:30

                          @dteam

                          Oh I see, that's a different story.
                          Now I see why you are doing ssh and filezilla !

                          I must say, looks very cool.
                          You must have enjoyed building it.

                          Nice job !

                          D 1 Reply Last reply 31 Mar 2021, 17:08 Reply Quote 1
                          • D
                            DTEAM @Folly
                            last edited by DTEAM 31 Mar 2021, 17:08

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

                            @dteam
                            Oh I see, that's a different story.
                            Now I see why you are doing ssh and filezilla !
                            I must say, looks very cool.
                            You must have enjoyed building it.
                            Nice job !

                            Thanks. Yes, It was a really fun creative project to do. I recommend it to everyone. It took me a lot of time to do it. I had to use wooden clamps for each piece. I preferred this project more to the one I did with a 3d printer for a Pi Zero. The wooden project is original and It's not a copy from another project (even the electronic part of it !!)
                            6.jpg

                            F 1 Reply Last reply 31 Mar 2021, 17:57 Reply Quote 1
                            • F
                              Folly @DTEAM
                              last edited by 31 Mar 2021, 17:57

                              @dteam

                              I can refer to it.
                              It's always fun to do your own thing.

                              If I have some time, I will make some photo's of my projects.

                              1 Reply Last reply Reply Quote 1
                              • F
                                Folly
                                last edited by Folly 31 Mar 2021, 19:23

                                @DTEAM @valerino

                                Today I had a look a config module-scripts (docsview.sh) containing the dialog api.
                                It took me quite some time but I changed it a bit to get the systems into the dialog menu.
                                I was also able to generate some scripts.

                                It's nowhere near how we want it.
                                But it's a start of finding out how we can do this.
                                I takes about 15 seconds to extract the systems from mame and display them in the menu.
                                Basically I got this :
                                2021-03-31-210848_1600x900_scrot.png

                                With the RetroPie-Setup we are root user.
                                So the generator-script, which contains the $HOME string wants to do all in the root directory.
                                So we have to come up with something to fix this.

                                This is the log selecting a system and generate some module-scripts :

                                = = = = = = = = = = = = = = = = = = = = =
                                Running action 'gui' for 'add' : RetroPie-Setup Docs Viewer
                                = = = = = = = = = = = = = = = = = = = = =
                                
                                  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                                 Dload  Upload   Total   Spent    Left  Speed
                                
                                  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                                  2 29333    2   863    0     0   1913      0  0:00:15 --:--:--  0:00:15  1909
                                100 29333  100 29333    0     0  64326      0 --:--:-- --:--:-- --:--:-- 64185
                                
                                install @valerino run_mess.sh script
                                /root/RetroPie-Setup/scriptmodules/run_mess.sh: No such file or directory
                                read all available extensions per system
                                read compatible extension(s) for the individual media
                                read computer description(s)
                                read and match RetroPie names with mamedev names
                                cat: /root/RetroPie-Setup/platforms.cfg: No such file or directory
                                generate and write the install-<RPname>-from-mamedev-system-<MESSname><-media>.sh script file(s)
                                generate and write the install-<RPname>-cmd.sh command script file(s)
                                grep: /root/RetroPie-Setup/platforms.cfg: No such file or directory
                                
                                Log ended at: Wed Mar 31 21:03:49 CEST 2021
                                Total running time: 0 hours, 0 mins, 52 secs
                                
                                D V 2 Replies Last reply 31 Mar 2021, 19:59 Reply Quote 2
                                • D
                                  DTEAM @Folly
                                  last edited by DTEAM 31 Mar 2021, 19:59

                                  @folly

                                  In your list, Zupapa is an arcade game. I'll try to found a list without arcade game and without mechanical machine.

                                  In category.ini (0.229) from https://www.progettosnaps.net/renameset/
                                  we can found filtered list with drivers. Can it be usefull?

                                  F 1 Reply Last reply 31 Mar 2021, 20:28 Reply Quote 0
                                  • V
                                    valerino @Folly
                                    last edited by 31 Mar 2021, 20:19

                                    @folly this is almost what i meant yes :) sorry but i hadn't time to look at the code myself. anyway, seems you're on the right track.

                                    tell me more about the problem with the env vars, should be easy to fix.

                                    F 1 Reply Last reply 31 Mar 2021, 20:36 Reply Quote 0
                                    • F
                                      Folly @DTEAM
                                      last edited by 31 Mar 2021, 20:28

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

                                      @folly

                                      In your list, Zupapa is an arcade game. I'll try to found a list without arcade game and without mechanical machine.

                                      In category.ini (0.229) from https://www.progettosnaps.net/renameset/
                                      we can found filtered list with drivers. Can it be usefull?

                                      Indeed, we should use a filter.
                                      Perhaps we can implement it on the way.

                                      D 1 Reply Last reply 31 Mar 2021, 20:36 Reply Quote 0
                                      • F
                                        Folly @valerino
                                        last edited by 31 Mar 2021, 20:36

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

                                        @folly this is almost what i meant yes :) sorry but i hadn't time to look at the code myself. anyway, seems you're on the right track.

                                        tell me more about the problem with the env vars, should be easy to fix.

                                        Basically I use the $HOME string in my script, because we want to place the files also in the correct place if the user isn't pi.
                                        But now we are root with sudo.
                                        Perhaps we can extract the normal user and run the script with that user instead. (sudo -u pi, or something like that)
                                        And perhaps we have to correct the ownership of the files.
                                        Well, we can discuss some of that.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          DTEAM @Folly
                                          last edited by DTEAM 31 Mar 2021, 20:36

                                          @folly

                                          In the MESS 0.151 hash folder, we can found 609 .xml files associated to the systems.
                                          we could add kgradius and the others for MAME systems (Jakks, KonamiH, etc.) + 7

                                          Normally, I think we should found roughly 616 systems in the list. Am I correct?

                                          New edit: some systems doesn’t have hash file like svmu. Probably a little bit more than 616 systems

                                          F 1 Reply Last reply 31 Mar 2021, 20:39 Reply Quote 0
                                          185 out of 2249
                                          • First post
                                            185/2249
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received