Ulysses

General => Developers Corner => Topic started by: Eccid on December 29, 2013, 02:39:26 PM

Title: Certain groups aren't kicked for lua errors?
Post by: Eccid on December 29, 2013, 02:39:26 PM
Is there a way to set this up? We're using tommynators damagelog for TTT, and it's still in beta and has some issues. From time to time it will spam lua errors crashing admins who access it, and I don't like having sv_kickerrornum set to 0 for everyone.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Neku on December 29, 2013, 02:49:26 PM
Not sure, perhaps you can edit the Lua kicking to make an acception for that group.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Cobalt on December 29, 2013, 03:14:25 PM
Why in the world would you not set sv_kickerrornum to 0!?
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Neku on December 29, 2013, 04:58:38 PM
Why in the world would you not set sv_kickerrornum to 0!?

Actually, why don't you want it set to 0?
It'd pretty much solve the lua kicks.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Eccid on December 29, 2013, 05:35:49 PM
Why in the world would you not set sv_kickerrornum to 0!?

Incentive for me to fix errors :P

It's also a good way to get people to actually report errors to me. They'll ignore the pop-up, but complain when they get kicked.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: JamminR on December 29, 2013, 08:11:05 PM
It makes sense.
Bugs in lua cause all sorts of issues, including lag, and at worst case, people not wanting to remain on your server because something breaks all the time.
The setting defaults to 1 for a reason, and honestly, though I often disagree with Gmod devs apparent change on a whim decisions, I agree with that setting.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Cobalt on December 29, 2013, 08:39:20 PM
It makes sense.
Bugs in lua cause all sorts of issues, including lag, and at worst case, people not wanting to remain on your server because something breaks all the time.
The setting defaults to 1 for a reason, and honestly, though I often disagree with Gmod devs apparent change on a whim decisions, I agree with that setting.
I feel like setting it to 1 is like walking on thin ice, lots of things could error at any time unexpectedly, even ULX. Sometimes getting kicked out of a game is really annoying and especially in gamemodes like TTT and DarkRP if you get kicked out and you're doing something important, that's not good.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Neku on December 29, 2013, 08:54:12 PM
I feel like setting it to 1 is like walking on thin ice, lots of things could error at any time unexpectedly, even ULX. Sometimes getting kicked out of a game is really annoying and especially in gamemodes like TTT and DarkRP if you get kicked out and you're doing something important, that's not good.

Yeah, in a player's prospective, getting kicked out for something out of your control
is very annoying.

Especially if the gamemode is TTT, people will come back, complaining to the admins to
give them their T round back.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Eccid on December 29, 2013, 09:57:46 PM
This thread got a bit off track. Does anyone know if there's a way to allow certain groups to not get kicked for lua errors?
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Neku on December 30, 2013, 12:55:49 AM
This thread got a bit off track. Does anyone know if there's a way to allow certain groups to not get kicked for lua errors?

Sorry about that.

Simply put, I don't believe there is a way unless you can find out how lua kicks
are processed and create an exception for certain groups.
Title: Re: Certain groups aren't kicked for lua errors?
Post by: Cobalt on December 30, 2013, 10:41:29 AM
This thread got a bit off track. Does anyone know if there's a way to allow certain groups to not get kicked for lua errors?
Impossible. That's built into the game (C++)