Report missing base game icons when exporting from headless Factorio

The headless build has no graphics, so export-data found none of the
base game's icon files. Plain icons were skipped silently and layered
icons were drawn blank and counted as exported.

Skip a layered icon when any of its layers is missing, and log one
warning with the number of base game icon files that were not found.
Add host.factorio_graphics_directory to read builtin mod graphics from
a full install when the instance runs the headless build.

Fixes #1068

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-10-30 00:02:52 +00:00
1 parent fa2883d74e
commit 5238a0fbb3
6 files changed
+171 -37

No files matched your search

+9
View File
@@ -339,6 +339,15 @@ This can either point to a Factorio server directory, or to a directory containi
Defaults to "factorio".
### host.factorio_graphics_directory
Directory to read the base game's icons from when exporting data.
The headless build of Factorio has no graphics, so instances running it export none of the base game's icons unless this points to a full install of Factorio.
Like `host.factorio_directory` this can either point to a Factorio directory, or to a directory containing multiple versions, in which case the latest one matching the major and minor version of the instance is used.
Defaults to null.
### host.mods_directory
Directory the host stores mods downloaded from the controller in.