freeplay or scenario
Posted: Tue Jan 10, 2017 2:28 pm
Is there a way to know if a map is a scenario or a freeplay?
single player or multi player?
single player or multi player?
Freeplay is a scenario.mophydeen wrote:Is there a way to know if a map is a scenario or a freeplay?
Checking the count of LuaGameScript.players should be able to tell you. I'm not sure what this will look like if the game was started in multiplayer with only one player, though. Or if the game is considered to be multiplayer then.mophydeen wrote:single player or multi player?
I could start a multiplayer and play it alone. It's multiplayer but only 1 player ..daniel34 wrote: Checking the count of LuaGameScript.players should be able to tell you.
daniel34 wrote: The question is though: why would you need to do that? Factorio behaves the same way (from the API side) in both cases.