Disable World Map via API using GameViewSettings and Event

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
klugemonkey
Inserter
Inserter
Posts: 23
Joined: Tue Jun 12, 2018 5:07 am
Contact:

Disable World Map via API using GameViewSettings and Event

Post by klugemonkey »

Request:

Please add some means from within the API to selectively disable the world map for players and forces.

Background:

Currently, the World Map is toggled via the M key and produces no API Event that can be consumed to force close the it's GUI, nor is there an API setting to disable it's display. This functionality would be useful in some scenarios where we want not only the fog of war but for the players not to see each others location for strategic purpose.

Proposal:

If an event could be added when the World Map is opened by a Player, then a scenario using the API could determine whether to cancel or close that World Map GUI for specific Players, Forces or everyone.

Another other option would be to have that World map only open based on an additional GameViewSettings member such as "show_world_map", however this would mean that no players in the game would be able to open the world map with the "M" key (or whatever key is assigned) and provide less functionality.

Ideally, the latter would determine whether an event is fired or not in the game.

Thanks for your consideration.

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Disable World Map via API using GameViewSettings and Event

Post by Honktown »

There was also discussed, a possibility of using a permission for it. Even with *every* permission disabled, map opening is still permitted.
I have mods! I guess!
Link

Post Reply

Return to “Modding interface requests”