Add surface to LuaPlayer.open_map(position, scale)

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Add surface to LuaPlayer.open_map(position, scale)

Post by bobingabout »

As the title says, I want to use open_map to open the map at the position of an entity, that may not be on a different surface. I currently can't do this because the function doesn't take surface as an argument.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
posila
Factorio Staff
Factorio Staff
Posts: 5359
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Add surface to LuaPlayer.open_map(position, scale)

Post by posila »

At the moment GameView doesn't support rendering surface other than the one local player is on. For remote-viewing other surfaces, you'll need to use camera widget or minimap widget.
I_IBlackI_I
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Wed Feb 20, 2013 6:57 pm
Contact:

Re: Add surface to LuaPlayer.open_map(position, scale)

Post by I_IBlackI_I »

I would also love this feature, or make tags on a minimap element clickable. Use case would be to draw a map with locations on another surface, when a player clicks the tag they can teleport to that server.
User avatar
Godmave
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Nov 15, 2016 3:52 pm
Contact:

Re: Add surface to LuaPlayer.open_map(position, scale)

Post by Godmave »

I_IBlackI_I wrote: Thu Jul 11, 2019 12:06 pm or make tags on a minimap element clickable. Use case would be to draw a map with locations on another surface, when a player clicks the tag they can teleport to that server.
Or add x/y offset to the on_gui_click event, so we can deduce what the player clicked ourselves :)
Post Reply

Return to “Modding interface requests”