ULX

Author Topic: ULIB and TTT karma ban  (Read 3448 times)

0 Members and 1 Guest are viewing this topic.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
ULIB and TTT karma ban
« on: July 25, 2014, 06:59:17 AM »
There have been a lot of updates recently. The karma ban on my TTT servers now kicks the player but he isnt banned at all and can return immediately.

Here is the console log:
ServerLog: Subway autokicked/banned for low karma.
L 07/22/2014 - 14:15:41: Subway autokicked/banned for low karma.
Banning using  method.
L 07/22/2014 - 14:15:41: "Subway<133><STEAM_0:1:5xx8528><>" disconnected (reason "Karma too low")
Dropped Subway from server (Karma too low)
banid:  couldn't find userid 133

So my question is - could this be due to one of the recent ULX/ULIB updates or does TTT by default use whatever ban system you have installed OR do you have to specify for it to use ULIB to ban? Before I posted here, I did look at the ttt karma.lua and search the ZombieMaster site for an answer.
« Last Edit: July 25, 2014, 07:01:39 AM by Storm »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULIB and TTT karma ban
« Reply #1 on: July 25, 2014, 08:02:59 AM »
"Banid" is a Source server command, ULib has nothing to do with it.
Seems the karma ban system tries to banid after player's already left server without grabbing/storing their information in a variable.
(or Gmod broke the banid...I never did fully research what was broken with ban in the last Gmod updates other than order of caller/target.)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: ULIB and TTT karma ban
« Reply #2 on: July 25, 2014, 11:04:04 AM »
I can't see anything in the karma.lua that directs the server to use ulib when banning, so I don't know if the problem is that the lua doesn't recognized the latest ulib code.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULIB and TTT karma ban
« Reply #3 on: July 25, 2014, 12:50:16 PM »
There's a server convar for "ban type", which can be found here: http://ttt.badking.net/config-and-commands/convars#TOC-Admin-related

Normally it should autodetect, but it's probably good to do:
Code: [Select]
ttt_ban_type "ulx"in the server.cfg
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: ULIB and TTT karma ban
« Reply #4 on: July 25, 2014, 04:19:53 PM »
I'm embarrassed to admit, I had re-read that whole page and missed that! Thanks so much and I have no idea how it turned off in the first place!