Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 11:52:02 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Persistent Karma Problem
Pages: [1]
Author Topic: Persistent Karma Problem  (Read 6420 times)
Adam West
Poster

Posts: 4


« on: February 07, 2011, 08:18:30 PM »

I did a brief search but didn't get any useful results. if I have missed a topic about this then slap me upside the head and point me in the right direction


Persistent Karma does not work with SourceBans, SB bans the player before their Karma can be adjusted

Adam West Karma = 400
Limit is 500
Clean Round is 50

If I join as a Spectator I am banned when the next round starts with 400 Karma
if I join as a Player I play 1 round then I am banned when the round ends with 450 Karma (assuming I do no damage)

You get the idea


Any ideas on a fix?
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: February 07, 2011, 09:08:09 PM »

If persistent karma is enabled, a karma-kicked player is set to 80% of the max karma before he is kicked. Hence, this situation is not possible.

Of course, if some other system bans the player before the karma system does... then that system needs to be changed. I don't know what you mean regarding SB, as far as I'm aware that system only shares bans across servers, which does not sound like it would not affect this.
bigbadboo
Poster

Posts: 287


« Reply #2 on: February 07, 2011, 10:41:44 PM »

1) SB does not ban the player, the player is banned via console.

2) It works fine on the PEZ servers. Although spams our database :(.
Adam West
Poster

Posts: 4


« Reply #3 on: February 08, 2011, 12:05:02 AM »

Sb = SourceBans

The ban command goes through faster than the Karma change as no matter what I do so long as SourceBans is the ban method the karma doesn't get set to 80% of the max, any other ban method and it works fine
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #4 on: February 08, 2011, 08:56:06 AM »

There is no sourcebans ban method for the karma autoban. Do you mean sourcemod?

Adam West
Poster

Posts: 4


« Reply #5 on: February 08, 2011, 01:44:09 PM »

Yes I mean sourcemod
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #6 on: February 10, 2011, 09:40:37 AM »

I believe I may have found the issue, it's not related to sourcemod. Testing a fix.

edit:
The latest SVN version should have it fixed, or at least one potential cause is fixed. I don't have sourcemod installed so I haven't tested on that.

If you don't want to deal with SVN, you can also grab this file:
http://dl.dropbox.com/u/79559/ttt/karma.lua
And place it in the server's /garrysmod/gamemodes/terrortown/gamemode/ directory, overwriting the karma.lua that is already there.
« Last Edit: February 10, 2011, 10:07:44 AM by Bad King Urgrain »
Adam West
Poster

Posts: 4


« Reply #7 on: February 10, 2011, 01:14:22 PM »

It's not SM related?

Anyway I've just tested it on my server and persistence is working fine, thanks king
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Persistent Karma Problem « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 18 queries.