I had recently changed the contents of a topic link, and after compiling it errors on every instance of two verb containers used in conjunction with typesof(Ex., typesof(/mob/Verby/verb)).
loading Icon Ultima.dme
Procs.dm:872:error:/mob/Verby/verb: compile failed (possible infinite cross-reference loop)
Form.dm:2584:error:/mob/League/verb: compile failed (possible infinite cross-reference loop)
All of the instances these errors occur at do not appear within the mob container they belong to, so I'm more or less clueless as to why it's doing this. Any thoughts?
ID:269643
![]() Aug 21 2005, 3:56 pm
|
|
I'll do that, but why would it suddenly decide there may be a cross-reference loop now? I've had the lines it's erroring on within the source code for months now with no problems.
[Edit: Okay, it turns out I cannot use typesof() with those two paths at all, but I encounter no problems with any other verb path. How'd I manage to break it?] |
I've had similar problems while having both a mob/proc and a mob/verb (or datum/verb in some cases) add verbs to a player.
In a GM system I've created a while back, I've had the verb Give_Powers() add a typesof() list of verbs to a player, through the verb. Then, I compile, and all of a sudden, I get errors because the verb is interfereing with the proc. So, I edit the proc to run desireably for both the verb, and upon mob/Login() and everything turns out okay. |
The compiler will not allow me to use typesof() in conjunction with the verb paths /mob/Verby/verb or /mob/League/verb anywhere within the code. I tried making a proc that adds these verbs(I made it under /proc and then /mob/proc with the same result) and it still says there's an infinite cross reference loop.
What else could I have done that would cause every instance of only the two aforementioned verb paths to error but none of the others? Example of where it's erroring(long snippet for general idea of context); mob |
You're probabally going to need to remove/replace any procs that deal with adding verbs to someone via typesof() list. May I suggest one proc that handles everything? i.e
mob/proc/AddVerbs(League,GM,Host) etc.. You probabally get it by now. You should probabally use that little variable?true:false thing you use. I can't exactly remember how to use it, or sometimes the formula. Anyway, just set the varaibles before you call the proc, and everything should work out fine. Personally, I like making a proc for certain subjects that handle everything. |
Like the error says, DM is worried about infinite cross-reference loops for some reason. A fix/workaround for this is to create a proc whose sole purpose is to add those verbs. DM won't throw up those errors in that case.