Page 1 of 1

Map Editor - Add back Fog of War?

Posted: Sat May 02, 2020 5:25 am
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

Re: Map Editor - Add back Fog of War?

Posted: Sat May 02, 2020 5:48 am
by darkfrei

Re: Map Editor - Add back Fog of War?

Posted: Sat May 02, 2020 9:05 am
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).