Map Editor - Add back Fog of War?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Bushdoctor
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Feb 21, 2016 6:33 pm
Contact:

Map Editor - Add back Fog of War?

Post by Bushdoctor »

Hello,

I generated a map, then converted it to a scenario, opened it with the map editor, adjusted the terrain a bit and saved the map.
When I now open it, the fog of war has been lifted from the areas that I have viewed/changed in the editor. Can I somehow put back the fog of war, so the map looks 'normal' for when I invite a friend to play? Have I overlooked that option in the editor?


-edit.
I found this, but I don't know what it means.
Klonan wrote:
Tue Dec 24, 2019 12:32 pm
Something like this:

Code: Select all

for k, force in pairs (game.forces) do force.clear_chart() end

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Map Editor - Add back Fog of War?

Post by darkfrei »

Last edited by darkfrei on Sat May 02, 2020 9:10 pm, edited 1 time in total.

User avatar
MEOWMI
Filter Inserter
Filter Inserter
Posts: 309
Joined: Wed May 22, 2019 12:21 pm
Contact:

Re: Map Editor - Add back Fog of War?

Post by MEOWMI »

What that code snippet will do (presumably) is reset the explored areas for each force. Run it in the chat in the editor.

Prior to doing the editing, you can also avoid the issue to begin with by changing forces in the editor, so the explored terrain won't show up for the player, but for the enemy (or another force that you can manually create).

Post Reply

Return to “Gameplay Help”