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

    Adding a Port

    Scheduled Pinned Locked Moved Help and Support
    portshelp and suppor
    11 Posts 2 Posters 3.8k 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.
    • BuZzB
      BuZz administrators @Syhles
      last edited by BuZz

      @Syhles 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

      You have provided nothing to go on. How do you launch the game manually from terminal ? What script did you add to ports to try and get it to run? What error do you get when launching (runcommand log).

      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

      S 1 Reply Last reply Reply Quote 1
      • S
        Syhles @BuZz
        last edited by

        @BuZz
        I apologise.
        Currently I'm lost I have no terminal command written. I was just using an edit of the cavestory.sh terminal wasn't giving me any errors that I know of, I launch the game and then it crashes back to es. The python and terminal commands are going over my head. Yet again I apologise.

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

          You need to know how to launch it first a from a terminal. You said

          The game will run outside of ES

          How are you launching it ? You need to get the commandline to it, and then launch it from a terminal - then you can put that in a launch script.

          I need to see your existing launch script too.

          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
          • S
            Syhles
            last edited by

            I'm running it from a file labeled am2r in it's folder by double clicking it. Currently my sh file for it just replaces the CaveStory/Doukutsu.exe with Metroid 2/am2r.

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

              @Syhles that wont work - you need to launch it with the full path. I have no idea where your folders/files are.

              an example launch script would look like

              #!/bin/bash
              /full/path/to/executable
              

              You may need to do some reading up on linux if you are unsure how to create a full path to the file.

              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

              S 1 Reply Last reply Reply Quote 0
              • S
                Syhles @BuZz
                last edited by

                @BuZz
                I've found the path and successfully launched from the terminal now but I'm still having issues.
                My path is ./RetroPie/roms/ports/Metroid2/am2r or /home/ryan/RetroPie/roms/ports/Metroid2/am2r

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

                  @Syhles I need to see your example launch script, as already mentioned. put it in a code block on the forum.

                  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
                  • S
                    Syhles
                    last edited by mediamogul

                    This is what I currently have

                    #!/bin/bash
                    if [[ ! -f "home/ryan/RetroPie/roms/ports/Metroid2/am2r" ]]; then
                        dialog --msgbox "Copy the original Metroid 2 game files to /home/ryan/RetroPie/roms/ports/Metroid2 so you have the file /home/ryan/RetroPie/roms/ports/Metroid2/am2r present." 22 76
                    else
                        "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ cavestory "home/ryan/RetroPie/roms/ports/Metroid2/am2r"
                    fi
                    

                    and instead of crashing I get a blue screen with a grey text box telling me the msgbox information "Copy the original Metroid 2 etc."

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

                      @Syhles I'm getting the feeling you are not reading my posts.

                      Please wrap code in code blocks - http://commonmark.org/help/

                      Use the launch script format as I already described above.

                      eg

                      #!/bin/bash
                      /home/ryan/RetroPie/roms/ports/Metroid2/am2r
                      

                      You can't just hack the cavestory script like that.

                      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
                      • S
                        Syhles
                        last edited by

                        I'm reading it, apparently I just wasn't following what you were saying.
                        Also now understand the code blocks command now, sorry about that.

                        That launch script worked the game is opening in ES now.
                        Thank you for walking me through that.

                        Yeah, I realize that now.

                        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.