Page 1 of 1

Homebrew -> VPK?

Posted: Sun Sep 24, 2017 10:20 pm
by whackm
Hey all, it's no problem for me to install a VPK, but is there any app that will take a homebrew app and convert that to a VPK?

It seems that apps such as Vitamin will not convert an unsigned app to a VPK... is that correct?

Re: Homebrew -> VPK?

Posted: Mon Sep 25, 2017 1:14 am
by fate6
vpk is just a renamed zip.

Re: Homebrew -> VPK?

Posted: Tue Sep 26, 2017 10:20 pm
by whackm
So I should just zip the ux0:app/PCDXXXXXX directory and rename it to blahblah.vpk ... are there any other files I need to worry about outside of this directory???

Re: Homebrew -> VPK?

Posted: Sat Sep 30, 2017 7:09 pm
by whackm
Hey guys, I tried to just zip a homebrew on ux0:/app/blahblah, but then when I tried to install this on another PSVita, it gave an error... is there some other directory I need ?

Re: Homebrew -> VPK?

Posted: Thu Dec 21, 2017 5:44 am
by randname
Though a VPK is just a zip file, you cannot do any compression to files in it, or the VPK file won't be recognized correctly. In the compression software (WinZip, WinRAR, 7-zip, etc.), There is always a setting for you to choose how much you want to compress to files. Set it to "no" or "storage" or "archive" and then compress the homebrew to a zip file and then rename it to .VPK.

No matter where you put the VPK file, the VitaShell could install it, but I don't suggest you to put it in dangerous places such as OS0:, UR0: ,though there might be places.

Re: Homebrew -> VPK?

Posted: Thu Dec 21, 2017 8:25 am
by dmaskell92
randname wrote:Though a VPK is just a zip file, you cannot do any compression to files in it, or the VPK file won't be recognized correctly. In the compression software (WinZip, WinRAR, 7-zip, etc.), There is always a setting for you to choose how much you want to compress to files. Set it to "no" or "storage" or "archive" and then compress the homebrew to a zip file and then rename it to .VPK.

No matter where you put the VPK file, the VitaShell could install it, but I don't suggest you to put it in dangerous places such as OS0:, UR0: ,though there might be places.
That's not true, a vpk can be any compressed zip. The error OP is making is because of file structure. You don't need to zip "ux0:app/PCDXXXXXX", you only need to zip the contents of PCDXXXXXX.

I would recommend downloading any VPK, rename the VPK to ZIP and open it to get a file structure example.

Re: Homebrew -> VPK?

Posted: Fri Dec 22, 2017 12:09 pm
by randname
dmaskell92 wrote:
randname wrote:Though a VPK is just a zip file, you cannot do any compression to files in it, or the VPK file won't be recognized correctly. In the compression software (WinZip, WinRAR, 7-zip, etc.), There is always a setting for you to choose how much you want to compress to files. Set it to "no" or "storage" or "archive" and then compress the homebrew to a zip file and then rename it to .VPK.

No matter where you put the VPK file, the VitaShell could install it, but I don't suggest you to put it in dangerous places such as OS0:, UR0: ,though there might be places.
That's not true, a vpk can be any compressed zip. The error OP is making is because of file structure. You don't need to zip "ux0:app/PCDXXXXXX", you only need to zip the contents of PCDXXXXXX.

I would recommend downloading any VPK, rename the VPK to ZIP and open it to get a file structure example.
I got the experience that I downloaded OneMenu for PSVita and zipped it into a zip file, rename it to .vpk, and the PSVita gave me an error while installing it. For the second time, I zipped the same files, but set the compress method to "archive" and the PSVita installed it successfully.

Besides, no matter you rename other pre-packaged VPKs into *.zip or *.rar or *.7z , the compression software can always open it, which means the files in VPKs are not compressed. If the files inside are compressed, you cannot rename it to *.rar or *.7z, and still open it, because the compression algorithm of ZIP, RAR and 7Z are different.

And what you said is correct, a VPK file with something like "/PCDXXXXXX/*.*" inside cannot be installed.

P.S. I don't know if there is any need to make this clarify, but I'm not arguing or trying to persuade others for "the files in VPK cannot be compressed". It's just my... little experience.

Re: Homebrew -> VPK?

Posted: Fri Dec 22, 2017 6:45 pm
by dmaskell92
I don't know what kind of problems you have, but I have made several VPK mods for the scene and "store" mode on Zip/VPK files hasn't been required in a long time.