My NPCs seem to refuse to stay within their boudries. They seem to flock to the boarder, walk over it, and freeze. I'm using the wand and defining a region in my world, then using /rg path and select worldguardregion myregion. Then wander. Am I doing something wrong? I want them to explore the whole region. They're enemies so I've also tried /trait sentinel and /sentinel wgregion myregion with no luck. Thanks.
MC Java 1.20.2, Paper, Citizens2 2.0.33-b3262, Sentinel 2.8.1-SNAPSHOT-b513
#(oasisavatar) NPC Player Leaving Region
75 messages · Page 1 of 1 (latest)
(oasisavatar) NPC Player Leaving Region
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.
Does the issue persist both with and without Sentinel?
if you could also share:
!logs
Please post your full latest log file.
Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).
How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.
Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.
It does
Content of Server Log Paste #117688: Oasis Roaming NPC1... pasted 2023/11/17 12:36:54 UTC-08:00, Paste length: 93488 characters across 1040 lines, Content: [12:45:13] [ServerMain/INFO]: Environment: Environment[accountsHost=https://api.mojang.com, sessionH...
Content of Server Log Paste #117688: Oasis Roaming NPC1... pasted 2023/11/17 12:36:54 UTC-08:00, Paste length: 93488 characters across 1040 lines, Content: [12:45:13] [ServerMain/INFO]: Environment: Environment[accountsHost=https://api.mojang.com, sessionH...
Server Version
Paper version git-Paper-291 (MC: 1.20.2)-- (Outdated build, behind by 1... Current build is 292)
Plugin Version(s)
Citizens v2.0.33-SNAPSHOT (build 3262) -- (Outdated build, behind by 4)
Denizen v1.2.9-SNAPSHOT (build 1799-REL) -- (Current build :white_check_mark:)
Sentinel v2.8.1-SNAPSHOT (build 513) -- (Current build :white_check_mark:)
Checked For
@muted yew
UUID Version
4 (:white_check_mark: Online)
Java Version
17.0.9 :white_check_mark:
Other Noteworthy Plugin(s)
WorldGuard v7.0.9+5934e49, ProtocolLib v5.1.1-SNAPSHOT-673, Quests v5.0.0-rc.1-b430
Possibly Relevant Plugin(s)
TAB v4.0.8 - This plugin adds Below_Name scoreboards to NPCs.
Multiverse-Core v4.3.12 - Multi-world configuration plugins may affect NPCs in unexpected ways.
SimplePets v5.0-BUILD-222 - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.
GSit v1.5.3 - 'Sit on other players' or 'sit on mobs' plugins sometimes allow players to sit on NPCs.
Potentially Bad Line(s)
[12:45:17] [Server thread/ERROR]: [ModernPluginLoadingStrategy] Ambiguous plugin name 'ExecutableItems' for files 'plugins\ExecutableItems_Prem-6.23.11.12.jar' and 'plugins\ExecutableItems-6.23.11.12.jar' in 'plugins' :warning: Log contains error messages.
I know there are some other plugins that have issues
Enable path debug and get a screenshot please
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.)
@muted yew
I'll get it today. Don't close it.
Is this it?
@muted yew can you get a pic when it tries to leave the region
Getting now
!disablereplies
+++ Info disablereplies: Please disable reply-pings when responding to helpers. This relates to Rule #3: https://denizenscript.com/discord_rules#rule3
https://denizenscript.com/discimg/disable_replies.png
Deleted and made new NPC
This is a new world via portal in the main world. Not sure if that matters.
Had issues in the main world too but got it to work and NPCs stay in the region but not if I trace the pathout
I can't see any path debugging in your screenshot
is /npc wander set to pathfind or not
(can see in /npc path editor)
it should look like flowers
Sorry, wasn't enabled, just regular, relaoding
Oh!
I delete it cause the flowers, lol. One sec
the flowers are clientsided
He stops
And doesn't roam in the bounds, just seems to try to get out, does, the stops.
yeah I see
tricky to fix
it is fixable though
I just don't know when I'll have time to do it
Like he doesn't walk from side to side, just flutters like a bee in a corner till it gets out
Ok
Changed to Bug
Thread is now a Bug thread. This indicates a core code bug that a developer must resolved, not an error message or other support topic. Please do not misuse the Bug label. Use </helpthread:1028674284870180883> to switch the thread back to a normal help thread if you are not 100% confident it is a code bug.
Like I said this is happening in a new world created in the main world. The main work regions work, but tracing the path doesn't work in either.
so the wander will always pick points within the pathfinding region
but it might include pathfindable blocks outside of the region
if you turn off pathfinding it might be better to be honest
Ok, I havent tried linear before. I'll try now
not linear
Oh?
in /npc path just toggle the pathfind option
it will just randomly pick a direction to walk in for a few ticks
instead of pathfinding between two points
I'm not sure I understand. /npc path opens the wander waypoint editor. If I exit and do /npc wander then it set to linear. /npc path in linear gives me Linear Waypoint Editor
Ohhh
Is it pathfind false?
or red is off?
Ok hes in bounds but stopped
Out now with pathfinding off and Sentinel on.
Another issue is Pathfind seems to obe required to set the walking speed /npc speed
We see this for a test NPC on the console
This is an NPC that is working in the main world. Pathfind on, set to a region
can you share the log for this please?
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.)
@muted yew