Export without the graphics directory when it has no matching install

If host.factorio_graphics_directory had no install matching the major and
minor version of the instance, or did not exist, findVersion threw and the
whole export failed. Without the setting the same instance exports everything
except the base game icons, so it now logs a warning that names the setting
and exports without it.
This commit is contained in:
Danielv123 committed 2026-11-01 18:33:10 +01:00
1 parent 46fd7fcad4
commit 46c6153201
3 files changed
+49 -3

No files matched your search

+1
View File
@@ -363,6 +363,7 @@ Defaults to "factorio".
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.
If there is no install matching the instance, a warning is logged and the data is exported without it.
Defaults to null.