ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Hide Map Ping Texture, Please! (https://www.esoui.com/forums/showthread.php?t=8675)

NeuroticPixels 08/01/19 12:11 PM

Hide Map Ping Texture, Please!
 
Even after disabling all addons and libraries, and restarting the game, there's a blue map ping stuck on my map. (I had disabled everything to make sure it was in fact a base-game issue.)

I've tried disbanding my party and rejoining. The map ping disappears when not in a party, and reappears when I regroup.
It even moves for a few seconds if a party member pings somewhere else, but it always moves back into the same spot that it was in prior.

So, I've decided I'd rather not see map pings whatsoever. Never ever do I want to see one of these godforsaken map pings.

I've already googled my day away trying to find other fixes. Nothing is working for me.

My request is that someone makes an addon that makes the blue map ping invisible/hidden.
No mouse tooltip on the map for the ping. No compass information if I happen to look in the direction of a map ping.


OR...

Someone makes an addon that allows you to easily place and remove map pings, even map pings created by other players in your group.

I can supply an "invisible" texture, if it's needed.
https://www.dropbox.com/s/q7ape7orar...Blank.dds?dl=0
(Download from that dropbox link.)

Pictures in spoiler to further clarify the issue I'm having:
Warning: Spoiler


Thank you. This would be a big quality-of-life addon. This problem is really driving me nuts.

Baertram 08/01/19 12:36 PM

I got this problem as well but wasn't able to rebuild it.
Good to know it's a vanilla game UI problem and not raised through an addon (or did you leave libraries like LibGPS or LibMapPIng enabled as you have tested it?)

Removing map pings in total wouldn't be nice as it would break addons :-) Maybe removing the texture will work but do you really want to hide them all?
I'd rather get ZOs fix this bug where the mapping texture show without reason and moves even though noone used and changed it.

sirinsidiator 08/01/19 12:52 PM

What you see is very likely the group pings from addons that share data via pings. It's actually pretty easy to make an addon to permanently hide them. One would just need to call the SuppressPing function of LibMapPing and leave it like that. But that would hide ALL of them, even the ones that group members create by hand. A more proper solution would be to check if the ping is on the currently opened map in the BeforePingAdded callback and suppress or unsuppress as needed.

NeuroticPixels 08/01/19 01:06 PM

Hide Them Or Easily Remove Them As Needed. Either Works For Me.
 
Quote:

Originally Posted by Baertram (Post 38764)
Good to know it's a vanilla game UI problem and not raised through an addon (or did you leave libraries like LibGPS or LibMapPIng enabled as you have tested it?)

Removing map pings in total wouldn't be nice as it would break addons :-) Maybe removing the texture will work but do you really want to hide them all?

Like I said, I disabled all addons and all libraries and the issue was still present. Even after completing restarting the game. :(

And to answer your other question, yes. I'd be perfectly happy with all of the blue map pings totally hidden. They're more of a problem than a feature.

As for what sirinsidiator said... most of that is gibberish to me since I know diddly squat about code/API things.
But, whatever would allow me to hide the blue map pings or easily remove them as they happen if they get stuck, I would be ecstatic about.
:banana:

Baertram 08/01/19 01:42 PM

Download and enable LibMapPing and try this in the chat if the blue player map pings are shown again (or maybe even before to never see them again):

Code:

/script LibMapPing:SuppressPing(MAP_PIN_TYPE_PING)
If you want to see them again use:
Code:

/script LibMapPing:UnsuppressPing(MAP_PIN_TYPE_PING)
You could try to add this to the small addon with the /slash command I had created for you.
Just define something like this:

Lua Code:
  1. local function togglePlayerMapPings(onOrOff)
  2.  if not LibMapPing then return end
  3.  if onOrOff then
  4.    LibMapPing:SuppressPing(MAP_PIN_TYPE_PING)
  5.  else
  6.    LibMapPing:UnsuppressPing(MAP_PIN_TYPE_PING)
  7.  end
  8. end

Then add something to the slash commands like a new line with your own / command you'd like to use for on and one for off.
Maybe /pmpon and /pmpoff
And for /pmpon use the function togglePlayerMapPings(true) and for the other one togglePlayerMapPings(false)

NeuroticPixels 08/01/19 01:57 PM

Map Pings. Not Waypoints.
 
Quote:

Originally Posted by Baertram (Post 38767)
Download and enable LibMapPing and try this in the chat if the blue player map pings are shown again (or maybe even before to never see them again):

Code:

/script LibMapPing:SuppressPing(MAP_PIN_TYPE_PLAYER_WAYPOINT)
If you want to see them again use:
Code:

/script LibMapPing:UnsuppressPing(MAP_PIN_TYPE_PLAYER_WAYPOINT)

Those scripts hide the waypoints you create by pressing "F" on the map. I don't want to hide waypoints.
I want to hide the blue map pings, like shown in the first post in the spoiler tag.


Baertram 08/01/19 02:24 PM

Oh, replace this
Code:

MAP_PIN_TYPE_PLAYER_WAYPOINT
with this then and try if this works:
Code:

MAP_PIN_TYPE_PING

NeuroticPixels 08/01/19 02:35 PM

Quote:

Originally Posted by Baertram (Post 38769)
Oh, replace this
Code:

MAP_PIN_TYPE_PLAYER_WAYPOINT
with this then and try if this works:
Code:

MAP_PIN_TYPE_PING

/script LibMapPing:SuppressPing(MAP_PIN_TYPE_PING)
doesn't seem to do anything. :(

Thank you for the effort. Any other ideas? :confused:

Baertram 08/01/19 02:39 PM

Nope, it's sirinsidiator's library. Maybe he got an idea or can help any further ;)

sirinsidiator 08/02/19 07:21 AM

Suppressing pings works on a per unit tag base for the group pings. You'd need to call it once for each possible group member like so:
Code:

/script for i=1, 24 do LibMapPing:SuppressPing(MAP_PIN_TYPE_PING, GetGroupUnitTagByIndex(i)) end

NeuroticPixels 08/02/19 08:47 AM

Quote:

Originally Posted by sirinsidiator (Post 38776)
Suppressing pings works on a per unit tag base for the group pings. You'd need to call it once for each possible group member like so:
Code:

/script for i=1, 24 do LibMapPing:SuppressPing(MAP_PIN_TYPE_PING, GetGroupUnitTagByIndex(i)) end

Would the next member be i=2? Then i=3?
And how would I undo it? Change "SuppressPing" to "UnsuppressPing"?

Baertram 08/02/19 10:45 AM

The for i=1,24 does this already in a loop from 1 to 24 for you.
So only call the script once and all possible 24 group members should be in.

Yep, as shown above change to UnsuppressPing.

NeuroticPixels 08/02/19 02:05 PM

Cool. Thanks.
 
Quote:

Originally Posted by Baertram (Post 38778)
The for i=1,24 does this already in a loop from 1 to 24 for you.
So only call the script once and all possible 24 group members should be in.

Yep, as shown above change to UnsuppressPing.

Okay. Thank you, Baertram and Sirinsidiator! I'll try this the next chance I get.

I still think an addon dedicated to toggling (suppressing & unsuppressing) the map pings would be great. I know people on Fyrakin's minimap comment page have complained about the map pings getting stuck (a lot of users probably thing it's their minimap addons causing the issue) and I read a handful of forums where people had map pings stuck on their map.

Sounds like a bug the addon author community is left with to fix on their own. And it sounds like either one of you could easily create such an addon. ;)

Baertram 08/03/19 04:23 AM

Nope, I don't get paid for ZOs job:o
Code is above, if it helps create your keybindings and release the addon.

But I'd recommend to post this with /bug ingame if it happens without addons as well.
I already had done this, maybe the more the better.

Baertram 08/03/19 05:57 AM

Here is the code for the small SlashCommands addon I had created for you.
New slash commands are /mppon and /mppoff

SlashCommands v0.2

NeuroticPixels 08/03/19 10:46 AM

Quote:

Originally Posted by Baertram (Post 38783)
Here is the code for the small SlashCommands addon I had created for you.
New slash commands are /mppon and /mppoff

SlashCommands v0.2

Thank you, Baertram. ;)

Although, both of the new commands enable the player map pings.
Chat says "Player map pings enabled" with both /mppon and /mppoff.

Is this the problem?

Code:

        SLASH_COMMANDS["/mppon"] = function() toggle_MapPingFromPlayers(true) end
        SLASH_COMMANDS["/mppoff"] = function() toggle_MapPingFromPlayers(true) end

Should the 2nd part of the code say "(false)" instead of "(true)"?
I'm just taking a guess.

Baertram 08/03/19 11:39 AM

Yes, copy & paste error...
True: enable
False: disable

/mppon toggle_MapPingFromPlayers(true)
/mppoff toggle_MapPingFromPlayers(false)

NeuroticPixels 08/03/19 12:14 PM

Quote:

Originally Posted by Baertram (Post 38786)
Yes, copy & paste error...
True: enable
False: disable

/mppon toggle_MapPingFromPlayers(true)
/mppoff toggle_MapPingFromPlayers(false)

I got this error when I tried to use /mppoff:

user:/AddOns/SlashCommands/SlashCommands.lua:23: function expected instead of nil
stack traceback:
user:/AddOns/SlashCommands/SlashCommands.lua:23: in function 'toggle_MapPingFromPlayers'
|caaaaaa<Locals> state = false, stateTexts = tbl, i = 1 </Locals>|r
user:/AddOns/SlashCommands/SlashCommands.lua:31: in function 'fn'
EsoUI/Ingame/SlashCommands/SlashCommands_Shared.lua:71: in function 'DoCommand'
|caaaaaa<Locals> text = "/mppoff", command = "/mppoff", arguments = "", fn = user:/AddOns/SlashCommands/SlashCommands.lua:31 </Locals>|r
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1814: in function 'SharedChatSystem:SubmitTextEntry'
|caaaaaa<Locals> self = tbl, text = "/mppoff", valid = false, prefix = 47 </Locals>|r
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2577: in function 'ZO_ChatTextEntry_Execute'
|caaaaaa<Locals> control = ud </Locals>|r
ZO_ChatWindowTextEntryEditBox_Enter:3: in function '(main chunk)'
|caaaaaa<Locals> self = ud </Locals>|r
(tail call): ?
(tail call): ?

Baertram 08/03/19 03:56 PM

Oh, there is a typo, it should be Unsuppress instead of UNsuppress.
Corrected version:
SlashCommands v0.2

NeuroticPixels 08/04/19 08:17 PM

Still Getting An Error
 
Quote:

Originally Posted by Baertram (Post 38788)
Oh, there is a typo, it should be Unsuppress instead of UNsuppress.
Corrected version:
SlashCommands v0.2

Sorry to keep bothering you, but I tried /mppoff again tonight and I still got an error with the new version.

Lua Code:
  1. user:/AddOns/SlashCommands/SlashCommands.lua:25: operator .. is not supported for string .. nil
  2. stack traceback:
  3. user:/AddOns/SlashCommands/SlashCommands.lua:25: in function 'toggle_MapPingFromPlayers'
  4. |caaaaaa<Locals> toggleState = false, stateTexts = tbl </Locals>|r
  5. user:/AddOns/SlashCommands/SlashCommands.lua:31: in function 'fn'
  6. EsoUI/Ingame/SlashCommands/SlashCommands_Shared.lua:71: in function 'DoCommand'
  7. |caaaaaa<Locals> text = "/mppoff", command = "/mppoff", arguments = "", fn = user:/AddOns/SlashCommands/SlashCommands.lua:31 </Locals>|r
  8. EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1814: in function 'SharedChatSystem:SubmitTextEntry'
  9. |caaaaaa<Locals> self = tbl, text = "/mppoff", valid = false, prefix = 47 </Locals>|r
  10. EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2577: in function 'ZO_ChatTextEntry_Execute'
  11. |caaaaaa<Locals> control = ud </Locals>|r
  12. ZO_ChatWindowTextEntryEditBox_Enter:3: in function '(main chunk)'
  13. |caaaaaa<Locals> self = ud </Locals>|r
  14. (tail call): ?
  15. (tail call): ?

Any idea?


All times are GMT -6. The time now is 09:48 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI