Resource icon

PS3 Pop-fe a utility to create PSX Classics packages for PS3 v1.16

Thanks guys, I installed python 3.9 from that github and copied the missing dll and it's working again, not sure how it was working before because I had only python 2.7 installed before.
Older versions of pop-fe used older versions of python so you possibly had one that was compatible with Win7 before and updating broke it, but congrats on getting it working again.
 
Just reconverted a few CDDA games with the new feature to cut off the size and it's really great,I didn't even know you could do that. I've noticed a lot of ram being used when converting a two disc game though, not sure if it was because of this particular game (Ace Combat 3 JAP with English patch) or not.
 
I just found this thread after days of struggling with multi bin tracks. :crushed:

I´m a complete noob to pop-fe. I´m trying to read up on all the read me files but i still can´t seem to make it work.

I want to convert a multi bin game with CDDA audio for my PS3 CFW. I start pop-fe-ps3 and load up my cue file. When the packing process begins. Pop-fe tell me that i don´t have atracdenc. But it´s clearly in the pop-fe-ui folder? What am I missing?
 
I just found this thread after days of struggling with multi bin tracks. :crushed:

I´m a complete noob to pop-fe. I´m trying to read up on all the read me files but i still can´t seem to make it work.

I want to convert a multi bin game with CDDA audio for my PS3 CFW. I start pop-fe-ps3 and load up my cue file. When the packing process begins. Pop-fe tell me that i don´t have atracdenc. But it´s clearly in the pop-fe-ui folder? What am I missing?

What platform are you on, Windows?
How did you install pop-fe ?

For windows, download pop-fe-ui.zip from here: https://github.com/sahlberg/pop-fe/releases/tag/v1.10
Unpack it somewhere and then run pop-fe-psx.exe
 
What platform are you on, Windows?
How did you install pop-fe ?

Hi Ronnie!

Yeah, I'm on windows, running windows 11.
I downloaded the zip-file from github as you mentioned.

I thought that I needed to run pop-fe-ps3 specifically, but you're saying that I should run the psx.exe file instead?

Edit: I don't know if I helps but I also installed python as well.
 
Hi Ronnie!

Yeah, I'm on windows, running windows 11.
I downloaded the zip-file from github as you mentioned.

I thought that I needed to run pop-fe-ps3 specifically, but you're saying that I should run the psx.exe file instead?

Edit: I don't know if I helps but I also installed python as well.

Ah, sorry. I was confused. It is pop-fe-ps3.exe you should run, not pop-fe-psp.exe.

Let me try to find a windows machine somewhere around here and test in a few days. I am not sure I can find a win11 machine but I can try.

Can you open a command window and cd into the atracdenc/src directory and run atracdenc.exe and tell me what it says?
 
Can you open a command window and cd into the atracdenc/src directory and run atracdenc.exe and tell me what it says?

Of course! I'm just happy to help.

As soon as I run atracdenc.exe through commmand I get a system fault error message.
"Cannot run, missing MSVCP140.DLL."

If I try to add the missing DLL file directly in the src/root of atracdenc, and run again. I still get a program fault message. "Could not run program correctly (0x00007b)."

Since MSVCP140.DLL is part of Microsoft Visual C++ Redistributale - I have already uninstalled and reinstalled the latest version 14.38.33135, with no effect.

EDIT: Future me here, I was curious if the problem was Win11 related so i swapped my boot drive on my PC to a Win10 drive. Sadly, I still have the same problem. "atracdenc not found"
 
Last edited:
Of course! I'm just happy to help.

As soon as I run atracdenc.exe through commmand I get a system fault error message.
"Cannot run, missing MSVCP140.DLL."

If I try to add the missing DLL file directly in the src/root of atracdenc, and run again. I still get a program fault message. "Could not run program correctly (0x00007b)."

Since MSVCP140.DLL is part of Microsoft Visual C++ Redistributale - I have already uninstalled and reinstalled the latest version 14.38.33135, with no effect.

EDIT: Future me here, I was curious if the problem was Win11 related so i swapped my boot drive on my PC to a Win10 drive. Sadly, I still have the same problem. "atracdenc not found"

Pop-fe really just downloads a precompiled version of atracdenc from :
https://github.com/dcherednik/atracdenc/releases
I currently don't actually use the very latest version but they should all work.

Can you try downloading different releases of the pre-compiled windows binaries from the link above and tell me which ones work for you?
 
Can you try downloading different releases of the pre-compiled windows binaries from the link above and tell me which ones work for you?

Hi Ronnie,

I may be blind but I cannot find any pre-compiled releases besides the most current one under the release page. Only atracdenc-win-x86_0.1.1.zip - or am I looking in the wrong depository?
 
Hi Ronnie,

I may be blind but I cannot find any pre-compiled releases besides the most current one under the release page. Only atracdenc-win-x86_0.1.1.zip - or am I looking in the wrong depository?

You might have to click around a bit but just test the very latest version 0.1.1. If it works or not.
If not you may need to recompile it locally.
 
Thanks guys, I installed python 3.9 from that github and copied the missing dll and it's working again, not sure how it was working before because I had only python 2.7 installed before.
Which one did you install, 3.9.0? I'm on Windows 7 and i have the same problem, i tried to install the full exe and copy the dll from the embed_amd64 zip but it didn't work
 
Ok i managed to make it work, i installed the python-3.9.0-full.exe and i copied all the DLLs files of python-3.9.0-embed-amd64.zip to the folders Windows\System32 and \Windows\SysWOW64 (not on the pop-fe-ui\_internal folder, it doesn't work for me that way)

However, i get a memoryerror when i try to make a multi disc pkg
pop-fe memory error.jpg


It says the pkg was created but nothing was created at all
 
Ok i managed to make it work, i installed the python-3.9.0-full.exe and i copied all the DLLs files of python-3.9.0-embed-amd64.zip to the folders Windows\System32 and \Windows\SysWOW64 (not on the pop-fe-ui\_internal folder, it doesn't work for me that way)

However, i get a memoryerror when i try to make a multi disc pkgView attachment 42663

It says the pkg was created but nothing was created at all

That is a python error. The python interpreter basically failed to allocate memory.

It means that it ran out of memory. You may need to increase the amount of virtual memory on your machine. Make the paging file 5GByte bigger or so.
 
Ok i managed to make it work, i installed the python-3.9.0-full.exe and i copied all the DLLs files of python-3.9.0-embed-amd64.zip to the folders Windows\System32 and \Windows\SysWOW64 (not on the pop-fe-ui\_internal folder, it doesn't work for me that way)

However, i get a memoryerror when i try to make a multi disc pkgView attachment 42663

It says the pkg was created but nothing was created at all

That's something I kind of ran across too, the program is great but it's really heavy on resources when creating the pkg file, my laptop almost crashed trying to create a 2disc game.
 
That's something I kind of ran across too, the program is great but it's really heavy on resources when creating the pkg file, my laptop almost crashed trying to create a 2disc game.

Yeah, python is kind of like that.

It is very easy to prototype in but it is also very hard to manage memory in, because it is such a high-level language.
pkg.py comes from PSL1GHT and does all its work in in-memory allocated blobs, because that it the python way.

If it really becomes a major problem I can try to change it to do all the manipulations in on-disk representations instead and send a pull request to the PSL1GTH folks. But it would be a significant amount of work so I wont attempt it unless it becomes very urgently needed.

Python is a garbage collected language. The benefit is to the developer in that you don't have to worry about memory management (which is hard) and it "just works". the drawback is what you see. It is hard to stop it from consuming perverse amount of memory :-(
 
Yeah, python is kind of like that.

It is very easy to prototype in but it is also very hard to manage memory in, because it is such a high-level language.
pkg.py comes from PSL1GHT and does all its work in in-memory allocated blobs, because that it the python way.

If it really becomes a major problem I can try to change it to do all the manipulations in on-disk representations instead and send a pull request to the PSL1GTH folks. But it would be a significant amount of work so I wont attempt it unless it becomes very urgently needed.

Python is a garbage collected language. The benefit is to the developer in that you don't have to worry about memory management (which is hard) and it "just works". the drawback is what you see. It is hard to stop it from consuming perverse amount of memory :-(

I understand, it's also not your fault some peasants like me are still using computers with so little ram! lol Thank you for you hard work on this, it really simplifies the whole process specially for cdda games.
 
I understand, it's also not your fault some peasants like me are still using computers with so little ram! lol Thank you for you hard work on this, it really simplifies the whole process specially for cdda games.

I had some spare time today so I had a go at reducing the memory consumption of pkg.py
Please try this build : https://github.com/sahlberg/pop-fe/actions/runs/8677042320

When encrypting the PKG it basically copied the file contents into a plaintet buffer and then generate a cipher buffer, all in memory.
Leading to all file data being stored three times in memory.
I rewrote it to do the processing in a temporary file instead and in tests with RE2 the peak memory consumption dropped from ~3.7G to ~1.2G when running pkg.py.

This is the change to pkg.py :
https://github.com/sahlberg/PSL1GHT/commit/9a24d3986148748c4c27c06f56bef316775ca717

I don't use the upstream PSL1GHT but rather a fork of a fork as at the time upstream did not yet have converted it to python3.
We need to check if the PSL1GHT folks want this patch.
Then I should switch to use their version instead of the fork of a fork I use currently.

EDIT:
I added another commit to https://github.com/sahlberg/PSL1GHT/tree/use-python3
This brings down the peak memory consumption of pkg.py to ~25M when generating the RE2 pkg.
If someone wants to try to get these two patches into upstream PSL1GHT that would be awesome.
 
Last edited:
I had some spare time today so I had a go at reducing the memory consumption of pkg.py
Please try this build : https://github.com/sahlberg/pop-fe/actions/runs/8677042320

When encrypting the PKG it basically copied the file contents into a plaintet buffer and then generate a cipher buffer, all in memory.
Leading to all file data being stored three times in memory.
I rewrote it to do the processing in a temporary file instead and in tests with RE2 the peak memory consumption dropped from ~3.7G to ~1.2G when running pkg.py.

This is the change to pkg.py :
https://github.com/sahlberg/PSL1GHT/commit/9a24d3986148748c4c27c06f56bef316775ca717

I don't use the upstream PSL1GHT but rather a fork of a fork as at the time upstream did not yet have converted it to python3.
We need to check if the PSL1GHT folks want this patch.
Then I should switch to use their version instead of the fork of a fork I use currently.

EDIT:
I added another commit to https://github.com/sahlberg/PSL1GHT/tree/use-python3
This brings down the peak memory consumption of pkg.py to ~25M when generating the RE2 pkg.
If someone wants to try to get these two patches into upstream PSL1GHT that would be awesome.

That is awesome man, thank you so much! I want to try it out but I couldn't find a link in that page.
 

Similar threads

Back
Top