• ULX Source Bans Module
    172 replies, posted
[QUOTE=Sm63;44997786]I better re-word my suggestion: Re-make the ulx adduser command so in-game we can add users to the server's sourcebans website.[/QUOTE] i can take a look at it in the weekend ;)
[QUOTE=FunDK;44997906]i can take a look at it in the weekend ;)[/QUOTE] [ERROR] addons/ulx/lua/ulx/modules/sban_mysql.lua:102: attempt to index local 'q' (a nil value) 1. Query - addons/ulx/lua/ulx/modules/sban_mysql.lua:102 2. Player_CheckBanned - addons/ulx/lua/ulx/modules/sban.lua:124 3. fn - addons/ulx/lua/ulx/modules/sban.lua:190 4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 5. UniqueID - [C]:-1 6. query - addons/ulib/lua/ulib/shared/sh_ucl.lua:4
[QUOTE=F14;44999523][ERROR] addons/ulx/lua/ulx/modules/sban_mysql.lua:102: attempt to index local 'q' (a nil value) 1. Query - addons/ulx/lua/ulx/modules/sban_mysql.lua:102 2. Player_CheckBanned - addons/ulx/lua/ulx/modules/sban.lua:124 3. fn - addons/ulx/lua/ulx/modules/sban.lua:190 4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 5. UniqueID - [C]:-1 6. query - addons/ulib/lua/ulib/shared/sh_ucl.lua:4[/QUOTE] No errors for me. Did you edit sban_mysql to have your mysql details?
[QUOTE=Sm63;45004717]No errors for me. Did you edit sban_mysql to have your mysql details?[/QUOTE] yep and all the info is right, im sure of it.
[QUOTE=F14;45016364]yep and all the info is right, im sure of it.[/QUOTE] Do you have mysql installed?
[QUOTE=F14;44999523][ERROR] addons/ulx/lua/ulx/modules/sban_mysql.lua:102: attempt to index local 'q' (a nil value) 1. Query - addons/ulx/lua/ulx/modules/sban_mysql.lua:102 2. Player_CheckBanned - addons/ulx/lua/ulx/modules/sban.lua:124 3. fn - addons/ulx/lua/ulx/modules/sban.lua:190 4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 5. UniqueID - [C]:-1 6. query - addons/ulib/lua/ulib/shared/sh_ucl.lua:4[/QUOTE] Heya. I just installed sourcebans across all my servers yesterday. I am also getting this same error. I'm curious. Do you have a large amount of bans saved? I have nearly 1800 (we are kind of a big target). Not only do I get this error, but we are getting a lot of crashes with the last line of the log being a banned person joining and disconnecting (this may be a coincidence, i'm still investigating). Sourcebans usually shows them as blocked on the website at the exact time of the crash. Also, on server boot, i'm getting a Cbuf AddText: Overflow spam in the server console, which is usually from a .cfg file being too large. Is there something too big trying to load on server boot possibly, that could maybe be split into multiple files? (i completely cleared out my banned_user.cfg on all servers before turning sourcebans on, and it wasnt having that problem before, when just using ulx on its own, and banned_user.cfg) Please let me know if there's anything I can do to help test this out and improve it. Edit: O ya, it just did it again, its crashing when some of the recently banned people try to join. I'm probly just gonna clear all the bans and start over. It is a ridiculous amount of bans. I'll let you know if it clears up any of these issues. Update #2: Apparently all or the majority of crashing was from a conflict with an inter-server chat ulx module I was using. I removed it and it's stable again. I also removed a big chunk of ancient bans, so down to about 1000 now. Still working on figuring out what's causing the CBuff AddText: Buffer Overflow spam on server boot on the line before it writes banned_user.cfg.
[QUOTE=FunDK;44997906]i can take a look at it in the weekend ;)[/QUOTE] Everything works steadily?
Any chance of getting this updated to SourceBans 2.0.0? Databases are set up differently.
[QUOTE=Tommo1590;45082022]Any chance of getting this updated to SourceBans 2.0.0? Databases are set up differently.[/QUOTE] May be the issue I'm having then, downloaded and installed most recent SourceBans, and they're not playing nice. [url]http://sf3soft.net/screenshot.php?id=410831d905aa086d43bb719d26a79312.png[/url] MySQLoo installed database info is setup groups are created user is in group
Thats your problem. On the SourceBans website when you click download it now makes you download Version 2 and this plugin does not yet support it.
I run ulx_globalbans, and if I add this I'm afraid that it will most likely screw some things up... Is there any easy way to sync both these addons so I can quit using global bans and convert to source bans?
i will take a look at the sourcebans v2 soon :P (cant be that hard to fix)
Wait so to be clear this addon syncs bans and ulx groups?! So if I install this on a second server, everything will be the same correct?
[QUOTE=.:ATomIC:.;45103326]Wait so to be clear this addon syncs bans and ulx groups?! So if I install this on a second server, everything will be the same correct?[/QUOTE] Yeah this syncs groups and bans, so if you modify permissions on the website it will modify permissions in game (as shown in the video). Also explains why the module was removing people from my basic admin group (they "weren't in the database" so they were moved to "user", which I like, but it needs to contact the database properly :P) That's actually why I'm looking to use SourceBans, I'm setting up a second server and I don't want to have to redo absolutely everything, and if someone is banned, I don't want to have to re-ban them every time.
Exactly, If I could save the default ULX bans from data/ulib or whatever to Source Bans, I'll switch to this right away!!
Sourcebans 2.0 is in SLASH *beta* SLASH, Alpha! and you probably shouldn't be using it. At least not using it and not expecting issues. It's going to be super confusing if their are a bunch of different versions, the 1.5 beta and the 2.0 alpha. All products should go to release candidates. [B][url]https://forums.alliedmods.net/showthread.php?t=61000[/url][/B] That, is the latest stable RELEASE version. I'd rather use a release. So please if you update ULX SourceBans moduel keep support for the release version. If you do both fine (or 3) but just make sure that 1.4.11 is supported. Thank you.
[QUOTE=goodman854;45110537]Thank you.[/QUOTE] I'd still like to figure out how to write existing bans to Source Bans from a .txt :rolleyes:
[QUOTE=.:ATomIC:.;45111813]I'd still like to figure out how to write existing bans to Source Bans from a .txt :rolleyes:[/QUOTE] It already does this. Admin Panel > Bans > Import Bans.
[QUOTE=goodman854;45110537]Sourcebans 2.0 is in SLASH *beta* SLASH, Alpha! and you probably shouldn't be using it. At least not using it and not expecting issues. It's going to be super confusing if their are a bunch of different versions, the 1.5 beta and the 2.0 alpha. All products should go to release candidates. [B][url]https://forums.alliedmods.net/showthread.php?t=61000[/url][/B] That, is the latest stable RELEASE version. I'd rather use a release. So please if you update ULX SourceBans moduel keep support for the release version. If you do both fine (or 3) but just make sure that 1.4.11 is supported. Thank you.[/QUOTE] His right just took a look at SourceBans v2.0 it's very buggy i recommend 1.4.11.
after i added my server to sourcebans i got this on the sourceban website "Error connecting (93.189.7.100:28315) Help" can anyone help me? edit: everything else works ( i can can people if i set myself back to sa again )
[QUOTE=pro potato;45264939]after i added my server to sourcebans i got this on the sourceban website "Error connecting (93.189.7.100:28315) Help" can anyone help me? edit: everything else works ( i can can people if i set myself back to sa again )[/QUOTE] This is your SQL database nothing to do with us.
[QUOTE=Dr PooGas;45118717]It already does this. Admin Panel > Bans > Import Bans.[/QUOTE] Not what I mean. ulx global bans save the bans to a database not banned_users.cfg
Do you think you could help me, for some reason whenever I ban someone it says that Console was banned it doesnt say the name of the person that you are actually banning, It is fine on the website but in game it says that console was banned
[QUOTE=npd1124;45330438]Do you think you could help me, for some reason whenever I ban someone it says that Console was banned it doesnt say the name of the person that you are actually banning, It is fine on the website but in game it says that console was banned[/QUOTE] It does this for standard ULX bans too, someone should report the bug.
[QUOTE=King Traitor;45334601]It does this for standard ULX bans too, someone should report the bug.[/QUOTE] oh alright thanks
Do you think you could make it so that when you ban someone by SteamID it automatically Inserts their name instead of it saying [Unknown]
[QUOTE=npd1124;45338564]oh alright thanks[/QUOTE] [url]https://github.com/Nayruden/Ulysses[/url] Update ULX it fixes the problem.
I have a question. I went to install SourceBans so I can use this addon but I am confused about which files in that download to install on my webhost. There are files in a folder called web which I obviously use but there are some files in a folder called docs which I am not sure if I install in a separate directory. There are also some files called .gitignore and .travis.yml that I am not sure where to install on the webserver. I believe I obviously ignore the addons/sourcemod folder and use your module instead? Thanks for your help, I am excited to use this!
[QUOTE=npd1124;45330438]Do you think you could help me, for some reason whenever I ban someone it says that Console was banned it doesnt say the name of the person that you are actually banning, It is fine on the website but in game it says that console was banned[/QUOTE] No that does not fix it.
I got this successfully set up but I have a few questions (yes I read all 3 pages of comments to make sure I am not asking questions that have already been answered) 1) I saw you can import bans from the sb admin panel but what should the format be of the bans to make it work? I mean can you download bans.txt then upload it in that format? I have over 2000 bans. 2) After you import the bans, do you need to delete the banned_user.cfg or bans.text or will the server now just ignore those 2? 3) What happens if you import bans from 2 different servers? Will sb replace the files or will it be additive? 4) Can you ban from HLSW? If so what is the format of the command to ban? 5) What is the actual command to ban on the server while the player is there? 6) If the player tries to connect to the server after he is banned, will he see a reason associated with the ban or just "you are banned from this server"? Thanks and I hope these help others too!
Sorry, you need to Log In to post a reply to this thread.