Garry's Mod

Garry's Mod

Srlion's Hook Library
150 Comments
Galaxy Man May 7 @ 12:49am 
[hook_library] gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:70: Tried to use a NULL Panel!

__newindex - [C]:-1
unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:70
3. Run - addons/hook_library/lua/includes/modules/hook.lua:313
4. unknown - gamemodes/sandbox/gamemode/cl_search_models.lua:47

Conflict with searching in spawnmenu
Bot0xf  [author] Apr 30 @ 10:40am 
"try to find first error that happens" "Also disable stormfox debug thing as it could be one of the reasons."
I didn't say that it aint the hook library, I said that all these errors you sent are unrelated to the hook library and show no help to try to figure out the issue.
Cherrie_The_Shifter ΘΔ Apr 29 @ 8:07pm 
Are you sure there unrelated how can they not. When they only so far seem to appear and happen when I use ur mod. Those mods work just fine and without error but when I subscribe and use ur mod I see those errors there. Anyways Yeah
Bot0xf  [author] Apr 29 @ 11:07am 
@Cherrie_The_Shifter ΘΔ these errors seem to be useless to track on what causes them, try to find first error that happens, as all these errors are unrelated to the hook library, ofc the hook library will always show in the stack when a hook errors when all hooks are being called, doesn't mean it's the reason though. Also disable stormfox debug thing as it could be one of the reasons.

@Wanso Same thing, it's not the cause for this thing to fail, it literally says file not found, what does this have to do with the hook library?
BOMBA PATCH 2004 Apr 29 @ 8:37am 
[Srlion's Hook Library] AddCSLuaFile: Couldn't find 'darkrp_modules/tbfy_bountyhunter/sh_init.lua'
1. loadModules - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:83
2. gm_func - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:148
3. Call - lua/includes/modules/hook.lua:324
4. unknown - gamemodes/darkrp/gamemode/init.lua:113
Cherrie_The_Shifter ΘΔ Apr 29 @ 1:43am 
More down below, thats all errors i get, then other mods, just wont load. get no errors nope just gone, also stuff oddly seems slow idk. again sorry for bothering you, thanks and yeah!. also i did send all these errors and stuff to the mods that yk. Anyways Yeah!.
Cherrie_The_Shifter ΘΔ Apr 29 @ 1:38am 
then heres stormfox
[StormFox - Environment mod] lua/stormfox/framework/sh_util_map.lua:56: Tried to use a NULL entity!
1. GetSaveTable - [C]:-1
2. unknown - lua/stormfox/framework/sh_util_map.lua:56
3. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
4. Run - lua/stormfox/sh_debugcompatibility.lua:48
5. unknown - lua/autorun/stormfox_autorun.lua:113
6. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
7. unknown - lua/stormfox/sh_debugcompatibility.lua:48
Cherrie_The_Shifter ΘΔ Apr 29 @ 1:38am 
Then zbase
[ZBASE [CONTROLLER UPDATE]] lua/zbase/sh_hooks.lua:635: attempt to compare number with nil
1. unknown - lua/zbase/sh_hooks.lua:635
2. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
3. unknown - lua/stormfox/sh_debugcompatibility.lua:48

[[ACF] Armored Combat Framework] lua/acf/contraption/contraption_sv.lua:322: bad argument #2 to 'SetModel' (string expected, got nil)
1. SetModel - [C]:-1
2. SetModel - lua/acf/contraption/contraption_sv.lua:322
3. unknown - lua/entities/pill_ent_costume.lua:645
Cherrie_The_Shifter ΘΔ Apr 29 @ 1:37am 
so g weather with ur mod this happens, but theres more
[gWeather] lua/gweather/map/map.lua:20: Tried to use a NULL entity!
1. GetInternalVariable - [C]:-1
2. GetWorldBounds - lua/gweather/map/map.lua:20
3. unknown - lua/gweather/map/map.lua:104
4. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
5. unknown - lua/stormfox/sh_debugcompatibility.lua:48
Cherrie_The_Shifter ΘΔ Apr 28 @ 7:56pm 
okay so, when i have it with things like stormfox it gives me erros and ntohing works. like keeps saying something about hook, here let me redownload it later and get errors again and show it to you
Bot0xf  [author] Apr 28 @ 11:56am 
how does it break them? it's just a hook library really, what error you getting so I can tell how it breaks them? I have lots of clients use this hook library with similar addons installed
Cherrie_The_Shifter ΘΔ Apr 28 @ 6:05am 
this also seems to break so much other mods, like for example. storm fox and alot of other, then when the errors appear things get slow of, not laggy nah slow and odd. this saddens me:(
Cherrie_The_Shifter ΘΔ Apr 28 @ 5:41am 
Damn i only has 3 mods used dlib great amazing mods I just deleted them ur mod will hopefully make running my 1k mods better and help my shirty computer cuz yk fatser. Also a mod called glue patches need this mod which does bunch of fixes and performance improvements and optimizations and so i got these 2 mods to help things so I got rid of dlib sadly. Sorry for bothering you. Amazing mod btw^^
Bot0xf  [author] Apr 28 @ 5:38am 
addons that make use of dlib require it, i dont think you would benefit from this hook library if you you use lots of addons that depend on dlib
Cherrie_The_Shifter ΘΔ Apr 28 @ 2:43am 
what if dlib removed the hooks stuff just kept the rest would urs be able to work with it, plus ur hooks stuff is better faster and safer right, im trying to find a solution. gah, oof, sad
Cherrie_The_Shifter ΘΔ Apr 1 @ 3:43am 
damn okay, oof, sad, sadly cant use any mod that uses urs. alright thanks for like answering me and stuff
Bot0xf  [author] Apr 1 @ 2:30am 
nope, dlib does too much, it's not easy to support it
Cherrie_The_Shifter ΘΔ Mar 31 @ 8:06am 
so theres no way to make this work with dlib i need dlib but i need this for glua patches, but ur mod breaks stuff and makes dlib break stuff, there has to be a way right? sorry and thanks. please
Cherrie_The_Shifter ΘΔ Mar 29 @ 5:56pm 
Why tho:(. Okay...
Bot0xf  [author] Mar 29 @ 5:21pm 
lol, this hook library doesn't even load if dlib is installed
`lua/dlib/modules/hook.lua:904` sigh
Cherrie_The_Shifter ΘΔ Mar 29 @ 10:06am 
this mod seems to break so much:(
Cherrie_The_Shifter ΘΔ Mar 29 @ 10:06am 
[My Little Pony NEXTBOTS] lua/autorun/drg_mlp_particles.lua:10: Tried to use a NULL entity!
1. GetModel - [C]:-1
2. unknown - lua/autorun/drg_mlp_particles.lua:10
3. Run - lua/dlib/modules/hook.lua:904
4. old_renderhalos - lua/includes/modules/halo.lua:140
5. unknown - lua/wire/client/cl_wirelib.lua:251
6. unknown - lua/dlib/modules/hook.lua:904
keeps spamming this
Cherrie_The_Shifter ΘΔ Mar 29 @ 10:06am 
[Draconic Base] lua/draconic/drc_lib.lua:2780: Tried to use a NULL entity!
1. GetNWInt - [C]:-1
2. GetShield - lua/draconic/drc_lib.lua:2780
3. unknown - lua/draconic/cl/library.lua:205
4. unknown - lua/dlib/modules/hook.lua:904
Bot0xf  [author] Mar 15 @ 6:46pm 
@miorineXIII I just tested it and just works fine, it could be an addon causing that conflict.
@Osakze try with latest version that I pushed recently because it contains bug fixes
『mio-miorine』 Mar 14 @ 8:45pm 
using this and pressing q doesnt bring up the spawn menu any help?
Osakaze Feb 22 @ 6:12pm 
Whenever this add-on is enabled, I can't use the context menu right click function.
Davv Feb 16 @ 11:48pm 
32-bit version is only for cracked clients if I recall correctly, so I don't think there's should even be support, especially we live in 2025.
/id/ Jan 16 @ 7:23am 
Cause players were timing out on the 32 bit version
Bot0xf  [author] Jan 12 @ 11:35pm 
How/Why would a hook library timeout players lol, it was something added by gmod itself for security reasons iirc
/id/ Jan 12 @ 3:01pm 
does it support 32-bit version of gmod cause some players time out upon joining my gm server.
bunneh with pancakeh Jan 5 @ 10:24pm 
WHAT THE HELL IS THIS IS A VIRUS:steamfacepalm:
Bot0xf  [author] Dec 25, 2024 @ 2:13pm 
@somefoolouthere done
somefoolouthere Dec 24, 2024 @ 2:54pm 
You should update the description to remove the notice about ULX/ULib, since you updated this version and it works with it now.
Winn Nov 11, 2024 @ 5:26pm 
I'm not entirely sure, but it might be "lf_playermodel_desktop_hook"
Bot0xf  [author] Nov 11, 2024 @ 5:21pm 
If your able to assist, which hook does the loading for the menu or whatever to open the selector so I can track it down?
Winn Nov 11, 2024 @ 5:18pm 
Initialize hook is running. Just not the playermodel selector's with this library installed.
Bot0xf  [author] Nov 11, 2024 @ 5:17pm 
I'm not following, is the Initialize hook running or not?
Winn Nov 11, 2024 @ 5:15pm 
sv_playermodel_selector_debug is set to 1, and so is sv_playermodel_selector_force. Initialize hooks are running however, because with other addons the printtable is giving messages.
Bot0xf  [author] Nov 11, 2024 @ 5:08pm 
Also make sure that you add debugging inside this hook to make sure it's being ran or not, I don't care if initVOX is called or not, just need to know if the initialize hook runs or not:
https://github.com/LibertyForce-Gmod/Enhanced-PlayerModel-Selector/blob/f22c5b7996f39acc60bd59990dbe76f92773cc43/lua/autorun/lf_playermodel_selector.lua#L308
Winn Nov 11, 2024 @ 5:06pm 
Yep. Tested with three addons, then two (without the hook), it ceased causing the reading issue. When I ran the lua_run_cl, it did not give me any messages.
Bot0xf  [author] Nov 11, 2024 @ 5:05pm 
Have you tested without the hook library to make sure that it's actually the reason? Do you have any console errors?
Winn Nov 11, 2024 @ 2:56pm 
This is super weird... I tested it with just TFA-VOX, Enhanced Playermodel Selector, and this Hook Library addon and its still directly causing it not to load. On deeper look of their addon, it appears to be local function InitVOX() if file.Exists
Bot0xf  [author] Nov 11, 2024 @ 2:11pm 
@Winn run in server console "sv_allowcslua 1" then in clientside:
lua_run_cl PrintTable({hook.Run("Initialize")})
it should tell you which addon breaks your selector, and if nothing prints then you have an addon that is erroring inside that hook
Winn Nov 10, 2024 @ 5:32pm 
This breaks the enhanced playermodel selector's ability to save VOX files. Specifically, it no longer reads from garrysmod/data/lf_playermodel_selector/sv_voxlist.txt
Asrilix Oct 30, 2024 @ 10:04am 
@meow thx
Bot0xf  [author] Oct 30, 2024 @ 5:44am 
@Asrilix the issue is from vcmod not this
Asrilix Oct 29, 2024 @ 8:55pm 
wsp i got this error anyone have an wonder if semeone can help me because i need this Library for sam so if any one have an idea that would help me a lot

Local file is overriding addon's file! lua/includes/modules/hook.lua (Srlion's Hook Library)

[ERROR] vcmod?data_hud_main:1: Tried to use a NULL entity!
1. GetNWEntity - [C]:-1
2. Damage - vcmod?data_hud_main:1
3. func - vcmod?hud:1
4. internal_call - lua/includes/modules/hook.lua:409
5. unknown - lua/includes/modules/hook.lua:428
PLUSH Oct 22, 2024 @ 3:39am 
<3
:p2cube: