From f79a16c17e1c6fa95223235b5a158c02a1a32d6a Mon Sep 17 00:00:00 2001 From: oorzkws <65210810+oorzkws@users.noreply.github.com> Date: Sun, 14 Sep 2025 12:41:41 -0600 Subject: [PATCH] switch loading to headless, don't error when finished --- PyPP-Regen-New.ps1 | 2 +- autotech.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PyPP-Regen-New.ps1 b/PyPP-Regen-New.ps1 index 9f85dc5..84d7828 100644 --- a/PyPP-Regen-New.ps1 +++ b/PyPP-Regen-New.ps1 @@ -358,7 +358,7 @@ $PyPPConfig = $PyPPPrevConfig.Replace('data.raw["bool-setting"]["pypp-dev-mode"] $PyPPConfig = $PyPPConfig.Replace('data.raw["bool-setting"]["pypp-create-cache"].forced_value = false', 'data.raw["bool-setting"]["pypp-create-cache"].forced_value = true') Set-Content -Path $PyPPConfigPath -Value $PyPPConfig -Encoding UTF8 -NoNewline -$FactorioArgs = "--mod-directory $FactorioModsPath --benchmark notafile" #Stand in for "load then exit" +$FactorioArgs = "--mod-directory $FactorioModsPath --start-server notafile" #Stand in for "load then exit" $BaseMods = @( "base", "pypostprocessing", diff --git a/autotech.lua b/autotech.lua index ce4ccf3..8fa294f 100644 --- a/autotech.lua +++ b/autotech.lua @@ -57,7 +57,7 @@ function auto_tech:run() self:run_phase(self.determine_essential_technologies, "determining essential techs (11/12)") self:run_phase(self.serialize_cache_file, "cache file output (12/12)") end, "autotech") - error("Autotech completed successfully.") + log("Autotech completed successfully.") end function auto_tech:vanilla_massaging()