Garry's Mod

Garry's Mod

LagDetector
27 Comments
demonicrobot50 Nov 8, 2023 @ 6:44am 
does this works on singleplayer?
Cats Oct 22, 2022 @ 2:01pm 
Not sure if this is still being maintained but it seems like this addon has trouble trying to detect this kind of server lag/crashing at least with the default values used (or maybe this would be considered beyond what the addon is capable of handling).

https://www.youtube.com/watch?v=drC7XQqWca8

Testing on my server, if you spawn a handful of these but not enough to crash the server within seconds. The lag detector will detect some lag but then it will say it has subsided after a minute. I guess I would have to figure out a more suitable configuration in that case?

The addon does well at detecting lag and executing the commands when spamming a bunch of props in a tight location.
Poukov Mar 16, 2022 @ 6:47pm 
work without ulx?
A_pet_tick Dec 18, 2020 @ 9:27pm 
Ok so this breaks stormfox. Why? How even? I spent so much time disabling addons individially. How is this the culprit lol
>KB> >KEKSQUAD Oct 9, 2020 @ 2:55am 
As in it prevents that addon from parsing any presets set
>KB> >KEKSQUAD Oct 9, 2020 @ 2:55am 
This conflicts with Weapon Editor and Replacer
Niobium Mar 29, 2020 @ 6:30pm 
anyway to execute multiple commands with lagdet_execute ?
echofox Jan 31, 2019 @ 6:20pm 
i havent got a lot of lag after i subd to this
:steamhappy:
Fidel ₵ashflow Aug 11, 2018 @ 4:17pm 
[ERROR] lua/autorun/server/lagdetector.lua:176: bad argument #1 to 'band' (number expected, got nil)
1. band - [C]:-1
2. fn - lua/autorun/server/lagdetector.lua:176
3. unknown - lua/ulib/shared/hook.lua:109

2tbc1887 Dec 14, 2017 @ 1:32am 
I love this!
ImNotTiara Dec 10, 2017 @ 7:57am 
Amazing work Buzz! Thank you so much
Buzz  [author] Sep 23, 2017 @ 10:30am 
Not seeing that. Ran stock sandbox + StormFox + lagdetector. SF reported the presence of map entities, and SF appeared fully functional. Can you give me more details? Screenshots of errors in SF?
Othereum Sep 23, 2017 @ 7:15am 
map entities are disabled when i use with this
Buzz  [author] Sep 23, 2017 @ 7:12am 
Wanna provide a little more information than "incompatible with stormfox" ?
Othereum Sep 23, 2017 @ 7:05am 
Buzz  [author] Jun 27, 2017 @ 12:10pm 
That's correct -- chaining should work just like that. Thanks for the feedback. Glad to know this is helpful for folks.
Master Anyon Jun 27, 2017 @ 7:39am 
I haven't had to try it yet, but I can chain commands using lagexecute_meltdown, right? So, I could set that to something like "gmod_admin_cleanup; lagdet_clearcount" and it will clean up the server and reset the counter? I can also see having a separate command in case you expect some lag, and don't want LagDetector to kick in while something is happening. I appreciate this mod a lot, thank you for looking into a solution.
Buzz  [author] Jun 24, 2017 @ 9:46am 
So, what I think I'll end up adding is a server-side console command "lagdet_clearcount", which simply clears the current lag frame count. This can be used as part of the command set issued when running meltdown, etc. Sound reasonable? I'm making it a console command rather than just a parameter for meltdown because I could imagine cases where folks might want to clear the count irrespective of any lag detection.
Buzz  [author] Jun 24, 2017 @ 9:03am 
Hmm... I see what you're saying. I can add another option to reset appropriately. Thanks for the info. Will update soon.
Master Anyon Jun 6, 2017 @ 11:41am 
I do like LagDetector, but I've noticed a slight issue that I'm not sure if it has been resolved and I am to dumb to see it. So, lagexecute_meltdown works and executes the command I've given it, but it doesn't reset (or have the option to reset) LagCount, so if someone decides to lag the server immediately after the cleanup command has been executed, LagCount keeps counting up to infinity and never resets. Is there a way to reset LagCount to 0 when lagexecute_meltdown is executed?
Buzz  [author] Sep 18, 2016 @ 7:16pm 
@Pumpkin -- see that thing up top that says "Description" ?
⚫🥀👑ANIME KING👑🥀⚫ Sep 17, 2016 @ 2:49pm 
what doe's this do
Dora Jul 8, 2016 @ 5:56am 
Works for me very well :D
KingInfinium87 Jun 3, 2016 @ 7:06am 
OMG it works
KingInfinium87 Jun 1, 2016 @ 3:42am 
Awesome Addon I rate 5/5 rating
LittlEpande May 4, 2016 @ 5:54am 
It work!!!! Thank you for nice addon.:wasted:
qtip Apr 3, 2016 @ 9:46pm 
Awesome!!!