Advertising (This ad goes away for registered users. You can Login or Register)

Some VPK packer script

HENkaku is a native Homebrew Enabler for the PS Vita and PS TV. It lets you run homebrews on the PS Vita
Locked
Akabane87
Posts: 35
Joined: Fri Feb 11, 2011 12:51 pm
Contact:

Some VPK packer script

Post by Akabane87 »

Hey guys,

I just installed the toolchain and realized that I had to type lost of command line and do lots of things manually to get a VPK from my source code. So I decided to put everything into a batch to automate the whole build process.

https://www.mediafire.com/?rpf924820eza862
IMPORTANT : You need to setup the toolchain correctly to make these scripts work !

It's just the first draft and it assumes that the makefile is in the same folder as the outputed velf, but you can easilly change the script to make it work with your projects if it's not working as is.


Feel free to use, share, modify freely ;)

Cheers.


Edit : I forgot to palettize the pngs... I reuploaded under the same DL link the archive. It's working now. Also don't forget to save the png in palettized format too if you modify the images.
Advertising
Akabane87
Posts: 35
Joined: Fri Feb 11, 2011 12:51 pm
Contact:

Re: Some VPK packer script

Post by Akabane87 »

I just update the archive with some fixes :
- set the title id manually in build.bat
- Fix the script when started directly rather than from cmd
Advertising
Lefty
Posts: 33
Joined: Mon Jan 27, 2014 2:07 pm
Location: Germany

Re: Some VPK packer script

Post by Lefty »

Thats pretty awesome.
So with this i could talke rejuvenate ready homebrew and compile it?
Did you try it with CATFSC maybe? :)
Akabane87
Posts: 35
Joined: Fri Feb 11, 2011 12:51 pm
Contact:

Re: Some VPK packer script

Post by Akabane87 »

You can either use it on source code directly using build.bat, or on a prebuilt velf or eboot.bin built with the vita toolchain.

I tried it with Xerpi's HelloWorld and it's working perfectly.

Otherwise you can grab xerpi's fork toolchain that contain a vpk packer exe. But from what I've seen, his packer seems to pack the eboot.bin without icon and background (or you have to manually add each image folders struc of the livearea and so on what is a bit tedious).
xerpi
HBL Collaborator
Posts: 139
Joined: Sat Apr 23, 2011 10:45 am
Location: Barcelona

Re: Some VPK packer script

Post by xerpi »

You can add more content to the VPK using vita-pack-vpk, see:

Code: Select all

%.vpk: eboot.bin param.sfo
	vita-pack-vpk -s param.sfo -b eboot.bin \
		-a icon0.png=sce_sys/icon0.png \
		-a template.xml=sce_sys/livearea/contents/template.xml \
		-a bg0.png=sce_sys/livearea/contents/bg0.png \
		$@
Locked

Return to “HENkaku”