General > Developers Corner

Hook count limit?

(1/2) > >>

Buzzkill:
Is there a hook limit either in ULib or GMod itself?  I asked because I'm seeing the following:

1)  Server operates fine.
2)  I add a new addon (specifically, a reporting system which includes a hook to PlayerInitialSpawn, though I have no reason to currently believe there's anything specifically wrong with the addon)
3) I observe that other hooks no longer run (specifically, PatchProtect's hook to PlayerInitialSpawn)
4) If I rem out the hook in the reporting system, PatchProtect works again.

This leaves me thinking that I've pushed past some kind of threshold for hooks, perhaps in general or perhaps specifically around PlayerInitialSpawn.

I run a *lot* of addons (148 at last count).

Thanks,
Mike

Bytewave:
Either there are too many hooks, or there are non-unique identifiers set for your hooks—they attempt to override each other, and fall flat.

MrPresident:
While I could be wrong, I've never heard of there being a hook limit in gmod.

More likely what you have going on is either conflicting hooks like Bytewave suggested or a hook that is returning improperly.

Neku:

--- Quote from: MrPresident on February 22, 2015, 01:18:54 PM ---While I could be wrong, I've never heard of there being a hook limit in gmod.

More likely what you have going on is either conflicting hooks like Bytewave suggested or a hook that is returning improperly.

--- End quote ---

It is most likely conflicting hooks, as two separate addons are affected.

Bite That Apple:
What is the addon? Basically, all it needs is for all the hook names to be changed to something else

Navigation

[0] Message Index

[#] Next page

Go to full version