• SourceBans in Lua
    264 replies, posted
  • Avatar of lexic
  • Please post a pic of your group (Owner Server Admin) and specific user (you) flag permissions.
  • Avatar of Rambomst
  • I have tired it with the 'z' flag and without it. Both times it didn't work. Also the group "Owner Server Admin" was just a test since I read before that this module didn't work if you were not in a group and I have since deleted it after the test was unsuccessful. [IMG]http://i51.tinypic.com/5v4wet.jpg[/IMG]
  • Avatar of lexic
  • Do you get the server console message "XXX has joined, and they are a YYY"? Replacing XXX with a name and YYY with a group.
  • Avatar of lexic
  • In that case, the server doesn't recognize you when you log in. I'm not sure why. What details have you provided in the sourcebans Admin Details section on the website?
  • Avatar of Rambomst
  • Are you talking about the details for my sourcebans account like username, email, steamid, password , etc. Well I have provided all of those.
  • Avatar of lexic
  • Hmmm. I dunno then. I've got to go, but when I come back I'll write you a debug version to find out what's going on. In the mean time, use [i]lua_log_sv 1[/i] in your startup parameters and make sure there are no lua errors.
  • Avatar of Rambomst
  • I already have that enabled and there are no errors that are linked to sourcebans.lua.
  • Avatar of davlyn_20
  • Hello, I want to sync my sourcebans with Garry's mod with custom administrator group, working with evolve. Because evolve doesn't allow to add custom groups with sourcebans.. Can anyone make this: Adding groups on Evolve using sourcebans. Read the Custom Admin Server Permissions on sourcebans, for example: -Custom flag "o" Admin privileges -Custom flag "p" All access ( Like the z flag in sourcemod ) -Custom flag "q" Reserved slots.. Thank you very much ! I got 7 servers to manage, 3 gmod servers.
  • Avatar of lexic
  • Uploaded a new version which may fix Rambomst's problems, and will aid davlyn_20's quest. Enjoy.
  • Avatar of lexic
  • Uploaded a new version which fixes admin loading breaking under certain (new) circumstances. I think this one could actually be Rambombst's issue. Please get back to me if it's not.
  • Avatar of ayre10
  • I am currently using evolve that has this integrated. My problem is I cant get this to write information to the sql database but I do know it can read information. I've used both evolves !ban command and sm_ban but either will not write anything to database and if course wont show up in the ban list on my website. Im also getting this error. [10/31/10 13:35:50][SourceBans.lua] The server has lost connection to the database. Retrying... Timer Error: [addons\evolve\lua\includes\modules\sourcebans.lua:551] attempt to index local 'query' (a nil value) This error happens a few mins after server startup.
  • Avatar of lexic
  • [QUOTE=erie1555;25751509]When unbanning someone they are not unipbanned.[/QUOTE] Works fine here. Please explain more. [QUOTE=ayre10;25763069]I am currently using evolve that has this integrated. My problem is I cant get this to write information to the sql database but I do know it can read information. I've used both evolves !ban command and sm_ban but either will not write anything to database and if course wont show up in the ban list on my website. Im also getting this error. [10/31/10 13:35:50][SourceBans.lua] The server has lost connection to the database. Retrying... Timer Error: [addons\evolve\lua\includes\modules\sourcebans.lua:551] attempt to index local 'query' (a nil value) This error happens a few mins after server startup.[/QUOTE] There will be several more errors during startup that would explain that one. Please find them and tell me what they are. [i]lua_log_sv 1[/i] in your server's startup parameters will provide a text log of all errors which will help. Be aware that Overv does not update the module he supplies as I update. Please download the version from the first post and put it in Evolve/lua/includes/modules/ before continuting [QUOTE=Nova Prospekt;25766784]Your doing the work of gods, sir.[/QUOTE] :smile:
  • Avatar of ayre10
  • [QUOTE=Lexic;25867794]Works fine here. Please explain more. There will be several more errors during startup that would explain that one. Please find them and tell me what they are. [I]lua_log_sv 1[/I] in your server's startup parameters will provide a text log of all errors which will help. Be aware that Overv does not update the module he supplies as I update. Please download the version from the first post and put it in Evolve/lua/includes/modules/ before continuting :smile:[/QUOTE] /orangebox/garrysmod/lua_errors_server.txt [CODE] [@gamemodes\sandbox\entities\entities\gmod_rtcameraprop\init.lua:89] bad argument #1 to 'random' (interval is empty) [@gamemodes\sandbox\entities\entities\gmod_rtcameraprop\init.lua:89] bad argument #1 to 'random' (interval is empty) [11/05/10 23:31:10][SourceBans.lua] The server has lost connection to the database. Retrying...Timer Error: [@addons\evolve\lua\ev_sourcebans.lua:35] bad argument #1 to 'ipairs' (table expected, got boolean) [11/05/10 23:36:10][SourceBans.lua] The server has lost connection to the database. Retrying... [/CODE] /orangebox/garrysmod/console.txt [CODE] Mounting hl2.. OK Mounting cstrike.. Failed Mounting dod.. Failed Mounting ep2.. Failed Mounting tf.. Failed Mounting episodic.. Failed Mounting hl2mp.. Failed Mounting portal.. OK Mounting lostcoast.. Failed Mounting hl1.. Failed Mounting hl1mp.. Failed Mounting zeno_clash.. OK Garry's Mod server.dll Build #109 [Nov 1 2010 15:56:15] maxplayers set to 10 Unknown command "sv_allow_wait_command" maxplayers set to 10 Network: IP 109.169.52.73, mode MP, dedicated Yes, ports 27015 SV / 27005 CL Lua initialized (Lua 5.1) ================================ Stargate Carter Addon Pack Loaded Revision 57 List of all installed CAP files: ================================ ========================================================== Simple Prop Protection Version 1.51 by Spacetech has loaded ========================================================== ======================================================= StarGate Pack: Initializing Version: 47 Loading: stargate/shared/init.lua Loading: stargate/shared/keyboard.lua Loading: stargate/shared/bullets.lua Loading: stargate/shared/lib.lua Loading: stargate/shared/matrix.lua Loading: stargate/shared/print_r.lua Loading: stargate/shared/tracelines.lua Loading: stargate/server/init.lua INIParser:parse - File stargate/config.ini successfully parsed INIParser:parse - File stargate/user_config.ini successfully parsed Loading: stargate/server/keyboard.lua Loading: stargate/server/spawner.lua Loading: stargate/server/entity.lua Loading: stargate/server/ini_parser.lua Loading: stargate/server/protection.lua Loading: stargate/server/teleport.lua Loading: stargate/server/tool.lua Loading: stargate/server/wire_rd.lua ======================================================= ================================ === Wire 2207 (exported) Installed === ================================ Loaded GM Lua DLL. 1 modelprecache 1024 10 0 1 modelprecache 8192 13 0 4 decalprecache 512 9 0 4 decalprecache 1024 10 0 12 Materials 1024 10 0 12 Materials 2048 11 0 ===================================================== Evolve 1.0 by Overv succesfully started serverside. ===================================================== [11/05/10 23:25:36][SourceBans.lua] Starting the database. Registering gamemode 'sandbox' derived from 'base' ScriptEnforce is disabled Compressing lua files into data pack.. Compression complete. 1164 files. (1.861s) Executing dedicated server config file [11/05/10 23:25:45][SourceBans.lua] Loading Admin Groups . . . Connection to Steam servers successful. VAC secure mode is activated. Client "TheCreeper" connected (93.96.51.96:27005). [11/05/10 23:26:09][SourceBans.lua] Loading Admins . . . INIParser:parse - File stargate/gatespawner_maps/gm_flatgrass.ini successfully parsed Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl Setting CBaseEntity to non-brush model models/zup/stargate/stargate_gring.mdl ================================================= Simple Prop Protection: 68 props belong to world ================================================= [EV] TheCreeper last joined 22 minutes ago. [EV] Add This Server To Your Favourites, 109.169.52.73:27015. [@gamemodes\sandbox\entities\entities\gmod_rtcameraprop\init.lua:89] bad argument #1 to 'random' (interval is empty) [@gamemodes\sandbox\entities\entities\gmod_rtcameraprop\init.lua:89] bad argument #1 to 'random' (interval is empty) [EV] Noclip Is Disabled For Guests. [11/05/10 23:31:10][SourceBans.lua] The server has lost connection to the database. Retrying... Timer Error: [@addons\evolve\lua\ev_sourcebans.lua:35] bad argument #1 to 'ipairs' (table expected, got boolean) [EV] Must Be 16+ To Use Microphone. [EV] Don't Bug The Owner For Admin. [11/05/10 23:36:10][SourceBans.lua] The server has lost connection to the database. Retrying... [EV] Use Multi-Tool For All Your Needs. [EV] Submit ban requests at thecreeper.co.uk [EV] Still Working On The Server. [11/05/10 23:41:10][SourceBans.lua] The server has lost connection to the database. Retrying... Timer Error: [@addons\evolve\lua\ev_sourcebans.lua:35] bad argument #1 to 'ipairs' (table expected, got boolean) [EV] Add This Server To Your Favourites, 109.169.52.73:27015. [EV] Noclip Is Disabled For Guests. [/CODE]I also updated the module at the link you supplied in the first page.
  • Why can't you guys just use Sourcemod/metamod with Sourcebans? Its much easier and less buggier than this.
  • Avatar of lexic
  • Because SourceMod + MetaMod + Garry'sMod results in a horrible clusterfuck and lag. This is small, compact, works fine for most people and is FAR simpler to install than SourceMod. It also comes with a large script interface for server owners who make their own admin mod. [editline]7th November 2010[/editline] The errors you are getting are because Evolve doesn't bother to check the result passed to the callback and plows straight in with the looping, even though it's being passed an error message. I'll tell Overv. You also seem to lose connection to your SourceBans database fairly quickly. You probably want to look into that, as the module can connect fine the first time. Incidentally, did you assign yourself as admin on that server in sourcebans? You don't show up in the readout.
  • Avatar of ReignofTerr0r
  • Ok so every time I start my server and someone connects I get [code][11/15/10 14:08:38][SourceBans.lua] The server has lost connection to the database. Retrying...[/code] yet I can still connect to the same database successfully right after that from the exact same server. (I'm hosting it from home). I am currently using a self-coded ULX plugin that works just fine and has no errors. I would really like for this to work.
  • Avatar of jdmmer
  • I get this error: [addons\evolve\lua\includes\modules\sourcebans.lua:126] attempt to concatenate local 'id' (a nil value) Your plugin was included by Evolve admin. How to fix that?
  • [QUOTE=Mr.Thorn;29156566]Interesting, does this still work or has garry's "updates" total'd it.[/QUOTE] For me, it never worked (Could have just been the way I was doing it). I doubt he's updating it, either.
  • [QUOTE=.\\Shadow};29162970]For me, it never worked (Could have just been the way I was doing it). I doubt he's updating it, either.[/QUOTE] He updates it when needed afaik. He fixed all the issues I mentioned with it, same with lexical tools. We use the mod right now with the latest sban website code. Module works perfectly with no modifications to the module.
  • Avatar of Buggzie
  • Overv isn't working on Evolve anymore, looks like you'll have to post a bugfix yourself ;p
  • Avatar of erie1555
  • Any help with this error: Lua Error: [04/17/11 11:49:39][SourceBans.lua] Player Ketchup joined, but SourceBans.lua is not active!
  • Avatar of lexic
  • You haven't turned it on with sourcebans.Activate(); I'm going to look into this Evolve issue, it's affecting my server as well.
  • Avatar of Jo The Shmo
  • Does anyone know why the sourcebans web control panel wouldn't be able to connect to the server? It just says "Error connecting (184.172.12.55:27015)" when I list the servers and I am relatively sure everything is set up correctly. [editline]28th April 2011[/editline] Oh wait it seems to kick people just fine, but it still doesn't keep them banned (an error that I had earlier too)