Last Played Collection - Possible to limit?
-
Ha, looks like this bit me in the backside on a few gamelist files. I suppose it's all part of walking the razor's edge of open source advancement. Actually, I've never felt more alive. I might even take up sky diving next, or perhaps record a ball game without the express written consent of Major League Baseball.
Anyone looking to check if any files were affected, look for any
gamelist.cfg
files that have a modification date past when you updated ES from source and look/search for any image tags starting with:<image>./ownloaded_images/
and replace that part with
<image>/home/pi/.emulationstation/downloaded_images/
Unfortunately, I don't use videos on my setup, so I don't know exactly how they would have been affected.
-
@mediamogul interesting. Do you confirm that those are the exact before and after versions of one such path?
In my case the images stayed well. I was looking through the code and I think I suspect what might be the issue, but I don't know that code well enough to pass a judgement without effectively testing it.
Welcome to the bleeding edge of development:)
-
@pjft said in Last Played Collection - Possible to limit?:
Do you confirm that those are the exact before and after versions of one such path?
Yes. The image tag for every game that was played after the update was affected in that same way. I corrected them all with a find and replace.
-
@mediamogul thank you. Interesting.
What's your ROM path in the gamelist files for one of those ROMs, can you also share it?
-
Sure. Here's 'Cosmo Gang: The Video' from my arcade system
gamelist.xml
.<path>./AdvanceMAME/cosmogng.zip</path>
-
Just wanted to let you all know that I've released the script I was talking about on this thread.
RetroPie Limit Last Played Games: A tool for RetroPie to limit the number of 'last played' games. https://retropie.org.uk/forum/topic/16608/script-retropie-limit-last-played-games
-
@mediamogul thank you. I take it you don't have one exact before and after path for the images in your specific scenario anymore as you fixed them, but I'll try to dig into it.
Thanks.
-
Actually, the post here details one such before and after example. Outside of that, everything has been fixed, but the image paths in each affected
gamelist.cfg
file were all altered in exactly the same way.<image>/home/pi/.emulationstation/downloaded_images/
Was altered in each occurrence to
<image>./ownloaded_images/
-
@mediamogul said in Last Played Collection - Possible to limit?:
Was altered in each occurrence to
<image>./ownloaded_images/
I think you've a typo there (although „ownloaded“ could grow into a nice gamer slang word ;) ).
-
Ha, it does look like it would be a typo, but that's just how it was truncated. However, the next time I hear a gamer tell me I was "ownloaded" over my headset, I'm gonna have to ask if his name is Clyde.
-
@clyde no, that's actually correct, it's a big that's changing the paths because it's shortening those strings. I was just trying to figure out if there was a pattern, but mine was different. :)
I'll need to test the code.
-
I just submitted a fix for the behavior and it has been accepted. You may now update from the dev branch and see if all works well.
Thanks.
-
@pjft said in Last Played Collection - Possible to limit?:
@clyde it's a big
I hope that's a typo and not a bug in the "pjft" script. :D
-
@clyde that is indeed a phone induced typo :)
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.