- Download and unzip IPFUnpacker
- Make a copy of
patch
directory into the folder of IPFUnpacker - Open cmd.exe,
cd
to the folder of IPFUnpacker. - Batch decrypt all
patch/*.ipf
by commandfor /R %x in (patch\*.ipf) do ipf_unpack.exe %x decrypt
- Batch extract all lua and xml files by command
for /R %x in (patch\*.ipf) do ipf_unpack.exe %x extract lua xml
- Now
extract
folder contains the latest updated lua scripts.
- Since the for loop handles ealier patches (which have smaller version number) before later ones, it ensures that the output is the latest scripts.
- To get all latest scripts (not only the updated ones), just unpack
data/*.ipf
before unpacking the patches. - To get full version history, make it a git repository and add something like
git add extract/*; git commit -m $(VERSION_NUM)
in thefor
loop after each patch extraction.