Spam of ENTEREDAREA

Here you can post threads specific to the current release of the core (099)
Post Reply
Rogdush
New User
Posts: 29
Joined: Fri Feb 10, 2006 8:29 am

Spam of ENTEREDAREA

Post by Rogdush »

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.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Re: Spam of ENTEREDAREA

Post by Austin »

Reviewing the core changes - nothing has been done that would cause this between 098 and 099.

Are you using any known AI system?
Rogdush
New User
Posts: 29
Joined: Fri Feb 10, 2006 8:29 am

Re: Spam of ENTEREDAREA

Post by Rogdush »

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?
Custom AI, originated from distro 94.
If you say no one had such problem with pol 99 yet, I will investigate my scripts deeper.
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm

Re: Spam of ENTEREDAREA

Post by *Edwards »

I managed to remove this problem with a if statement.

Code: Select all

if( event.source.IsA( POLCLASS_NPC ) && !event.source.master )
            return 0;
endif
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?
Rogdush
New User
Posts: 29
Joined: Fri Feb 10, 2006 8:29 am

Re: Spam of ENTEREDAREA

Post by Rogdush »

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 ?
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Re: Spam of ENTEREDAREA

Post by Austin »

Alright ill put some time aside soon too to look into 099 and the brain AI getting overloaded!
Post Reply