• ULX Source Bans Module
    172 replies, posted
How would I add SourceBans to my site after installing it on my server? EDIT: Never mind.
When users get banned nothing happens, they appear on SourceBans only. And !sban doesn't work,and sm_rehash doesn't work and admin's dont get admind when they join.
Is there a way to make it NOT use ranks in sorucebans?
Just a suggestion, you should build in a thing where if an admin doesn't have an account on the Sourcebans, the server should just use Console to ban them. Like the original Sourcebans plugin for Sourcemod has it done. Just a suggestion, and it doesn't look like its hard. But I'm not the lua expert for that kind of job. I fix and do weapons.
Hi, I rewrote your addon to use callbacks. It's pretty messy, but solves infinite loop/crash issues I've been having when the database connection dies randomly. 24/03/14 Edit: [url]http://pastebin.com/AqRm9Lau[/url] Actually left a bug in this where if you removed the admin from the database completely, they won't get their rights removed. oops. fixed it now... I think.
I have many servers running Evolve and my DarkRP is running ULX. Is it safe to run these two together as in calling stuff from the MySQL database? I am attempting it now but when I modify admins on sourcebans and it wants to update I get "sm_rehash" is an unknown command. I know the script is running because it says MySQL Successfully Connected. I get this error when I connect and after typing "sm_rehash" in the console. [quote]ServerLog: [SBAN][ERROR] Table 'tbb_bans.sbbans' doesn't exist L 03/16/2014 - 17:06:56: [SBAN][ERROR] Table 'tbb_bans.sbbans' doesn't exist ServerLog: [SBAN][ERROR] SELECT bid, authid, ends, length, reason, RemoveType FROM sbbans WHERE authid = 'STEAM_0:1:36549678' L 03/16/2014 - 17:06:56: [SBAN][ERROR] SELECT bid, authid, ends, length, reason, RemoveType FROM sbbans WHERE authid = 'STEAM_0:1:36549678' [SBAN][Init] Mysql failed to connect [SBAN][Init] Mysql Error: This handle is already connected. Use a separate handle for each connection. sm_rehash L 03/16/2014 - 17:09:36: Lua Error: [ERROR] addons/ulx/lua/ulx/modules/sban.lua:72: attempt to index local 'query' (a nil value) 1. SBAN_SQL_Query - addons/ulx/lua/ulx/modules/sban.lua:72 2. StartAdminCheck - addons/ulx/lua/ulx/modules/sban.lua:201 3. unknown - addons/ulx/lua/ulx/modules/sban.lua:272 4. unknown - lua/includes/modules/concommand.lua:69 [ERROR] addons/ulx/lua/ulx/modules/sban.lua:72: attempt to index local 'query' (a nil value) 1. SBAN_SQL_Query - addons/ulx/lua/ulx/modules/sban.lua:72 2. StartAdminCheck - addons/ulx/lua/ulx/modules/sban.lua:201 3. unknown - addons/ulx/lua/ulx/modules/sban.lua:272 4. unknown - lua/includes/modules/concommand.lua:69 [ERROR] addons/ulx/lua/ulx/modules/sban.lua:72: attempt to index local 'query' (a nil value) 1. SBAN_SQL_Query - addons/ulx/lua/ulx/modules/sban.lua:72 2. StartAdminCheck - addons/ulx/lua/ulx/modules/sban.lua:201 3. unknown - addons/ulx/lua/ulx/modules/sban.lua:272 4. unknown - lua/includes/modules/concommand.lua:69 ARCBank: Cecil Kain(STEAM_0:1:36549678) Added 100 to Cecil Kain's Account. (ACCOUNT_STEAM_0_1_36549678) (From 4954083 to 4954183) [/quote] Nevermind this thread, I was able to get Evolve + FAdmin working with SourceBans. Thanks
Will you add 2.0 support?
Your Current Version Does Not work. [code] [ERROR] addons/ulx/lua/ulx/modules/sban.lua:190: attempt to index a nil value 1. SBAN_getadmin_id - addons/ulx/lua/ulx/modules/sban.lua:190 2. call - addons/ulx/lua/ulx/modules/sh/sban_menu.lua:48 3. __fn - addons/ulib/lua/ulib/shared/commands.lua:943 4. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296 5. Run - lua/includes/modules/concommand.lua:69 6. unknown - addons/ulib/lua/ulib/shared/commands.lua:1310 7. unknown - lua/includes/modules/concommand.lua:69 [/code] That is on a fresh GMod Server Kind Regards Derf.
Anybody knows what happend with SourceBans.net? -EDIT- [code] [ERROR] addons/ulx/lua/ulx/modules/sban.lua:117: bad argument #1 to 'getn' (tabl e expected, got string) 1. getn - [C]:-1 2. SBAN_checkadmin - addons/ulx/lua/ulx/modules/sban.lua:117 3. SBAN_playercheckadmin - addons/ulx/lua/ulx/modules/sban.lua:228 4. fn - addons/ulx/lua/ulx/modules/sban.lua:220 5. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 6. UniqueID - [C]:-1 7. query - addons/ulib/lua/ulib/shared/sh_ucl.lua:48 8. echoToAdmins - addons/ulx/lua/ulx/log.lua:164 9. fn - addons/ulx/lua/ulx/log.lua:196 10. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 [ERROR] addons/ulx/lua/ulx/modules/sban.lua:58: attempt to index local 'query' ( a nil value) 1. SBAN_SQL_Query - addons/ulx/lua/ulx/modules/sban.lua:58 2. SBAN_checkadmin - addons/ulx/lua/ulx/modules/sban.lua:113 3. SBAN_playercheckadmin - addons/ulx/lua/ulx/modules/sban.lua:228 4. fn - addons/ulx/lua/ulx/modules/sban.lua:220 5. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 6. UniqueID - [C]:-1 7. query - addons/ulib/lua/ulib/shared/sh_ucl.lua:48 8. echoToAdmins - addons/ulx/lua/ulx/log.lua:164 9. fn - addons/ulx/lua/ulx/log.lua:196 10. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 [/code]
[IMG]http://i.gyazo.com/301beac9078b243e976dbe8bd32392f0.png[/IMG] Srry but I can't copy it
That is weird I installed the latest version and I am not having those issues. You might be missing a step or something.
[QUOTE=bran92don;44643762]That is weird I installed the latest version and I am not having those issues. You might be missing a step or something.[/QUOTE] Who are you talking to?
[QUOTE=Sm63;44663953]Who are you talking to?[/QUOTE] Sorry I was talking to everyone who had errors spamming their consoles and were saying the latest version doesn't work.
Im working on a new version :P that will work better and have more customisation for the menus and stuff. Sorry the i havent been helping/fixing bugs for a while :P i have been working on other stuff. I might make a Video on the setup.
[QUOTE=FunDK;44693925]Im working on a new version :P that will work better and have more customisation for the menus and stuff. Sorry the i havent been helping/fixing bugs for a while :P i have been working on other stuff. I might make a Video on the setup.[/QUOTE] But can't you atleast tell us how to fix this temporally?
Ok i just finish the 0.2.0a version it's not super good but i will work more on it later. Later today i will be making a video guide on how i have set this up. later on i might make a full setup guide.
I look forward to that video so I can go ahead and implement this into my server. According to [url=http://forums.ulyssesmod.net/index.php?topic=5875.0]this[/url], it's possible, hackishly, to replace !sban and it's commands with the default variants, which makes it much easier to use and remember. Do you think you can show us how to do something like that?
I have managed to install this module onto one of my servers (a TTT server) but I am not able to install it correctly without getting a lua error when I process a command on my other server (a prop hunt). I get this lua error when I try to use the sban command: [QUOTE]Lua Error: [ERROR] addons/ulx/lua/ulx/modules/sban.lua:42: attempt to index global 'SBAN_MYSQL' (a nil value) 1. Admin_GetID - addons/ulx/lua/ulx/modules/sban.lua:42 2. Player_DoBan - addons/ulx/lua/ulx/modules/sban.lua:149 3. Player_Ban - addons/ulx/lua/ulx/modules/sban.lua:167 4. call - addons/ulx/lua/ulx/modules/sh/sban_menu.lua:13 5. __fn - addons/ulib/lua/ulib/shared/commands.lua:943 6. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296 7. Run - lua/includes/modules/concommand.lua:69 8. unknown - addons/ulib/lua/ulib/shared/commands.lua:1310 9. unknown - lua/includes/modules/concommand.lua:69 [/QUOTE] Can someone help me figure this out? Edit: It fixed itself.
This error pops up when a player does not have a group and joins the server. [CODE]addons/ulx/lua/ulx/modules/sban.lua:75: attempt to concatenate local 'aid' (a nil value)[/CODE] But does not appear when a player does have a group and is assigned to a certain ULX group. Is there a fix for this?
[QUOTE=DannyCore;44873064]This error pops up when a player does not have a group and joins the server. [CODE]addons/ulx/lua/ulx/modules/sban.lua:75: attempt to concatenate local 'aid' (a nil value)[/CODE] But does not appear when a player does have a group and is assigned to a certain ULX group. Is there a fix for this?[/QUOTE] Fixing it now ;) EDIT: Done should be fixed in 0.2.1a
Thank you! Will apply update tomorrow.
Video guide is up [url]https://www.youtube.com/watch?v=tGP5DSO6EDU[/url] But a little crappy :P
Do you ever plan to fix the issue with the countries when a ban is issued? It seems that when the IP address contains a port in it (such as :27005 at the end) it doesn't correctly find a location, but with the port removed it does. Thank you anyways, this is just a suggestion.
[QUOTE=DannyCore;44904535]Do you ever plan to fix the issue with the countries when a ban is issued? It seems that when the IP address contains a port in it (such as :27005 at the end) it doesn't correctly find a location, but with the port removed it does. Thank you anyways, this is just a suggestion.[/QUOTE] never thought of that :P will fix it tomorrow ;) EDIT: All done was an easy fix thanks for saying ;) it's fixed in 0.2.3a
[QUOTE=FunDK;44921230]never thought of that :P will fix it tomorrow ;) EDIT: All done was an easy fix thanks for saying ;) it's fixed in 0.2.3a[/QUOTE] EDIT: Nvm All Fixed
Not sure if this is my servers fault or not but my servers are experiencing pretty bad connection lag spikes at times. It only started happening after I added the module. Any clue on why its lagging?
[QUOTE=Sm63;44978543]Not sure if this is my servers fault or not but my servers are experiencing pretty bad connection lag spikes at times. It only started happening after I added the module. Any clue on why its lagging?[/QUOTE] Maybe you have overloaded your server?
[QUOTE=F14;44978996]Maybe you have overloaded your server?[/QUOTE] Being the only one on the server is overloading it? Seems legit [editline]3rd June 2014[/editline] Suggestion: Re-do the ulx adduser command so its easier to add users.
Installed this on multiple servers, no problems at all. I've also helped some people with problems whilst attempting an install with Sourcebans. Main thing to remember; make sure the server IP is added to the remote mySQL connections.
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.
Sorry, you need to Log In to post a reply to this thread.