Page 1 of 1

Lua map view R/W

Posted: Wed May 09, 2018 12:25 pm
by Chocolatetthunder
I propose adding in the scripting for mods and scenarios to have control over map view. such as:
  • access weather the player is in map view or not, and put them in map view.
    be able to change where they are looking in the map view.
This could be useful for cut scenes or other unseen uses.
I am trying to build in aids for spectators of the pvp scenario. If players are damaged to be able to show a button to take them to that player. but most spectators use map view as to not confuse the players when they see on their mini-map another player next to them. and the navigation is far quicker than moving a controller object to where you wish to spectate.

Re: Lua map view R/W

Posted: Wed May 09, 2018 12:30 pm
by I_IBlackI_I
An alternative to this is to make a player in god mode and adjust the game.player.zoom (http://lua-api.factorio.com/latest/LuaP ... layer.zoom). This way it will also show the GUI for the spectator to interact with.

Re: Lua map view R/W

Posted: Wed May 09, 2018 11:41 pm
by Chocolatetthunder
I_IBlackI_I wrote:...This way it will also show the GUI for the spectator to interact with.
Gui elements can already be seen while in map view
I_IBlackI_I wrote:An alternative to this is to make a player in god mode and adjust the game.player.zoom...
Spectators already are in a god controller and navigation of this controller is far slower compared to zooming and scrolling on the map view. Also There is still a dot on the mini map witch can confuse players playing and not spectating so either give the option to remove the mini map dot so players cant see spectators or add this functionality.

Re: Lua map view R/W

Posted: Tue May 15, 2018 2:12 am
by JuicyJuuce
This would be pretty helpful, especially as we do livestreams of pvp events on Twitch where our shoutcasters are in spectator mode. Them being able to push a button and have their map view go to the action would improve the quality of the broadcast.