Gildor's Forums

Author Topic: Unreal Tournament 3 UPK File Format Questions  (Read 32417 times)
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: Unreal Tournament 3 UPK File Format Questions
« Reply #15 on: December 01, 2009, 14:15 »

There is only one UTF-16 standard. UTF-16 string usually cannot be translated to ASCII. These strings may be converted to another UTF standard (UTF-8, UTF-32) or into 8-bit encoding (OEM or DOS). There may be a difference between OEM and DOS encodings (in Russia we have a few 8-bit encodings: 866 codepage for DOS and 1251 for Windows, also less frequently used KOI8 for Linux). Possibly ut3 console utility does not change OEM/DOS console mode, so text output may be different.
Umodel has no processing of UTF-16 strings (I don't need it). Umodel simply truncates upper byte like this:
Code:
short utf16 = string[n];
char ascii = utf16 & 0xFF;
I know this is not correct, but it works fine for ASCII strings encoded as UTF-16.
Logged
Poobah
Guest
Re: Unreal Tournament 3 UPK File Format Questions
« Reply #16 on: December 01, 2009, 15:40 »

Do you know if any UT3 packages use zlib compression? If not, do you know how or where I could get one? I can't find one to test.
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: Unreal Tournament 3 UPK File Format Questions
« Reply #17 on: December 01, 2009, 15:43 »

http://www.gildor.org/smf/index.php/topic,112.0.html
Logged
Poobah
Guest
Re: Unreal Tournament 3 UPK File Format Questions
« Reply #18 on: December 01, 2009, 15:58 »


I see, so Unreal Tournament 3 packages don't actually use zlib at all?
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: Unreal Tournament 3 UPK File Format Questions
« Reply #19 on: December 01, 2009, 16:02 »

No.
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: Unreal Tournament 3 UPK File Format Questions
« Reply #20 on: February 18, 2011, 21:43 »

I have found interesting article on the UDN describing modern package format (there is no data structures, but interesting information):
http://udn.epicgames.com/Three/ContentStreaming.html

Also here is information about cooked package details:
http://udn.epicgames.com/Three/ContentCooking.html
« Last Edit: February 18, 2011, 22:33 by gildor » Logged
Jump to:  

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