i got this runtime error every time i enter combat and then the enemy wont attack.
Infinite loop suspected--switching proc to background.
If it is not an infinite loop, either do 'set background=1' or set world.loop_checks=0.
proc name: Rbattle (/mob/proc/Rbattle)
usr: Siefer (/mob/Locke)
src: Siefer (/mob/Locke)
call stack:
Siefer (/mob/Locke): Rbattle(Mon (/mob/monsters/Monster), null, null)
(19,13,1) (/turf/worldmap): Enter(Siefer (/mob/Locke))
Siefer (/client): North()
Siefer (/client): North()
ID:174937
Jul 3 2003, 6:00 pm
|
|
In response to Jon88
|
|
No, he's probably having trouble with something like:
Rbattle() //bleh spawn() Rbattle() With or without the spawn(), it would cause an infinite loop. |
In response to Garthor
|
|
it only happens if there is a mob besides myslef on the map
|
In response to Garthor
|
|
You're both wrong. If he was calling the proc over and over without using spawn(), he'd have a stack overflow. If he did use spawn(), he'd have no error. What's happening is an infinite for() or while() loop. But of course without posting the code in question, he can expect no help on it.
Lummox JR |
Proc starts, proc does stuff, proc calls itself again, proc starts, proc does stuff, etc. The procs don't get to end. What you need to do is change the line in your Rbattle proc that looks something like:
spawn() Rbattle()
This will start the proc up seperately and allow the current one to end.