Ulysses Stuff > Releases

Server Hook Info [v1.1]

(1/1)

Buzzkill:
A small ULX addon that will print (to console) all currently registered server hooks, organized by priority.  Useful in determining hook precedence, especially with the recent changes in hook priority management in ULib.

Note that this requires a recent ULib (4/11), as it relies on the newly added GetULibTable() function.  If this function isn't present, it will be noted in the console.
Default access is superadmin.

Installation:  Install to your addons folder.
Requires:  ULib / ULX
Usage:   "ulx serverhookinfo" from console or UI.
Output (sample):


--- Code: ---Event: PlayerNoClip
        Priority: -1
                Hook: ULibNoclipCheck    Location: addons/ulib/lua/ulib/server/player_ext.lua
Event: CheckPassword
        Priority: 0
                Hook: CAC.CheckPassword  Location: addons/cac-release-20150413/lua/cac/controllers/liveplayersessioncontroller.lua
Event: CanTool
        Priority: -1
                Hook: ULibPlayerToolCheck        Location: addons/ulib/lua/ulib/server/player_ext.lua
                Hook: ULibEntToolCheck   Location: addons/ulib/lua/ulib/server/entity_ext.lua

--- End code ---

To do:  Add reference to source file of hook. Added in 1.1
    Send output to calling client console Added in 1.1

Stickly Man!:
I may end up using this myself for debugging! :)

Buzzkill:
Updated to 1.1

* Added source file info
* Sends output to server or player console, depending on where called.

Navigation

[0] Message Index

Go to full version