Hello
Like i mentioned in the topic name, I have a problem with creating a map for sandbox play.
I cant save it unless I place a player but then its not a free sandbox anymore ;/
Is there a way to go around it?
Thanks!
Cannot save map. There is no player - how to deal with it?
Re: Cannot save map. There is no player - how to deal with i
add a player, then create a control.lua file manually within the scenario folder and add that should place you in god mode (in fact it's the same code that the devs used in the sandbox control.lua).
Code: Select all
game.oninit(function()
local character = game.player.character
if character then character.destroy() end
game.player.setcontroller{type=defines.controllers.god}
end)
Re: Cannot save map. There is no player - how to deal with i
It worked!
Thank you
Thank you