Gildor's Forums

Author Topic: .upk header.  (Read 22189 times)
szujeq
Newbie
*
Posts: 3


View Profile
.upk header.
« on: May 29, 2011, 20:36 »

Hi.
Gildor or some one else, do you know something about "unknown" sections in .upk files?
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7969



View Profile WWW
Re: .upk header.
« Reply #1 on: May 29, 2011, 21:59 »

Hi.
You have some errors here. Header for UE3 has the following format:
  • int32 Tag (0x9E2A83C1)
  • int32 FileVersion - lower 16 bits is PackageVersion, upper 16 bits is LicenseeVersion
  • int32 HeadersSize
  • string PackageGroup - real name is unknown, this field usually contains "None"
  • int32 PackageFlags
  • int32 NameCount
  • int32 NameOffser
  • int32 ExportCount
  • int32 ExportOffser
  • int32 ImportCount
  • int32 ImportOffser
  • int32 DependsOffset - when PackageVersion >= 415
  • int32 x 4 Guid
  • int32 Generations.Count
  • ... generations ...
  • int32 EngineVersion
  • int32 CookerVersion
  • int32 CompressionFlags
  • ... compressed chunks (look another thread for info)
  • ... some other fields ...

Each generation is
  • int32 ExportCount
  • int32 NameCount
  • int32 NetObjectCount
Logged
szujeq
Newbie
*
Posts: 3


View Profile
Re: .upk header.
« Reply #2 on: May 29, 2011, 22:15 »

So is here any way to change license version for "0"?

here is eg. header:
Code:
C1 83 2A 9E 00 02 01 00 50 43 00 00 05 00 00 00 4E 6F 6E 65 00 09 00 08 00 F0 00 00 00 6D 00 00 00 8D 00 00 00 A8 1B 00 00 1F 00 00 00 44 18 00 00 1C 41 00 00 94 85 CE A0 9F C9 8E 4C BD E4 B0 A3 FC 74 FA 71 01 00 00 00 8D 00 00 00 F0 00 00


when I change license to 0 then UDK just crash when I try to open upk (whenit is >=1 then display
Code:
"Unable to load package (C:\xxx.upk) PackageVersion  573, MaxExpected  813 : LicenseePackageVersion    1(or any other value who I changed), MaxExpected    0."

Or any idea for open licensed upk using UDK?
« Last Edit: May 29, 2011, 22:24 by szujeq » Logged
Gildor
Administrator
Hero Member
*****
Posts: 7969



View Profile WWW
Re: .upk header.
« Reply #3 on: May 29, 2011, 22:21 »

I suppose you're trying to open package from some game in UDK ... You should stop this, it's simply impossible (don't ask me "why").
Logged
szujeq
Newbie
*
Posts: 3


View Profile
Re: .upk header.
« Reply #4 on: May 29, 2011, 22:29 »

hmmm, anyway thx ;p
Logged
Jump to:  

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