[2.0.22] LuaPlayer open_map, zoom_to_world, close_map

StephenB
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jul 19, 2024 10:12 am
Contact:

[2.0.22] LuaPlayer open_map, zoom_to_world, close_map

Post 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?
BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Fri Mar 16, 2018 4:54 am
Contact:

[2.0.24] LuaPlayer.RenderMode examples no longer available

Post 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
Bilka
Factorio Staff
Factorio Staff
Posts: 3357
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.22] LuaPlayer open_map, zoom_to_world, close_map

Post by Bilka »

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.
Post Reply

Return to “Resolved Requests”