GithubHelp home page GithubHelp logo

NPC disappears about npclib HOT 19 CLOSED

Exception426 avatar Exception426 commented on June 15, 2024
NPC disappears

from npclib.

Comments (19)

JitseB avatar JitseB commented on June 15, 2024 1

No, NPCLib is a free resource and I will treat it as such. I’ll only work on it in my spare time. If you would like this issue to be solved sooner. You could always try to help me find the issue yourself and create a PR! :)

from npclib.

JitseB avatar JitseB commented on June 15, 2024

Hi there, thanks for opening this issue ticket!
To help you any further, please provided me with the following information:

  • What code are you using the manipulate and spawn the NPC?
  • After about how long does the NPC disappear?
  • What usage option did you use? (you didn't fill that in in the template)

There's a reason why I ask all the things in the template, next time you create an issue ticket, please follow them and don't remove questions you thing are unnecessary. 😛

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

https://hasteb.in/ijetusog.java
My Code

Sometimes the NPC doesn't go away sometimes there is no set time.

from npclib.

JitseB avatar JitseB commented on June 15, 2024

So, first you see it and then it disappears? The hologram is still visible, just not the NPC, right?

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

Recognize both. And yes at the beginning I see him talking to BGHDDevelopment and they said I should create a problem

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

Both will disappear *
sorry my english is bad. Im from germany

from npclib.

JitseB avatar JitseB commented on June 15, 2024

Oh that’s actually a good thing. That’d mean it’s in the auto hiding system somewhere.
I’ll think about this problem for a bit, I’m rather busy tomorrow. I’ll have some time again the day after that.

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

Hm okay. Thanks man.

from npclib.

JitseB avatar JitseB commented on June 15, 2024

Note to self: The issue might exist because when the player gets in proximity of the NPC, its autospawn. NPC#spawn checks whether the player can actually see it using the dotproduct of the look direction. This might result in the system thinking it shouldn’t be testing for anymore.
Then the UUID of the player is in the shown set, but not in the autohide set anymore.

I think I have found the problem, but I’ll debug more in the day after tomorrow. 👍

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

Can you fix the problem today?

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

It would be important for me but you also have a life so please take your time as soon as possible

from npclib.

JitseB avatar JitseB commented on June 15, 2024

What's the view-distance in your server.properties set to?

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

10

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

What does that have to do with it?

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

Ahh it works with view-distance: 16!

from npclib.

JitseB avatar JitseB commented on June 15, 2024

Yeah, there's a slight issue with the auto-hiding system. I can't seem to figure it out now. I'll continue on it tomorrow.
Turns out I have added some partial check in the player listener, but have not yet implemented these in the NPC class. Resulting in this strange behavior.

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

Okay.

from npclib.

Exception426 avatar Exception426 commented on June 15, 2024

The problem is back! **

from npclib.

JitseB avatar JitseB commented on June 15, 2024

The issue should be fixed in v2.5.2-SNAPSHOT. You can download it here: https://github.com/JitseB/NPCLib/releases/tag/2.5.2-SNAPSHOT

I ended up reworking the entire auto-hiding system, I found some issues that gave false-positives; should be solved now.

If your issue does come up again, feel free to comment here. Then I'll reopen the ticket.

Have a good day!

from npclib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.