Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More)
-
@mrmadcatz said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
rainwave.m3u
#EXTINF:0,Rainwave All: Random Relay http://allrelays.rainwave.cc/all.mp3 #EXTINF:0, Rainwave All: Rainwave (Toronto) Relay https://relay.rainwave.cc:443/all.mp3
You just helped me identify an Issue I missed with an already known issue...
mpg123 does not handle https, and IMP currently accommodates for this by replacing [https] -> [http].
But, if the address has :443 in it, it's still basically https and mpg123 will not play.
IMP does not accommodate for :443 at the moment.
I tested and you can simply remove :443 from the address and it will play.#EXTINF:0,Rainwave All: Random Relay http://allrelays.rainwave.cc/all.mp3 #EXTINF:0, Rainwave All: Rainwave (Toronto) Relay http://relay.rainwave.cc/all.mp3
I will accommodate for :443 in the next version of IMP.
Thanks again for your input.Also, I am enjoying NightrideFM, particularly ChillSynth.
Thanks for the recommendation.[playlist] numberofentries=1 File1=http://stream.nightride.fm/chillsynth.mp3 Title1=NightRide.FM Stream Length1=-1 version=2
-
@rapidedwin08 I got a reply from you and I was helpful?! You're makin' my day! Haha.
I'll definitely check out the Chill Synth one. I'll keep an eye out for next iteration of IMP! Let me know if I can of any more service.
-
@rapidedwin08 Sorry to keep blowing you up with messages, but one more thing I wanted to mention that I noticed:
When trying to access the roms/music folder via \RETROPIE\roms\music in Windows File Explorer, it's permission protected and unable to be opened. I can access it via SSH just fine, or via RetroPie's command line. I've just been
mv <temp/path/to/file/or/folder> /home/RetroPie/roms/music
as needed.These permissions might be inentional, and if so, please disregard. Wanted to mention just in case!
-
@mrmadcatz said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@rapidedwin08
When trying to access the roms/music folder via \RETROPIE\roms\music in Windows File Explorer, it's permission protected and unable to be opened. I can access it via SSH just fine, or via RetroPie's command line.Another issue identified...
The music folder in roms/music is actually a symbolic link. (like roms/genesis)
The music folder is moved by IMP upon install to a new location:~/RetroPie/retropiemenu/imp/music
You will need to add another entry to smb.conf if you want to access it.
sudo nano /etc/samba/smb.conf
Add these lines to the bottom:
[music] comment = music path = "/home/pi/RetroPie/retropiemenu/imp/music" writeable = yes guest ok = yes create mask = 0644 directory mask = 0755 force user = pi
Restart samba service:
sudo systemctl restart smbd.service
I will attempt to accommodate and have the IMP Installer add an additional samba share for the IMP Music folder in next version.
Thanks for your input... again... -
@rapidedwin08, I just want to post this here to keep it all in one spot...
So i installed the latest RetroPie software on my Pi4, using the image from the site, on a new SD Card. Got it up and running, loaded some roms, etc. that I had scraped using ARRM so I could have images, box-art, videos, etc. Then I installed IMP for background music and the Bezel Project for those 4:3 emus. Things were great! Played some games, had a blast!
Then disaster...
I decided that I want to make sure everything was updated, so updated the install script and told it to update...after updated some of RetroPie. It asked if I wanted to update the underlying RaspberryOS. I said, sure! Why not?
Now I get this...
emulationstation: /home/pi/RetroPie-Setup/tmp/build/emulationstation/es-app/src/FileData.cpp:218: void FileData::addChild(FileData*): Assertion `mType == FOLDER' failed. Aborted
...and a blinking cursor!
I've seen some mention of modifying gamelist.xml to get it working again, but I just plain removed those rom directories that had any content and restarted emulationstation. Same error...I've searched and googled and nothing comes up. Has anyone else encountered this issue?Using
--debug
, ES is getting hung up on~/.emulationstation/gamelists/retropie/gamelist.xml
but I don't understand what I am looking for? Other posts relating to that error suggest paths should not refer to files, only directories? I wondered if perhaps it was the html entities you have in the XML for "less than" or "greater than" symbols? I am not sure.Here is the pastebin of the gamelist.xml that ES is failing on. The offending block of XML is related to the IMP background music player. When I comment out any attributes/elements related to IMP, save, and launch ES, everything works just fine.
This was working just fine prior to updating the underlying OS, so I wanted to know if there is some sort of discontinuity going on that others may have encountered...
Here is a link to my post in the general help and support forum in case this is not an IMP issue and something comes up there that can help others here...
-
@cdaters I had the same issue! What I ended up doing was uninstalling IMP via the
/home/pi/imp/imp_setup.sh
. Then I rebooted my RetroPie and it was working after that. The issue is that there is an XML file that tells Emulation Station how to organize all of the various IMP menu items within the RetroPie menu. The XML specifically in question is/home/pi/.emulationstation/gamelists/retropiemenu/gamelist.xml
. The update does something to the XML that makes EmulationStation forget that some items are folders in that IMP menu. Because it can't parse the XML properly, it freaks out and won't load into EmulationStation.In the IMP Setup script there is also an option for
[retropiemenu] gamelist.xml refresh
. I believe that this was intended to fix the XML issue I am describing, but when I tried it myself it didn't work and the uninstall/reinstall was the only fix that worked for me.One thing that made the uninstall/reinstall less painful was the fact that the
/home/RetroPie/roms/music
folder seemed to remain intact with anything I had added on my own, although creating a backup is always a smart idea.@RapidEdwin08 Might have a more elegant solution to all of this, but thought I'd share what worked for me so you're not stuck without being able to use your RetroPie.
-
@mrmadcatz @cdaters Thanks for the input.
I think the problem might be HTML character codes (or lack there of)...
The RetroPie update might have struggled to parse the [gamelist.xml] correctly because of special characters that were neglected to be input in HTMLCode/NameCode.NOT the issue, as pointed out to me, I was confusing this with XML Character Set
Issue could be that the RetroPie update Removed the .mp3 extension from [es_systems.cfg]
The game list xml Refresh currently does Not accommodate for this.
-
@mrmadcatz, thank you for the suggestion, I briefly saw this when I woke up in the middle of the night with the idea that I would try just what you suggested when I woke this morning and was preparing to do just that when I happened to see @RapidEdwin08's response in the Help and Support thread that perhaps the RetroPie upgrade might have removed the mp3 extension entries from the
es_systems.cfg
file in/etc/emulationstation/es_systems.cfg
for the RetroPie Menu. By default, this is usually only.sh
or.rp
.So I added those back in per @RapidEdwin08's suggestion and boom! Back up and running!
<system> <name>retropie</name> <fullname>RetroPie</fullname> <path>/home/pi/RetroPie/retropiemenu</path> <extension>.rp .sh .mp3 .MP3 .pls .PLS .m3u .M3U</extension>
-
Okay...So I have overcome an update of RetroPie that had killed my [IMP] experience, and I have enabled SMB shares to get my music on my Pi via feedback from @RapidEdwin08 due to other feedback...
@mrmadcatz your feedback has gotten me back into streaming radio and I have to agree with your feedback, [IMP] is amazing and I think my go-to from here on!
I love! Love! Love! that we can create playlists, incorporate Internet Radio (I've already added a few of my own), etc. into our BGM experience! I am playing with the
gamelist.xml
file now creating "categories" for[Internet Radio]
and[Personal Music]
to sort of keep things nice and tidy...@RapidEdwin08 , thanks again for this gem!
-
@cdaters to avoid further worries (and also for others stumbling across this): Place a customized copy of
es_systems.cfg
into~/.emulationstation/
(user pi). This location takes precedence over/etc/emulationstation/
and is never changed automagically, neither by updates nor by adding extra emulators. -
@lolonois, thank you very much, done! 😄
-
@cdaters @RapidEdwin08
.mp3
being added as an extension in /etc/emulationstation/es_systems.cfg makes total sense! I'll keep this in mind. Glad everyone has things working :) -
@lolonois said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@cdaters to avoid further worries (and also for others stumbling across this): Place a customized copy of
es_systems.cfg
into~/.emulationstation/
(user pi). This location takes precedence over/etc/emulationstation/
and is never changed automagically, neither by updates nor by adding extra emulators.The Installer is accommodating for Both locations already, but the 0nly time it does so is at Install.
This explains why the Re-Install Resolved the issues @mrmadcatz , but the gamelist refresh did N0T @cdaters .New release coming soon, it will check es_systems.cfg(s) for this at B00T.
-
@rapidedwin08 Just saw the new commit and that you've added NightRideFM and RainwaveCC to it! Thank you so much! So cool. I really like how RainWave's channels are all listed and available. I'm noticing that NightRideFM is set up as a station with all of it's stations within a single playlist and not selectable like RainwaveCC. Is this intentional? If not, just wanted to bring it to your attention!
-
@mrmadcatz said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@rapidedwin08 ... I'm noticing that NightRideFM is set up as a station with all of it's stations within a single playlist and not selectable like RainwaveCC. Is this intentional? If not, just wanted to bring it to your attention!
YES it is intentional.
I included the [NightrideFM-x6.pls] as an Example for Multiple Songs/Channels in a Single Playlist File for Reference.Thanks for the feedback!
-
@rapidedwin08 This is so cool! Thank you very much for adding these :) Them just being there after the install was a pleasant surprise lol!
On a separate note: I'm noticing a bug. When I have "Fade Volume at Game [ON]" it fades the ES System Volume down to about 22-24% before launching the game. Then, upon exiting the game, the System Volume in ES remains at that low level and has to be manually raised again so that games being emulated are not too quiet.
In my testing, I found that if I don't touch the volume when returning to ES as it's stuck at 22-24%, the music will continue to play. If I adjust it to anything below what the Music Player volume is set to (in this instance 80%) the music will cut out, but will come back as soon as I put the system volume above that threshold.
Would you prefer us report stuff like this here or on your GitHub page in the issues section?
-
@mrmadcatz said in Integrated Music Player for RetroPie [IMP] 2021.10 (Background Music for RetroPie and More):
@rapidedwin08 I'm noticing a bug. When I have "Fade Volume at Game [ON]" it fades the ES System Volume down to about 22-24% before launching the game. Then, upon exiting the game, the System Volume in ES remains at that low level and has to be manually raised again so that games being emulated are not too quiet.
Would you prefer us report stuff like this here or on your GitHub page in the issues section?
Here is fine.
Volume Fade is the Unicorn of BGM Features...Was this occurring while Very Rapidly Selecting ROMs?
If so, I guess you could call it a Known Issue with the Fade.If you are a Rapid-ROM-Selector, you can try to Increase the [Delay at Game End] Setting to avoid this issue.
EDIT The Fade Scripts were definitely Not acting right, and have been Reverted to an 0lder known working version.
Changes were Very Promptly Applied on github. (Reinstall if needed).
Thanks for Reporting. -
@rapidedwin08 Funny enough, when I was seeing this consistently, it was only when I was playing ROMs for a length of time and not rapidly switching.
I'll keep this in mind if I see this issue again. Might just turn off the fade option if it has the potential to cause issues.
-
IMP 2022.02 Released
Fixed issue with ES Not Loading after Retropie Update [es_systems.cfg]
Fixed issue with some Streams N0T Playing (Remove [:443] from Address)
Added Startup Song Setting [../music/bgm/startup.mp3]
Added Music Randomizer Mode
Added [RP/ES] Utilites to Installer Menu
Installer adjusted to Set Volume to %50 upon Install
Installer adjusted to Add Samba Share for [~/RetroPie/retropiemenu/imp/music]
Reverted to 0lder versions of [run-onstart] [run-onend] scripts to address Fade IssuesIt's worth noting that Every Change in this Release was Driven by the Community.
Thank You All for your Feedback!
-
Thanks so much for the updates! I'm very honored to have been part of any feedback and excited to see IMP continue to be awesome. Thank you @RapidEdwin08 !
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.