THE Easiest Sinden Lightgun Setup for RetroPie on Pi 4/5 with autostart and config editor

  Рет қаралды 2,639

Widge

Widge

Күн бұрын

If you're setting up a new RetroPie image for Raspberry Pi, just use this quick and easy utility to get your Sinden Lightgun software installed, and enjoy the benefit of a great Autostart and Config editing utility.
I'm not sponsored, KZfaq doesn't even pay me any ad revenue. Everything you see on my channel was paid for by me, and made by me in my own time. if you like what I do and would like to support me then please do, but feel under no obligation.
If you are a person or group that profits from the time and effort I spent into developing tools and scripts, then please consider throwing me a bone.
www.paypal.me/...
-- UPDATE 20/APR/2024 --
Fixed a bug that applied P1's recoil to all players instead of individually. Removed the "off" option from the gun states as it is unneeded and only creates problems. Also updated the RetroPie-Setup installer to add SDL2 dependences on 64bit systems (ready for future versions of the lightgun driver).
-- UPDATE 14/APR/2024 --
A few people have reported recently they've been getting an "E3" error when attempting to run the test on new Pi 5 images. The error reads "Only for use with official Sinden Lightguns. Error please connect Sinden Lightgun. E3". After some testing I found that this Sinden software error is caused by a Raspberry OS kernel update to v6.6.16 which was committed on 8th Feb '24. I did put a command here to downgrade to the last working version of the kernel, but after communicating with Sinden, I have been given a modified version of the 64-bit executable file that overcomes this issue. And I also added a line to my utility's script to bypass the check for anyone who might still suffer from the error on 32-bit systems.
-- UPDATE 31/MAR/2024 --
Two changes today. Firstly, the downloader now checks if the standard location for RetroPie-Setup is being used, and if not, attempts to search for it in the users home directory. if it still can't find it, prompts the user for the path, and checks it is valid. This should make the downloader much more universally robust.
Secondly, the RetroPie-Setup package now adds the Sinden Lightgun entry to the gamelist.xml correctly (rather than the hacky method I used before, which sometimes didn't work).
-- UPDATE 26/JAN/2024 --
Added a Sinden pedal test to the utility, for up to four pedals.
Also added a checklist to choose what emulators the offscreen reloading setting should be applied for. Should only be needed for supermodel3, and that's what I've enabled it for by default, but thought I should make it customisable in case someone has a different version of supermodel installed with a different name, or another emulator shows up that needs it.
-- UPDATE 25/JAN/2024 --
Utility updated to prevent the Sinden Pedal from showing up as a Lightgun in the list of available Lightguns. This was because the pedal uses the same pcb and basic code as a lightgun so typically presents itself in the same way. My code is now more robust and accounts for the presence of pedals now.
-- -- -- -- -- -- -- -- -- -- -- -- -- --
These are the commands to type in:
wget github.com/Widge-5/SindenLightgun/raw/main/download.sh
chmod +x download.sh
./download.sh
exit
(The last "exit" is to return you back to EmulationStation after the installation script has been placed, so if your using a remote terminal to access your Pi you can disregard that line)
Join the Sinden Lightgun Discord server at / discord
I mentioned SuperModel 3 in this video. If you want it, the best version for Pi can be found here: github.com/Dir...
Music in this video:
----------
Mario Bava Sleeps In a Little Later Than He Expected To by Chris Zabriskie is licensed under a Creative Commons Attribution 4.0 licence. creativecommon...
Source: chriszabriskie....
Artist: chriszabriskie....

Пікірлер: 40
@WereDirtyGaming
@WereDirtyGaming 7 ай бұрын
Nice script! Very similar to the supreme sinden installer script v2, may need to look at it and tweak it to work with builds with the backup retropiemenu locations.
@widge
@widge 7 ай бұрын
I'm unaware of the work that your group has done in this area, though I recognise that it is inevitable that two independent parties would make similar quality-of-life tools in complete oblivion of each other. I conceived and wrote my scripts from scratch by myself, and this installer includes the third iterations of my autostart and config editor tools combined. I'm unable to prevent anyone from taking inspiration from, or completely ripping-off my scripts, however I welcome sharing as I do what I do for the good of the community as a whole and provide my work completely free of charge. I respectfully request that anything derived from my work is not sold, provided as part of any package/image that is sold, or presented as a reward for a payment of a subscription such as Patreon.
@WereDirtyGaming
@WereDirtyGaming 7 ай бұрын
@@widge We hear yea! Also the supreme builds/scripts are completely community built and open source and not made by a single group or person. The community gave up on people trying to sell our work or make a profit off of it as it seems everyone is doing this in some sort of way to make funds on others work and it’s sad, even the official RetroPie team or group has a Patreon making funds off of platforms like Emulationstation and RetroArch. Just over all wanted to say great work on the script as you did write it differently and super glad there is multiple installers as it just makes things easier for the end user.
@widge
@widge 7 ай бұрын
Thanks. That's kind of you to say so.
@CaptainFrugalReviews
@CaptainFrugalReviews 6 ай бұрын
Thanks for this video!
@NavyDal
@NavyDal 6 ай бұрын
For anyone else who might have encountered the issues I had, make sure to install it to where your RetroPie-Setup folder is. Ideally it is in the home folder but in my case it was in a separate git folder. You can move the directory into the corresponding RetroPie-Setup/ext/ folder and it will then show up in the experimental packages menu.
@widge
@widge 5 ай бұрын
Thanks. That's something I hadn't thought of. I assume that people have either installed RetroPie by flashing the official image, or manually by following the instructions on the RetroPie-Setup github page. I don't know how to account for someone who's gone off-script. I'll add the advice to video description and try to think of a foolproof solution for the future.
@widge
@widge 5 ай бұрын
OK, I believe I've dealt with this issue now. So random RP-Setup installation locations should now be accounted for, :)
@jamiekuchma
@jamiekuchma 2 ай бұрын
Everything works great bravo man, something wrong though for whatever reason I cannot get the two player mouse cursor to show up in any game no matter what, one player works like a champ though, I'm on an old supreme ultra build which is not that great
@widge
@widge 2 ай бұрын
It's most likely down to the way the games/systems in your image have been configured, which was probably not with multiplayer shooting games in mind. I have to say, I don't care much for those premade builds, preferring to set up my system myself so I know exactly how it works. i can't help you with someone else's build as I don't know what they did to it, but I doubt they went through each and every game they shovelled into it to ensure they each worked perfectly and as intended. You should ask Supreme for support, though its unlikely they'll provide it.
@jamiekuchma
@jamiekuchma 2 ай бұрын
@@widge I actually figured it out I just had to move the light gun to a different port they say to put them in zero and one , but that doesn't really work, I actually have a player of two running through a USB hub and it works fine
@3srs5U
@3srs5U 2 ай бұрын
I got through everything including calibration, so I know the guns and the software are working, but for some reason it just won't actually work in a game. Whether I pick my actual lightgun collection folder, pick no folder (autostart indiscriminately), or manually start and then go to play a game. It seems to flash the white border for a moment while loading the ROM, but then it goes away and the gun seems to be disabled. If I had to guess, maybe Retroarch is applying some configuration that is overriding the settings the game starts up with, but I don't recall ever setting anything like that or know where to find it. Any idea what could be going wrong?
@widge
@widge 2 ай бұрын
Interesting. the Border overlay flashes up then disappears. I've never seen that happen myself, but it does sound like a config file declaring the overlay is being loaded in and then overridden by another. 1. There is a hierarchy to configuration files. The global config is at `/opt/retropie/configs/all/retroarch.cfg` - In here is every setting that Retroarch uses. Any settings you want to be default across the board for the whole device is set in this file. 2. Each system has a config file where individual settings can be set to override the global settings. They are found at `/opt/retropie/configs/[systemname]/retroarch.cfg`. Any settings above the `#include...` line at the end will override. I'd keep this file mostly empty and only put in things that will apply to that system alone and for (almost) all games in that system. 3. Each game can have its own config file that overrides all others. This is located at `/opt/retropie/configs/all/retroarch/config/[emulatorname]/[game].cfg` where `[game]` is the exact name of the rom file (minus the extension). In here you can apply individual settings for that game only, so for a lightgun game on a mostly non-lightgun system I would apply certain settings in this file. You don't need to have the `#include...` line in this file, the other two configs will be used, but individual settings in this file will override those in the other two. However, this config will only be applied if the game is running in the emulator identified in the path. 4. You can also have a config file for a folder. That appears in the hierarchy above "system" configs and below "game" configs. They would be located at `/opt/retropie/configs/all/retroarch/config/[emulatorname]/[folder].cfg` where `[folder]` is the name of the folder containing the games you want to be covered by this config. RetroPie Docs is an invaluable source of information on how RetroPie works, and you can find out more here: docs.libretro.com/guides/overrides/#configuration-files-location
@bman5612
@bman5612 5 ай бұрын
Followed instructions. Everything seemed to go okay. Some scripts ran on the screen for 2 commands. But no new sinden option appeared in experimental package. I check regular package too. Nothing there. Not sure what im doing wrong
@widge
@widge 5 ай бұрын
My best guess at this time is that the location where you installed RetroPie-Setup does not match the location addressed in my script (which assumes its installed to the location as directed in the RP-Setup instructions). Linux is case sensitive so if you installed RP-Setup without upper-case characters in the instruction as directed then it's a mismatch.
@bman5612
@bman5612 5 ай бұрын
@@widge thabks for the reply. Its a virtualman arcade image so yes i believe its installed elsewhere. Will double check and see if i can move it.
@widge
@widge 5 ай бұрын
OK, I believe I've dealt with this issue now. I've completely rewritten the download script to seek out the location of RetroPie-Setup and, if it can't find it, prompt the user for the path. So random RP-Setup installation locations should now be accounted for, :)
@bman5612
@bman5612 5 ай бұрын
Awesome. Will check after easter dinner 🙂. Thanks for that
@Reign1134
@Reign1134 5 ай бұрын
​@@bman5612I'm using a Vman image also and it says the package installed correctly but I can't find it either. If you figure it out could you let me know? Happy Easter
@jamesmurray7869
@jamesmurray7869 7 ай бұрын
Followed the cmd lines & exited to retro pie … sinden_lightgun never showed up in experimental. Followed instructions again after a reboot. Same thing. Using rpi5
@widge
@widge 7 ай бұрын
Thanks. I've looked at possible points of failure here and these are what I can think of : 1) mistyping the commands, they are case-sensitive so just be careful when you type; 2) running download.sh as a user other than the one for which retropie is installed; or 3) running download.sh as sudo. I wrote download.sh assuming that it would be run as the user that uses RetroPie and without sudo permissions. it's unlikely that someone would have two users in place on a retropie system but still possible. i can't script around that though, I can only assume that the user running the script is the RetroPie user. Otherwise, the script will install the package to the wrong location. Running it as sudo would have the same effect. The Pi will assume the user running it is called "root" and install to home/root instead of home/. So that could possibly be it. I've rewritten download.sh to account for that possibility now and it should work if run as sudo or not. But still must be run as the RetroPie user. So I now recommend that you check your /home/ folder for any instances of download.sh that might be there and delete them if they are (there shouldn't be as it should have deleted itself anyway), then try again, running the commands as given in the video description.
@bman5612
@bman5612 5 ай бұрын
Same here
@nbkicker7665
@nbkicker7665 24 күн бұрын
For me im getting to the test and it works etc but as soon as i start time crisis on ps1 i get the gun as recoil working but there is no white border comes up, do games have to go in a certain folder
@widge
@widge 24 күн бұрын
You need to configure retroarch to apply an overlay image of a border over the top of the game. Information on how to do this is available in the RetroArch documentation at docs.libretro.com/guides/libretro-overlays/ The basic sinden border overlays are installed with this utility, so you have something to start with, but later on you might want to use bezel artwork with borders baked in as your overlays. Which is what has been done in Barebones, the Pi4 Lightgun image made by the Sinden Discord community.
@nbkicker7665
@nbkicker7665 24 күн бұрын
@@widge cheers will check it out tomorrow when off work, currently converting a old arcade 1up cabinet with a pi4 got it working with all my arcade etc roms just wanted to see what it would be like with sinden, tried the barebones 9.1 on a seperate sd card and this work but it shrinking the ps1 image horizontally to put bezzels either side of image, will have to read up and have a mess about tomorrow
@widge
@widge 24 күн бұрын
@nbkicker7665 barebones was made with 16:9 screens in mind. I have a conversion tool to make it compatible with a1up 5:4 screens and 4:3 screens. Check kzfaq.info/get/bejne/pLZki6houKjah3U.html
@nbkicker7665
@nbkicker7665 24 күн бұрын
@@widge cheers at work will check it out later tonight / tomorrow when off
@nbkicker7665
@nbkicker7665 24 күн бұрын
@@widge thanks for all your help, followed yr guide and its working perfect now
@Brandon-xz1vp
@Brandon-xz1vp Ай бұрын
How do you get to where you type in the installation script in the beginning 0:23
@widge
@widge Ай бұрын
From EmulationStation, press F4 on your keyboard to get to the command line. When you've finished type either "exit" or "emulationstation" to go back to ES.
@Brandon-xz1vp
@Brandon-xz1vp Ай бұрын
@widge thank you soo much! Travel Rn here wanting some nostalgia
@zanes251
@zanes251 2 ай бұрын
How do I set up the boarders?
@widge
@widge 2 ай бұрын
You need to configure retroarch to apply an overlay image of a border over the top of the game. Information on how to do this is available in the RetroArch documentation at docs.libretro.com/guides/libretro-overlays/ The basic sinden border overlays are installed with this utility, so you have something to start with, but later on you might want to use bezel artwork with borders baked in as your overlays. Which is what has been done in Barebones, the Pi4 Lightgun image made by the Sinden Discord community.
RetroPie: A Raspberry Pi Gaming Machine
33:03
NetworkChuck
Рет қаралды 371 М.
Nothing else comes close to this - Sinden Light Gun
12:23
Linus Tech Tips
Рет қаралды 1,7 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 48 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 6 МЛН
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 12 МЛН
Finally... A Lightgun Worth Buying
10:59
Retro Dodo
Рет қаралды 71 М.
When Did Raspberry Pi become the villain?
21:54
Jeff Geerling
Рет қаралды 1,6 МЛН
Naomi 2 games on Raspberry Pi 5  are INCREDIBLE!
14:28
Widge
Рет қаралды 4 М.
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,6 МЛН
The Sinden Light Guns Are Amazing! Works With Modern TV’s
8:09
What happens if you connect Windows XP to the Internet in 2024?
20:35
The Best Raspberry Pi Zapper - Sinden Light Gun On The Pi
22:03
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Рет қаралды 821 М.
the Raspberry Pi 5
17:57
NetworkChuck
Рет қаралды 1,1 МЛН
Что вы наделали?! ( Minecraft )
16:28
JOHAN
Рет қаралды 673 М.
НЕПОСЛУШНЫЙ КОТ СЪЕЛ БАБУЛЮ!! (I Am Cat VR)
9:21
ShadowPriestok - Евгений Чернявский
Рет қаралды 265 М.