From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Library:Unreal Engine" |
|---|
| claim | "Up to UE 4.22 GNames is a TNameEntryArray: an array of chunk pointers, each chunk holding 0x4000 pointers to FNameEntry. For ComparisonIndex I (DisplayIndex when case preserving): chunk = I / 0x4000, slot = I % 0x4000, entry = chunk[slot]; the 8-bit characters are at entry+0x10 (entry+0xC in 4.22). Some games put the chunk table at a fixed offset inside the GNames object (UEDumper has GNAMES_POOL_OFFSET for this, mentioning a Fortnite build), which has to be found in the disassembly." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Unreal Engine" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "resolving an FName index in a UE 4.19 to 4.22 game" |
|---|
| effect | "entry = *(*(GNames + 8*(I/0x4000)) + 8*(I%0x4000)); string at entry+0x10" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "FNameToString for UE_VERSION < 4.23 and GNAMES_POOL_OFFSET in Userdefined/UEdefinitions.h" |
|---|
| repo | "https://github.com/Spuckwaffel/UEDumper" |
|---|
| commit | "5b2b5264a66aa9edb28619c5ff654b16d3b9e038" |
|---|
| path | "UEDumper/Engine/Core/Core.cpp" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Reading an FName before UE 4.23" |
|---|
| topic | "Library:Unreal Engine/Reflection data" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:46:31.824Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:34:55.618Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read UEDumper Core.cpp FNameToString lines 71-150 at 5b2b5264: UE_VERSION < 4.23 branch, ElementsPerChunk 0x4000, WITH_CASE_PRESERVING_NAME picks DisplayIndex, chunk table read at gNames + 8*chunk + GNAMES_POOL_OFFSET, entry text at +0xC for 4.22 else +0x10." |
|---|
| notes | "The Fortnite mention is in a header not read. Note the tool's chunk read adds GNAMES_POOL_OFFSET to the chunk-pointer address, i.e. the offset applies to the table, as the fact says." |
|---|
|
|
|---|