You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still happening when I set NPCAI to this value NPCAI=0001|0004|0008|0400
Can you please check on linux build ? Respawn a few NPCs and wait if it occurs.
Probably it should be something related to NPC pathfind. But I'm testing here on a clean sphere with default script pack using NPCAI=0001|0004|0008|0400 and everything seems to be working fine
Some days ago I optimized the whole NPC pathfind code, so try update to latest build. If it still happening on latest build, try testing each NPCAI flag individually to find what flag is causing the error, like this:
NPCAI=0001
NPCAI=0004
NPCAI=0008|0001 <-- NPC_AI_ALWAYSINT (08) only works when NPC_AI_PATH (01) is enabled
NPCAI=0400
NPC pathfinding is not as good as it used to be before the optimalization. Now when I enable the best possible pathfinding NPCAI, then NPC won't find path to get around an obstacle.
There weren't sphere drops or freezeouts before the optimalization and every NPC could find the way as needed almost perfectly and in matter of few seconds.
So far so good, it looks stable now. But NPC pathfinding doesn't work as well as before few months. They used to walk past wall and find the right path even among big obstacles (like stone long stone wall). Now they just stand there and doing nothing. This may be somehow related to this issue. Thank you for your work. Great :-)
Thanks, you're also doing a great work 😄
Do you have NPC_AI_PATH enabled? This enable the NPC pathfind, but with this flag disabled the NPC will just walk in a "linear" direction, so make sure that its enabled. Also make sure that NPC_AI_PERSISTENTPATH is enabled to make NPC keep trying to reach its target instead give up
If it still not working correctly, try using these builds below to check which one the pathfind is working fine. Finding the build number will make things easier to port the working code to the current build
NOTE: these builds are 32bit only, so if you're currently using a 64bit build, you must also replace your libmysql.dll file with the 32bit version included on zip (or if you're using linux you must change the lib "libmysqlclient-dev" to "libmysqlclient-dev:i386")
Activity
Khaldor48 commentedon Nov 5, 2019
Also this appeared and shutted down server when I was walking different path with different vendors
And also this. I am pasting it here because it has different ReadStep number
I hope this will help you identify what's going wrong :( Thank you in advance.
Khaldor48 commentedon Nov 5, 2019
And now it happened even when I was fighting zombies far away from any vendor. So maybe it's not related to vendors.
In practice first appears Segmentation failed with ReadStep (+24) and then like 200x line with Server Unstable: Aborted
Khaldor48 commentedon Nov 8, 2019
Hi,
I have update to this issue.
My NPCAI setting in sphere.ini was NPCAI=0001|0004|0008|0400
And when I set NPCAI=0 this error stops from happening. But NPC cannot find path properly anymore :)
Khaldor48 commentedon Dec 3, 2019
Still happening when I set NPCAI to this value NPCAI=0001|0004|0008|0400
Can you please check on linux build ? Respawn a few NPCs and wait if it occurs.
coruja747 commentedon Dec 16, 2019
Does it still happening on latest build?
Khaldor48 commentedon Dec 18, 2019
I will check ASAP and report here. Thank you for effort :-)
Khaldor48 commentedon Dec 31, 2019
Hello,
so now when I set NPCAI it is stable and it doesn't drop whole console. Great!
But it looks like NPCAI does not improving npcs now.
The behaviour of NPCs are same with value NPCAI=0 or with value NPCAI=0001|0004|0008|0400
Khaldor48 commentedon Jan 2, 2020
NPCAI=0001|0004|0008|0400
Today with those NPCAI settings if I try to buy from vendor got this error and sphere froze.
The line of sphere_item_magic_armor.scp;88 is just regular shield, which can be added and used with no problem..
coruja747 commentedon Jan 3, 2020
Probably it should be something related to NPC pathfind. But I'm testing here on a clean sphere with default script pack using NPCAI=0001|0004|0008|0400 and everything seems to be working fine
Some days ago I optimized the whole NPC pathfind code, so try update to latest build. If it still happening on latest build, try testing each NPCAI flag individually to find what flag is causing the error, like this:
Khaldor48 commentedon Jan 4, 2020
Ok, thank you. I'll try.
NPC pathfinding is not as good as it used to be before the optimalization. Now when I enable the best possible pathfinding NPCAI, then NPC won't find path to get around an obstacle.
There weren't sphere drops or freezeouts before the optimalization and every NPC could find the way as needed almost perfectly and in matter of few seconds.
Now NPCs are "dumber".
Khaldor48 commentedon Jan 9, 2020
Today I got this new error
Happens after I say "buy" to a vendor
Khaldor48 commentedon Jan 9, 2020
Now I got this error, even with NPCAI=0
So it may be not linked with this settings
coruja747 commentedon Jan 18, 2020
Try using latest build to check if it's working fine
Khaldor48 commentedon Feb 18, 2020
So far so good, it looks stable now. But NPC pathfinding doesn't work as well as before few months. They used to walk past wall and find the right path even among big obstacles (like stone long stone wall). Now they just stand there and doing nothing. This may be somehow related to this issue. Thank you for your work. Great :-)
coruja747 commentedon Feb 23, 2020
Thanks, you're also doing a great work 😄
Do you have NPC_AI_PATH enabled? This enable the NPC pathfind, but with this flag disabled the NPC will just walk in a "linear" direction, so make sure that its enabled. Also make sure that NPC_AI_PERSISTENTPATH is enabled to make NPC keep trying to reach its target instead give up
If it still not working correctly, try using these builds below to check which one the pathfind is working fine. Finding the build number will make things easier to port the working code to the current build
NOTE: these builds are 32bit only, so if you're currently using a 64bit build, you must also replace your libmysql.dll file with the 32bit version included on zip (or if you're using linux you must change the lib "libmysqlclient-dev" to "libmysqlclient-dev:i386")