-
-
Notifications
You must be signed in to change notification settings - Fork 36
pp2 cruft
First of all, the editor/game must be running for this to work, ie click the launch button first, then navigate back to launcher window Console
tab.
Then you need to load pp2util module:
require 'pp2util'
Then select files you want to extract:
pp2match 'mask'
Mask is a lua pattern matched against internal filelist composed of all pp2s currently loaded. All files in there are of format 'ppfilename.pp/somefileinpp.suffix', and perhaps texture/subfolder/.../something.bmp
.
It's similiar to regexes, but wildcards are .*
, not just *
. Typically just knowing part of the filename will suffice, like so:
pp2match 'jg2p01_00_hexa_u.pp'
Will select all contents of pp file packed in pp2. You can narrow the selection to some particular contents, too:
pp2match 'jg2p01_00_hexa_u.pp/.*tga'
Will select only tgas in that file. If you're ok with what is selected, type:
pp2dump()
And it will save the files which were selected in last pp2match()
command.