RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Boot to rom using lr-mame2003-plus

    Scheduled Pinned Locked Moved Help and Support
    mame2003-plusautostart.sh
    37 Posts 4 Posters 6.0k 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.
    • M
      mahoneyt944 @mitu
      last edited by

      @mitu well it doesn't actually load. it just goes to the dos like "putty" screen. if I change tron2.zip to cclimber.zip it loads crazy climber on mame 2003 just fine. log shows this

      Parameters:
      Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/cclimber.zip
      " --appendconfig /dev/shm/retroarch.cfg

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @mahoneyt944
        last edited by

        @mahoneyt944 I'm sorry, but I'm not following - are you asking how to run a the ROM with the specific emulator from the command line or you're just reporting that tron doesn't work with Mame2003-plus ?

        M 1 Reply Last reply Reply Quote 0
        • M
          mahoneyt944 @mitu
          last edited by

          @mitu I have tron working though normal boot up in ES using mame2003plus. all my other roms use mame2003(default emulator). all my roms are in the arcade folder. I wanted to edit my autostart.sh file to boot to rom. when I declare a rom that uses mame2003, the boot to rom is working fine. when I specify tron2.zip as the rom which uses mame2003plus, it will not boot to the rom using a autostart.sh command line.

          so this line boots fine
          /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade ~/RetroPie/roms/arcade/cclimber.zip

          where this line will not
          /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade ~/RetroPie/roms/arcade/tron2.zip

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @mahoneyt944
            last edited by

            @mahoneyt944 said in Boot to rom using lr-mame2003-plus:

            /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade ~/RetroPie/roms/arcade/tron2.zip

            The runcommand you're using is the same command line that Emulationstation starting when you launch the game. You can see it in the ES log file - ~/.emulationstation/es_log.txt.
            However, you can see a more detailed log by choosing Start with verbose logging from the Runcommand launch menu (the file is the same) and looking at the possible errors there.

            M 2 Replies Last reply Reply Quote 0
            • M
              mahoneyt944 @mitu
              last edited by mahoneyt944

              @mitu yeah I don't understand why. when I boot through es the es log shows this

              lvl2: Attempting to launch game...
              lvl2: /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade /home/pi/RetroPie/roms/arcade/tron2.zip
              lvl2: Creating surface...
              lvl2: Created window successfully.

              when I copy below to my autostart.sh file it doesn't load to the game I just goes to "thepi@retropie:~ $" command screen.
              /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade /home/pi/RetroPie/roms/arcade/tron2.zip

              but if I change the rom to cclimber.zip using the same command it boots to rom just fine

              1 Reply Last reply Reply Quote 0
              • M
                mahoneyt944 @mitu
                last edited by

                @mitu how can I use that log option while using boot to rom in my autostart file? There's no time to go into the menu when booting up. It goes right to the command line screen.

                mituM BuZzB 2 Replies Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @mahoneyt944
                  last edited by

                  @mahoneyt944 Are you running the command over SSH or from a keyboard plugged-in ? If you're running it over SSH, the prompt will appear in the SSH session, not on the TV/Monitor screen.

                  M 1 Reply Last reply Reply Quote 0
                  • BuZzB
                    BuZz administrators @mahoneyt944
                    last edited by BuZz

                    @mahoneyt944 btw you can use backticks ` around single code lines or three above and below code blocks for easier reading. Else underscores will be translated as markdown / styling.

                    SYS

                    Vs

                    _SYS_

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      mahoneyt944 @mitu
                      last edited by

                      @mitu I just put the boot to rom command in the autostart.sh file and reset the pi. I'm still new to the pi.

                      mituM 1 Reply Last reply Reply Quote 0
                      • M
                        mahoneyt944 @BuZz
                        last edited by

                        @BuZz idk what mark down styling is or when I'd want to use or not use it.

                        1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @mahoneyt944
                          last edited by

                          @mahoneyt944 I don't understand - does your PI system reset after you added that line or you just let me know that you've added the line and then restart the system ?
                          As @buzz explained, it's easier to add your script/commands surrounded by ```, so that they become easier to read and they're automatically formatted by the forum.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mahoneyt944 @mitu
                            last edited by mahoneyt944

                            @mitu I use:

                            /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade /home/pi/RetroPie/roms/arcade/cclimber.zip
                            

                            in my autostart.sh (boot to rom) and it works. Then I change it to:

                            /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade /home/pi/RetroPie/roms/arcade/tron2.zip
                            

                            and it doesn't work. Tron works when booting from es but won't load if I try boot from rom using my autostart.sh I noted that any rom that uses my default arcade emulator ( Mame 2003) works when using boot to rom via the autostart.sh .....only Tron, which uses Mame2003plus will not load using this method .

                            1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator
                              last edited by

                              Unless you're able to provide a detailed log file for RetroArch (via Runcommand), I can't help you further. There's no need to re-repeat your command line over and over.

                              I advise you to exit Emulationstation, then launch the command line - like it's written in the autostart script- , use the launch menu (press any key during launching dialog) to enable verbose logging, get the /dev/shm/runcommand.log file and upload it to pastebin.com.

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mahoneyt944 @mitu
                                last edited by mahoneyt944

                                @mitu well I'm at a loss now. I exited es like you said typed the same command line I've been trying and it boots to Tron just fine. I enabled verbose loging but it was successful so idk if that's going to help since it's not logging the error since it wasn't launched from the autostart file..... It seems the only time the command doesn't work is through autostart.sh otherwise it works as intended. https://pastebin.com/rNgn9vt2

                                1 Reply Last reply Reply Quote 0
                                • G
                                  grant2258 Banned
                                  last edited by

                                  not looked into this but it could be autostart is running as root try

                                  sudo -u pi /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade /home/pi/RetroPie/roms/arcade/cclimber.zip
                                  
                                  
                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    mahoneyt944 @grant2258
                                    last edited by mahoneyt944

                                    @grant2258 ok I added the sudo -u pi part and was able to boot into verbose logging heres the file with error: https://pastebin.com/Jn7782aU
                                    still didn't boot with sudo command added.

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      grant2258 Banned
                                      last edited by

                                      do you have a extra newline somewhere ?

                                      Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003-plus/mame2003_plus_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/tron2.zip
                                      " --verbose --appendconfig /dev/shm/retroarch.cfg
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        grant2258 Banned
                                        last edited by grant2258

                                        try

                                        sudo -u pi -- /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS arcade /home/pi/RetroPie/roms/arcade/cclimber.zip
                                        
                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mahoneyt944 @grant2258
                                          last edited by

                                          @grant2258 I tried

                                          sudo -u pi -- /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade /home/pi/RetroPie/roms/arcade/tron2.zip
                                          

                                          and

                                          sudo -u pi /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade /home/pi/RetroPie/roms/arcade/tron2.zip
                                          

                                          in my autostart file neither work....

                                          1 Reply Last reply Reply Quote 0
                                          • mituM
                                            mitu Global Moderator
                                            last edited by mitu

                                            @mahoneyt944 the (1st) log file you posted doesn't show an error, except this one:

                                            [libretro ERROR] cpunum_get_localtime() called for invalid cpu num!
                                            

                                            which I don't know if it's fatal (the ROMs seem to load fine), but doesn't look like there's any other error. Maybe there's a timing problem during boot that prevents RA from starting - can you disable the splashscreen (image/video) from the RetroPie-Setup ?

                                            I see you're using RetroArch 1.7.1 and an older Mame2003-plus version, what version of RetroPie are you using ? Please add more details about it - https://retropie.org.uk/forum/topic/3/read-this-first.

                                            I'll try to replicate the issue, but I'll have to install Mame2003+ first.

                                            @grant2258 autostart.sh is executed as the pi user, after autologin; the initial command line was probably truncated during copy/paste.

                                            M 1 Reply Last reply Reply Quote 1
                                            • 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.