.17 How to hide the map in your custom scenario

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Tue Nov 15, 2016 10:56 pm

.17 How to hide the map in your custom scenario

Post by Omarflyjoemacky » Sun Mar 03, 2019 11:52 pm

Hello All

In .16, you could create a scenario (edit a map, add resources and start points, etc), then load the scenario and the map for the player would be hidden. Like a new game.

In .17, all the work did on the map is fully shown, so no surprises for the player.

Rseding91 said there was a lua command to hide the map, but the only one I've found actually resets all the chunks. See below.

/c local surface = game.player.surface; game.player.force.cancel_charting(surface); local chunk_radius = 32; for chunk in surface.get_chunks() do if (chunk.x < -chunk_radius or chunk.x > chunk_radius or chunk.y < -chunk_radius or chunk.y > chunk_radius) then surface.delete_chunk(chunk) end end

Anyone have any advice on this? Originally reported as a bug, as I verified .16 works fine but .17 doesn't "hide the map" like .16 did. :|
"And then Bender ran."

Post Reply

Return to “Gameplay Help”

Who is online

Users browsing this forum: No registered users