LuaPlayer.map_visibility :: boolean

Post Reply
AntiElitz
Filter Inserter
Filter Inserter
Posts: 445
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

LuaPlayer.map_visibility :: boolean

Post by AntiElitz »

We have several scenarios where we want to have spectators observing the game in god mod. Unfortunately there does not seem to be any way to turn off the Player dots moving over the map. This is specifically annoying for spectators in an opponent force that are red dots and can be mistakes for enemies. On an allied Player you may turn off the dot by using LuaPlayer.color = {r = 0, g = 0, b = 0, a = 0}. However this wont remove the players Name from (mini-)map view.

Therefore a possibility to turn off the map visibility of any player (at best towards any specific force) would be appreciated.

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: LuaPlayer.map_visibility :: boolean

Post by PFQNiet »

Can't you use defines.controllers.spectator?

AntiElitz
Filter Inserter
Filter Inserter
Posts: 445
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: LuaPlayer.map_visibility :: boolean

Post by AntiElitz »

That doesn't fix the issue.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: LuaPlayer.map_visibility :: boolean

Post by Klonan »

Is it only an issue with spectator controllers?

I don't see that its a problem if we hide them from enemy players, they are spectators, non participants, even just being somewhere is information leaking through the divide

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

Re: LuaPlayer.map_visibility :: boolean

Post by Rseding91 »

I'm slightly confused. To make sure I'm understanding: you're asking for a way to hide spectator dots/names on the map from non-spectators?
If you want to get ahold of me I'm almost always on Discord.

mmmPI
Smart Inserter
Smart Inserter
Posts: 2728
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: LuaPlayer.map_visibility :: boolean

Post by mmmPI »

None of my business, but that seems to be the request.

Like you're playing on a competitive server, building your thing, and you see red dots on the map coming at you, one need to make sure those are spectators, not ennemy, which is distracting.

And if you suddenly see 5 or 6 spectators dot/name that are coming from the ennemy side, slowly going at you while avoiding forest and cliff, you may have clues that they are spectating your ennemy attacking you and guess its position, which is more like cheating than just annoying.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2240
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: LuaPlayer.map_visibility :: boolean

Post by boskid »

Added LuaPlayer::show_on_map [RW] for 1.1.47.

AntiElitz
Filter Inserter
Filter Inserter
Posts: 445
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: LuaPlayer.map_visibility :: boolean

Post by AntiElitz »

Thank you so much! That's really cool :)

Post Reply

Return to “Implemented mod requests”