marauder 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- marauder-1.0.0/LICENSE +21 -0
- marauder-1.0.0/PKG-INFO +345 -0
- marauder-1.0.0/README.md +311 -0
- marauder-1.0.0/pyproject.toml +69 -0
- marauder-1.0.0/setup.cfg +4 -0
- marauder-1.0.0/src/marauder.egg-info/PKG-INFO +345 -0
- marauder-1.0.0/src/marauder.egg-info/SOURCES.txt +67 -0
- marauder-1.0.0/src/marauder.egg-info/dependency_links.txt +1 -0
- marauder-1.0.0/src/marauder.egg-info/entry_points.txt +2 -0
- marauder-1.0.0/src/marauder.egg-info/requires.txt +8 -0
- marauder-1.0.0/src/marauder.egg-info/top_level.txt +1 -0
- marauder-1.0.0/src/usmap_generator/__init__.py +2 -0
- marauder-1.0.0/src/usmap_generator/__main__.py +4 -0
- marauder-1.0.0/src/usmap_generator/cli.py +204 -0
- marauder-1.0.0/src/usmap_generator/data/engine_version_markers.json +1119 -0
- marauder-1.0.0/src/usmap_generator/data/spelling_table_by_engine_version.json +1561 -0
- marauder-1.0.0/src/usmap_generator/engine/__init__.py +0 -0
- marauder-1.0.0/src/usmap_generator/engine/aes.py +31 -0
- marauder-1.0.0/src/usmap_generator/engine/anim_choice.py +168 -0
- marauder-1.0.0/src/usmap_generator/engine/anim_structs.py +612 -0
- marauder-1.0.0/src/usmap_generator/engine/archives.py +223 -0
- marauder-1.0.0/src/usmap_generator/engine/code_links.py +791 -0
- marauder-1.0.0/src/usmap_generator/engine/compare.py +85 -0
- marauder-1.0.0/src/usmap_generator/engine/compiler_abi.py +86 -0
- marauder-1.0.0/src/usmap_generator/engine/config_order.py +133 -0
- marauder-1.0.0/src/usmap_generator/engine/content_names.py +300 -0
- marauder-1.0.0/src/usmap_generator/engine/engine_references.py +79 -0
- marauder-1.0.0/src/usmap_generator/engine/enum_maximum.py +228 -0
- marauder-1.0.0/src/usmap_generator/engine/enum_registry.py +179 -0
- marauder-1.0.0/src/usmap_generator/engine/fname_order.py +513 -0
- marauder-1.0.0/src/usmap_generator/engine/genusmap.py +627 -0
- marauder-1.0.0/src/usmap_generator/engine/intrinsic_classes.py +29 -0
- marauder-1.0.0/src/usmap_generator/engine/iostore_probe.py +142 -0
- marauder-1.0.0/src/usmap_generator/engine/key_provider.py +124 -0
- marauder-1.0.0/src/usmap_generator/engine/layouts.py +126 -0
- marauder-1.0.0/src/usmap_generator/engine/name_batch.py +34 -0
- marauder-1.0.0/src/usmap_generator/engine/naming.py +345 -0
- marauder-1.0.0/src/usmap_generator/engine/partial_enums.py +221 -0
- marauder-1.0.0/src/usmap_generator/engine/pe.py +100 -0
- marauder-1.0.0/src/usmap_generator/engine/reference_spellings.py +88 -0
- marauder-1.0.0/src/usmap_generator/engine/scan.py +373 -0
- marauder-1.0.0/src/usmap_generator/engine/schema_diff.py +131 -0
- marauder-1.0.0/src/usmap_generator/engine/tagged_catalog.py +224 -0
- marauder-1.0.0/src/usmap_generator/engine/uasset_tags.py +220 -0
- marauder-1.0.0/src/usmap_generator/engine/usmap.py +107 -0
- marauder-1.0.0/src/usmap_generator/engine/version_markers.py +58 -0
- marauder-1.0.0/src/usmap_generator/install.py +88 -0
- marauder-1.0.0/src/usmap_generator/perasset.py +161 -0
- marauder-1.0.0/src/usmap_generator/pipeline.py +285 -0
- marauder-1.0.0/tests/test_cli.py +137 -0
- marauder-1.0.0/tests/test_code_links.py +476 -0
- marauder-1.0.0/tests/test_compiler_abi.py +67 -0
- marauder-1.0.0/tests/test_encrypted_fixture.py +110 -0
- marauder-1.0.0/tests/test_enum_maximum.py +114 -0
- marauder-1.0.0/tests/test_enum_registry.py +99 -0
- marauder-1.0.0/tests/test_perasset.py +65 -0
- marauder-1.0.0/tests/test_release_regressions.py +139 -0
- marauder-1.0.0/tests/test_schema_diff.py +90 -0
- marauder-1.0.0/tests/test_ue_usmap.py +333 -0
- marauder-1.0.0/tests/test_v10_rules.py +125 -0
- marauder-1.0.0/tests/test_v11_rules.py +70 -0
- marauder-1.0.0/tests/test_v12_scan.py +83 -0
- marauder-1.0.0/tests/test_v13_supers.py +196 -0
- marauder-1.0.0/tests/test_v3_rules.py +204 -0
- marauder-1.0.0/tests/test_v4_rules.py +60 -0
- marauder-1.0.0/tests/test_v5_rules.py +160 -0
- marauder-1.0.0/tests/test_v6_assets.py +261 -0
- marauder-1.0.0/tests/test_v8_rules.py +92 -0
- marauder-1.0.0/tests/test_v9_rules.py +73 -0
marauder-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Anastasios Antoniadis
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
marauder-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: marauder
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Build .usmap mapping files for Unreal Engine games from the installed files, without running the game.
|
|
5
|
+
Author: Anastasios Antoniadis
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://sourcemined.com
|
|
8
|
+
Project-URL: Repository, https://github.com/anantoni/marauder
|
|
9
|
+
Project-URL: Issues, https://github.com/anantoni/marauder/issues
|
|
10
|
+
Keywords: unreal-engine,usmap,mappings,modding,cue4parse,fmodel
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Games/Entertainment
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: numpy<3,>=1.24
|
|
27
|
+
Requires-Dist: scipy<2,>=1.9
|
|
28
|
+
Requires-Dist: capstone==5.0.3
|
|
29
|
+
Requires-Dist: cryptography>=42
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
32
|
+
Requires-Dist: ruff>=0.5; extra == "dev"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# Marauder
|
|
36
|
+
|
|
37
|
+
> I solemnly swear I am up to no good.
|
|
38
|
+
|
|
39
|
+
Marauder builds a `.usmap` mapping file for an Unreal Engine game from the files you already have installed. It does not run the game, inject anything into it or change any file.
|
|
40
|
+
|
|
41
|
+
It reads the game's own files in place: the shipping executable (as data), the cooked archives (`.pak`, `.utoc`/`.ucas`, or loose files) and the shipped configuration files. On success it prints `Mischief managed.`
|
|
42
|
+
|
|
43
|
+
Made by [Sourcemined](https://sourcemined.com). Questions and feedback: anantoni@sourcemined.com
|
|
44
|
+
|
|
45
|
+
- [What a .usmap is and who this is for](#what-a-usmap-is-and-who-this-is-for)
|
|
46
|
+
- [Install](#install)
|
|
47
|
+
- [Quick start](#quick-start)
|
|
48
|
+
- [Commands and options](#commands-and-options)
|
|
49
|
+
- [Per-asset mapping](#per-asset-mapping)
|
|
50
|
+
- [Encrypted games](#encrypted-games)
|
|
51
|
+
- [Supported games and limitations](#supported-games-and-limitations)
|
|
52
|
+
- [Accuracy](#accuracy)
|
|
53
|
+
- [Reproducing the results](#reproducing-the-results)
|
|
54
|
+
- [Troubleshooting and FAQ](#troubleshooting-and-faq)
|
|
55
|
+
- [Credits](#credits)
|
|
56
|
+
- [License](#license)
|
|
57
|
+
|
|
58
|
+
## What a .usmap is and who this is for
|
|
59
|
+
|
|
60
|
+
Recent Unreal Engine games save their assets with *unversioned* property serialization. A cooked object lists its property values without their names or types. To read it, a tool needs the game's class and struct layouts: property names, order, array sizes, full type trees and enum entries. A `.usmap` file holds exactly that. [CUE4Parse](https://github.com/FabianFG/CUE4Parse), [FModel](https://github.com/4sval/FModel) and [UAssetAPI](https://github.com/atenfyr/UAssetAPI) read it.
|
|
61
|
+
|
|
62
|
+
Mappings usually come from a dumper that runs inside the game, or from a memory image of the running game. Marauder builds the mapping from the installed files instead. That helps when:
|
|
63
|
+
|
|
64
|
+
- **you mod or inspect a game** and the game cannot easily be started with a dumper: anti-cheat, no working dumper for its engine version yet, or a fresh update;
|
|
65
|
+
- **you build tools** and want to regenerate mappings automatically after every game update, on a server, without a GPU or a Windows session;
|
|
66
|
+
- **you want a second opinion** on a runtime dump.
|
|
67
|
+
|
|
68
|
+
## Install
|
|
69
|
+
|
|
70
|
+
Marauder needs **Python 3.10, 3.11, 3.12 or 3.13** (64-bit). It runs on **Windows** and **Linux**. Get Python from [python.org](https://www.python.org/downloads/) (Windows: tick "Add python.exe to PATH" in the installer).
|
|
71
|
+
|
|
72
|
+
### With pipx (recommended)
|
|
73
|
+
|
|
74
|
+
[pipx](https://github.com/pypa/pipx) installs the `marauder` command in its own environment.
|
|
75
|
+
|
|
76
|
+
Windows (PowerShell):
|
|
77
|
+
|
|
78
|
+
```powershell
|
|
79
|
+
py -m pip install --user pipx
|
|
80
|
+
py -m pipx ensurepath
|
|
81
|
+
# open a new terminal, then:
|
|
82
|
+
pipx install marauder
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Linux:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
python3 -m pip install --user pipx # or: sudo apt install pipx
|
|
89
|
+
python3 -m pipx ensurepath
|
|
90
|
+
pipx install marauder
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### With pip
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
python -m pip install marauder
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### From source
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
git clone https://github.com/anantoni/marauder.git
|
|
103
|
+
cd marauder
|
|
104
|
+
python -m pip install -e ".[dev]"
|
|
105
|
+
python -m pytest # optional: run the tests
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Check the install with `marauder --version`. If your shell cannot find `marauder`, use `python -m usmap_generator` instead; it takes the same arguments.
|
|
109
|
+
|
|
110
|
+
## Quick start
|
|
111
|
+
|
|
112
|
+
Point Marauder at the game's install folder (the folder that holds the game's project folder and `Engine/`):
|
|
113
|
+
|
|
114
|
+
```powershell
|
|
115
|
+
marauder generate "C:\Program Files (x86)\Steam\steamapps\common\MyGame"
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
marauder generate ~/.steam/steam/steamapps/common/MyGame
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
It finds `MyGame/Binaries/Win64/MyGame-Win64-Shipping.exe` and `MyGame/Content/Paks/`, shows its progress in six steps, and writes `MyGame.usmap` into the current folder:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
Game executable: ...\MyGame\Binaries\Win64\MyGame-Win64-Shipping.exe
|
|
126
|
+
[1/6] Reading archives in ...\MyGame\Content\Paks
|
|
127
|
+
1 .pak, 2 .utoc; 0 encrypted
|
|
128
|
+
[2/6] Reading type tables from MyGame-Win64-Shipping.exe
|
|
129
|
+
9830 classes/structs, 1881 enums; engine 5.6
|
|
130
|
+
[3/6] Restoring name spellings from configuration and the asset registry
|
|
131
|
+
[4/6] Applying spelling votes for this engine version
|
|
132
|
+
1 names respelled from the 5.6 table
|
|
133
|
+
[5/6] Reading Anim Blueprint structs from the cooked packages
|
|
134
|
+
15 struct copies in 12 packages; 0 added to the global map (identical copies only)
|
|
135
|
+
[6/6] Final checks
|
|
136
|
+
Wrote MyGame.usmap (9830 classes/structs, 1881 enums, engine 5.6)
|
|
137
|
+
Done in 310 s.
|
|
138
|
+
Mischief managed.
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Then load `MyGame.usmap` in your tool (see [Using the file in FModel and CUE4Parse](#using-the-file-in-fmodel-and-cue4parse)).
|
|
142
|
+
|
|
143
|
+
Time and memory depend on the size of the game. On a busy 16-core Linux server, a UE 4.25 game took under 2 minutes and 0.5 GB of RAM, and a UE 5.6 game 5 minutes and 0.9 GB.
|
|
144
|
+
|
|
145
|
+
## Commands and options
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
marauder generate GAME [options] build a .usmap from an installed game folder
|
|
149
|
+
marauder compare GENERATED REFERENCE score a .usmap against a reference .usmap
|
|
150
|
+
marauder inspect FILE [NAME ...] summary of a .usmap, or the listed classes, structs and enums
|
|
151
|
+
marauder --version
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### `marauder generate`
|
|
155
|
+
|
|
156
|
+
| Option | What it does |
|
|
157
|
+
|---|---|
|
|
158
|
+
| `GAME` | The game's install folder, or its `*-Win64-Shipping.exe`. |
|
|
159
|
+
| `-o, --output FILE` | Output file. Default: `<Project>.usmap` in the current folder. |
|
|
160
|
+
| `--exe EXE` | The executable to read, when the folder holds several shipping executables. |
|
|
161
|
+
| `--paks DIR` | Folder with the archives, when they are not in `<Project>/Content/Paks`. |
|
|
162
|
+
| `--per-asset` | Also write the per-asset mapping: `<output>.perasset.json` and `<output>.perasset.bin` (UE5). See [Per-asset mapping](#per-asset-mapping). |
|
|
163
|
+
| `--aes-key KEY` | Your AES-256 key for encrypted archives: 64 hex digits (`0x` optional) or base64. `GUID:KEY` gives the key for one key GUID. Can be repeated. |
|
|
164
|
+
| `--aes-keys-file FILE` | A file with several keys. See [Encrypted games](#encrypted-games). |
|
|
165
|
+
| `--engine-version X.Y` | The engine version, when the executable does not store it (for example `5.3`); otherwise it is estimated from the type names. Used for the spelling votes and the UE5 steps. |
|
|
166
|
+
| `--data-only` | Read only the data sections of the executable. Skips the static code links that help name a few types; slightly less accurate. |
|
|
167
|
+
| `--report FILE` | Write a JSON report: counts per step, the engine version and how it was found, and every archive or entry that was not read, with the reason. |
|
|
168
|
+
| `--strict` | Exit with code 4 if any archive or entry could not be read. |
|
|
169
|
+
| `-q, --quiet` | Print only warnings, errors and the final line. |
|
|
170
|
+
| `-v, --verbose` | Also print internal diagnostics of the type-table reader. |
|
|
171
|
+
|
|
172
|
+
Examples:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# executable given directly, output in another folder, with a report
|
|
176
|
+
marauder generate "D:\Games\MyGame\MyGame\Binaries\Win64\MyGame-Win64-Shipping.exe" -o out\MyGame.usmap --report out\report.json
|
|
177
|
+
|
|
178
|
+
# UE5 game, also write the per-asset mapping
|
|
179
|
+
marauder generate ~/Games/MyGame --per-asset
|
|
180
|
+
|
|
181
|
+
# encrypted game, with your own key
|
|
182
|
+
marauder generate ~/Games/MyGame --aes-key 0x1A2B...9F0E
|
|
183
|
+
|
|
184
|
+
# fail (exit code 4) if anything was not read, for automated pipelines
|
|
185
|
+
marauder generate ~/Games/MyGame -q --strict
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Exit codes: `0` success, `1` error (message says what to do), `2` wrong command-line usage, `4` `--strict` and something was not read, `130` interrupted.
|
|
189
|
+
|
|
190
|
+
Marauder never skips anything silently. Every archive, entry or package it could not read is listed at the end with the reason (first 15 on screen, all of them with `--report`).
|
|
191
|
+
|
|
192
|
+
### `marauder compare`
|
|
193
|
+
|
|
194
|
+
Scores a generated mapping against a reference mapping, with the metric used in the paper (see [Accuracy](#accuracy)):
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
marauder compare MyGame.usmap reference.usmap
|
|
198
|
+
marauder compare MyGame.usmap reference.usmap --json
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
fields right: 77,329 of 77,364 (99.955%)
|
|
203
|
+
ignoring letter case: 77,361 of 77,361 (100.000%)
|
|
204
|
+
records identical: 4,795 of 4,824 (99.399%)
|
|
205
|
+
maps identical: no (35 differences, 35 case only)
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### `marauder inspect`
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
marauder inspect MyGame.usmap # counts
|
|
212
|
+
marauder inspect MyGame.usmap PlayerState # one class, with its properties
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Per-asset mapping
|
|
216
|
+
|
|
217
|
+
A `.usmap` holds **one record per name**. Most of the time that is enough. UE5 Animation Blueprints are the exception: every Anim Blueprint compiles its *own* `AnimBlueprintGeneratedConstantData` and `AnimBlueprintGeneratedMutableData` struct, so a game has dozens or hundreds of different structs with the same two names. A runtime dump keeps whichever copy happened to be loaded last; a global map cannot hold them all.
|
|
218
|
+
|
|
219
|
+
So, horcrux-style, each Anim Blueprint keeps its piece of the schema in its own package, and `--per-asset` collects every piece: every Anim Blueprint struct copy, keyed by the package that exports it, read from the cooked packages.
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
marauder generate ~/Games/MyGame --per-asset
|
|
223
|
+
# writes MyGame.usmap, MyGame.perasset.json and MyGame.perasset.bin
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Both files hold the same content (a test checks this):
|
|
227
|
+
|
|
228
|
+
- **`.perasset.json`**: readable, easy to use from any language.
|
|
229
|
+
- **`.perasset.bin`**: compact binary; each struct record is encoded exactly like a `.usmap` (version 4) struct record, so existing `.usmap` reader code can be reused.
|
|
230
|
+
|
|
231
|
+
Lookup rule for a reader that resolves structs by name: while reading package `P`, look up `perasset[P][name]` first, then the global `.usmap`. A child Anim Blueprint's struct has its parent's struct (same name) as its super; `superPackage` says which package that parent struct is in.
|
|
232
|
+
|
|
233
|
+
The format is specified in [docs/per-asset-format.md](docs/per-asset-format.md).
|
|
234
|
+
|
|
235
|
+
**Do you need it?** For CUE4Parse and FModel, usually not. In our tests CUE4Parse read every Anim Blueprint package (129 of 129, in 9 UE5 games) the same with or without these records, because it reads the struct straight from the package. The global `.usmap` must contain the `AnimBlueprintGeneratedStruct` record for this to work, and Marauder always writes it for UE5 games. The per-asset file is for readers that look structs up by name only; with it, a forced by-name reading matched the normal reading on 129 of 129 packages.
|
|
236
|
+
|
|
237
|
+
## Encrypted games
|
|
238
|
+
|
|
239
|
+
Some games encrypt their archives with an AES-256 key. Without a key, Marauder reads everything that is not encrypted, then lists each encrypted archive as not read.
|
|
240
|
+
|
|
241
|
+
If you have the key for **your own copy** of the game, pass it:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
marauder generate ~/Games/MyGame --aes-key 0x0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Games with several keys mark each archive with a key GUID. Put the keys in a file and pass `--aes-keys-file keys.json`:
|
|
248
|
+
|
|
249
|
+
```json
|
|
250
|
+
{
|
|
251
|
+
"default": "0x0123...CDEF",
|
|
252
|
+
"8F3A2C1B0D4E5F6A7B8C9D0E1F2A3B4C": "0xFEDC...3210"
|
|
253
|
+
}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
A plain text file works too: one `GUID KEY` pair per line, or a line with only a key for the default key; lines starting with `#` are ignored.
|
|
257
|
+
|
|
258
|
+
- Marauder **does not find, extract or break keys**, and ships none. Where the key comes from is up to you.
|
|
259
|
+
- The key is used in memory only. It is never written to the output, the report or the screen.
|
|
260
|
+
- A wrong key is reported (`the supplied AES key does not open this archive`), never silently ignored. If your key opens none of the encrypted archives, Marauder stops with an error.
|
|
261
|
+
- The key path is tested on synthetic archives that the tests encrypt themselves with a random key. The accuracy numbers below are for unencrypted games only.
|
|
262
|
+
|
|
263
|
+
## Supported games and limitations
|
|
264
|
+
|
|
265
|
+
- **Engine versions:** UE 4.17 to 5.7 by design; tested on UE 4.19 to 5.7 (no UE 4.17 or 4.18 game was in the benchmark). UE 4.13 to 4.16 are out of scope.
|
|
266
|
+
- **Tested platform:** Windows x64 shipping builds of games (`*-Win64-Shipping.exe`). Linux, Mac and console builds of games are untested. (Marauder itself runs on Windows and Linux.)
|
|
267
|
+
- **Protected executables** (packers, anti-tamper wrappers that hide the executable's data) are out of scope. Marauder does not unpack or bypass them; it stops with a clear message when it finds no type tables.
|
|
268
|
+
- **Custom engine builds** (studios that changed the engine's reflection code) can give weaker results. In our tests, one large modded game on a custom engine build failed.
|
|
269
|
+
- **Blueprint-defined types** (Blueprint classes, user-defined structs and enums) are not in the mapping, the same as a runtime dump made with Blueprint types excluded. Readers get those from the packages themselves.
|
|
270
|
+
- **Anim Blueprint structs:** a record goes into the global map only when every copy in the start-up set is identical; otherwise it is left out and the per-asset mapping has all copies (see above).
|
|
271
|
+
- **Letter case:** some property names can differ from a runtime dump in letter case only. CUE4Parse looks names up without regard to case, so this did not change any loaded package in our tests.
|
|
272
|
+
- **Oodle:** many games compress their archives with Oodle. See [Troubleshooting](#troubleshooting-and-faq).
|
|
273
|
+
|
|
274
|
+
## Accuracy
|
|
275
|
+
|
|
276
|
+
Measured against runtime dumps (UE4SS, Blueprint types excluded) of the games in the [benchmark list](benchmark/benchmark-list.csv). A *field* is one header value of a type (super, property count) or one value of a property (name, full type tree, index, array size), or one enum entry; both missing and extra records count as wrong. Full definitions are in the paper.
|
|
277
|
+
|
|
278
|
+
Field accuracy of this release's configuration (public spelling table):
|
|
279
|
+
|
|
280
|
+
| Set | Games | Fields right |
|
|
281
|
+
|---|---:|---:|
|
|
282
|
+
| Development (UE 4.19 to 5.7) | 66 | 99.923% |
|
|
283
|
+
| Hold-out | 31 | 99.885% |
|
|
284
|
+
| Fresh blind hold-out (frozen before scoring) | 24 | 99.867% |
|
|
285
|
+
|
|
286
|
+
- By engine version (development set, research configuration): UE 4.19 to 4.27 99.990% (99.999% ignoring letter case); UE 5.0 to 5.7 99.89% to 99.90%.
|
|
287
|
+
- 94% of the remaining errors on the fresh set are the Anim Blueprint structs described above, which the global map leaves out on purpose. Without that class, accuracy is 99.989% to 99.992% on all three sets.
|
|
288
|
+
- In a real-use test with CUE4Parse over 188,493 packages from 102 games, the generated mappings loaded every package that the runtime dumps loaded on all supported engine versions; the only visible difference was the letter case of some property names.
|
|
289
|
+
|
|
290
|
+
Source: A. Antoniadis, *Recovering Unreal Engine type mappings from game files alone*, Sourcemined, 2026 (link to be added at release). The paper also reports results per rule, per engine version, the research configuration of the spelling rule (99.923%, 99.886% and 99.867% on the three sets), and every look at the hold-out data.
|
|
291
|
+
|
|
292
|
+
## Reproducing the results
|
|
293
|
+
|
|
294
|
+
[`benchmark/benchmark-list.csv`](benchmark/benchmark-list.csv) lists every benchmark game: split, Steam app ID, exact Steam build ID, depot manifest IDs, engine version, status (scored, or excluded and why), the SHA-256 of the runtime reference mapping, the SHA-256 of the map scored in the paper and the SHA-256 of the map this release writes. No game files, reference mappings or generated mappings are distributed.
|
|
295
|
+
|
|
296
|
+
To check a game you own:
|
|
297
|
+
|
|
298
|
+
1. Download the listed build, for example with [DepotDownloader](https://github.com/SteamRE/DepotDownloader) and the listed depot manifest IDs (Steam serves the newest build by default).
|
|
299
|
+
2. Capture a reference with [UE4SS](https://github.com/UE4SS-RE/RE-UE4SS): `DumpUSMAP(false)` (Blueprint types excluded), at the main menu, offline. Keep it only when two captures give the same schema. Compare its SHA-256 with `gold_sha256`.
|
|
300
|
+
3. Run `marauder generate` on the install folder; its SHA-256 should equal `released_generated_sha256`. Then run `marauder compare` against your reference; the result should equal the score columns.
|
|
301
|
+
|
|
302
|
+
The `research_generated_sha256` column is the hash of the map scored in the paper, made with the research configuration of the spelling rule, which uses runtime dumps that are not distributed, so it cannot be regenerated outside. This release uses the public spelling table, so its output can differ from that hash in the letter case of a few names; `released_generated_sha256` and the score columns describe the released output. [docs/reproducing.md](docs/reproducing.md) has the details, including how to rebuild the spelling table from your own captures with [`tools/build_spelling_table.py`](tools/build_spelling_table.py).
|
|
303
|
+
|
|
304
|
+
## Troubleshooting and FAQ
|
|
305
|
+
|
|
306
|
+
**FModel or CUE4Parse says mappings are missing, or properties fail to read.** Generate a `.usmap` for the exact game version you have, and load it (below). After every game update, generate it again: class layouts change with updates.
|
|
307
|
+
|
|
308
|
+
<a id="using-the-file-in-fmodel-and-cue4parse"></a>**Using the file in FModel and CUE4Parse.** FModel: *Settings*, then *Local Mapping File*: enable it and select your `.usmap`. CUE4Parse:
|
|
309
|
+
|
|
310
|
+
```csharp
|
|
311
|
+
provider.MappingsContainer = new FileUsmapTypeMappingsProvider(@"C:\path\MyGame.usmap");
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**"no Unreal Engine shipping executable found".** Pass the install folder (the one with `Engine/` and the project folder), or pass the executable with `--exe`. Launchers in the top folder are not the game executable; the real one is in `<Project>/Binaries/Win64/`.
|
|
315
|
+
|
|
316
|
+
**"no Unreal Engine type records found" or "no reflection tables could be read".** The executable is protected or packed, not an Unreal Engine game, or not a Windows x64 build. These are out of scope.
|
|
317
|
+
|
|
318
|
+
**Oodle.** Many games compress archives with Oodle, which is not open source. On Windows, Marauder uses the `oo2core_*_win64.dll` that the game ships, when it finds one. Otherwise set `UE_OODLE_LIB` to the Oodle runtime library for your system (Windows: `oo2core_9_win64.dll`; Linux: a native `liboo2corelinux64.so`) before running Marauder. Without it, Oodle-compressed entries are listed as not read and the map is less complete.
|
|
319
|
+
|
|
320
|
+
**"engine unknown" / "no spelling table".** Some executables do not store the engine version. Marauder then estimates it from the type names ("estimated from the type names" in the output, `engineVersionBasis: "type names"` in the report). Pass `--engine-version X.Y` if you know it.
|
|
321
|
+
|
|
322
|
+
**The output differs from my runtime dump in letter case.** Expected for a few names (see Limitations). The `compare` command shows how many differences are case only.
|
|
323
|
+
|
|
324
|
+
**It is slow or uses a lot of memory.** Large games take longer. Close other programs; very large games need several GB of free RAM.
|
|
325
|
+
|
|
326
|
+
**Something else.** Run again with `--report report.json` and `-v`, and open an issue with the command and the output. Set `MARAUDER_DEBUG=1` to get the full error trace.
|
|
327
|
+
|
|
328
|
+
## Credits
|
|
329
|
+
|
|
330
|
+
Marauder builds on the work of the Unreal modding community. Thank you to the authors of:
|
|
331
|
+
|
|
332
|
+
- [CUE4Parse](https://github.com/FabianFG/CUE4Parse) and [FModel](https://github.com/4sval/FModel): readers of cooked Unreal assets and the main users of `.usmap` files;
|
|
333
|
+
- [UnrealMappingsDumper](https://github.com/TheNaeem/UnrealMappingsDumper): the `.usmap` format;
|
|
334
|
+
- [UE4SS](https://github.com/UE4SS-RE/RE-UE4SS): its mapping dumper produced our reference mappings;
|
|
335
|
+
- [Dumper-7](https://github.com/Encryqed/Dumper-7), [UEDumper](https://github.com/Spuckwaffel/UEDumper) and [jmap](https://github.com/trumank/jmap): runtime dumpers whose public work and issue trackers informed this project.
|
|
336
|
+
|
|
337
|
+
Developed by Anastasios Antoniadis at [Sourcemined](https://sourcemined.com). Contact: anantoni@sourcemined.com
|
|
338
|
+
|
|
339
|
+
## Paper
|
|
340
|
+
|
|
341
|
+
Antoniadis, A. *Marauder: Recovering Unreal Engine type mappings from game files alone.* Zenodo, 2026. [doi:10.5281/zenodo.24461105](https://doi.org/10.5281/zenodo.24461105)
|
|
342
|
+
|
|
343
|
+
## License
|
|
344
|
+
|
|
345
|
+
[MIT](LICENSE). Marauder contains no game data and no keys.
|