Skip to content

Instantly share code, notes, and snippets.

@hiiwave
Last active February 18, 2018 16:43
Show Gist options
  • Save hiiwave/9c5f380aaca9ddf472b7174a1ee7911c to your computer and use it in GitHub Desktop.
Save hiiwave/9c5f380aaca9ddf472b7174a1ee7911c to your computer and use it in GitHub Desktop.
Batch unpack patches of Tree of Savior

Batch unpack patches of Tree of Savior

  1. Download and unzip IPFUnpacker
  2. Make a copy of patch directory into the folder of IPFUnpacker
  3. Open cmd.exe, cd to the folder of IPFUnpacker.
  4. Batch decrypt all patch/*.ipf by command for /R %x in (patch\*.ipf) do ipf_unpack.exe %x decrypt
  5. Batch extract all lua and xml files by command for /R %x in (patch\*.ipf) do ipf_unpack.exe %x extract lua xml
  6. Now extract folder contains the latest updated lua scripts.

Notes

  • 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 the for loop after each patch extraction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment