fraganator Posted September 9, 2023 Author Share Posted September 9, 2023 On 9/8/2023 at 8:07 PM, W4rCh1ld said: No its not, just on an External USB HDD... so i cannot exclude that folder from being sync, but i did try replacing the folder with a fresh one from a new install, using your program in a completely fresh install, and even replacing the ThirdParty\7-Zip with a full current 64bit version of 7zip (which works fine with lunchbox as is and infact did make all the extraction work far faster, than the included base\standard version) but this doesn't link to your Cache manager... it would be great to be able to use a full 7zip install in you cache manager and add it in ourselves, like CHDman, DolphinTool and Extractxiso as it seems to be a better version then the one lauchbox uses anyway, and should help to avoid issues with linking to the default one? Maybe? Hi @W4rCh1ld - I believe I've found the issue. When a game is launched, Archive Cache Manager copies some files to the ThirdParty\7-Zip folder. Once the game has launched, the original 7-zip files are then restored. The issue in the logs showed those files were in use by another process. After a little debugging I think what is happening is LaunchBox is calculating RetroAchievement ID for the game in the background, which means the game is being extracted using 7-zip, and so the 7-zip files are in use. I've attached a beta version which doesn't replace the 7-zip files on each launch, but instead replaces them once when LaunchBox is first launched. Any calls to 7-zip be LaunchBox should continue to operate as normal (unzipping metadata, creating start-up and shutdown backups, and RetroAchievement ID scans). Please let me know how it goes. ArchiveCacheManager.v2.16.Beta1.zip 1 1 Quote Link to comment Share on other sites More sharing options...
W4rCh1ld Posted September 9, 2023 Share Posted September 9, 2023 (edited) 17 hours ago, fraganator said: Hi @W4rCh1ld - I believe I've found the issue. When a game is launched, Archive Cache Manager copies some files to the ThirdParty\7-Zip folder. Once the game has launched, the original 7-zip files are then restored. The issue in the logs showed those files were in use by another process. After a little debugging I think what is happening is LaunchBox is calculating RetroAchievement ID for the game in the background, which means the game is being extracted using 7-zip, and so the 7-zip files are in use. I've attached a beta version which doesn't replace the 7-zip files on each launch, but instead replaces them once when LaunchBox is first launched. Any calls to 7-zip be LaunchBox should continue to operate as normal (unzipping metadata, creating start-up and shutdown backups, and RetroAchievement ID scans). Please let me know how it goes. ArchiveCacheManager.v2.16.Beta1.zip 2.38 MB · 1 download Well ive gotta say that works an absolute treat!! Unzipping file after file back to back, no issues, once id added in the emulator and specified the file i wanted in the list, picking the correct file in zips that have 2 files in (which launchbox is sadly so bad at it simply mounts the wrong file 100% of the time, not even with 50/50 odds of getting it right. lol), skipping the launchbox link check and booting pre-cached games 4x quicker, filling a full 20gig cache and auto deleting the oldest automatically, keeping the one id check to be kept, and deleting the next oldest. Beautiful! I haven't been able to check if its completing RetroAchievement ID scans correctly (although i bet your right that it was this causing the issue) as the emulator im using doesnt have the ability to use them and Retro Achievements are undergoing all sorts of issues and changes on their end that Launchbox is a mess in that regard atm. So yeah thank you very much for what is possible the most useful plug in ive seen for lauchbox (my other favourite bring PCSX2 Configurator Next, which is also an amazing tool) that they should really consider adopting it as standard. Also what is even better is now with this fix even when replacing the standard 7zip file within the 3rd party 7zip folder with a full 64x 7zip install, (where lauchbox unzips work faster) is your cache manager DOES recognize this 7zip .exe / File too!! (Where im pretty sure it didn't seem to before, at all.) So the best of both worlds, (you may even want to mention doing this in your Install instructions as an optional performace boost. ) .Now im super happy. Thank you so much for looking into it. Further to this i have now made the Archive Cache folder path to an SSD with a 200gig max size, making pre-cached boot times of large files extremely fast... i can only imagine what a NVME or even a Ram Cache could achieve. lol Edited September 10, 2023 by W4rCh1ld 1 Quote Link to comment Share on other sites More sharing options...
fraganator Posted September 11, 2023 Author Share Posted September 11, 2023 On 9/10/2023 at 1:46 AM, W4rCh1ld said: Well ive gotta say that works an absolute treat!! Unzipping file after file back to back, no issues, once id added in the emulator and specified the file i wanted in the list, picking the correct file in zips that have 2 files in (which launchbox is sadly so bad at it simply mounts the wrong file 100% of the time, not even with 50/50 odds of getting it right. lol), skipping the launchbox link check and booting pre-cached games 4x quicker, filling a full 20gig cache and auto deleting the oldest automatically, keeping the one id check to be kept, and deleting the next oldest. Beautiful! I haven't been able to check if its completing RetroAchievement ID scans correctly (although i bet your right that it was this causing the issue) as the emulator im using doesnt have the ability to use them and Retro Achievements are undergoing all sorts of issues and changes on their end that Launchbox is a mess in that regard atm. So yeah thank you very much for what is possible the most useful plug in ive seen for lauchbox (my other favourite bring PCSX2 Configurator Next, which is also an amazing tool) that they should really consider adopting it as standard. Also what is even better is now with this fix even when replacing the standard 7zip file within the 3rd party 7zip folder with a full 64x 7zip install, (where lauchbox unzips work faster) is your cache manager DOES recognize this 7zip .exe / File too!! (Where im pretty sure it didn't seem to before, at all.) So the best of both worlds, (you may even want to mention doing this in your Install instructions as an optional performace boost. ) .Now im super happy. Thank you so much for looking into it. Further to this i have now made the Archive Cache folder path to an SSD with a 200gig max size, making pre-cached boot times of large files extremely fast... i can only imagine what a NVME or even a Ram Cache could achieve. lol Thanks for testing and reporting back, and the supportive comments. Happy to hear it's working well now. I'll look at polishing the changes are putting out a new release soon-ish. @huh123 Sorry for not following up the M3U issue sooner. Is an M3U file being created but its contents are incorrect, or is the M3U not being created at all? Under the additional apps, does each disc have a disc number set? If you disable Archive Cache Manager (uncheck the Extract ROMs option under the emulator settings for RetroArch > Associated Platforms), does LaunchBox's own M3U playlist creation work with those games? In answer to your latest questions: Yes, that's the way to add multi-disc games. Archive Cache Manager creates M3U files based on the additional apps list, where one of the additional apps must also be the same as the ROM path for that game (usually disc 1). The M3U creation logic follows LaunchBox's own M3U creation logic as documented here. If the file is an M3U already, it gets treated as a normal ROM file - a future update to parse the M3U file and cache the files it references is something I've wanted to add, but haven't gotten around to yet. Games only appear in the Cache View if there's a game.ini file in the cached folder, which includes some metadata about the extracted / copied game. I'd guess that file doesn't exist, but it's unclear why it wasn't created. 1 Quote Link to comment Share on other sites More sharing options...
Baggio Posted September 23, 2023 Share Posted September 23, 2023 (edited) I've only just come across this and it sounds like exactly what i need for my NAS. I'm struggling to get it working the way I want though. From reading your release notes we are able to cache non-archived files and that's what I'm trying to set up. Basically, I just want it to copy the game from my NAS to my LB SSD on launch, so do I need to set up each emulator in the extraction settings or can I have one setting for them all? At the minute I can't get it to cache anything, because i can't get my head around it lol Edited September 23, 2023 by Baggio Quote Link to comment Share on other sites More sharing options...
Baggio Posted September 23, 2023 Share Posted September 23, 2023 (edited) I think i may have it actually. I just need to check "Extract ROM archives before running" in each emulator and set copy in the "All" extraction settings to achieve what I'm after and that's all there is to it. Edited September 23, 2023 by Baggio 1 Quote Link to comment Share on other sites More sharing options...
JamesBond@ge Posted October 20, 2023 Share Posted October 20, 2023 On 9/9/2023 at 6:46 PM, W4rCh1ld said: Well ive gotta say that works an absolute treat!! Fragnator is awesome, mayn! Just sayin' Quote Link to comment Share on other sites More sharing options...
sammaxton Posted October 22, 2023 Share Posted October 22, 2023 (edited) Hey, firstly thanks for this awesome plugin. I have a tool that I made for adding PC games to Launchbox that are stored as compressed files on a network drive. In the new Omega version I am working on I am using your Archive Cache Manager to handle the extraction process which creates a cleaner more integrated look for launching the PC games in Launchbox. The problem I am having is that with some games when they are extracted into the cache folder some of the files are being deleted. This does not happen with all games but there are some that are having this issue. I was hoping you could shed some light onto why the cache manager is deleting some of the files. For some extra reference to the issue, I had to change the way I was compressing my games to compressing the entire game folder instead of the files within the game folder because when any game was extracted to the cache folder into the game folder created by the cache manager all the root files were being deleted. I was able to fix this by compressing the entire game folder, but as I stated with a few games I am having the issue with all the files being deleted in the game folder. Examples of the file structures: The original way was D:\Launchbox\Uncompressed Game Cache\(Name Of Game).7z - E6FE44\(Game Files) This would result in the game files being deleted. The workaround I am using D:\Launchbox\Uncompressed Game Cache\(Name Of Game).7z - E6FE44\(Name Of Game) Folder\(Game Files) This works with most games although there are few that I haven't been able to get to run even though it looks like all the files are there, but more concerning are the ones that the game files are still being deleted. Any light you might be able to shed on why this is happening would be awesome. I would really like to figure out how to get any PC game working properly with your Cache Manager. Thanks! Edited October 23, 2023 by sammaxton Quote Link to comment Share on other sites More sharing options...
huh123 Posted January 16 Share Posted January 16 @fraganator Sorry for the late response to your response. I am happy to report I was able to get multi-disc games working. I should have written down exactly what was the issue and how I solved it. I believe my current settings involve creating my own M3U manually and having the games copy rather than extract in the Archive manager settings. I also remember changing the disc settings in Launchbox for the individual titles and discs. Hopefully that helps if anyone else runs into issues! Unfortunately I did run into another issue recently. If you have games that you wish to softpatch with IPS files of the same name, I cannot get them to work. For example: I have my base game file, "Game A.game". I have a patch for it, "Game A.ips". If I run the Game A file through Retroarch, it softpatches properly. If I run it through Launchbox, the base game file runs and the soft patch is ignored. I've tried including the patch file in a single .zip or .7z that also includes the base game and have it extract the archive. When I do this and check what the archive manager extracts, it has a folder with both the patch and the base game and the base game does run successfully, but the patch is entirely ignored. Any thoughts/help on this? Thanks again for this amazing plugin, it's really a fantastic add-on! Quote Link to comment Share on other sites More sharing options...
Clutz450 Posted March 8 Share Posted March 8 Is it possible to use zstd zips with this? RomVault just added support for zstd and I converted a bunch of my ROMs before testing them. It turns out that RetroArch will not play the zstd ROMs and 7zip doesn't support uncompressed zstd. MAME already supports zstd and it sounds like this could be the new standard going forward. What are you thoughts? Thanks. Quote Link to comment Share on other sites More sharing options...
Tayley Posted March 17 Share Posted March 17 (edited) Downloaded and installed sucessfully the plugin, but seems it doesnt work for PS2 games (PCSX2 emulator) Even with the plugin installed, it attempts to run the .cue file instead of the .bin (see attached images) Also, havent tested this extensively, but seems none of the games I play appear on the Archive Cache Manager, tried with small and big size games, so I dont really know if the plugin doesnt work for me or im doing something wrong... SOLVED: Apparently, you have to keep the folder with its original name, or it doesnt work. WinRAR extracted the folder with a sighly different name, and then the plugin itself made the right Folder, but most of the extracted files (that make the plugin work) were still in the initially created folder with the wrong name. Merged both folders into a single one with the correct name, and now everything works! Edited March 17 by Tayley Solved myself :D Quote Link to comment Share on other sites More sharing options...
Clutz450 Posted May 22 Share Posted May 22 I'm not sure when this started but every time I try to launch a game, I get this error (7-zip returned an error when trying to extract the archive). I have pinpointed the issue to be something related to the Archive Cache Manager Plugin. I believe that because when I delete the plugin, all my games run fine. But when I have the plugin installed, every game I try to launch gives me this error. What can I do to fix this? Let me know if you need any additional information. Thank you. Quote Link to comment Share on other sites More sharing options...
Clutz450 Posted May 22 Share Posted May 22 So the issue I was having with Archive Cache Manager was my Norton Antivirus. I know, everyone tells me Norton is crap, but it came free with my LifeLock subscription so I installed it. I couldn't figure out exactly what Norton was blocking and even after excluding as much stuff as I could, it still didn't work. So I uninstalled Norton and now everything works again. I would still like to give Norton a chance, so if you have any ideas on what settings I would need to change to stop Norton from breaking your plugin, let me know and I'll give it a try. Thank you. Quote Link to comment Share on other sites More sharing options...
Ouija Posted May 22 Share Posted May 22 @Clutz450 Seems like you've lost ownership of your files, try using this powershell command (run as admin) on the directory where you keep your roms icacls Z:\ROMS /reset /t /c /l "Z:\ROMS" is just an example for the path of the directory containing your ROMs. Let me know if it works. Quote Link to comment Share on other sites More sharing options...
Clutz450 Posted May 22 Share Posted May 22 Thanks for your reply. I've talked to other people about it and they all told me (some more aggressively than other) to delete Norton and never reinstall it. lol. With Norton removed, everything is working as expected again. Quote Link to comment Share on other sites More sharing options...
Kronos9294 Posted July 4 Share Posted July 4 LOVE THIS PLUGIN! Has anyone found a good workflow for Rpcs3? Quote Link to comment Share on other sites More sharing options...
Crabi Posted September 12 Share Posted September 12 Hi everyone, I'm currently experiencing an issue with the Archive Cache Manager plugin, and I was hoping someone could help me out. When I launch a game for the first time, everything works perfectly—7-Zip extracts the archive and the game starts as expected. However, when I try to launch a second game, I get the following error message: "7-zip returned an error while trying to extract the archive." After some troubleshooting, I noticed that when I exit the first game, 7z.exe remains active in the Task Manager. This seems to prevent the next game from extracting properly and causes the error message to appear. Has anyone else encountered this issue? Any ideas on how to fix it? I'd really appreciate your help! Thanks in advance. Quote Link to comment Share on other sites More sharing options...
bearsfan1978 Posted 17 hours ago Share Posted 17 hours ago On 9/12/2024 at 2:01 PM, Crabi said: Hi everyone, I'm currently experiencing an issue with the Archive Cache Manager plugin, and I was hoping someone could help me out. When I launch a game for the first time, everything works perfectly—7-Zip extracts the archive and the game starts as expected. However, when I try to launch a second game, I get the following error message: "7-zip returned an error while trying to extract the archive." After some troubleshooting, I noticed that when I exit the first game, 7z.exe remains active in the Task Manager. This seems to prevent the next game from extracting properly and causes the error message to appear. Has anyone else encountered this issue? Any ideas on how to fix it? I'd really appreciate your help! Thanks in advance. I came here for an unrelated issue, but I was having that problem a bit ago. In my case, I use an external HDD and noticed that my HDD wasn't powered on for some reason, and thus not connected. Once I fixed that problem, the 7 zip issue was fixed immediately. Hope that helps. Quote Link to comment Share on other sites More sharing options...
bearsfan1978 Posted 17 hours ago Share Posted 17 hours ago I'm curious if anyone has tried using this plugin for MAME roms that utilize CHD files. For everything that isn't arcade, I use an external HDD for the mass storage of roms, but use ACM to bring them over to the LB SDD drive because of the quicker speed on the SDD. It's been great for PS2, etc. For MAME w/ CHD files though, I'm running into an issue where the rom loaded (say NFL Blitz) is put into MAME just fine, but because the CHDs are sitting on that slow Ext HDD, when the rom needs to access the CHD, it has to "wake up" the hard drive and load the voice, music, etc... This leads to the game stuttering for a few seconds (sometime up to 20 seconds because of my slow HDD). Has anyone found a way to use ACM to move over the rom CHD folder AS WELL as the much smaller, and zipped rom file? Sorry if that has been asked somewhere, but I can't see it anywhere. I'm assuming since MAME roms are not extracted and that MAME roms are traditionally relatively small, that fraganator doesn't really work on the coding to utilize this niche sector of games. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.