195 lines
5.4 KiB
INI
195 lines
5.4 KiB
INI
; Phantom Blade Zero (UE 5.7, PBZ.exe FileVersion CL-301524_JKS-17219, Steam build 26266538).
|
|
; Made 2026-10-29 from UE4SS's assets\MemberVarLayoutTemplates\MemberVariableLayout_5_07_Template.ini and read-only
|
|
; checks of the running game. Only the sections below differ from the 5.7 template; every other type matched it
|
|
; (FUObjectItem, UObjectBase, UField, FProperty, FObjectPropertyBase, FStructProperty, FBoolProperty, FArrayProperty
|
|
; checked).
|
|
|
|
; 0x28 bytes more at 0x80: a critical section (spin count 4000 at 0xA0, like the standard ones at 0x30 and
|
|
; 0xB8). UObjectDeleteListeners (7 listeners with vtables) at 0xA8, PrimarySerialNumber at 0xE0 (33215 =
|
|
; the highest SerialNumber in the object items), bShouldRecycleObjectIndices at 0xE4 (1). Before 0x80 as
|
|
; in the template (ObjAvailableList 5029 indices at 0x58, UObjectCreateListeners 2 at 0x70).
|
|
[FUObjectArray]
|
|
ObjFirstGCIndex = 0x0
|
|
ObjLastNonGCIndex = 0x4
|
|
MaxObjectsNotConsideredByGC = 0x8
|
|
OpenForDisregardForGC = 0xc
|
|
ObjObjects = 0x10
|
|
ObjAvailableList = 0x58
|
|
ObjAvailableListEstimateCount = 0x68
|
|
UObjectCreateListeners = 0x70
|
|
; template 0x80
|
|
UObjectDeleteListeners = 0xa8
|
|
; template 0xb8
|
|
PrimarySerialNumber = 0xe0
|
|
; template 0xbc
|
|
bShouldRecycleObjectIndices = 0xe4
|
|
; template 0xc0
|
|
UEP_TotalSize = 0xe8
|
|
|
|
; The fields of GUObjectArray.ObjObjects in another order: at +0x10 the object count 153466 (checked at
|
|
; the end of the list), at +0x14 the maximum 4259840, at +0x0 MaxChunks 65, at +0x4 NumChunks 3.
|
|
[TUObjectArray]
|
|
; template 0x18
|
|
MaxChunks = 0x0
|
|
; template 0x1c
|
|
NumChunks = 0x4
|
|
; template 0x0
|
|
Objects = 0x8
|
|
; template 0x14
|
|
NumElements = 0x10
|
|
; template 0x10
|
|
MaxElements = 0x14
|
|
; template 0x8
|
|
PreAllocatedObjects = 0x18
|
|
UEP_TotalSize = 0x20
|
|
|
|
; Next and Owner swapped: Owner (the UStruct, with the low bit set for a UObject owner) at 0x18 in all
|
|
; 5081 first fields; Next at 0x10 (its target has the same owner).
|
|
[FField]
|
|
ClassPrivate = 0x8
|
|
; template 0x18
|
|
Next = 0x10
|
|
; template 0x10
|
|
Owner = 0x18
|
|
NamePrivate = 0x20
|
|
FlagsPrivate = 0x28
|
|
UEP_TotalSize = 0x30
|
|
|
|
; 0x50 bytes (objects 0x50 apart). ConstructFn 0x0 (a code address in all 31 classes), CastFlags 0x10 (the
|
|
; type bit plus the parent's bits), Id 0x18 (one bit, different in each class), SuperClass 0x20, Name 0x30
|
|
; (checked in the name pool: BoolProperty 0x11, TextProperty 0x68, StructProperty 0x48 and 7 more). 0x40
|
|
; and 0x48 are fields the game added (0x800004da.. numbered in order). ClassFlags, DefaultObject and
|
|
; UniqueNameIndexCounter are 0 in every class; their slots 0x8, 0x28 and 0x38 are the free ones.
|
|
[FFieldClass]
|
|
; template 0x30
|
|
ConstructFn = 0x0
|
|
ClassFlags = 0x8
|
|
; template 0x18
|
|
CastFlags = 0x10
|
|
; template 0x10
|
|
Id = 0x18
|
|
SuperClass = 0x20
|
|
DefaultObject = 0x28
|
|
; template 0x0
|
|
Name = 0x30
|
|
UniqueNameIndexCounter = 0x38
|
|
; template 0x40
|
|
UEP_TotalSize = 0x50
|
|
|
|
; 0x50 bytes more after ChildProperties (the game keeps a hash map there, 230 entries in Actor): every
|
|
; field from PropertiesSize on is +0x50 (Object: size 0x28 at 0xA8, MinAlignment 8 at 0xAC; PropertyLink at
|
|
; 0xC0 equals ChildProperties).
|
|
[UStruct]
|
|
SuperStruct = 0x40
|
|
Children = 0x48
|
|
ChildProperties = 0x50
|
|
; template 0x58
|
|
PropertiesSize = 0xa8
|
|
; template 0x5c
|
|
MinAlignment = 0xac
|
|
; template 0x5e
|
|
StructStateFlags = 0xae
|
|
; template 0x60
|
|
Script = 0xb0
|
|
; template 0x70
|
|
PropertyLink = 0xc0
|
|
; template 0x78
|
|
RefLink = 0xc8
|
|
; template 0x80
|
|
DestructorLink = 0xd0
|
|
; template 0x88
|
|
PostConstructLink = 0xd8
|
|
; template 0x90
|
|
ScriptAndPropertyObjectReferences = 0xe0
|
|
; template 0xa0
|
|
UnresolvedScriptProperties = 0xf0
|
|
; template 0xb0
|
|
UEP_TotalSize = 0x100
|
|
|
|
; +0x50 like UStruct (FunctionFlags 0x04020402 at 0x100, ReturnValueOffset 0xFFFF at 0x108, Func in code at
|
|
; 0x128 for 32022 of 32026 functions).
|
|
[UFunction]
|
|
; template 0xb0
|
|
FunctionFlags = 0x100
|
|
; template 0xb4
|
|
NumParms = 0x104
|
|
; template 0xb6
|
|
ParmsSize = 0x106
|
|
; template 0xb8
|
|
ReturnValueOffset = 0x108
|
|
; template 0xba
|
|
RPCId = 0x10a
|
|
; template 0xbc
|
|
RPCResponseId = 0x10c
|
|
; template 0xc0
|
|
FirstPropertyToInit = 0x110
|
|
; template 0xc8
|
|
EventGraphFunction = 0x118
|
|
; template 0xd0
|
|
EventGraphCallOffset = 0x120
|
|
; template 0xd8
|
|
Func = 0x128
|
|
; template 0xe0
|
|
UEP_TotalSize = 0x130
|
|
|
|
; +0x50 like UStruct (ClassDefaultObject at 0x160 = the CDOs in UE4SS's log, ClassWithin at 0x130,
|
|
; ClassCastFlags at 0x128: 0x19 for ScriptStruct).
|
|
[UClass]
|
|
; template 0xb0
|
|
ClassConstructor = 0x100
|
|
; template 0xb8
|
|
ClassVTableHelperCtorCaller = 0x108
|
|
; template 0xc8
|
|
ClassUnique = 0x118
|
|
; template 0xcc
|
|
FirstOwnedClassRep = 0x11c
|
|
; template 0xd0
|
|
bCooked = 0x120
|
|
; template 0xd1
|
|
bLayoutChanging = 0x121
|
|
; template 0xd4
|
|
ClassFlags = 0x124
|
|
; template 0xd8
|
|
ClassCastFlags = 0x128
|
|
; template 0xe0
|
|
ClassWithin = 0x130
|
|
; template 0xe8
|
|
ClassConfigName = 0x138
|
|
; template 0x100
|
|
NetFields = 0x150
|
|
; template 0x110
|
|
ClassDefaultObject = 0x160
|
|
; template 0x118
|
|
SparseClassData = 0x168
|
|
; template 0x120
|
|
SparseClassDataStruct = 0x170
|
|
; template 0x128
|
|
bNeedsDynamicSubobjectInstancing = 0x178
|
|
; template 0x130
|
|
FuncMap = 0x180
|
|
; template 0x180
|
|
FuncMapLock = 0x1d0
|
|
; template 0x188
|
|
AllFunctionsCache = 0x1d8
|
|
; template 0x1d8
|
|
AllFunctionsCacheLock = 0x228
|
|
; template 0x1e0
|
|
Interfaces = 0x230
|
|
; template 0x1f0
|
|
ReferenceSchema = 0x240
|
|
; template 0x1f8
|
|
NativeFunctionLookupTable = 0x248
|
|
; template 0x208
|
|
UEP_TotalSize = 0x258
|
|
|
|
; +0x50 like UStruct (sizes at 0xA8 16/24/32/8, StructFlags at 0x100).
|
|
[UScriptStruct]
|
|
; template 0xb0
|
|
StructFlags = 0x100
|
|
; template 0xb4
|
|
bPrepareCppStructOpsCompleted = 0x104
|
|
; template 0xb8
|
|
CppStructOps = 0x108
|
|
; template 0xc0
|
|
UEP_TotalSize = 0x110
|