#GitHub - Srlion/Hook-Library
1 messages · Page 1 of 1 (latest)
@split rivet you should compare it to ulibs hook lib
would be a nice comparison https://github.com/TeamUlysses/ulib/blob/master/lua/ulib/shared/hook.lua
ulib hook library is the slowest library on earth
lol
it aint any faster than meep’s or dash, they are all very close
but meep got random duplicated calls
im using your hook lib in ulib, works great
just make sure to use ulib priority names to work with it
yeah, your old version uses numbers in the exact same way as ulibs so that works
btw is native ulib support in the works? i was planning on just making a PR if it isnt, right now i did some hackjob to get mine working
we replace the base hook lib by using the same path
otherwise you get dumb bugs where the third arg wasnt supported yet like regular ulibs way of doing it
same, i was planning on just creating a fake GetUlibHookTable function to trick ulib if i made a pr
i wanted to add ulib support but i was worried that it would break lots of stuff
it prevents loading the original ulib hook lib
like darkrp does some checking to do postplayersay if ulib is installed
oh ive been running your lib with ulib for atleast 2 years without breakages
it works flawlessly so far
might make a pr to fix that
someone tried but did a dogshit job at it
https://github.com/TeamUlysses/ulib/pull/83
They said that this couldnt work with ulx so I made it work with ulx and be built into ulx. Took like 30 seconds for me to do. All credit for the hook library goes to Srlion.
https://github.com/Srl...
😭
Would be a ulib support pr be appreciated or not?
just make it monitor_high = pre_hook
depends on how good it is
cant release it on steam
its probably a 2 line change, maybe a couple more if hook prio vars are different
idk, most people downvoted that guys change because
- it was a shitty paste
- didnt properly port
GetULibTableiirc - he's a known pedo
lmfao
average gmod server owner
lmao what
long story
GetULibTable will never work
works in mine i think
works in mine so far too
It returns the table itself
not a copy
Lmfao
yeah what about changes
If it was returning a copy i would say yes it works
but u have to use setmetatable
so that if anything changed/added/removed you would do it to main hook library
yeah its not that far backwards compatible
releasing it needs to be fully backwards compatible
yeah understandable
bruh would setmetatable even work with that shit
ah ye it would work
i didnt know that darkrp did that wth
thats what stopped me from adding ulx support
i dont even think its even worth to add ulx supp when ulx itself needs to get nuked
fair, i still use ulib/ulx tho
heavily modified but yeah, its not great
switching over to something like sam would take a bunch of work
we're considering it though
iirc sam has like subranks for donor and such which would be super useful for certain staff ranks
some kind of way to give extra perms without remaking the entire role is super useful
but maintaining two ranks is a nightmare
old school way vip_mod is the best thing
u wont be touching ranks every sec to worry about that
easier said than done when you got ~20 ranks
could always code it, maybe create a json file where you have all ranks
vip: {} mod:{} and just merge them into one rank
Is FAdmin any better? lol
fadmin is decent, works with other admin mods
I always wondered if it was worth using solo. Don't really see the point of having both ULX and FAdmin alongside each other, but such is the norm
Any commands ULX has that FAdmin doesn't could just be re-implemented I'd imagine
its just a pain to work with but it doesnt hurt to use it solo
whats a good replacement for ulx anyways, at this point ive rewritten all the ulib/ulx networking to not bog my server down but its a completely hacky mess now
pssst
I always wanted to write my own for my server's needs, but it takes time to reinvent the wheel
hit me with that unbiased reccomendation
(paid)
as long as its source code isnt completely locked down a admin mod is worth a fair price

Pain in what way?
i just use pon instead of whatever ulx was using and it reduced it over 10 fold

ulx be like "lets send a entire 5kib json file over net to all players whenever anyone joins/disconnects"
fucking meme mod
thats why i made my admin mod, every time i spawn a bot i lag for 2 secs
Oh yeah the menus suck, but I'd imagine it could be replaced without too much hassle
Guess I'll have to find out the hard way
its why i rewrote the networking of ulib/ulx, but its a nightmare of hacks
i could not put this in a PR in a thousand years with the amount of jank it has
welp, ulx wouldnt hurt if u got a low playerbase
im in the top 50 biggest gmod servers 
could do the job fine till servers gets big then u switch to another admin mod
It took them years just to accept storing bans in a flatfile database was silly
@tawdry garden bruh and not using my admin mod
wait lemme slide into your dms
erm
89...
Yeah fuck this, I'm getting rid of ULX and gonna try and make something of FAdmin
we had a move last month that caused considerable downtime 😭
i see you use gametracker but that shit is rigged af
they block some servers from showing up iirc
for a while our battlemetrics was higher than gametracker
😋
@nova scaffold do u have a big server?
im usually in the top 100
Not anymore. I used to run one between 2014-2018. Peak was 2016 (Top 10 on GameTracker for a little while, hilariously), but I shut it down when I started uni
However I'm considering bringing it back as I keep getting people to this day asking for it lol
So good time to consider stuff like this
I'm in the process of rewriting stuff anyway because my old stuff is total shit and its long overdue, so again trying to dump ULX would be very beneficial as it was a thorn in my ass back in the day
tbh ulx would be fine if they fixed networking / storage
no it acutally needs a rewrite
time to make my own admin mod with cppi...
I guess I could do that, yeah
I would like to write my own, but there's enough shit to do as it is. Maybe someday
yeah i nixed all the storage stuff (got my own logging backend) and rewrote all the networking
but ulx is still garbage as a user experience
yep