Giter Site home page Giter Site logo

npclib's People

Contributors

ktar5 avatar mrlittlekitty avatar nomnuggetnom avatar techcable avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

npclib's Issues

HumanNPC#setName errors

Anytime I attempt to call setName, it errors out with this error. I've made sure none of the names or anything are null and can show the code if you would like.

java.lang.NullPointerException
        at net.techcable.npclib.nms.NMSLivingNPC.setName(NMSLivingNPC.java:29) ~[?:?]
        at com.reactivemc.hub.listeners.NPCListener.spawnNPC(NPCListener.java:55) ~[?:?]

I'm running Spigot 1.7/1.8 protocal hack on the latest version of NPCLib.

Spammy bug with AntiAura

Hey! I'm using the newest versions of both AntiAura and NPCLib, this happens every time a player first starts moving on the server :/ (Running the latest 1.8.6 Spigot)

[22:57:32] [Server thread/ERROR]: Could not pass event PlayerMoveEvent to AntiAura v5.05
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:269) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PacketPlayInFlying.a(SourceFile:126) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:57) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_67]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_67]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:60) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_67]
Caused by: java.lang.NoClassDefFoundError: de/inventivegames/npc/NPCLib
at a.j.f(PacketStuff.java:39) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
... 15 more
Caused by: java.lang.ClassNotFoundException: de.inventivegames.npc.NPCLib
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_67]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_67]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_67]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_67]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_67]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_67]
at a.j.f(PacketStuff.java:39) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
... 15 more

Issue with #walkTo(Location)

Issue:

#walkTo(Location)

(It happens some times, but not every time)

Code (Text):
[18:45:14 WARN]: [SimplePractice] Task #80 for SimplePractice v0.1 generated an exception
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) ~[?:1.8.0_131]
at java.util.HashMap$KeyIterator.next(HashMap.java:1461) ~[?:1.8.0_131]
at net.techcable.npclib.ai.AIEnvironment.tick(AIEnvironment.java:18) ~[?:?]
at net.techcable.npclib.nms.ai.NMSAIEnvironment.access$000(NMSAIEnvironment.java:8) ~[?:?]
at net.techcable.npclib.nms.ai.NMSAIEnvironment$1.run(NMSAIEnvironment.java:20) ~[?:?]
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]

Weird bodies

The body of an NPC doesn't change based of the yaw of the location/head which results in this:

Also after what seems to be a random out of time, the head and body turns to the correct pitch and yaw what was set intentionally. Though this only happens when I teleport the NPC to the location I spawn it, right after I spawn it

Skins Not Working

The server is in online mode and real players who log in get their skins.

Using NPCLib version 2.0.0-beta2-SNAPSHOT

Using this Spigot version:
Spigot version

Code used to spawn NPC: (almost identical to example provided)

NPCRegistry registry = NPCLib.getNPCRegistry("awesome-registry", instance);
HumanNPC npc = registry.createHumanNPC("jack");
npc.setName("greeter");
npc.setProtected(true); //Makes invincible
npc.setSkin(UUID.fromString("613517d7-31bb-47bd-bc33-7870d4f3adc5")); //Gives the npc my troll skin
npc.spawn(player.getLocation()); //Spawns at server spawn

Result:
Result

There was one time where it actually worked, but hasn't worked since then.

Pathfinding

I was wondering if there was a way to move the NPCs to other locations, as I did not see anything in the NPC interface.

Body direction

How should we set body direction?

trying with yaw give very strange result ...
(using latest build)
4 npc with different yaw(value on name) all faceLocation set to the red wool... impossible to get the body facing the red wool

6ef408dd421c13055ea9b381ec7e15e7

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.