How can I make a sandbox scenario with the map editor?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
User avatar
Madara Uchiha
Inserter
Inserter
Posts: 35
Joined: Sun Feb 02, 2014 11:21 pm
Contact:

How can I make a sandbox scenario with the map editor?

Post by Madara Uchiha »

I tried opening the sandbox map as template, I tried removing the player (by placing water on top of it), I tried fiddling with the options.

I couldn't find it. How can I make a god-mode like sandbox scenario with the map editor. Can I?

User avatar
Madara Uchiha
Inserter
Inserter
Posts: 35
Joined: Sun Feb 02, 2014 11:21 pm
Contact:

Re: How can I make a sandbox scenario with the map editor?

Post by Madara Uchiha »

Found it. Edit the "player" entity (press T with mouse on it) and uncheck all of the difficulties. That'll make the player not appear when starting a game, and you in god mode :)

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: How can I make a sandbox scenario with the map editor?

Post by slpwnd »

Actually that is not intended behavior, but it is nice that it works :D For the god mode game (custom scenarios -> sandbox) we disconnect the player from the script on creation.

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)

User avatar
Madara Uchiha
Inserter
Inserter
Posts: 35
Joined: Sun Feb 02, 2014 11:21 pm
Contact:

Re: How can I make a sandbox scenario with the map editor?

Post by Madara Uchiha »

Bump. This no longer seems to work. How can I do this in the newer versions?

Post Reply

Return to “Gameplay Help”