mcmonkeyprojects / Sentinel

Combat NPCs for Spigot!
MIT License
168 stars 84 forks source link

Sentinel teleports NPCs #275

Closed Straikerinos closed 5 years ago

Straikerinos commented 5 years ago

2019-01-12_18 47 13 2019-01-12_18 47 15 2019-01-12_18 47 20 2019-01-12_18 47 23

Server version: 1.12.2-R0.1-SNAPSHOT Citizens version: 2.0.24-SNAPSHOT (build 1591) Sentinel version: 1.7.6 (build 207)

Hello i have problem with plugin sentinel.. NPCs are teleported by sentinel ! They have a specified path in / npc path .. Each time 5 blocks go and teleports 20 blocks away. Please fix it ! :( Thank you.

mcmonkey4eva commented 5 years ago

I'm not sure I entirely understand.

Are you saying: NPCs are following a path set by /npc path, and as they walk along they suddenly teleport ahead of themselves?

If so: have you tested whether that still happens when NPCs do not have the sentinel trait?

See also the bit about updating on your other issue #274

Straikerinos commented 5 years ago

if i set /trait sentinel off npc path working without problems

mcmonkey4eva commented 5 years ago

How long are the paths they're set to take? Like, from one point to the next how far exactly do they need to go? (number of blocks walked over)

Straikerinos commented 5 years ago

7 - 12

Straikerinos commented 5 years ago

if I set 2-4 block so I did not teleport

tap3w0rm commented 5 years ago

I am having the same issue 1.13.2 spigot

Short paths like markers every 2 to 3 squares ... no problem. Other than that they either teleport from one point to the next or just sit there and walk in a circle and never move off their squares. Other npc's dont have this issue.

Straikerinos commented 5 years ago

:+1:

mcmonkey4eva commented 5 years ago

I cannot replicate any issues here.


I would note that there's a Citizens functionality known as pathrange, which specifies how far an NPC is able to walk before it teleports. If you're setting path points longer than the pathrange, it will of course teleport. The default pathrange value is 25, and you can change it via /npc pathrange

My best guess is that you're encountering the pathrange limit here, there doesn't seem to be anything wrong with pathfinding in my testing.


There were separate problems with pathfinding recently, if the pathrange check doesn't suffice please ensure you're running latest Sentinel: https://ci.citizensnpcs.co/job/Sentinel/ (build 216 or newer) And latest Citizens: https://ci.citizensnpcs.co/job/Sentinel/ (build 1624 or newer) And latest Spigot/Paper for 1.12.2 or 1.13.2 (Use /version - if it says "You are [x] builds behind" please update)


If issues persist on latest version, and pathrange functionality seems unrelated, please post below with sufficient details that I may be able to replicate the issue (Including Sentinel, Citizens, and server version, plugin list, Sentinel and Citizens config files, and details of what you're doing in-game)