Page 1 of 1

Some VPK packer script

Posted: Sat Jul 30, 2016 4:30 pm
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.

Re: Some VPK packer script

Posted: Sat Jul 30, 2016 8:25 pm
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

Re: Some VPK packer script

Posted: Sun Jul 31, 2016 10:04 am
by Lefty
Thats pretty awesome.
So with this i could talke rejuvenate ready homebrew and compile it?
Did you try it with CATFSC maybe? :)

Re: Some VPK packer script

Posted: Sun Jul 31, 2016 2:34 pm
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).

Re: Some VPK packer script

Posted: Sun Jul 31, 2016 4:23 pm
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 \
		$@