Combat NPC have got a fish memory
BadLucKWyvern opened this issue · 14 comments
Some are forgetting their combat order (walking around without goal, even with an order), i have to recall them to make em working again. Its very random, it can happen after 30 seconds like after 30 minutes or more
How to reproduce it: Thats random
Temp way to fix it:
- Recall the NPC and unleash him again
- Leave the area (go far, to force em to despawn) and come back
sorry, but I will need more concrete steps on how to recreate. I can't just wait around for 30 mins hoping that this will happen. And as far as I can see there's no reason for this happening and despite loads of players playing the mod and many of them in our discord you seem to be the only one with the issue so I am suspecting the modpack that you have is causing this.
i saw that kind of problem on a mod spotlight
https://www.youtube.com/watch?v=-OU9vYvx-jY
It seems to be an old bug
and i don't think the player is using tons of mod, like me :S
inventory handling on NPCs was actually completely reworked so it can't be a bug from 1.7.10 and yet again I don't see how the order would just disappear, at least there's no code in AW that could cause that - there are simple things like put order, take order that are only run from GUI and then there's saving the order to nbt and loading back. yes potentially the saving of the nbt can break, but then that's a server that is having issues saving the nbt.
So again I would need more concrete steps to recreate otherwise I can't do anything with this issue, but to close it.
Ill try by playing but i don't think i can reproduce it intentionally...
the order is still in the order slot, but taking it and puting back isn't fixing the problem, i really have to despawn the NPC
Maybe some random fight with mobs will disturb their mind ? :d
Sorry, I didn't read the original description properly and didn't realize the combat order is in inventory. Is the NPC properly fed when it starts behaving like that? Getting food is higher priority than following the order.
Yes, he mob isn't moving, and sometimes randomly moving (the zigzaging green arrow abouve its head)
By resummoning him, or leaving the area and coming back, the NPC should be fixed, at least resummoning him is 100% working
I've been testing this with multiple NPCs for at least an hour and haven't seen them stop.
So I will need more info on how to recreate this.
Also are you sure that they are not hungry when that happens? Because the only time they stopped for me was when I removed town hall and they didn't have an upkeep point defined and got hungry.
Nope, the home command is working well, when they are hungry they automatacally going home for food.
I have 4 doors on my village and i put 2 guards each. And sometimes a guard is missing, sometimes 2. by leaving the area and coming back, they seems to be not bugged anymore
Ill try to take pics for you
Ive currently loaded the world. All's fine for now, all guards are on their guard point:
Few minutes later (some mob kills on my side, i came back to the village) and that dude is lost, he is the guard N°2 from the team N°1
This one is the N°1 guard from the team N°1, he was lost like him, he just eat, and is still lost
His guard order is still attached , same to the N¨2
based on the icons above his head he's trying to get food or move home, probably having trouble finding path
Are you using chunk loaders? What I think is happening is that they are attempting to return to their upkeep point for food, but get unloaded, something gets messed up there, and when the chunk loads, they are confused
Just a theory
as said in the commit I have just submitted there seems to be an issue with attack target getting stuck even when entity is dead in which case npcs didn't patrol, but at the same time were not able to attack the dead entity either. Not sure if that's a fix for this one as I don't have enough data for that, but would make sense to retest after release to see if it's fixed.
My home is near the village, probably at the chunk limit generation distance
About chunks, no, i haven't installed a chunk loader yet, it could be usefull to install one in the center of the village ?
But he can't be lost with the distances, they are able to go back to the base for food for further than that distance