Find a full install in host.factorio_directory instead of a setting

Per review, drop host.factorio_graphics_directory. findVersion takes a
headless option that filters installs by build, telling them apart by
data/base/graphics/icons. When the instance runs the headless build the
export looks for a full install of the same major.minor version in the
host's factorio directory. Server startup is unchanged.

If none is found the export still runs, and the reason is included in
the missing icons warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-11-01 20:53:05 +00:00
1 parent 46c6153201
commit 37d74ca2a6
10 files changed
+132 -65

No files matched your search

-9
View File
@@ -340,7 +340,6 @@ 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;
@@ -389,14 +388,6 @@ 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.",