Add option to set path to server executable (#657)

Allow overriding the logic selecting the path to the Factorio
executable.  This is mainly useful when working with development
versions of the game.
This commit is contained in:
Hornwitser authored and GitHub committed 2024-09-03 01:04:50 +02:00
1 parent 1687f2f896
commit 47896247fe
4 files changed
+21 -1

No files matched your search

+1
View File
@@ -169,6 +169,7 @@ export default class Instance extends lib.Link {
let serverOptions = {
logger: this.logger,
version: this.config.get("factorio.version"),
executablePath: this.config.get("factorio.executable_path") ?? undefined,
gamePort: this.config.get("factorio.game_port") ?? host.assignGamePort(this.id),
rconPort: this.config.get("factorio.rcon_port") ?? undefined,
rconPassword: this.config.get("factorio.rcon_password") ?? undefined,