Page 1 of 1

LuaPlayer.open_map(position, scale, surface)

Posted: Tue Mar 19, 2019 5:43 pm
by Earendel
Currently LuaPlayer.open_map() takes position and scale (optional).
I would like to be able to specify surface as an optional 3rd parameter.

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

Posted: Tue May 26, 2020 11:54 am
by billbo99
This feature would be helpful in Space Exploration where people are on multiple different surfaces, or with Factorissimo / Warptorio.

Ideally if this could be added to the richtext support so when people click a map position and it goes to the console with [gps=x,y,surface]. The surface variable would be optional and default to the surface the player was on.

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

Posted: Tue May 26, 2020 1:26 pm
by posila
The game doesn't support opening map for surface other than the player is currently on. It is pretty deeply tied to player's surface. I'm saying it so you don't expect this request to be fulfilled anytime soon.

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

Posted: Tue May 26, 2020 5:34 pm
by darkfrei
posila wrote: Tue May 26, 2020 1:26 pm The game doesn't support opening map for surface other than the player is currently on. It is pretty deeply tied to player's surface. I'm saying it so you don't expect this request to be fulfilled anytime soon.
Is it not the same as blueprint view screen?

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

Posted: Tue May 26, 2020 8:19 pm
by Rseding91
darkfrei wrote: Tue May 26, 2020 5:34 pm
posila wrote: Tue May 26, 2020 1:26 pm The game doesn't support opening map for surface other than the player is currently on. It is pretty deeply tied to player's surface. I'm saying it so you don't expect this request to be fulfilled anytime soon.
Is it not the same as blueprint view screen?
No. In fact they share virtually nothing code wise that I can think of.

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

Posted: Tue Jul 28, 2020 6:19 pm
by Creidhne
Hi,
I just wanted to +1 for this feature. it would be quite useful for my WIP mod: Dana. Right now I have to work with LuaPlayer.set_controller() & LuaPlayer.teleport() to swith from/to my interactive graphs, and that causes quite a few issues. Being able to just open a map (ideally with an option to disable the noise effect) would be much less bug prone.

You certainly have much better to do with the 1.0 release coming. I'm just posting in the hope that you'll consider this feature again at some point.

Sorry if I commited thread necroing :-)

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

Posted: Sun Apr 24, 2022 1:41 pm
by Xorimuth
+1 I’d love to be able to open the map on other surfaces for my mod Factory Search, primarily with Factorissimo. Though for space exploration planets I can use its navigation satellite remote interfaces.

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

Posted: Mon Jul 25, 2022 6:52 pm
by Pi-C
I really could use that feature for GCKI! Players now can open a minimap for vehicles they have claimed or locked. Clicking on the minimap should open a big map view centered on their vehicle's position -- but that won't work if the vehicle is on another surface than the player (e.g. a Factorissimo building or an SE surface).

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

Posted: Mon Nov 13, 2023 9:11 pm
by Thebri
I just got a feature request for https://mods.factorio.com/mod/AlertsList2: Opening the map on a speaker with an alarm set on a different surface. At least for 2.0 we will need this.

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

Posted: Mon Nov 13, 2023 9:34 pm
by BrainGamer_
Thebri wrote: Mon Nov 13, 2023 9:11 pm At least for 2.0 we will need this.
I asked about it on discord a month ago and the answer was "sure" so it seems very likely this will be a thing :D