27 releases (6 stable)

1.0.5 Mar 3, 2024
1.0.4 Aug 14, 2023
1.0.1 Apr 8, 2023
0.7.0 Apr 6, 2023
0.5.2 Mar 6, 2023

#17 in #unreal-engine

Download history 3/week @ 2024-02-22 116/week @ 2024-02-29 23/week @ 2024-03-07 35/week @ 2024-03-14 37/week @ 2024-03-28 28/week @ 2024-04-04

103 downloads per month

MIT/Apache

33KB
706 lines

unpak is now deprecated! use the repak fork for oodle support and writing

unpak

a no-nonsense unreal pak parser

  • doesn't force files to be extracted
  • only converts entries to bytes when requested
  • supports all unreal engine 4 pak versions
  • supports compressed and encrypted paks
  • supports iteration over entries

click here for examples

the problem

looking at the libraries for pak reading, they were never not quite right for what i wanted to do:

  • rust-u4pak - excellent support but unfriendly api
  • ue4pak - excellent api but no support for extraction
  • unrealpak - excellent api but only supports version 8
  • rust-unreal-unpak - is async + only supports version 10

so i just though fuck it i'll do it myself and did it myself

references

although the api of rust-u4pak wasn't very friendly, the README went into beautiful detail into the intricacies of the file format and when the readme had incorrect info cough cough encryption uuid cough cough the source code also had the answers as long as you looked hard enough

Dependencies

~3.5MB
~63K SLoC