Sourcebans Compatibility

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Chimpanzeee
New to forums
New to forums
Posts: 8
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Jul 11, 2014 5:54 pm

Sourcebans Compatibility

Post by Chimpanzeee »

Hi, I was wondering if my Gmod TTT server on a VDS I own will be able to run sourcebans properly? Sourcebans runs off sourcemod and metamod and can be found at sourcebans.net if you're wondering
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Sourcebans Compatibility

Post by soja »

Chimpanzeee wrote:Hi, I was wondering if my Gmod TTT server on a VDS I own will be able to run sourcebans properly? Sourcebans runs off sourcemod and metamod and can be found at sourcebans.net if you're wondering
Yes, you need to download the lua sourcebans file. There are a couple broken ones, you will need to find the right one.
Not a NFO employee
Chimpanzeee
New to forums
New to forums
Posts: 8
Joined: Fri Jul 11, 2014 5:54 pm

Re: Sourcebans Compatibility

Post by Chimpanzeee »

soja wrote:
Chimpanzeee wrote:Hi, I was wondering if my Gmod TTT server on a VDS I own will be able to run sourcebans properly? Sourcebans runs off sourcemod and metamod and can be found at sourcebans.net if you're wondering
Yes, you need to download the lua sourcebans file. There are a couple broken ones, you will need to find the right one.
Does this seem like the right one? http://www.facepunch.com/showthread.php?t=980687
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Sourcebans Compatibility

Post by soja »

Yes, that looks like the one we use on our servers.
Not a NFO employee
Chimpanzeee
New to forums
New to forums
Posts: 8
Joined: Fri Jul 11, 2014 5:54 pm

Re: Sourcebans Compatibility

Post by Chimpanzeee »

soja wrote:Yes, that looks like the one we use on our servers.
Alright so, sorry for the load of questions, if I've got that installed, and sourcebans, after the next server restart it should be functioning properly?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Sourcebans Compatibility

Post by soja »

Chimpanzeee wrote:
soja wrote:Yes, that looks like the one we use on our servers.
Alright so, sorry for the load of questions, if I've got that installed, and sourcebans, after the next server restart it should be functioning properly?
Assuming everything is configured properly, and you use sban instead of the normal ULX ban, yes.
Not a NFO employee
Chimpanzeee
New to forums
New to forums
Posts: 8
Joined: Fri Jul 11, 2014 5:54 pm

Re: Sourcebans Compatibility

Post by Chimpanzeee »

soja wrote:
Chimpanzeee wrote:
soja wrote:Yes, that looks like the one we use on our servers.
Alright so, sorry for the load of questions, if I've got that installed, and sourcebans, after the next server restart it should be functioning properly?
Assuming everything is configured properly, and you use sban instead of the normal ULX ban, yes.
Wait so do I need to install http://www.facepunch.com/showthread.php?t=1311847 or should the thread I already linked come with sban
Chimpanzeee
New to forums
New to forums
Posts: 8
Joined: Fri Jul 11, 2014 5:54 pm

Re: Sourcebans Compatibility

Post by Chimpanzeee »

Sorry for the double post, but I seem to have gotten sourcebans working on my server, but the issue here is whenever I ban someone in-game, when the time expires they do not get unbanned. Well they do through sourcebans, but for some reason their STEAMID is filtered through the base gmod STEAMID filter, and you have to do sm_unban manually to force it to do removeid <STEAMID>. Doing it through the website does not do this, so I'm guessing this has something to do with the function that Sourcebans calls when it bans in-game?

This is the function :

Code: Select all

function BanPlayer(ply, time, reason, admin, callback)
    callback = callback or blankCallback;
    if (not checkConnection()) then
        return callback(false, "No Database Connection");
    elseif (not ply:IsValid()) then
        error("Expected player, got NULL!", 2);
    end
    doBan(ply:SteamID(), getIP(ply), ply:Name(), time, reason, admin, callback);
end
I'm guessing it's an issue with doBan doing the base steamID filter, but I have no clue how to fix this. If anyone could point me in the right direction it'd be great.

Take note, even removing the ban from the database manually won't do the trick
Post Reply