See here: https://lua-api.factorio.com/latest/cla ... ender_mode
The description tells me to use LuaPlayer::open_map, LuaPlayer::zoom_to_world and LuaPlayer::close_map. When I try to call those in my control.lua I get an error saying LuaPlayer does not contain those keys.
Seems LuaPlayer::set_controller is meant to be a replacement for this maybe?
[2.0.22] LuaPlayer open_map, zoom_to_world, close_map
[2.0.24] LuaPlayer.RenderMode examples no longer available
https://lua-api.factorio.com/latest/cla ... ender_mode
LuaPlayer::open_map, ::zoom_to_world and ::close_map were removed with Factorio 2.0The render mode of the player, like map or zoom to world. The render mode can be set using LuaPlayer::open_map, LuaPlayer::zoom_to_world and LuaPlayer::close_map.
Re: [2.0.22] LuaPlayer open_map, zoom_to_world, close_map
This was fixed at some point.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.