Page 1 of 1

[2.0.22] LuaPlayer open_map, zoom_to_world, close_map

Posted: Thu Nov 28, 2024 1:51 pm
by StephenB
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.24] LuaPlayer.RenderMode examples no longer available

Posted: Thu Dec 12, 2024 12:02 am
by BurninSun
https://lua-api.factorio.com/latest/cla ... ender_mode
The 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.
LuaPlayer::open_map, ::zoom_to_world and ::close_map were removed with Factorio 2.0

Re: [2.0.24] LuaPlayer.RenderMode examples no longer available

Posted: Thu Dec 12, 2024 2:56 am
by curiosity

Re: [2.0.22] LuaPlayer open_map, zoom_to_world, close_map

Posted: Fri Mar 14, 2025 5:39 pm
by Bilka
This was fixed at some point.