Author Topic: Hook count limit?  (Read 2480 times)

0 Members and 1 Guest are viewing this topic.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Hook count limit?
« on: February 22, 2015, 09:35:41 AM »
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


Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Hook count limit?
« Reply #1 on: February 22, 2015, 11:13:39 AM »
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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Hook count limit?
« Reply #2 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.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Hook count limit?
« Reply #3 on: February 22, 2015, 01:23:00 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.

It is most likely conflicting hooks, as two separate addons are affected.
Out of the Garry's Mod business.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Hook count limit?
« Reply #4 on: February 22, 2015, 11:01:35 PM »
What is the addon? Basically, all it needs is for all the hook names to be changed to something else
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: Hook count limit?
« Reply #5 on: February 23, 2015, 07:09:51 AM »
Thanks guys.  The problem was squarely between my ears.  I had two copies of the addon -- one that I was actively working on and a copy that I thought I had moved into my OFF folder but actually hadn't. They were conflicting and causing mayhem.