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 shell scripts to custom collection

    Scheduled Pinned Locked Moved Help and Support
    collectionsscriptssindenlightgun
    5 Posts 2 Posters 1.1k 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.
    • S
      Steams71
      last edited by Steams71

      Is there a way to add a shell script (.sh) file to a custom collection?

      I've got a Sinden Lightgun and I've created a Lightgun custom collection. You have to run a script file to start the Lightgun up before using it. Currently, these files are in my retropie folder. It would be much easier to have them in the lightgun collection.

      I've tried creating a lightgun folder in the roms folder and adding the scripts there. I've also tried editing the collection list with the paths to the scripts. Finally, I tried adding a gameslist.xml to the lightgun folder. This hasn't worked either.

      I've chomd +x all the scripts, this hasn't made any difference. Is what I want to do even possible?

      Any help is gladly received.

      Forgot to say, Im using 4.7.1 on a Pi4 2GB

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

        Why not copy the .sh scripts to the retropiemenu folder, with the rest of the configuration entries ?

        S 1 Reply Last reply Reply Quote 0
        • S
          Steams71 @mitu
          last edited by

          @mitu I've got them in the retropiemenu folder. I have 42 systems though, so I have to scroll through to the retropie config page, start the lightgun, then scroll through the systems to find the lightgun collections.

          Adding the scripts to the lightgun collection would be much more user friendly for me.

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

            You can add something to a collection if it's in a game system and the extension is one of the supported extensions for that system. retropie is not a game system, so you can't add its entries to a collection.
            You can find a system that supports .sh as game extension (amiga, spectrum, pc) and add the script there, this way it can be added to a collection.

            I'm curious though why the gun needs a script before you use it ? Do the script just set-up/configure the emulators or they need to be run in order for the device to function ?

            S 1 Reply Last reply Reply Quote 1
            • S
              Steams71 @mitu
              last edited by Steams71

              @mitu Thanks, I'll try that. As for the script. It needs to be run to start the lightgun service to get the lightgun working. Only needs to be run once though. I think this is just a work around at the moment. Hopefully, once the sinden lightgun gets established, it will be integrated better with retropie.

              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.