#(shiftingkill) Sentinel Stuck After Wander / NPC setMoveDestination() 1.21.8-1.21.11

13 messages · Page 1 of 1 (latest)

thin glacier
#

I have a sentinel that is spawned with the waypoint provider "wander" and then add a behavior to the NPC for some long range pathfinding. I take over the NPC movement and set waypoint wander to null (used to be "none" in older builds), and use setMoveDestination to guide it through the path of points. Once I am done, I try to put the NPC back into wander mode and it just freezes in place. There is an error with the waypoint provider when I set it to null:

[01:47:03] [Server thread/INFO]: [Citizens] Exception while updating 25: Cannot invoke "net.citizensnpcs.trait.waypoint.WaypointProvider.isPaused()" because the return value of "net.citizensnpcs.trait.waypoint.Waypoints.getCurrentProvider()" is null.
[01:47:03] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "net.citizensnpcs.trait.waypoint.WaypointProvider.isPaused()" because the return value of "net.citizensnpcs.trait.waypoint.Waypoints.getCurrentProvider()" is null
[01:47:03] [Server thread/WARN]:     at Sentinel-2.9.2-SNAPSHOT-b529.jar//org.mcmonkey.sentinel.SentinelTrait.pauseWaypoints(SentinelTrait.java:1467)
[01:47:03] [Server thread/WARN]:     at Sentinel-2.9.2-SNAPSHOT-b529.jar//org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1603)
[01:47:03] [Server thread/WARN]:     at Sentinel-2.9.2-SNAPSHOT-b529.jar//org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1829)
[01:47:03] [Server thread/WARN]:     at Citizens-2.0.41-b4040.jar//net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:484)
[01:47:03] [Server thread/WARN]:     at Citizens-2.0.41-b4040.jar//net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:487)
[01:47:03] [Server thread/WARN]:     at Citizens-2.0.41-b4040.jar//net.citizensnpcs.nms.v1_21_R7.entity.EntityHumanNPC.tick(EntityHumanNPC.java:385)
[01:47:03] [Server thread/WARN]:     at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1450)
...
grave valveBOT
#

(shiftingkill) Sentinel Stuck After Wander / NPC setMoveDestination() 1.21.8-1.21.11

grave valveBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

thin glacier
#

^ This error is running for all NPC sentinel, not just ones that I took over pathfinding from. They all wander correctly but the ones I used setMoveDestination() with become unmovable when I try to put their wander mode back on. I tried teleports and nudges and I think the only option is to respawn the sentinel

ashen axle
#

post that in #1027028179908558918

sage peakBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@thin glacier

thin glacier
ashen axle
#

ah

#

i see

#

try new dev build

thin glacier
#

Thank you that error is gone but the issue remains even if I set waypoint to null and back to wander mode it wont go back into wander, is that back to citizens side of things?