Jump to content
LaunchBox Community Forums

Can't play a zipped game a 2nd time? 7z returns an error.


GreaterMuta
 Share

Recommended Posts

So i've stumbled upon an issue with my launchbox setup. If i play a PS2 game i have zipped it will extract it, load it, and i can play it as expected. The problem is if i then try to play the game again i get an error return from 7z. Now i've worked out that it's down to the extracted ISO sitting in the 7z temp folder, as once i delete this the game will extract and load as wanted. Obviously this is a problem as having to manually go into that folder and delete an extracted ISO is a huge pain. Honestly i don't want there to be a large number of extracted ISOs sitting there either (is this limited?). I wouldn't mind if it retained the last 5 played for faster loading, but it's actively preventing me from being able to play. I also noticed when looking into this that i had 6 instances of Retroarch running in the background when i looked at task manager. I assume these are from previous games i played, but why are they still there 2hrs after i closed them? Feel like i've got something setup incorrectly here, so any advice would be appreciated.

Link to comment
Share on other sites

Hi @GreaterMuta, I'd say RetroArch not exiting correctly is the main cause of the issue. LaunchBox won't clear the temp folder while it still thinks a game is being played (ie it can see the RetroArch process running). And when it does attempt to override the files when you play a 2nd time, 7z throws an error because RetroArch probably has a lock on those files. As to why it isn't exiting correctly, I'm not sure. Is it only happening with PS2 games? Did you modify the Exit Script for RetroArch in the emulator settings?

LaunchBox only keeps the current game in the temp folder. If you're looking to keep a few recently played games extracted, I've written a plugin called Archive Cache Manager which does exactly that, skipping the extraction time when launching the game a second time. I suspect the plugin will also help with your issue trying to play the game a 2nd time, though it would be good to resolve the RetroArch exiting issue.

Link to comment
Share on other sites

Thank you for the reply! I haven't modified the exit script in any way and the issue wasn't happening with other disc based platforms i have setup in a similar fashion (zipped archives to be extracted on launch). So the issue definitely seems linked to the PS2 setup rather than a general issue. I'm using the PCSX2 core with Retroarch, so maybe this is causing the issue?

Link to comment
Share on other sites

It could possibly be the PCSX2 core, given other cores work. I've only used PCSX2 standalone but haven't had any problems. Maybe try enable both verbose and log to disk logging options in RetroArch (under Settings -> Logging), and see if there's errors in the log file when starting and exiting a PS2 game (it should be in the RetroArch\logs folder).

Link to comment
Share on other sites

13 hours ago, fraganator said:

It could possibly be the PCSX2 core, given other cores work. I've only used PCSX2 standalone but haven't had any problems. Maybe try enable both verbose and log to disk logging options in RetroArch (under Settings -> Logging), and see if there's errors in the log file when starting and exiting a PS2 game (it should be in the RetroArch\logs folder).

In a bizarre twist which i can't explain, the issue has stopped happening. The system hasn't been shutdown or anything either as i left it updating art assets overnight. But i turned on logging today as you suggested to see if i could get more info and it's failing to repeat the same issue for whatever reason, even after the exact same thing happening all night. I'm happy its working, but more confused than i was haha

  • Game On 1
Link to comment
Share on other sites

5 hours ago, GreaterMuta said:

In a bizarre twist which i can't explain, the issue has stopped happening. The system hasn't been shutdown or anything either as i left it updating art assets overnight. But i turned on logging today as you suggested to see if i could get more info and it's failing to repeat the same issue for whatever reason, even after the exact same thing happening all night. I'm happy its working, but more confused than i was haha

Glad it's working now. I had a quick look around for the issue, and it appears to be a known bug in the PCSX2 core. Hopefully it gets fixed soon.

Quote

There’s a bug that can happen right now upon closing content or exiting RetroArch with the PCSX2 core on Windows – the RetroArch process might not completely cleanly shut itself off and you might still be able to see a 0% CPU process remaining in the Task Manager. We have not been able to figure out how to fix that yet as the PCSX2 codebase is a definite case of ‘here be dragons’, but for now when this happens, you can just bring up the Task Manager and close it manually.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...