Guides/16
Native Windows tests
Run a game test on native Windows with the launch helper, in the background and in its own folders.
The native backend runs Fallout 4 through esx-native-launch.exe and
esx-isolation.dll. It does not use Proton. Keep both helper files together.
Build the probe DLL separately as described in probe/README.md.
Build and runtime requirements
Build probe/windows-isolation with CMake 3.24 or later, a Windows SDK and
an MSVC-compatible C++20 compiler. Set the CMake variable DETOURS_SOURCE
to the src folder of Microsoft Detours.
The repository does not include Detours, game files or third-party DLLs.
Build x64 helpers for Fallout 4. An x86 editor needs separate x86 helpers.
The tested version of Detours is 4.0.1. The build makes esx-native-launch.exe,
esx-isolation.dll and isolation-check.exe. isolation-check.exe tests the guard
with simulated protected files in a disposable test tree. Do not point it at personal files.
Build the Rust CLI with the normal Cargo workspace commands.
Supply a licensed Fallout 4 installation, its matching
F4SE,
Address Library
and the probe DLL. Keep Steam available for the normal game license checks.
The helper does not bypass Steam authentication. Match every native plugin
to the game runtime. A successful build or probe doctor does not prove that
the game can start or that a mod works.
Contained paths
Set ESX_WINDOWS_LAUNCHER to the absolute helper executable path.
Set ESX_WINDOWS_ALLOWED_ROOT to an existing dedicated test root.
The helper, test game copies, profiles, sessions and cache must be inside it.
Set LOCALAPPDATA to a private folder in this root for each runtime.
Also contain APPDATA, USERPROFILE, TEMP and TMP in the invoking process.
Do not change global environment variables or the personal game installation.
Windows creates independent test game copies. Account for their disk use. The helper redirects Windows Known Folders and Fallout 4 profile INI access. It injects the guard before executable entry and retains it in child processes. The guard rejects supported file mutations outside the allowed root, linked paths, registry writes and shell launches. A Windows job owns the process tree. These API hooks support test containment. They are not an operating-system security boundary for hostile code. Audit actual write destinations and inputs.
A workspace directly below a game folder must have a regular marker named
.esx-private-workspace with the exact bytes esx-private-workspace-v1
followed by LF. The marker does not permit a workspace named Data, a linked
marker, or authoring writes into game Data. Unmarked game folders remain blocked.
Native CK publication without --overwrite refuses an existing destination.
Windows build hooks honor COMSPEC. The renderer defaults to DX12 on Windows;
WGPU_BACKEND can override the renderer selection.
Background and concurrent games
probe start and probe run use --display headless by default.
The helper creates a non-input Win32 desktop without switching the input desktop.
It suppresses cursor clipping, cursor movement, desktop switching and synthesized
input from guarded background processes. Probe actions need no keyboard or mouse.
Use --display inherit only when a visible game window is needed for diagnosis.
Headless mode still needs a logged-in Windows session and a GPU. It is not a
Windows service and it does not disable game rendering.
--allow-other-games permits a running Fallout 4 executable in another folder.
This option requires headless mode. Unknown process paths and a game in the same
runtime remain blocked. Each runtime is exclusive. Concurrent test runtimes need
different game copies, LOCALAPPDATA folders, profiles, sessions and probe ports.
Changing only --profile does not create another runtime.
Stop only a session that the caller owns. The native backend checks executable
identity and creation time before termination, to reject process ID reuse.
Use an external reservation lock when several workers share a runtime.
esx has no reservation queue.
The desktop remains usable, but all games share CPU, RAM and GPU resources. Keep performance measurements separate from concurrency checks. Concurrent launches do not establish compatibility with arbitrary mod lists.
Optional MO2 integration
Use a separate portable Mod Organizer 2 instance for test profiles. Do not share writable mods, saves, INIs or overwrite with a personal instance. The native helper can consume an external USVFS mapping. esx supplies the mapping contract only. It has no controller for the MO2 window and no profile resolver. Keep the matching USVFS library and all inputs inside the test root.
Set ESX_MO2_VFS_DLL and ESX_MO2_VFS_MANIFEST together.
The manifest is UTF-8. Each nonempty row contains an absolute source path,
one TAB and an absolute destination path. Both paths must be inside the test root.
The source must exist. Resolve mod priority and hidden files before writing the
manifest. Keep generated files in a test-owned folder and retain them before reset.
This interface does not validate every archive conflict or arbitrary F4SE plugin.
Optional tools
Keep a baseline with only the test mod and its required dependencies. Add optional tools in a separate profile. Record exact versions and settings in private reports. Do not add these tools as masters or package inputs for authored gameplay mods.
| Tool | Use in a test profile |
|---|---|
| FO4Edit | Reopen an independent plugin copy and check records and references. |
| Creation Kit Platform Extended | Use a matching Creation Kit to generate native animation metadata. Validate each editor operation separately. |
| High FPS Physics Fix | Select a compatible build and a fixed frame limit for repeatable tests. |
| Addictol | Optional engine fixes. Check its current compatibility instructions and disable overlapping fixes. |
| Addictol Crash Logger | Optional crash diagnostics, installed separately from Addictol. Contain its log destination. |
Optional tool combinations need their own validation. esx does not download, install or enable them.
The default symbol cache of Addictol Crash Logger is outside the test root. Set its crash
log folder and its symbol cache folder to folders in the test root before a launch. The
logger loaded in the Windows tests, and no crash was made to test a dump. probe stop
keeps the logs of High FPS Physics Fix, Addictol and Addictol Crash Logger in the session
folder.
Verification and limits
Check launch paths, private save and INI destinations, probe connection, ammunition, empty and partial reloads, animation events, screenshots, save/load and owned stop. Compare protected files before and after the run. Check that stopping one runtime leaves other runtimes connected. Keep raw reports and screenshots private.
The native implementation has passed these actions and simultaneous background
tests in a dedicated Windows environment. No automatic test run covers them. This is not a guarantee for every game
runtime, mod combination or editor operation. Test a newly built helper and probe.
The interface esx-gui and an esx ck run with no guard are not validated by
the background probe tests. Do not use an unguarded launch as a containment shortcut.