Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:Unreal Engine localization resource (locres, locmeta)

From ReverseEngineering.wiki
Format
Engine Library:Unreal Engine
Magic 0E 14 74 75 67 4A 03 FC 4A 15 90 9D C3 37 7F 1B (locres); 4F EE 4C A1 68 48 55 83 6C 4C 46 BD 70 DA 50 7C (locmeta)
Extensions .locres, .locmeta
Endianness little
On this wiki Facts · Code · Notes · Topics

Unreal Engine's compiled localization files: .locres (Game/Content/Localization/<target>/<culture>/<target>.locres) maps namespace and key to a translated string, and .locmeta names the native culture and compiled cultures; both start with a 16-byte magic GUID followed by a version byte.

Identification

A .locres file begins with a 16-byte GUID written as four little-endian u32: 0x7574140E, 0xFC034A67, 0x9D90154A, 0x1B7F37C3 (on-disk bytes 0E 14 74 75 67 4A 03 FC 4A 15 90 9D C3 37 7F 1B, which is the GUID 7574140E-4A67-FC03-4A15-909DC3377F1B in Unreal's text form). A single byte version follows. A file without that GUID is a Legacy locres: it has no magic and no version byte, so readers rewind to offset 0 and read it as version 0. A .locmeta file has its own magic (four u32: 0xA14CEE4F, 0x83554868, 0xBD464C6C, 0x7C50DA70) and version byte.

Versions

LocRes version byte: 0 Legacy, 1 Compact, 2 Optimized_CRC32, 3 Optimized_CityHash64_UTF16. LocMeta version byte: 0 Initial, 1 AddedCompiledCultures, 2 AddedIsUGC. A reader must refuse a version above the newest it knows.

LocRes layout

All strings are Unreal FStrings: i32 length including the terminating null; a positive length means 8-bit characters, a negative length means UTF-16 with abs(length) code units, and 0 means the empty string.

  • Version 1 and later: after the version byte comes an i64 file offset of a string array (-1 means none). The array is an i32 count followed by entries (FString, plus an i32 reference count from version 2 on). Entries are shared: identical translations are stored once and the namespace/key tables refer to them by index.
  • Version 2 and later: a u32 total entry count follows.
  • Then a u32 namespace count. Per namespace: the namespace key, a u32 key count, then per key: the key, a u32 source string hash, and (Compact and later) an i32 index into the string array, or (Legacy) the translated FString inline.
  • A namespace or key is an FString; from version 2 on it is preceded by a u32 hash of that string. Which hash function applies is named by the version (CRC32 for 2, CityHash64 for 3, per the enum comments). Unverified: how the 64-bit CityHash is folded into the 32-bit field of version 3 was not read.

The source string hash lets the engine detect that the English source changed after translation; it is not needed to extract text.

LocMeta layout

After the magic and version: native culture (FString), native locres path (FString); from version 1 an array of compiled culture names (i32 count, FStrings); from version 2 a bool (UGC flag).

Practical notes

Games often ship locres inside pak or IoStore containers (Format:Unreal Engine pak file); some games encrypt or alter the string table, and readers carry per-game special cases for newer unknown version bytes. Use a reader and check the version byte first.

Code & repositories

  • https://github.com/FabianFG/CUE4Parse @ 2b8901c3ee9818558ad33e2496a58d50b82e99db · license: Apache-2.0
    C# Unreal Engine asset and archive parser; UE4/Localization reads .locres and .locmeta.
    Tested on: source read, not run: source read, not built or run · checked 2026-10-19; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries

Evidence & references

Layouts and enum names are from CUE4Parse (Apache-2.0) UE4/Localization/FTextLocalizationResource.cs, FTextLocalizationMetaDataResource.cs and UE4/Objects/Core/i18N/*.cs; see the attached facts.