# IndiWeb - Cook Path Guard 

**URL:** <https://forums.unrealengine.com/t/indiweb-cook-path-guard/2858962>\
**Category:** Product Discussion\
**Tags:** fab\
**Created:** [November 19, 2026, 6:50am UTC](https://forums.unrealengine.com/t/indiweb-cook-path-guard/2858962 "2026-11-19T06:50:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deniscoke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deniscoke](https://forums.unrealengine.com/u/Deniscoke)\
**Post date:** [November 19, 2026, 6:50am UTC](https://forums.unrealengine.com/t/indiweb-cook-path-guard/2858962/1 "2026-11-19T06:50:43Z")

</div>

Cook Path Guard finds the assets your C++ loads by path that the cook did not put in the build, before a tester does.

The problem

Your C++ loads an asset by its path while the game runs: LoadObject, a soft object path. Nothing in a cooked map references that asset, so the cook never takes it. The editor works. The packaged build silently finds nothing. We handed out a playtest build that was missing 7 assets exactly this way, and wrote this check so the next one is caught first.

What it does

Path check after packaging. Reads every "/Game/..." string literal in your .h and .cpp files, writes out simple path macros, and looks each path up in the pak list your last packaging wrote. Reports MISSING \<package\> (\<file\>:\<line\>) for each one that is not in the build.

Path check without packaging. The same against an estimate of what a cook would take, built from the asset registry in seconds. An early warning while you work.

Executable check. Searches the packaged executable for names you never want to ship, such as debug console commands and debug classes, as ASCII and as UTF-16.

Tools menu. Three entries under Tools \> Cook Path Guard. The report opens in the Message Log.

Build scripts and CI. A commandlet runs the same checks without the editor window and returns exit code 0 or 1.

Settings. Source folders, excluded folder names, content roots (add a plugin's root), pak list, executable, forbidden names.

Automated tests. 8 automation tests ship with the plugin.

C++ API. Every step is a public function that works on plain text.

How you use it

1. Copy the plugin into your project's Plugins folder and enable it.

2. Package your project for Windows as usual.

3. Tools \> Cook Path Guard \> Check Asset Paths Against Last Package.

4. Fix each MISSING line: reference the asset from cooked content, or add its folder to Additional Asset Directories to Cook. Check again until it says "all present".

What it does not do

It sees string literals written on one line. Paths assembled at run time from variables are not seen.

Three macro shapes are written out. Other macros are not. The documentation lists them.

A path with a format placeholder, and a path that names a folder, pass as soon as one cooked asset fits.

The check without packaging is an estimate. It does not see assets found in class constructors and does not follow Asset Manager rules.

The executable check searches the one file you give it. It proves a name is absent from that file, not that a feature is unreachable.

No Blueprint nodes. No HTML or JSON report: text and an exit code.

A Blueprint-only project has no C++ for it to read.

Technical details

Code plugin, one editor module (CookPathGuard). No content, no third party code.

Built and tested on Unreal Engine 5.8.3, Windows 64-bit.

Reads the pak list of a Win64 build packaged with pak files. Other platforms and packaging setups have not been tried.

Documentation: Docs/[CookPathGuard.md](http://CookPathGuard.md) in the plugin.

Created with AI

The C++ code, automated tests, documentation and these listing texts were written with a generative AI coding assistant, from checks the publisher wrote for their own game, and checked by building the plugin and running its automated tests. The gallery pictures show real output of the plugin on its sample project. The plugin contains no AI generated art or audio, and no third party content.

> **[Cook Path Guard](https://www.fab.com/listings/cfc7c55d-18c1-4b25-9bfa-28aa8d1175f8)**
>
> Cook Path Guard finds the assets your C++ loads by path that the cook did not put in the build, before a tester does.The problemYour C++ loads an asset by its path while the game runs: LoadObject, a soft object path. Nothing in a cooked map...
