Page 1 of 1
[Oxyd] [0.15.3] Can't load base scenarios with headless
Posted: Sat Apr 29, 2017 7:14 am
by SilverB1rd
Hello,
I'm trying to setup a headless server to run the wave defense scenario.
I'm trying to launch the server with (left off the standard server config stuff in this example)
Code: Select all
.\bin\x64\factorio.exe --start-server-load-scenario wave-defense
but I keep getting
Code: Select all
The scenario does not contain control.lua. Loading freeplay scripts.
I've tried variations of the path to the wave-defense folder in data\base\scenarios\ but still the same error.
What is the correct way to specify a scenario for --start-server-load-scenario?
Re: Setup for Headless Wave Defense Scenario
Posted: Sat Apr 29, 2017 11:47 am
by daniel34
After trying a few variations myself I checked with Process Monitor and it seems to only look into the user scenarios folder (%appdata%\Factorio\scenarios or with headless/zip wherever you extracted it to).
It will work correctly with your command line if you copy the wave-defense scenario from Factorio\data\base\scenarios\wave-defense to Factorio\scenarios\wave-defense.
I'm moving this to bug reports since to me this looks like a bug.
Re: Setup for Headless Wave Defense Scenario
Posted: Sat Apr 29, 2017 4:21 pm
by SilverB1rd
daniel34 wrote:After trying a few variations myself I checked with Process Monitor and it seems to only look into the user scenarios folder (%appdata%\Factorio\scenarios or with headless/zip wherever you extracted it to).
It will work correctly with your command line if you copy the wave-defense scenario from Factorio\data\base\scenarios\wave-defense to Factorio\scenarios\wave-defense.
I'm moving this to bug reports since to me this looks like a bug.
Wow, confirmed on my server, moving the scenario folder works! Thanks Daniel, I agree this seems like unintended behavior.
Re: [0.15.3] Can't load base scenarios with headless
Posted: Sat Apr 29, 2017 6:12 pm
by Cutemine
As far as I can tell, it only works if you copy it to the above mentioned location, putting them anywhere else will generate or load a "wave-defense"-named normal map even if you specify the exact absolute path to the scenario.
Re: [0.15.3] Can't load base scenarios with headless
Posted: Sat Apr 29, 2017 6:19 pm
by daniel34
Cutemine wrote:As far as I can tell, it only works if you copy it to the above mentioned location, putting them anywhere else will generate or load a "wave-defense"-named normal map even if you specify the exact absolute path to the scenario.
That's what confused me as well. If --start-server-load-scenario doesn't find a valid scenario it should give an error message and quit the server, just like --start-server does.
Players are likely thinking that the server is running correctly since it is InGame, and after realizing they are on the wrong map (if they even realize) they look for an error that should have been given by the game in the first place: scenario not found.
Re: [Oxyd] [0.15.3] Can't load base scenarios with headless
Posted: Wed Jun 07, 2017 1:22 pm
by Oxyd
Thanks. I fixed the lack of an error when the scenario isn't found.
I also allowed specifying mod name in --start-server-load-scenario – you'll be able to use --start-server-load-scenario base/wave-defense to load the scenario from the base mod.
Both are coming in 0.15.19.
Re: [Oxyd] [0.15.3] Can't load base scenarios with headless
Posted: Wed Jun 07, 2017 9:23 pm
by Cutemine
nice! thank you!