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
@@ -324,6 +324,7 @@ export interface HostConfigFields {
"host.name": string;
"host.id": number;
"host.factorio_directory": string;
"host.factorio_graphics_directory": string | null;
"host.mods_directory": string;
"host.instances_directory": string;
"host.controller_url": string;
@@ -372,6 +373,14 @@ export class HostConfig extends classes.Config<HostConfigFields> {
initialValue: "factorio",
validator: validators.filePath,
},
"host.factorio_graphics_directory": {
description:
"Path to a full Factorio install, or directory of installs, to read base game icons from when " +
"exporting data. Needed when running the headless build, which has no graphics.",
type: "string",
optional: true,
validator: validators.optional(validators.filePath),
},
"host.mods_directory": {
title: "Mods Directory",
description: "Path to directory where mods for instances are cached.",