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

    Autostart NES Rom at startup

    Scheduled Pinned Locked Moved Help and Support
    autostart rom
    7 Posts 3 Posters 6.5k 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
      mdg33
      last edited by mdg33

      Hi
      Running Retropie on Ras Pi3 the latest version

      I would like the Pi3 & retropie to load a Rom (NES) at start up without user interaction...

      So when the user would power the PI3 up he would go straight to the game if possible withourt any splash screens

      I tried to follow an old guide but it fail to work this it what it advised to do:

      1. from command line type:
        sudo nano /etc/rc.local
      2. add the following text to the bottom:
        sudo /opt/retropie/emulators/mame4all-pi/mame ROMFILENAME
      3. Save the file and reboot.

      This is what I did:

      .#!/bin/sh -e
      .#
      .# rc.local
      .#
      .# This script is executed at the end of each multiuser runlevel.
      .# Make sure that the script will "exit 0" on success or any other
      .# value on error.
      .#
      .# In order to enable or disable this script just change the execution
      .# bits.
      .#
      .# By default this script does nothing.

      .# Print the IP address
      _IP=$(hostname -I) || true
      if [ "$_IP" ]; then
      printf "My IP address is %s\n" "$_IP"
      fi
      sudo /opt/retropie/emulators/mame4all-pi/mame hogans-alley.nes
      exit 0

      Any help apreciated

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

        rc.local is the wrong place (Also mame is for arcade - not for nes)

        edit /opt/retropie/configs/all/autostart.sh and add at the top

        /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes ~/RetroPie/roms/nes/NAMEOFROM
        

        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

        K 1 Reply Last reply Reply Quote 1
        • M
          mdg33
          last edited by

          Hey Buzz Thanks !

          1 Reply Last reply Reply Quote 0
          • K
            kick53rv3 @BuZz
            last edited by kick53rv3

            @BuZz hey Buzz, I am trying to follow this, currently my autostart.sh has:

            /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes /home/pi/Retropie/roms/nes/mario.nes

            I removed the emulatorstation line.

            The retropie boots up tries to start the game but jumps to command line right after. If I type in the above command in command line it starts the game fine. What do I need to do to have it load the game instead of jumping to command line?

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

              @kick53rv3 please do not open new topics for the same issue. Closing this one.

              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

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

                My bad. Confused as more than one poster.

                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

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

                  Oh - Also in the other thread it was mentioned that your command line is wrong. Retropie should be RetroPie. Case sensitive.

                  See https://retropie.org.uk/forum/topic/5307/command-line-command-works-but-doesn-t-work-if-i-put-it-into-a-script

                  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

                  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.