• ULX Global Ban
    228 replies, posted
Glad to see you got the conversion system working. :D
Alright so after i updated on my server people who are banned can still join. Bans are still added to the ban list whenever they are made but when a banned person joins the authentication say he have no active bans. So SQL is working correctly, there is no errors. It just says that nobody have a active ban even if they do.
what about my error? i still havent got it working since i tried this... and that was around like 5 weeks ago. Please look at [url]http://www.fearsome.info/bans/index.php[/url] i dont know what the error is
[QUOTE=Auanking;40292556]what about my error? i still havent got it working since i tried this... and that was around like 5 weeks ago. Please look at [url]http://www.fearsome.info/bans/index.php[/url] i dont know what the error is[/QUOTE] I think I answered this for you already, you have not imported the ULX_GlobalBans.sq into your database.
[QUOTE=Dixie Kong;40289396]Alright so after i updated on my server people who are banned can still join. Bans are still added to the ban list whenever they are made but when a banned person joins the authentication say he have no active bans. So SQL is working correctly, there is no errors. It just says that nobody have a active ban even if they do.[/QUOTE] Again make sure that there is an Active MySQL connection or the data is being inserted correctly, I just tested it, works perfectly fine. [QUOTE=Auanking;40292556]what about my error? i still havent got it working since i tried this... and that was around like 5 weeks ago. Please look at [url]http://www.fearsome.info/bans/index.php[/url] i dont know what the error is[/QUOTE] Check for spelling errors in your config for the page to your actual database, specifically $dbdatabase.
Dropped rawe from server (" "You've been banned from the server.") [ULX GB] - Ban Added! [ULX GB] AUTHING PLAYER: rawe WITH SteamID: STEAM_0:1:33200994 [ULX GB] - User has no active bans lol. Another error: [url]http://subatomicgaming.net/bans/[/url] only one of my servers shows up on the list, though the addon is installed on both servers.
[QUOTE=rawr5852;40383534]Dropped rawe from server (" "You've been banned from the server.") [ULX GB] - Ban Added! [ULX GB] AUTHING PLAYER: rawe WITH SteamID: STEAM_0:1:33200994 [ULX GB] - User has no active bans lol. Another error: [url]http://subatomicgaming.net/bans/[/url] only one of my servers shows up on the list, though the addon is installed on both servers.[/QUOTE] How long where you banned for, and did the ban show up in the MySQL DB? Check the other server's log for any connection errors.
[QUOTE=bcool14;40383930]How long where you banned for, and did the ban show up in the MySQL DB? Check the other server's log for any connection errors.[/QUOTE] I was banned for "60", and it was in the mySQL DB. Anyways, that problem isn't happening anymore. Just found the problem, it the libsql shit wasn't installed, forgot about it. Fixed now.
Ever since the latest GMod update the bans aren't working anymore. Often the person won't be kicked when doing ulx ban or they can just rejoin right after even though it shows up in database fine. Anyone else?
I don't think any major commands were changed by garry. Are there any errors printed in console (server sided most likely?)
We installed this addon a couple of weeks ago but there is a major issue which has already been mentioned. When you ban someone, it will update the mysql database straight away with their ban, and you can see it on the ban list webpage, but if they rejoin within ~1 minute, it will Auth them as having no bans. So half the time when we ban someone, they will rejoin straight away and bypass the auth.. Have to kick them again after about a minute so they can't auth.
Updated 1.2 Shouldn't happen now.
Nothing is showing up on my page, everything is setup correctly: [url]http://sourcetribe.co.uk/bans/index.php[/url] This keeps popping up in console every time it queries the DB: [code][ULX GB] - Database Connection Restarted[/code]
[lua] [ERROR] lua/includes/extensions/string.lua:44: bad argument #1 to 'string_gmatch' (string expected, got nil) 1. string_gmatch - [C]:-1 2. Explode - lua/includes/extensions/string.lua:44 3. GB_Convert - addons/ulx_globalbanmodule/lua/globalban/gb_convert.lua:30 4. unknown - addons/ulx_globalbanmodule/lua/globalban/gb_convert.lua:40 5. include - [C]:-1 6. unknown - addons/ulx_globalbanmodule/lua/globalban/gb_mysqloo.lua:25 7. fn - [C]:-1 8. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 [/lua] Sad face.
[QUOTE=Gamz365;40565384]Nothing is showing up on my page, everything is setup correctly: [url]http://sourcetribe.co.uk/bans/index.php[/url] This keeps popping up in console every time it queries the DB: [code][ULX GB] - Database Connection Restarted[/code][/QUOTE] Sorry for taking so long, check all the MySQL database settings, remote connection firewalls and what not, I've talked to a lot of people with issues and it's all user error so far. [QUOTE=smithy285;40801583][lua] [ERROR] lua/includes/extensions/string.lua:44: bad argument #1 to 'string_gmatch' (string expected, got nil) 1. string_gmatch - [C]:-1 2. Explode - lua/includes/extensions/string.lua:44 3. GB_Convert - addons/ulx_globalbanmodule/lua/globalban/gb_convert.lua:30 4. unknown - addons/ulx_globalbanmodule/lua/globalban/gb_convert.lua:40 5. include - [C]:-1 6. unknown - addons/ulx_globalbanmodule/lua/globalban/gb_mysqloo.lua:25 7. fn - [C]:-1 8. unknown - addons/ulib/lua/ulib/shared/hook.lua:183 [/lua] Sad face.[/QUOTE] It's not the best system I know! Backup your bans.txt and then sift through it. You might have a Tab or a space where there shouldn't be.
[QUOTE=bcool14;40810668] It's not the best system I know! Backup your bans.txt and then sift through it. You might have a Tab or a space where there shouldn't be.[/QUOTE] Too late now, I accidentally deleted all my bans :c Oh well, at least the system is functioning now...but now I have nobody to ban.
It's working fine when ulx ban playername time reason is used. However when TTT trys to Karma ban it keeps giving this error. TTT is set to Karma ban via ulx. [code][ERROR] addons/ulx_globalban/lua/globalban/gb_banmanagement.lua:29: attempt to index local 'admin' (a nil value) 1. addBan - addons/ulx_globalban/lua/globalban/gb_banmanagement.lua:29 2. banfn - addons/ulib/lua/ulib/server/player.lua:154 3. PerformKickBan - gamemodes/terrortown/gamemode/admin.lua:206 4. KickBan - gamemodes/terrortown/gamemode/player_ext.lua:318 5. CheckAutoKick - gamemodes/terrortown/gamemode/karma.lua:349 6. RoundEnd - gamemodes/terrortown/gamemode/karma.lua:257 7. EndRound - gamemodes/terrortown/gamemode/init.lua:763 8. unknown - gamemodes/terrortown/gamemode/init.lua:300[/code]
[QUOTE=NaRyan;40819606]It's working fine when ulx ban playername time reason is used. However when TTT trys to Karma ban it keeps giving this error. TTT is set to Karma ban via ulx. [code][ERROR] addons/ulx_globalban/lua/globalban/gb_banmanagement.lua:29: attempt to index local 'admin' (a nil value) 1. addBan - addons/ulx_globalban/lua/globalban/gb_banmanagement.lua:29 2. banfn - addons/ulib/lua/ulib/server/player.lua:154 3. PerformKickBan - gamemodes/terrortown/gamemode/admin.lua:206 4. KickBan - gamemodes/terrortown/gamemode/player_ext.lua:318 5. CheckAutoKick - gamemodes/terrortown/gamemode/karma.lua:349 6. RoundEnd - gamemodes/terrortown/gamemode/karma.lua:257 7. EndRound - gamemodes/terrortown/gamemode/init.lua:763 8. unknown - gamemodes/terrortown/gamemode/init.lua:300[/code][/QUOTE] I see, I'm out from a test server atm, but try this: Edit gb_banmanagement.lua at line 29 to: [CODE] if admin != NULL && admin:IsPlayer() then [/CODE] EDIT: WOOT! Over 7000 Views ! Thanks!
Tried the change you suggested, still gives the same error when it trys to karma ban.
When I get home in about three hours, I'll work something out and push it to github. EDIT: Sorry for the wait, got caught up, fix is pushed. It's the same file and line just not NULL it's nil. [CODE]if admin != nil && admin:IsPlayer() then[/CODE]
I am having a problem, when someone gets SteamID banned their name shows up as John Doe, is there anyway to fix this? This is a big problem for me.
I cant seem to get this to work there is no errors or anything along those lines that I can work off any ideas?
How do you ban someone who has left the server? Normally !banid worked but global ban wont ban a ID
ulx banid <id> <time> <reason>
[QUOTE=Eccid;41131932]ulx banid <id> <time> <reason>[/QUOTE] for a normal ban you can do !ban <name> <time> <reason>? so you have to do !ulx banid <id> <time> <reason>
I do most bans from the console, or through the xgui. The banid function doesn't work right in the xgui, so I expect for the same reason it doesn't work with !banid. If you're doing it from the console, don't use "!"
Does ULX global ban support the ban id IDs though? the main server can do them fine with !banid
It works fine on my server. I never use chat commands for anything, but it always works via the console for me.
Hey Zaazir I had a similar issue like you did. Make sure you have both files that are located @http://facepunch.com/showthread.php?t=1220537. Both the libmysql and that gmsv_mysqloo. Make sure that the libmysql is in the ROOT of your server folder and NOT the root of your garrysmod folder. Makes a big difference on it working or not. If it still doesn't work make sure you installed the right mysqloo for your server(Linux or Windows).
Heads up Nignog, karma bans don't work on TTT.
Sorry, you need to Log In to post a reply to this thread.