LuaControl.map_position

Things that we aren't going to implement
Post Reply
PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

LuaControl.map_position

Post by PyroFire »

FOR USE WITH [m] Map Overlay

LuaControl.map_position = position the player is at on the map screen (center point)
LuaControl.map_zoom = tells me how zoomed in the player is, specifically to determine of the surface is being drawn or if the map overlay is being drawn.
LuaControl.map_is_open = exactly what it says on the tin

defines.events.on_player_map_state_changed (or opened/closed)


.... Why?

Because factorio doesn't like it when i draw over 200,000 sprites at once.

Image

So instead i need to only draw them when they should be visible to a player.

Can't detect that for map view.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13220
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaControl.map_position

Post by Rseding91 »

The zoom level, and map position are not part of the game state and so can't be read by mods because they aren't deterministic.

We aren't looking to add them because it would mean more network traffic in multiplayer and more disk space for replays - all for something the base game would never use.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”