Comments (19)
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.
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.
https://hasteb.in/ijetusog.java
My Code
Sometimes the NPC doesn't go away sometimes there is no set time.
from npclib.
So, first you see it and then it disappears? The hologram is still visible, just not the NPC, right?
from npclib.
Recognize both. And yes at the beginning I see him talking to BGHDDevelopment and they said I should create a problem
from npclib.
Both will disappear *
sorry my english is bad. Im from germany
from npclib.
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.
Hm okay. Thanks man.
from npclib.
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.
Can you fix the problem today?
from npclib.
It would be important for me but you also have a life so please take your time as soon as possible
from npclib.
What's the view-distance
in your server.properties
set to?
from npclib.
10
from npclib.
What does that have to do with it?
from npclib.
Ahh it works with view-distance: 16!
from npclib.
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.
Okay.
from npclib.
The problem is back! **
from npclib.
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)
- Distant NPCs don't spawn when getting closer with ViaVersion HOT 2
- Custom AI for NPC?
- 1_16_R3 incompatible HOT 5
- HEX colors HOT 1
- NPC Movement HOT 2
- 1.17 support
- The NPC isn't configured to use skin overlays HOT 2
- Nullpointer when creating NPC HOT 1
- Replace Skin id by Skin uuid HOT 1
- discord for the people (link inside)
- Could not resolve dependencies
- Failed load the plugin HOT 1
- Fix NPC not fully loading if constructed when no players are online HOT 1
- Cannot invoke "net.jitse.npclib.api.NPC.setLocation()" because "npc" is null HOT 6
- NPC Rejoin Disappearance
- NPC save system HOT 2
- Exception in thread "pool-14-thread-2" java.lang.NullPointerException: "this.npcLib" is null" HOT 2
- Wrong README info HOT 1
- An opinion on skin HOT 1
- java.lang.ExceptionInInitializerError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npclib.