Hi everyone, I have a problem with spaming of ENTEREDAREA event.
After analyzing I came up with this:
Npc1 standing in areaX
Npc2 created in areaX using CreateNPC with real x,y,z,realm specified.
Npc1 whenever he moves, he gets ENTEREDAREA event from Npc2.
Imagine:
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 wanders
Npc1 gets enteredarea event from npc2
Npc1 moves
Npc1 gets enteredarea event from npc2
Imagine now 5k npcs, where 10 are in the same area, spaming themselves area events all the time, and all of it times 500.
Any other thoughts why such thing happens ?
PS. QuickFix: Just use MoveObjectToLocation to the same location.
PS2. Im using pol99 2010-01-02, on Pol98 there is no such problem.
Spam of ENTEREDAREA
Re: Spam of ENTEREDAREA
Reviewing the core changes - nothing has been done that would cause this between 098 and 099.
Are you using any known AI system?
Are you using any known AI system?
Re: Spam of ENTEREDAREA
Custom AI, originated from distro 94.Austin wrote:Reviewing the core changes - nothing has been done that would cause this between 098 and 099.
Are you using any known AI system?
If you say no one had such problem with pol 99 yet, I will investigate my scripts deeper.
Re: Spam of ENTEREDAREA
I managed to remove this problem with a if statement.
For both EnterArea and LeftArea.
I'm using Distro097 brainAI system.
And I have a problem when loading POL.exe. BrainAI.src is overloaded and it spams messages on console. A suggestion has been forwarded regarding this.
POL099 Beta.
Noite: it is nt the right place to post but is there somewhere I can report the list of .dmp I have in backup?
Code: Select all
if( event.source.IsA( POLCLASS_NPC ) && !event.source.master )
return 0;
endifI'm using Distro097 brainAI system.
And I have a problem when loading POL.exe. BrainAI.src is overloaded and it spams messages on console. A suggestion has been forwarded regarding this.
POL099 Beta.
Noite: it is nt the right place to post but is there somewhere I can report the list of .dmp I have in backup?
Re: Spam of ENTEREDAREA
Thanks mate for reply - I thought I was the only one with that problem.
TBH, I was looking for some neater solution or at least some point what is wrong, scripts or pol.
You can just block every enetered area from all npcs, except players and tamed ones, but still would be nice to know whats the problem. POL checks if mobile was in range before it sends entered area event. Maybe there is some trick when loading or creating new npc, which spoils it all - It would be easier for someone who knows pol-core well to check if there is some problem with it.
BTW Edwards, do you use pol99 live? If you do, do you have some other nasty problems with it ?
TBH, I was looking for some neater solution or at least some point what is wrong, scripts or pol.
You can just block every enetered area from all npcs, except players and tamed ones, but still would be nice to know whats the problem. POL checks if mobile was in range before it sends entered area event. Maybe there is some trick when loading or creating new npc, which spoils it all - It would be easier for someone who knows pol-core well to check if there is some problem with it.
BTW Edwards, do you use pol99 live? If you do, do you have some other nasty problems with it ?
Re: Spam of ENTEREDAREA
Alright ill put some time aside soon too to look into 099 and the brain AI getting overloaded!