Gildor's Forums

Author Topic: Question about UPK compression  (Read 487 times)
hydle
Newbie
*
Posts: 1


View Profile
Question about UPK compression
« on: August 05, 2023, 00:02 »

I'm currently trying to create my own UPK decompressor for a game that isn't supported. I believe the UPK files use lzo1x compression but I am trying to figure out which parts of the file use this and if I can just decompress the entire things or if I need to do specific parts individually. The header of the files seem to be unchanged from compressed to decompressed so I assume that I leave untouched. If there are any other compression types that UPK files use that I am unaware of I would appreciate any knowledge or help. Thanks
Logged
spiritovod
Global Moderator
Hero Member
*****
Posts: 2163


View Profile
Re: Question about UPK compression
« Reply #1 on: August 05, 2023, 15:45 »

@hydle: You can take a look at source code of Gildor's decompressor here: https://github.com/gildor2/UEViewer/tree/master/Tools/PackageUnpack. Aside from assets' content, upk contains assets, each of them is header summary + compressed chunks. Though it's probably better to look at some more complex solutions such as UPKManager, UPKUtils and such, because they're usually customized for games with modified formats as well.
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS