mmozeiko / pkgi Goto Github PK
View Code? Open in Web Editor NEWpkg download & installation directly on Vita
License: The Unlicense
pkg download & installation directly on Vita
License: The Unlicense
Download should happen in background. This requires #2 to be implemented first.
Some text editors like to insert utf-8 BOM at beginning of file. pkgi should ignore BOM if it is present.
Hello. Ihave some question. 1) do u want to update PKGi? 2)where i can take a game list from PKGi ? 3) what u want realise in a new version ?
I Want to see the size of the file
See subject. Of course, using such files would mean having to ignore lines that don't have licenses, etc.
When in the middle of download sometimes there is prompt(i think it's vita prompt, not sure) that says the memory cards is removed and then after i press ok the system restart. So far i only encountered this problem when installing valkyrie drive bhikkuni, after restart i can resume the progress normally. I tried other games and the only one that show this problem is this game. it happen 1-3 times in one download, sometimes it doesn't happen at all.
Another problem with same game, it always says integrity check failed after download, wether the previous issue happen or not. i tried 6times with same result. The "memory card is removed" issue show up in 4 of 6 attemp.
It's working for like 30 minutes, then it will give you an error "cannot send HTTP request" I have a ghetto solution by delete and recreate the pkgi folder with the pkgi.txt again.
Edit: now the solution doesn't work with me, just hoping someone to point out where it really is.
I want files to be installed into specific path
As a protective measure, including the entire Unlicense text is probably a good idea. Mostly just the last paragraph that says you're not responsible for what the software may do or be used for.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>
you could rename resume file from titleid.resume (now) to contentid.resume because it can couse issue in the future when updates and dlcs will be supported, for example if i start download one dlc, i will cancel it and i start download second dlc with the same title id
edit:
or even better contentid_app.resume, contentid_update.resume, contentid_dlc.resume, because i forgot app and update have the same content id or something other unique like pkgfilename.resume
regards
Show better error message when cannot use network.
The vpk file (0.05) is from 25th October and last change on source code is from 20th November.
Please create a new vpk file.
Note: i recognized at chapter 'Building', that you explained how to do it, but it's difficult for me.
Thanks in advance,
komser
CSV stands for "Comma-separated values". But what happens when the value has a comma in it?
Per standard, all^W most implementations will quote the value, like this:
1,"Deathbase 900,000,000",3
pkgi fails to parse here, resulting in things like screenshot:
https://files.catbox.moe/dspr1d.jpg
tool crash if pkgi returns No items! and we press x:
Just a quick question -- did you write these implementations yourself? They look really useful :) Were you planning on maybe using those implementations in future projects?
installation with empty zrif:
if i want to install pkg (local license) without zrif tool returns error - installation failed unfortunately when download is finished. better idea would be check pkg license type before installation
delete files if installation failed:
if installation failed all files are still present in ux0:pkgi/titleid and since we can't resume/reinstall after installation failed (download starts from the begining) they are not needed
Not sure why this happens but when I search for 'solider' and press enter, the app freezes. It won't respond to any button presses. No choice but to manually close the app and restart it.
I think this happens anytime a game is not listed. I typed in "NFL game" just as a test and the same thing happened.
Search should support finding similar strings instead of doing exact match:
For example: boddelansd
should find Borderlands
.
Is there a way to use Overclock or Amphetamine with pkgi games?
it will nice to have a button to erase games and incomplete games, this would be faster than going to livearea and deleted them manually, or going to pkgi folder to delete incomplete games.
Also it would be nice to have preview covers for the games, like front back covers, screenshots, information about the game, video preview or trailers of the game.
Just an idea XD.
When downloading a game over 1.5GB, the loader freezes (small progress bar/info screen), this happens on all the games over 1.5GB+ and thus gets irritating.
I am unable to check whether the game has downloaded or not, as the orgress suddenly stops at around 17-19% e.g.
I download a game: Persona 4 Golden >> Size is 3GB+ >> ETA: say about 29 mins >> PROGRESS STARTS >> PROGRESS @ 17% Loader Freezes completely, but download is continuing in the background >> only issue is you can not determine when the download is going to be completed as the progress bar/completion status has all but frozen.
Please check and fix.
The ui is really nice but it doesnt indicate weather x or o is enter on the bottom bar.
I would find the ability to remove partal downloads from within pkgi useful. Thanks for pkgi.
Basically the game downloads then when it try to install it will say "ERROR installation Failed"
Can anyone help?
Hi, I have been contributing and using the app but the screens since its gonna suffer for the burn in effect of leaving it on all the time why not implement the screen off functionality of the vita shell? its on GitHub open source so it should be easy to implement so the screens won't suffer so much with both old or lcd and better electricity consumption. Thanks for the amazing idea mmozeiko have been great since Sony downed us with the activation error.
There's no way to see which new games were added
hey i need game one channel in pkgi to download plz can you add this aplication in pkgi
create pkgi dir and empty pkgi.txt if not exists on the same partition where pkgi app is installed or if partition ux0 exists - create on ux0 else create on ur0 (for vitas without memory card and internal storage)
When resuming download pkgi calculates available space vs full download size, it should calculate vs full size - already downladed
Hello Mozeiko !
First time thank you for the application, it's really great work.
It's possible to add an autoupdate to the PKGi application?
Thx
When using search function if the result is only 1, i can't select it. For example in my list there is only 1 version of dariusburst then i can't select it, but if i search tearaway that have 3 version i can select it normally.
I'm trying to detach as much as possible from the ux0. It would be great if in pkgi_get_pkgi_folder you can add the logic to check for ur0:pkgi and return that if it exists. I don't have a Vita compile env setup or I'd provide the code.
I have to say great code. It shows how well it was written that a feature can be added with only a few lines of extra code.
Of course you use that for temp storage also. Didn't think of that till later.
When items in pkgi.txt have no zRIF strings, try to lookup fake license in @VitaSmith license.db file.
It would be awesome to have not just psvita games in pkgi, but dlc, psm (playstation mobile), psp,ps1,minis, all the content in one app, that must be the reach goal of pkgi, just an idea.
just a small suggestion, no real need, just want.
At startup check if new version of pkgi is available. If it is, then notify user about it.
I have the SD card adapter, and I'd like to download all the games I have on cart, to my SD card. But when I try it errors out saying they've been installed already.
Add ability to download & unpack DLC pkg files.
If the pkgi.txt file is ever meant to be edited (to which I assume it will be), then using YAML seems like a good choice. The main advantages for YAML are that it is much more readable, allow not including entries, and don't add a lot of 'overhead' for file size. Here is a simple comparaision:
CSV format (original):
UP2089-PCSE00582_00-ADVENTURETIMEPAK,0,Adventure Time,,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,http://zeus.dl.playstation.net/cdn/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/dummy.pkg,371557824,a5d40400375659b619391128745d0aa419dea15149b276cc696577dc76b329ac
EP0082-PCSB00975_00-ADVENTURESOFMANA,0,Adventures of Mana,,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,http://zeus.dl.playstation.net/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/dummy.pkg,532326688,387845c6100dcf12be914220e246cbf5c227c12c79d686f8231fc3d166c85f0f
JP0082-PCSG00759_00-SEIKENFFGAIDENRM,0,Adventures of Mana,聖剣伝説FF外伝,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,http://zeus.dl.playstation.net/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/dummy.pkg,375289280,566642fbfe8b4c9ac2f5690b001e61b7bca609a3a5ef94b22b04e8d19c30e0c4
YAML:
- contentid: UP2089-PCSE00582_00-ADVENTURETIMEPAK
flags: 0
name: Adventure Time
zrif: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
url: http://zeus.dl.playstation.net/cdn/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/dummy.pkg
size: 371557824
checksum: a5d40400375659b619391128745d0aa419dea15149b276cc696577dc76b329ac
- contentid: EP0082-PCSB00975_00-ADVENTURESOFMANA
flags: 0
name: Adventures of Mana
zrif: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
url: http://zeus.dl.playstation.net/cdn/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/dummy.pkg
size: 532326688
checksum: 387845c6100dcf12be914220e246cbf5c227c12c79d686f8231fc3d166c85f0f
- contentid: JP0082-PCSG00759_00-SEIKENFFGAIDENRM
flags: 0
name: Adventures of Mana
name2: 聖剣伝説FF外伝
zrif: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
url: http://zeus.dl.playstation.net/cdn/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/dummy.pkg
size: 375289280
checksum: 566642fbfe8b4c9ac2f5690b001e61b7bca609a3a5ef94b22b04e8d19c30e0c4
Note how with YAML, the item doens't need to be included if it's empty, here name2. Here you could also remove the flags entry when it is 0 (blank). Taking advantage of these tricks we end up with a file that has very close filesize to the original csv (using input with about 900 entries):
$ du -b pkgi.yaml pkgi.csvoriginal
387951 pkgi.yaml
340393 pkgi.csvoriginal
which amounts to a ~12,2% filesize increase from the transformation to YAML.
Currently, there is no way to install pkg files that have no zRIF(and yet work without one just like Baseball Riot). I suggest allowing to install the titles that have "NO REQUIRED" set as zRIF (and ignore this value during install).
i have this problem when i download a game, for example i had 3 gb of free space, a game size is 2.50 gb, when is 50% on download and i lost connection, when i want to resume the download, the program said there is no free space Available, but thats not true, the space is occupied by the same download in progress, but it take reference from the free space Available.
i think pkgi must reserve space before start downloading, because of this issue, resuming downloads with mininal enought space, is causing problems.
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.