• SourceBans in Lua
    264 replies, posted
  • Avatar of lexic
  • I've uploaded a version that should prevent all three of those errors. However, the middle one is because you have access to the server, but haven't been assigned a server group. You might want to fix that? :v:
  • Avatar of Chief Tiger
  • I'm confused by that statement, do you mean on the server or on the the website? I have dogroups set to false in the lua...
  • Avatar of lexic
  • Go to the admin list. Then look at your name. Then look at the column next to it, the 'Server Admin Group' one. If it says 'No Group/Individual Permissions', then that's the problem. If it doesn't I might need access to your installation to see why you're assigned a group without a name.
  • Avatar of lexic
  • If you want to be able to manage who gets put into what group via the web interface when Overv gets around to making it work properly, (or if you use the plain version and only have Admin and SuperAdmin) then yes. Otherwise, don't bother. You don't even actually need to bother doing the groups in that case, as I tostringed it. I'll just announce in the server log that you're a 'nil'. I'll get around to neat-ifying that later.
  • Avatar of Chief Tiger
  • Ok, but is there any reason why when I ban someone, that the ban doesn't appear on the website and I can't unban the person through evolve or sm_unban?
  • Avatar of lexic
  • Are you using the latest version of the module? Any errors? I've not run across this before. [editline]04:14PM[/editline] Actually, if the database is not active when you ban someone through Lua, it returns an error to the callback function rather than printing an error. Overv may not be handing them.
  • Avatar of Chief Tiger
  • Btw, you have a typo on line 175. :3: [editline]10:54AM[/editline] It seems that there's something wrong with my database connection, because when my admins use the ban command it gives this error: Plugin 'Ban' failed with error: lua\includes\modules\sourcebans.lua:504: attempt to call local 'callback' (a nil value) Which is fine if Overv hasn't made callbacks yet, but that only gets called if checkConnection() returns false.
  • Avatar of lexic
  • Fixed typo, added a bit more robustness and bugged Overv until he said he'd do callback support. v1.315 now online.
  • The website is up, only, and working, but... [code] ] sm_ban gash 1 being innocent. The database is not active at the moment. Your command could not be completed. [/code]
  • Avatar of lexic
  • Are you sure that a) You have all the correct details in b) Your server's IP is allowed to connect to the db c) You did actually install MySQLOO? Additional info: What OS you running the server on? What version of SourceBans are you running? What version of MySQL are you running? Does your MySQL server have any limits such as connections or bandwith that might be locking the game server out?
  • a) Yes b) Yes, it is. 3) I used Xenon Server's mod installer for it. Windows, I'm assuming. The current one in Xenon's mod installer. Not that I know of.
  • Avatar of lexic
  • How odd. Are you able to access your server's files/server.cfg? Either enabling `lua_log_sv 1` or `log on` during startup and then plumbing the relevent logs (garrysmod/lua_errors_server.txt, garrysmod/logs/*.log) would give a far better understanding of what's going on. I made the module spit out lots of info as it does things.
  • [code][08/10/10 02:13:56][SourceBans.lua] Failed to connect to the database: Can't connect to MySQL server on 'onlinecomphelp.com' (10060). Retrying in 60 seconds.[/code] I guess it's an error on my end, no idea what is causing it though... :/
  • Avatar of lexic
  • I'll see if I can force it to provide more information on the connection failure when I get back.
  • Avatar of gamer_lv
  • [QUOTE=.\\Shadow};23944814] 3) I used Xenon Server's mod installer for it.[/QUOTE] Are you sure its the OO version. last time I used xenons mod install (2 months ago) it only had the old V8 module.
  • Avatar of lexic
  • Turns out 'Can't connect to MySQL server on 'onlinecomphelp.com' (10060)' is the only error message I can get out of it, but it's definitely why it's not working. I suggest you create a support ticket on your host.
  • V8? Would using V7 be causing this.. ? [img]http://filebox.me/files/1t9fs0y0h_oo.PNG[/img] The thing is, the clan this is for (nonerdsjustgeeks.com), uses different hosts and different people for it. I run the server I am trying to use this for, but the owner of the clan runs "onlinecomphelp.com" and that's where SourceBans is on. I would have to ask HIM to make a support ticket, and there wasn't this problem on Sourcebans.lua 1.5
  • Avatar of lexic
  • I haven't changed anything relating to connecting since the first release, so I don't see how it could be me, and that error is coming from the MySQLOO module, so it's definitely your end. Sorry. :/
  • I tried this again with a different database website, still didn't work. Long story short after a couple hours I got mad and switched to the almost never used EasyBan.
  • Avatar of lexic
  • I'm going away for a week and a half, so I won't be able to provide any support. Good luck.
  • Avatar of Bubka3
  • [QUOTE=.\\Shadow};23956243][code][08/10/10 02:13:56][SourceBans.lua] Failed to connect to the database: Can't connect to MySQL server on 'onlinecomphelp.com' (10060). Retrying in 60 seconds.[/code] I guess it's an error on my end, no idea what is causing it though... :/[/QUOTE] This plugin cant resolve domains. You need to put an IP
  • If I unban from the website, it never unbans... Yes RCON is correct Yes Sourcebans is installed correctly Yes I have admin privileges Yes the database is working properly
  • Avatar of Rambomst
  • I am unable to get this working ingame without the use of RCON but I am able to ban with the use of RCON. Each time I try and ban it says [code] sm_ban MeoW 1 test You do not have access to this command! [/code]I am not getting any LUA errors and it is connecting to the MySQL DB. *edit* On server startup I noticed I got this error and I also noticed that if I ban myself via the webpanel for for x amount of time I am still able to connect and play in the server while banned. [code] [@lua\includes\modules\sourcebans.lua:118] invalid value (nil) at index 7 in table for 'concat' [@lua\includes\modules\sourcebans.lua:118] invalid value (nil) at index 7 in table for 'concat' [@lua\includes\modules\sourcebans.lua:118] invalid value (nil) at index 7 in table for 'concat' [/code]
  • Make sure you have admin privileges on your sourcebans website. With the correct StEAM ID
  • Avatar of Rambomst
  • I have admin privs on the website and I am using the correct SteamID. My sourcebans system works fine with the 7 CSS servers I have.
  • Avatar of Rambomst
  • I really need to get this error fixed. I don't want to have to use metamod and sourcemod so any help is much appreciated.
  • Avatar of lexic
  • Fixed. [[url=http://lexi.org.uk/modules/sourcebans.lua]Link[/url]] You are assigned as an admin on to the server, but do not have a server group selected. I hadn't anticipated this when I made the module, and the previous quickfix didn't work.
  • Avatar of Rambomst
  • I just updated to that new version and it still isn't working for me. It keeps saying I do not have access to the command but on server load I get this in console [code] L 09/28/2010 - 10:07:51: [09/28/10 10:07:51][SourceBans.lua] Loaded admin group Server Admin [09/28/10 10:07:51][SourceBans.lua] Loaded admin group Server Admin L 09/28/2010 - 10:07:51: [09/28/10 10:07:51][SourceBans.lua] Loaded admin group Owner Server Admin [09/28/10 10:07:51][SourceBans.lua] Loaded admin group Owner Server Admin L 09/28/2010 - 10:07:51: [09/28/10 10:07:51][SourceBans.lua] Loading Admins . . . [09/28/10 10:07:51][SourceBans.lua] Loading Admins . . . L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Arkwolf with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Arkwolf with group Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin MeoW with group Owner Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin MeoW with group Owner Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Deadmouse with group NO GROUP ASSIGNED. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Deadmouse with group NO GROUP ASSIGNED. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Kazzarry with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Kazzarry with group Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Jesus with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Jesus with group Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin BOT with group NO GROUP ASSIGNED. [09/28/10 10:07:52][SourceBans.lua] Loaded admin BOT with group NO GROUP ASSIGNED. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin TheBoss with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin TheBoss with group Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Cavtek with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Cavtek with group Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Crayola with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Crayola with group Server Admin. L 09/28/2010 - 10:07:52: [09/28/10 10:07:52][SourceBans.lua] Loaded admin Rupert with group Server Admin. [09/28/10 10:07:52][SourceBans.lua] Loaded admin Rupert with group Server Admin. [/code]So it seems to be loading the admins I just can't use the commands...