mmozeiko / pkg2zip Goto Github PK
View Code? Open in Web Editor NEWDecrypts PlayStation Vita pkg file and packages to zip archive
License: The Unlicense
Decrypts PlayStation Vita pkg file and packages to zip archive
License: The Unlicense
error on pkg extraction with -x arg
or
pkg2zip v1.8
[] loading...
[] unpacking Vita PATCH
ERROR: cannot create 'patch/PCSI00011/sce_sys/package/cert.bin' file
When using pkg2zip with NPS Browser, everything works fantastically with the exception of the DLC for the PSP system. The .pkg file for the DLC will download, but pkg2zip is unable to properly extract that data.
I wasn't sure whether to post this as a bug or a feature request.
Whenever I used the -l command to run the program, it always returned this error in the console on Windows :
This version of C:\Users\otega\Downloads\pkg2zip.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
when i pass the out put zip file through trrntzip the final output will be zero byte. not actually this program fault but output maybe non standard zip format ?
Some compiling errors when compiling on Raspberry Pi 3 B+. Works perfectly fine on my PC.
$ make
[C] pkg2zip_aes.c
[C] pkg2zip.c
[C] pkg2zip_crc32.c
[C] pkg2zip_aes_x86.c
cc: error: unrecognized command line option ‘-maes’; did you mean ‘-mapcs’?
cc: error: unrecognized command line option ‘-mssse3’
makefile:28: recipe for target 'pkg2zip_aes_x86.o' failed
make: *** [pkg2zip_aes_x86.o] Error 1
I try run make when compile, but make install not work here, i now know how to install this package.
pkg2zip v1.6 error seems to only on patch extraction (no zip file). without -x arg extraction working fine
pkg2zip.exe -x mypkgfile.pkg (same with added zrif)
...
[23/24] sce_pfs/pflist
[24/24] sce_sys/package/digs.bin
ERROR: cannot create 'patch/PCSE00680/sce_sys/package/digs.bin' file
http://gs.ww.np.dl.playstation.net/ppkg/np/PCSE00680/PCSE00680_T0/ee26b55db65c4b41/UP4403-PCSE00680_00-SPARKLEUNLEASHED-A0101-V0101-1274bf4b92dce125081c8ee295d999fe51a96887-PE.pkg
or
http://gs.ww.np.dl.playstation.net/ppkg/np/PCSE00339/PCSE00339_T2/f75debdfce6af542/UP3643-PCSE00339_00-DUKE3DHDUSVITA00-A0101-V0102-8f63a6108a67372a2cf8b55eb78f55ad763c69aa-PE.pkg
Please add option to create folder as target for extraction. It would be very useful to have "addcont, app, patch" automatically in one folder. Thank you very much.
Right now PocketStation is recognized and extracted as PSX title (which is most likely wrong, since its PS Vita app) and produce no files.
pkg2zip v1.8
[*] loading...
[*] unpacking PSX
[*] unpacking completed
[*] done!
-Werror causes compile to fail on gcc 8.1.1 with -Werror=format-truncation=
Disabling -Werror allows it to compile with warnings.
Any game created with the CSO feature hangs on Adrenaline, but works fine on PPSSPP.
To confirm it was the feature, I manually uncompressed the file and ran it successfully in Adrenaline. I used a third party tool to compress it to a CSO (level 9 compression) again, and that worked fine as well.
For some reason, any CSO created by this program just hangs on Adrenaline-6 fix (the version that fixed the CSO hang bug.)
Is it possible to add unpacking theme files to pkg2zip? Content type is 0x1f
On my Linux system, when I try to compile I get the following:
$ make
[C] pkg2zip_utils.c
[C] pkg2zip_aes.c
[C] pkg2zip.c
[C] pkg2zip_crc32.c
[C] pkg2zip_aes_x86.c
[C] pkg2zip_zip.c
[C] pkg2zip_crc32_x86.c
[C] pkg2zip_sys.c
pkg2zip_sys.c: In function ‘sys_read’:
pkg2zip_sys.c:157:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (read != size)
^
pkg2zip_sys.c: In function ‘sys_write’:
pkg2zip_sys.c:166:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (wrote != size)
^
cc1: all warnings being treated as errors
makefile:36: recipe for target 'pkg2zip_sys.o' failed
make: *** [pkg2zip_sys.o] Error 1
I'd work similar to pkg_dec's --raw option, providing decrypted pkgs file.
Such feature is very useful for people that wish to research certain pkg files [examples: pocketstation (see: #21) or PSN_get_pkg_info development]
Previously I was using pkg_dec with NPS Browser (I also contributed to NPSB) and it had the option to provide an output directroy for extracted files.
I'd like to be able to do the same thing with pkg2zip since it organizes the files in a much cleaner way.
Right now we get a single app
and addcont
directory where all the games end up. I'd much rather extract games into their own directories like this:
{gameTitle} ({region}) [{titleID}]
|-addcont
|-app
\-license
i.e. pkg2zip -x {pkgFile} {zRifKey} -o ".\{gameTitle} ({region}) [{titleID}]"
Thanks!
in PSM Unity titles, runtime
directory is extracted into the wrong directory.
Right now its: /psm/GAMEID/RO/runtime/
while it should be: /psm/GAMEID/runtime/
LiveArea update pkg's.. used to update ux0:/addcont and change stuff on the livearea without updaing the whole game.
do not work, heres an example file: http://livearea.np.dl.playstation.net/livearea/e/info/np/PCSG00490/e191c38c9d65e1ffcb182a477341fb649d868a4607616b9180c2b1c36ab0ee90/PCSG00490-0.pkg
It'd be cool if we can set an output path - my copy of pkg2zip zipped the file into sys32 folder.
This would treat PSP eboots as PSX eboots are treated now and extract into the same folder structure.. i.e. ../PSP/GAME/{ID}
With currently available tools its not necessary to unpack all the way to ISO. eboots can run in their native format, retain their original compression, along with any associated document.dat.
Please update build.cmd as following to make it more flexible for different VS setups, e.g. in my case I only use VS build tools which are in "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools"
@echo off
if not "%VSINSTALLDIR%" == "" goto vsdevcmd_present
echo Please run %~0 inside a Visual Studio 2017 Tools Developer Command Prompt
exit /B
:vsdevcmd_present
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
cd /d "%~dp0"
...
When obtaining a PSP game from NPS Browser, pkg2zip automatically names the file with the naming convention of "Title [Game ID].iso", while using the default params (-x {pkgFile} "{zRifKey}").
This is a request to add a param for the region. Ideally I'd like to have it automatically name the PSP games with a naming convention of "Title (Region) [Game ID].iso".
A param for language(s) may also be helpful.
Thanks in advance!
This tool now does much more than outputting to zip, including outputting to an extracted folder, or to ISO/CSO. So maybe it should be renamed pkgtool or similar? Or pspkgtool to make it clear it is PlayStation-specific, as opposed to other types of PKG files.
It would be nice to add an parameter (f.e. -l) to output only the file name of outputted zip.
like
pkg2zip -l example_game.pkg
Example Game US PCSE001234.zip
So it can easily be scripted like this
#!/bin/bash
MY_FILE=$(pkgzip -l example_game.pkg)
pkg2zip example_game.pkg
mv $MY_FILE /new/destination
...
I just want to know if this is possible to build the app for android
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.