OpenUT99-Plus
Unreal Engine 1, rebuilt from scratch
Loading...
Searching...
No Matches
uprops Namespace Reference

Functions

 _struct (name, r, end)
 _value (t, r, size, struct_name, info)
 read_properties (pkg, data, export)
 sweep (root)
 main (argv)

Variables

int HAS_STACK = 0x02000000
dict TYPES
dict SIZES = {0: 1, 1: 2, 2: 4, 3: 12, 4: 16}
tuple EXTENSIONS = ("u", "unr", "utx", "uax", "umx", "uxx")

Detailed Description

Tagged properties: the generic start of every exported object's data.

Usage: uprops.py FILE OBJECT     properties of one export
       uprops.py --sweep DIR     parse every export of every package under DIR, print counts
Spec: docs/formats/properties.md

Function Documentation

◆ _struct()

uprops._struct ( name,
r,
end )
protected

◆ _value()

uprops._value ( t,
r,
size,
struct_name,
info )
protected

◆ main()

uprops.main ( argv)

◆ read_properties()

uprops.read_properties ( pkg,
data,
export )
Return (properties, end): a list of dicts and the offset just past the closing None tag.

◆ sweep()

uprops.sweep ( root)
Parse every non-class export; count per class whether data ends at the None tag.

Variable Documentation

◆ EXTENSIONS

tuple uprops.EXTENSIONS = ("u", "unr", "utx", "uax", "umx", "uxx")

◆ HAS_STACK

int uprops.HAS_STACK = 0x02000000

◆ SIZES

dict uprops.SIZES = {0: 1, 1: 2, 2: 4, 3: 12, 4: 16}

◆ TYPES

dict uprops.TYPES
Initial value:
1= {1: "Byte", 2: "Int", 3: "Bool", 4: "Float", 5: "Object", 6: "Name", 7: "String", 8: "Class",
2 9: "Array", 10: "Struct", 11: "Vector", 12: "Rotator", 13: "Str", 14: "Map", 15: "FixedArray"}