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.2m 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.
    • J
      JimmyFromTheBay @Folly
      last edited by

      @Folly Hey amigo. Noticed this and wondered if it might help me run the Sinclair ZX80 on my RPi4 with Buster. I downloaded both versions:

      lr-mess_0.265_x86_64_BuildBot_gccXX_PC_generic_full_mame

      and

      lr-mess_0.265_x86_32_BuildBot_gccXX_PC_generic_full_mame

      from your Gdrive and installed them in my Downloads folder as before.

      Then I tried to run lr-mess-system-zx80-cass with this EMULATORS.CFG:

      lr-mess-system-zx80-cass = "/home/pi/RetroPie-Setup/scriptmodules/run_mess.sh /opt/retropie/emulators/retroarch/bin/retroarch /home/pi/Downloads/lr-mess265/mamemess_libretro.so /opt/retropie/configs/zx80/retroarch.cfg \zx80 /home/pi/RetroPie/BIOS/mame -autoframeskip -ui_active -cass %ROM%"
      
      

      But it fails with this error log:

      Parameters: 
      Executing: /home/pi/RetroPie-Setup/scriptmodules/run_mess.sh /opt/retropie/emulators/retroarch/bin/retroarch /home/pi/Downloads/lr-mess265/mamemess_libretro.so /opt/retropie/configs/zx80/retroarch.cfg \zx80 /home/pi/RetroPie/BIOS/mame -autoframeskip -ui_active -cass "/home/pi/RetroPie/roms/zx80/ZX80 4K ROM Kong Loader (Lightning Software, 2010).o" --verbose --appendconfig /dev/shm/retroarch.cfg
      basename: unrecognized option '--verbose'
      Try 'basename --help' for more information.
      [.] parameters dump
      \t_retroarchbin: /opt/retropie/emulators/retroarch/bin/retroarch
      \t_messpath: /home/pi/Downloads/lr-mess265/mamemess_libretro.so
      \t_config: /opt/retropie/configs/zx80/retroarch.cfg (+ /opt/retropie/configs/zx80/retroarch.cfg.add)
      \t_cfg_directory: /opt/retropie/configs/zx80
      \t_system: zx80
      \t_biosdir: /home/pi/RetroPie/BIOS/mame
      dirname: invalid option -- 'a'
      Try 'dirname --help' for more information.
      dirname: invalid option -- 'u'
      Try 'dirname --help' for more information.
      dirname: invalid option -- 'c'
      Try 'dirname --help' for more information.
      \t_romdir: /home/pi/RetroPie/roms/zx80
      \t/tmp/mess.cmd content: zx80 -rp "/home/pi/RetroPie/BIOS/mame" -cfg_directory /opt/retropie/configs/zx80 "-autoframeskip" "-ui_active" "-cass" "/home/pi/RetroPie/roms/zx80/ZX80 4K ROM Kong Loader (Lightning Software, 2010).o"
      rm: cannot remove '/home/pi/RetroPie/roms/zx80/.cmd': No such file or directory
      rm: cannot remove '/opt/retropie/configs/zx80/tmpconfig.add': No such file or directory
      [.] launching: /opt/retropie/emulators/retroarch/bin/retroarch --verbose --config /opt/retropie/configs/zx80/retroarch.cfg --appendconfig /opt/retropie/configs/zx80/tmpconfig.add -L /home/pi/Downloads/lr-mess265/mamemess_libretro.so /home/pi/RetroPie/roms/zx80/.cmd
      [WARN] --libretro argument "/home/pi/Downloads/lr-mess265/mamemess_libretro.so" is neither a file nor directory. Ignoring.
      [INFO] RetroArch 1.8.8 (Git 9552f87)
      [INFO] Redirecting save file to "/home/pi/RetroPie/roms/zx80/.srm".
      [INFO] Redirecting save state to "/home/pi/RetroPie/roms/zx80/.state".
      [INFO] === Build =======================================
      [INFO] Capabilities:  NEON VFPv3 VFPv4
      [INFO] Built: Nov  2 2020
      [INFO] Version: 1.8.8
      [INFO] Git: 9552f87
      [INFO] =================================================
      [ERROR] Frontend is built for dynamic libretro cores, but path is not set. Cannot continue.
      [ERROR] Fatal error received in: "init_libretro_symbols()"
      
      

      Am I wasting my time here or should it be possible to get this to 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.

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

        @JimmyFromTheBay

        Hi friend,
        You are wasting your time ;-)

        The binaries you used are for regular AMD/Intel machines running linux and RetroPie on regular PC's.
        You need the arm/aarch64 variant for running it on a PI4/PI5.
        On top of that all versions of mame above 264 need Bookworm to run.
        For lr-mess/lr-mame this could be different as I have not tested this yet, but my guts say it will not work just like with mame.

        If you want to run it then you need to install Bookworm on your PI4/PI5 and install RetroPie on top of it.
        It's advised to use a 64bit Bookworm OS and use the aarch64 binary.

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

          @Folly Damn my foolish hopes! 😄

          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.

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

            @JimmyFromTheBay

            If you want to run it then you need to install Bookworm on your PI4/PI5 and install RetroPie on top of it.
            It's advised to use a 64bit Bookworm OS and use the aarch64 binary.

            I can create a new topic about this if needed.

            Anyone : Is there some demand for this ?

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

              @DTEAM @JimmyFromTheBay @bbilford83

              Added the latest lr-mess/lr-mame 266 for Bookworm 64bits aarch64 that works on rpi3+4+5.
              On the rpi3(1Gb) it even works without desktop environment and is fast enough, just like the old days.
              Tried kgradius from konamih and apple2 with good results.
              Running it on rpi3(1Gb) in desktop mode does run but is slow so that is probably a no go.

              Edit:
              The binaries are full mame and therefor big.
              The binaries seems to be too big and will not run on the zero2w and rpi3a+ which only have 512Mb.

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

                @Folly Fantastic!

                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
                • J
                  JimmyFromTheBay @Folly
                  last edited by

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

                  @JimmyFromTheBay

                  If you want to run it then you need to install Bookworm on your PI4/PI5 and install RetroPie on top of it.
                  It's advised to use a 64bit Bookworm OS and use the aarch64 binary.

                  I can create a new topic about this if needed.

                  Anyone : Is there some demand for this ?

                  I'm definitely interested, as there's still no "official" Retropie for the Pi5.

                  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.

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

                    @Folly

                    I installed your script on my Pi 5 and installed MAME 0.266 with it. It works wonderfully.

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

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

                      @Folly

                      I installed your script on my Pi 5 and installed MAME 0.266 with it. It works wonderfully.

                      Is it a 64bits OS or 32bits OS.
                      Did you create your own binary or did you use mine ?

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

                        @JimmyFromTheBay 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:

                        @JimmyFromTheBay

                        If you want to run it then you need to install Bookworm on your PI4/PI5 and install RetroPie on top of it.
                        It's advised to use a 64bit Bookworm OS and use the aarch64 binary.

                        I can create a new topic about this if needed.

                        Anyone : Is there some demand for this ?

                        I'm definitely interested, as there's still no "official" Retropie for the Pi5.

                        If I have the time then I will have a look.

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

                          @JimmyFromTheBay

                          I will try to describe the manual installation over here.

                          You can use "Raspberry Pi Imager" from here :
                          https://www.raspberrypi.com/software/

                          Then I would suggest that you pick "Raspberry Pi OS with desktop (64-bit)"
                          With that you will be able to use the PI as regular Desktop computer which makes life more easier.
                          You can simply copy and paste from your browser or in your file manager.

                          Once your SD card is written you can boot your Pi with it and set your own recommended settings.

                          With your browser you then you go to (scroll down to the readme) :
                          https://github.com/retropie/RetroPie-Setup
                          You can simply copy the code pressing this icon.
                          copy-icon.png

                          Then you open the "Terminal" and paste the code into the terminal ultimately revealing the RetroPie-Setup.
                          Before you run the RetroPie-Setup you can add my script by doing :

                          wget --backups=1 https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scriptmodules-00/supplementary/mamedev.sh -x -nd -np -P ~/RetroPie-Setup/ext/RetroPie-Share/scriptmodules/supplementary
                          

                          Remember, there are no binaries from RetroPie so everything is installed from source.
                          Although the PI5 is quite quick it's still recommended to install the things you only need.
                          Go to :

                          • Manage packages -> Manage core packages -> Install all core packages

                          You start "Retropie" with running emulationstation from the terminal.

                          After that you will be able to go and set your joystick settings and ultimately go to my script and install the binaries from within my script.

                          Eventually you can go to the raspi-config and set your pi to boot into the terminal by default if you want.
                          From there you can boot into the desktop by doing startx or run Retropie with emulationstation.
                          I think you can set booting to emulationstation in the retropie_setup if you would want that.
                          Personally I would not do that as it will make it more difficult to boot into the Desktop.

                          Then if you want you can copy things from you old SD to you new SD with use of an sd->usb converter and copy the files to your new SD.

                          Get it ?

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

                            Is it a 64bits OS or 32bits OS.
                            Did you create your own binary or did you use mine ?

                            64bits OS binary (aarch64) from your script. I did that for MAME 0.266, Lr-Mess 0.266 and Lr-MAME 0.266. Work well with Pi5

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

                              @DTEAM

                              Ok thanks for letting me know.
                              You had mentioned 32-bit earlier, that is why I asked.

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

                                @Folly
                                yes, it was for my Pi4 , but I switched for my Pi5 last week. 32 bits is important for Pi 4 and lower with the official Retropie image.

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

                                  @DTEAM

                                  Ok, got it.

                                  1 Reply Last reply Reply Quote 0
                                  • duglorD
                                    duglor @DTEAM
                                    last edited by

                                    I'd like to play Bubsy in Atari Jaguar emulator Lr-Mess-Jaguar- Help. 2024

                                    Hello. I'd like to play Bubsy in Atari Jaguar Emulator. I have the game .j64 and the game zipped as bubsy.zip with that .j64 in it and a folder named bubsy as well with that .j64 in it. I'm trying to cover all bases here.
                                    
                                    Installed lr-Mess-Jaguar and have regular lr-Mess set for that directory along with the virtual jaguar emulator.
                                    
                                    I have a bios called jagboot.zip and jagboot.rom is my bios folder.
                                    
                                    Now....so far i have not been able to run the .j64, the .j64 in the bubsy folder, or the bubsy.zip with lr-mess-jaguar chosen as my emulator. It just kicks me out.
                                    
                                    Any help would be appreciated. Thank you very much.
                                    
                                    p.s. btw, all my bubsy names in the folder are lower case.
                                    
                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      Folly @duglor
                                      last edited by Folly

                                      @duglor

                                      I am not going to talk about lr-virtualjaguar as that is an other topic

                                      For running bubsy in mame or lr-mess with my script you need to install jaguar from my script.
                                      Mame needs a bios called jaguar.zip (see in mame-merged) which needs to be in :
                                      ~/RetroPie/BIOS/mame
                                      Try to get the "original" bubsy.zip file from jaguar.zip (see in mame-sl).
                                      Always try with mame-standalone first to see if it works then you know the files are good.
                                      (If it doesn't the /dev/shm/runcommad.log is better to reed if mame standalone is used.)
                                      Then try lr-mess if it works.
                                      If it doesn't then you know it's probably an lr-mess issue.

                                      Good luck

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

                                        @Folly Thanks!

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

                                          Hi @folly, do you think it's possible to use Vulkan on pi5 for MAME standalone?

                                          F 1 Reply Last reply Reply Quote 0
                                          • S
                                            shift
                                            last edited by shift

                                            Hi @Folly, I was testing the Jupiter Ace system (jupace) and I saw that to work correctly the "-ram 32k" parameter must be added, otherwise most of the roms don't work, I'm now using this command line:

                                            lr-mess-jupace-basename-32k = "/opt/retropie/emulators/retroarch/bin/retroarch --config /opt/retropie/configs/jupace/retroarch.cfg --appendconfig /opt/retropie/configs/jupace/retroarch.cfg.basename -S /home/pi/RetroPie/roms/jupace -s /home/pi/RetroPie/roms/jupace -v -L /opt/retropie/libretrocores/lr-mess/mamemess_libretro.so 'mame jupace -cfg_directory /opt/retropie/configs/jupace/lr-mess -c -ui_active -ram 32k -rompath /home/pi/RetroPie/BIOS/mame;/home/pi/RetroPie/roms/jupace/  '%BASENAME%''"
                                            
                                            

                                            when you get to the prompt, a precise line must be typed for each game (up to the "." if there is one, the rest are the game controls), for convenience here are those of all the games reported as working:

                                            3dmaze		load 3dmaze 3dmaze
                                            avoider		load avoider run
                                            invader1	load GR load GR load GR load GM load GM load GM z p
                                            aceinvad	load graphics gr load run run
                                            amce11	
                                            acemines	load mines mines
                                            acestar		0 0 bload astar 16384 call
                                            acevader	load gr load acevaders gr r. Z = left, X = right, M = fire
                                            adventa		0 0 bload adva 16384 call
                                            aliendef	load defender g
                                            amazmaze	load maze g
                                            astrian		load Lander run
                                            aticraid	load atic go
                                            blackisl	load black island
                                            bomber		load bomber play
                                            breakout	load breakout b. Left = A, Right = L
                                            callisto	8930 0 bload callisto
                                            cavern		load graphics load run gr run. A = up, Z = down
                                            cenipede	load centipede go
                                            chase		load chase chase. Cursor keys to move
                                            chess		load chess run
                                            dodge		load Dodger game
                                            ducksht		11272 0 bload dchars load duckshoot d. Fire = Enter
                                            firebird	load FIREBIRD run
                                            surround	load surround go
                                            frogger		load frogger go
                                            fungle		load FU run
                                            gobbgook	load gobblegook gobblegook
                                            grexfrog	load graphics load run grf run
                                            guessing	load game game
                                            kkong		load CHARACTERS CHARACTERS load KONG run
                                            lightrac	load LightRacer run
                                            memstars	load run run
                                            meteor		load gr meteor load meteor game
                                            metracer	load GR load GR load GR load GM load GM z p
                                            meteors		load asteroids g
                                            micromaz	load graphics load run s run
                                            minefld		11272 0 bload mchars load minefield m
                                            othello		load othello 11272 0 bload pieces go
                                            owler		load owler loading
                                            quickdrw	load quick-draw go
                                            quickdrp	load Qdraw run
                                            robohnch	load robohench g
                                            robohunt	load robohunt g
                                            sailhorn	load hornpipe hornpipe
                                            sambombs	load sam g
                                            sokoace		load sokoace play
                                            sacemap		load sokoed ed
                                            sbattle		load graphics load run gr run. Fire = F
                                            startrek	load startrek g
                                            sudoku		load sudoku sudoku
                                            schess2		load chess run
                                            tankbatl	load tankbattle g
                                            tetris		load tetris tetris
                                            hanoi		load hanoi hanoi
                                            turbo		load turbo 0 0 bload track turbo. Left = 5, Right = 6
                                            zapem		11272 0 bload zchars load zapem z. Left = 6, Right = 7, 9 = Thrust, 0 = Fire
                                            zombies		load zombpot zombpot
                                            
                                            F 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.