New Idea/Help Needed - es_systems.cfg Selector
-
@TMNTturtlguy maybe you changed the ownership of those files with your previous script. If they're owned by user pi there's no need for
sudo
. -
@TMNTturtlguy @meleu Is 100% correct! Check if some of your config files belong to root... Seems so because you worked with sudo in your last script. So I falsly said to him that he better removes sudo commands what he already did :)
But I think your script is very special ... I really can't imagine to use it :)
It was real fun to play a bit around with and learn a bit new. So I appreciate every comment/tip/hack from more advanced people. I wasn't able to trigger bugs because I commented every file operation out and tested just the behaviour of function call, loop break and restart ability. I think meleu did the same.Two locations of es_systems....
Yes I rember now, but I alway work in /etc/emulationstation > Seems that I like risk
-
@cyperghost @meleu when I get back on my pi I will repudiate my setup script, bet here is the info from buzz when working on this in the past. Thanks link text
-
Yes but this behaviour was changed.
https://retropie.org.uk/forum/topic/11050/restart-es-via-bash-script/7There is really no need to act as root. As long as your script works for you it is really no problem but it seems that user privileges causes some errors.
-
@cyperghost Ok, so i updated to the most current setup script and I still have permissions errors. Here is the error:
rm: remove write-protected regular file "/opt/retropie/configs/all/emulationstation/es_systems.cfg" permission denied.
Running the script from the retropie menu does not appear to be the issue, rather removing the file from /opt/retropie/configs/all/emulationstation/
Where can i look to find out my permissions for this folder? Thanks
-
@TMNTturtlguy Owner is pi:pi
Permission to config files is 644 (Need not to be executed)pi@retropie:/opt/retropie/configs/all/emulationstation $ ls -l total 52 drwxr-xr-x 2 pi pi 4096 Jul 3 20:46 downloaded_images -rw-r--r-- 1 pi pi 1627 Jun 26 19:31 es_input.cfg -rw-r--r-- 1 pi pi 1475 Jun 26 19:31 es_input.cfg.bak -rw-r--r-- 1 pi pi 20476 Jul 8 19:25 es_log.txt -rw-r--r-- 1 pi pi 1340 Jul 8 14:19 es_settings.cfg -rw-r--r-- 1 pi pi 1470 Jul 7 23:15 es_settings.cfg.bak -rw-r--r-- 1 pi pi 1641 Jun 26 19:31 es_temporaryinput.cfg drwxr-xr-x 34 pi pi 4096 Jul 8 18:42 gamelists drwxr-xr-x 2 pi pi 4096 Jun 24 13:02 tmp
-
@cyperghost Yes - rookie mistake on my part and of course I bow down to you at @meleu for your knowledge and help!
When running the script prior to the updates made by buzz the sudo command was used. What this did was create the es_systems.cfg file within the folder as a root file. That was the only file in there that was root, but I believe because i was using the sudo command to copy it from the origin folder to the main folder it was giving it root ownership. I simply deleted that file and copied a fresh file in manually, ran the script and now it works perfectly without the sudo code as you and @meleu have correctly stated.
Once again I am on my pi for 5 minutes and need to run, but in the late late overnight hours I will update a few things in @meleu's branch and then update my main repository and issue the script. I know it has a small use case, but I enjoy it, and I think others may as well if we start seeing more themes created for just specific systems like @ruckage neo geo theme. I love the script on my arcade machine because i can set it to only run Arcade games if i want to.
Thanks again!
-
I gave this a try using meleus version.
I run
RPi3
ES 2.4.0RP
RetroPie Script 4.2.8
And the following systemsCPS
NeoGeo
FBA
MegaDrive
SNES
NESI uploaded the script and created those 4 folders.
All -> All my systems
Consoles -> MD, SNES, NES
Customs -> NeoGeo, FBA, CPS
Favorites -> Empty es_system.cfg fileI then switched between the es_system files using the new function in the RetroPie Settings menu. After I select something let's say "Consoles", ES restarts automatically.
But now I get systems that I don't have inside those 4 new es_system.cfg files.
No matter what I es_system file I choose I always get these systems shown.SNES
FBA
GameBoy
MegaDrive
NeoGeo
NES
PortsWhere is he getting Ports and GameBoy from?? And CPS is gone too.
Not sure which es_system.cfg file gets loaded here.
Normally there is one inside the emulationstation folder which has been deleted and then there are the other 4 which I created for testing. Is there any other place to look for a es_system.cfg file? -
Never mind my previous post.
Looks like the new folders have to be written in small letters.
Instead of "All" it has to be named "all" same goes for all the other folders.
Now switching between the files works like a charm.
May I suggest to to update the Readme file to reflect this or change the paths inside the change_es_systems.sh file.Thanks guys, job well done.
Now the only thing left to do is to wait for ruckage to release that NeoGeo/Capcom theme of his and I'm ready to rock.P.S. Still not sure where he got GameBoy and Ports from but since it is solved now I guess it doesn't really matter anymore.
-
@FlyingTomahawk Thanks for the update, I will be posting a new script and instructions and updated warning note for when the script launches shortly. @meleu forked from my original script and did not have the most up to date folder names in the script, thus the script did not match the instructions. This is partly my fault as i changed the script and instructions mid stream during the testing phase. When i send out the new update the folders will be capitalized like the instructions. All, Consoles, Favorites, Customs, Hacks, and will add NeoCapcom as well.
Regrading your es_systems.cfg files. You should create those on your own, not use any that have been provided. The point is that you can create your systems.cfg file just how you want and then switch between them. Did you create all your files yourself, or did you use some provided to you?
Last note, if you have it working the way you want now, you can ignore my update, otherwise the new readme instructions and post will have all the correct information.
Thanks again for your report and for using this tool!
-
@TMNTturtlguy said in New Idea/Help Needed - es_systems.cfg Selector:
Regrading your es_systems.cfg files. You should create those on your own, not use any that have been provided. The point is that you can create your systems.cfg file just how you want and then switch between them. Did you create all your files yourself, or did you use some provided to you?
I made the es_system.cfg files myself. That is why I was confused as to where he gets Ports or GameBoy which I don't use those on my RPi3.
But I figured it out and know now why he showed those systems.I had a few GameBoy roms and Kodi in Ports. And because of the wrong folder naming it read the default es_system.cfg inside the etc/emulationstation/ folder and not the one from the /opt/retropie/configs/all/emulationstation/ folder.
Now everything works and he is reading the es_system.cfg files from the new custom folder structure.
This is a great feature which will be very helpful for me, so thanks a ton for it.
-
@FlyingTomahawk the script and instructions have been updated on github under my original repo. Here is the link:
github Change_es_systemsI am going to start a new thread with this script and instructions as well.
Edit: link to new thread
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.