Naga AI broken
Matti-Koopa opened this issue ยท 19 comments
The Naga is completely stuck. Does nothing, can't be hurt with any weapon.
I can push him and I do take damage.
This is a world that is 2 days old by now. I passed the Naga area a couple of times but never fought him.
Save file (I'm standing right by him) here: https://mega.nz/#!VBJGSIwa!Q95wOG7jD7fzy31EXMTGC2bz7H0ghbtVSv6u1kV57LM
TW Forest Build 42.
I think I can finally close this old-ass issue.
I had to toy with the naga a bit to fix an issue opened recently, and I have deemed the naga as fully functional, even when outside of its home radius. Its AI will work fine when it leaves, and it will try to actively pathfind its way home instead of just sitting there (like it used to apparently?) or continuing to fight the player that can't deal damage to it.
As for the naga not being able to take damage outside the courtyard... well, its code that beni himself wrote, and I'm not willing to change it. You shouldn't ever encounter the issue of not being able to hurt it now because it will always find its way back home.
I'm aware it's 1.11 however it's the same code, nothing has changed for the Naga between versions. I wasn't able to reproduce this back then either so if there's a way to reliably cause it then I'd like to know.
Not having a home is actually very possible to be the cause. Seems we even have some weird check for the Naga to not take damage if it's out of range of its home.
Just spawned a Naga in an enclosed environment (a room dug out underground), and it doesn't move. However, above ground, it moves around as normal.
Does the Naga only freeze when you're a certain distance away from it or when it freezes for you guys is it frozen even when you're up close to it?
It did happen for me in 1.11.2 also i remembered there was an error thrown to the console. i cannot find the log at this moment but maybe when I'm home i can find the log file.
also when i updated to 1.12 i wanted to do a Naga boss fight last time i could not attack it (it did move and attacked me). but that's maybe i didn't unlock the arena perhaps.
It happened to me too. When Naga went beyond the arena it stopped receiving damage but kept moving. After I was ableto return Naga back it is back to normal.
Version 3.1.1, 136
Yea the Naga is meant to not take damage when its outside of its home range. I'm not quite sure if this is really needed or not.