Holographic Displays

Holographic Displays

3M Downloads

Individual holograms not hiding from other players when they join after (you)

mechoriet opened this issue ยท 5 comments

commented

Description

holograms are stacking up while using HolographicDisplays 2.4.3 with ProtocolLib 4.5.1 on 1.8.8

image

final Player p = user.getPlayer();
final List<Hologram> list = Lists.newArrayList();

for ( Location loc : hologramLocations )
{
    Hologram hologram = HologramsAPI.createHologram( SkyWars.getInstance(), loc );
    VisibilityManager vm = hologram.getVisibilityManager();

    vm.showTo( p );
    vm.setVisibleByDefault( false );

    for ( String line : lines ) // lines come from a config
    {
        line = format( user, line ); //does this placeholder to data conversion
        hologram.appendTextLine( line );
    }
    list.add( hologram );
}
holograms.put( user.getName(), list );

it maybe seems like when they get in entity activation distance
it gets shown to everyone instead of only that player that was set via the vm.showTo( p ); possibly

How to reproduce

Platform

  • Server version (output of /version): 1.8.8
  • Holographic Displays version (check with /hd): 2.4.3
  • ProtocolLib version, if installed (check with /protocol version): 4.5.1
  • Do you use plugins to allow players to join with multiple Minecraft versions (such as ViaVersion, ProtocolSupport, ...): ViaVersion-3.0.1

Additional context

maybe some usefull information

    entity-activation-range:
      animals: 32
      monsters: 32
      misc: 16
    entity-tracking-range:
      players: 64
      animals: 10
      monsters: 10
      misc: 16
      other: 24
commented

Please try the new beta version on Bukkit Dev. It natively uses packets, so players should only see the holograms when they are allowed to.

commented

tried it also with entity-* on 64 so they are always visible but then its still happening

you can also see the armor stands being placed/visable for a split seconds

commented

Hello @mechoriet ,

Could you explain me how you make personal hologram, I also tried to make it but I had the same issue, holograms where getting stacked. But this is because I keep creating a new hologram when I want to update the hologram.

So I was wondering how you are doing this.
I am trying to create a stats hologram which I need to be able to update every time on request, but as you said it also stacks for me. Due I create everytime for the player a new hologram on that location.

commented

Hello @mechoriet ,

Could you explain me how you make personal hologram, I also tried to make it but I had the same issue, holograms where getting stacked. But this is because I keep creating a new hologram when I want to update the hologram.

So I was wondering how you are doing this.
I am trying to create a stats hologram which I need to be able to update every time on request, but as you said it also stacks for me. Due I create everytime for the player a new hologram on that location.

The code that is used for creating holograms is in the initial explanation.

commented

I already got it, and it's fully working.