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

    Configuration for text-based game

    Scheduled Pinned Locked Moved Help and Support
    9 Posts 3 Posters 2.3k 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.
    • R
      rickrratliff
      last edited by

      I must not be using the right search words because I think this should be pretty easy to do.

      I want to create a configuration to launch nethack without dropping out to the command line. I'm setting this up for my daughter and I don't want her to exit emulationstation to type nethack.

      Can someone please point me in the right direction?

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @rickrratliff
        last edited by

        @rickrratliff said in Configuration for text-based game:

        Can someone please point me in the right direction?

        https://github.com/RetroPie/RetroPie-Setup/wiki/Ports

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • R
          rickrratliff
          last edited by

          Thanks, but I did read through this. The real problem I think is I want to run something that doesn't really require an emulation.

          If I create a configuration to simply execute "nethack". It displays an error that this must be run in a terminal.

          meleuM 1 Reply Last reply Reply Quote 0
          • meleuM
            meleu @rickrratliff
            last edited by

            @rickrratliff Sorry for the lateness.

            The ports "roms" (they are NOT roms actually) must be a file with a .sh extension.

            What I did to invoke nethack from the ports section in emulationstation (just the commands so you can copy and paste on your terminal):

            mkdir -p ~/RetroPie/roms/ports
            echo nethack > ~/RetroPie/roms/ports/nethack.sh
            chmod a+x nethack.sh
            

            ATTENTION: you must be logged as the pi user (if in a Raspberry Pi installation) to perform this commands.

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            R 1 Reply Last reply Reply Quote 0
            • R
              rickrratliff @meleu
              last edited by

              @meleu An error flashes to the screen "You must play from a terminal."

              The shell script will execute from the command line but within emulationstation it doesn't run.

              meleuM BuZzB 2 Replies Last reply Reply Quote 0
              • meleuM
                meleu @rickrratliff
                last edited by

                @rickrratliff oh, Sorry. I've only tested on my debian based RetroPie... I'll try on the raspi and let you know.

                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                R 1 Reply Last reply Reply Quote 0
                • R
                  rickrratliff @meleu
                  last edited by

                  @meleu I have a Raspberry Pi 3 running retropie-v3.8.1-rpi2_rpi3.img.

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

                    @rickrratliff you will need

                    echo "nethack <>/dev/tty" >~/RetroPie/roms/ports/nethack.sh
                    

                    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

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      rickrratliff @BuZz
                      last edited by

                      @BuZz Thanks, it worked. I was just killed by a jackel.

                      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.