ID:146320
 
Code:

Non Agressive Look.
mob
proc
NonAggresiveLook()
var/mob/usr/M
while(src)
if(M in oview(5))
if(M.name in src.killlist)
walk_to(src,M,1,4)
if(M in oview(1))
step_towards(src,M)
else
for(M in view(src))
break
sleep(5)
spawn(2)
NonAggresiveLook()


Mob Code:
mob/Alcadia
greydemon
name = "Delathrin"
// Icon and stats etc.etc.
New()
.=..()
spawn(1)
NonAggresiveLook()


Runtime Error:
runtime error: Out of resources!
proc name: NonAggresiveLook (/mob/proc/NonAggresiveLook)
usr: 11 (/mob/Alcadia/greydemon)
src: 11 (/mob/Alcadia/greydemon)
call stack:
11 (/mob/Alcadia/greydemon): NonAggresiveLook()
11 (/mob/Alcadia/greydemon): New(Grass (73,6,1) (/turf/ground/Grass))

Problem description:
This never used to happen. I don't know why it's decided to do this now, but I'm getting spammed the hell out with that runtime error to the point where DreamSeeker suppresses it. Also, the Mob AI doesn't work anymore either. Heeelp!

Hehe, Cheers!

~Sinyc.
Out of resources? Perhaps you passed the 653535 obj limit?
In response to Crashed
Crashed wrote:
Out of resources? Perhaps you passed the 653535 obj limit?

We have an amazing amount of turfs for the variations and styles of our maps are huge. But I highly doubt the turfs, objects and mobs all together add up to the sum of or over 653535! :(
In response to Sinyc
I believe it's only objs and mobs that go into the count. Perhaps you might have an infinite loop that could be causing this?>
By the way...
mob
proc
NonAggresiveLook()
var/mob/usr/M
while(src)
if(M in oview(5)) //if(M in oview(5,src))
if(M.name in src.killlist)
walk_to(src,M,1,4)
if(M in oview(1))
step_towards(src,M)//You also want to add a walk(src,0) to disable that walk_to()
else
for(M in view(src))//What's the point of this?
break//This is along the 'What's the point of this?'
sleep(5)
spawn(2)
NonAggresiveLook()


Edit: Found your problem! You're having huge infinite loops. Look: In your NonAggresiveLook procedure, you use while(src) that will never be broken unless src has been eaten by the garbage collector. But, in the NonAggresiveLook procedure, you also re-loop it! You spawn(2) then call itself again. That's going to create a lot of trouble, especially if you have more than one obj calling this proc.
In response to Crashed
Crashed wrote:
You spawn(2) then call itself again.

It's called again so if the player in their kill list comes into view, they chase after them. :) But fair enough, I could see how that would munch up resources.
<font color = red>BYOND(343.882) ERROR: maximum number of lists exceeded (65535)!
runtime error: cannot append to list
proc name: Login (/mob/Login)
usr: Sinyc (/mob)
src: Sinyc (/mob)
call stack:
Sinyc (/mob): Login()
Sinyc (/mob): Login()
Sinyc (/client): New()</font>


*blanks out*
In response to Sinyc
Oh, 65535, I was close enough.
In response to Crashed
590k off! :\
In response to Sinyc
Are your turfs or anything using lists?
In response to Ol' Yeller
Ol' Yeller wrote:
Are your turfs or anything using lists?

Nope. No turfs are using lists.
Resolved! ;)