adding shell scripts to custom collection
-
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
-
Why not copy the
.sh
scripts to theretropiemenu
folder, with the rest of the configuration entries ? -
@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.
-
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 ?
-
@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.
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.