From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Unreal Engine localization resource (locres, locmeta)" |
|---|
| claim | "Magic GUID 7574140E-FC034A67-9D90154A-1B7F37C3 and a version byte come first, except in legacy (version 0) files, which have neither and begin directly with the namespace count. After that: (v>=1) i64 offset of the string array (-1 none), (v>=2) u32 entry count, u32 namespace count; per namespace: key, u32 key count; per key: key, u32 source string hash, then (v>=1) i32 string-array index or (v0) an inline FString; keys carry a leading u32 hash from v2; string array entries are FString plus (v>=2) i32 reference count. Versions: 0 Legacy, 1 Compact, 2 Optimized_CRC32, 3 Optimized_CityHash64_UTF16; CUE4Parse throws on higher versions except for two game-specific cases." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Unreal Engine .locres files, versions 0 to 3" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "parsing a locres" |
|---|
| effect | "namespace -> key -> (source hash, localized string) tables, strings shared through the array at the stored offset" |
|---|
| condition | "v is the version byte; the string array is read by seeking to the offset and back" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "constructor and ReadLocResStringArray; FTextKey reads the u32 hash only for Optimized_CRC32 and later; FEntry reads the u32 source hash; FTextLocalizationResourceString reads FString and i32 ref count for Optimized and later" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "2b8901c3ee9818558ad33e2496a58d50b82e99db" |
|---|
| path | "CUE4Parse/UE4/Localization/FTextLocalizationResource.cs" |
|---|
| lines | "22-107, 109-131" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "locres body layout" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:16:36.481Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:48:13.819Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read the FTextLocalizationResource constructor and ReadLocResStringArray at CUE4Parse 2b8901c: magic check with seek back to 0 for legacy, version > Latest throw except two games, string array offset for >= Compact, entry count skip for >= Optimized_CRC32, per-key index vs inline FString. Not read: FTextKey, FEntry and FTextLocalizationResourceString (hash and ref-count fields). Note three games (CodeVein2, Embers of the Uncrowned, NTE) use different string-array decoders." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:36:35.715Z" |
|---|
| summary | "Legacy (v0) files have no GUID and no version byte: when the 16-byte magic does not match, CUE4Parse seeks back to position 0 and the namespace count starts there. The layout below applies after the…" |
|---|
| changed | |
|---|
|
|
|---|