Ulysses
Ulysses Stuff => Releases => Topic started by: bcool on December 06, 2012, 12:43:39 AM
-
ULX-Global-Ban
==============
A Global Ban System designed to be used only with ULX & ULib Garry's Mod servers.
This addon literally does not require any editing of ULX / ULib, just place into your addons folder and set up the configuration file!
INFO
==============
Created out of necessity.
Created by NigNog (Bcool) and Adobe Ninja.
FEATURES
==============
Server Identification: When your server starts, it checks to see whether or not the IP:Port configuration is already there. If it's not it'll create it and assign the server an ID. If it is it'll assign the server an existing ID.
Bans: This addon overwrites the exists ULib function to add a ban, and inserts it into the MySQL Database.
Authentication: When the server Auths a player, the point where the SteamID is retrived and the normal ban status is checked, this addon checks the MySQL server to see if the user has been banned.
Information: When a user has been banned, their SteamID, Current Name, Reason, ServerID of the server which they where banned on, Admin(Banner) SteamID and Current admin name are all saved in the MySQL Database.
Each time your server is started, the hostname is automagicly updated in the MySQL database.
PLANED/TODO
==============
Nothing
CHANGELOG
==============
[ADD] Ban removal.
[ADD] Ban Modification.
[ADD] Ban listing in the xgui menus.
[ADD] Ban sync, your bans defaulty sync with the MySQL DB every 30 seconds.
[ADD] Config file with a small amount of configs for extra control.
[ADD] Limited GateKeeper functionality. (Doesn't really work yet)
[FIX] Permanently Banned users could still get through.
[CHG] SQL Table Structure to incorporate all ULX ban details.
INSTALLATION
==============
*Requires MySQLOO
TODO
Feel free to request features / post constructive criticism, or help out with the code!
https://github.com/bcool/ULX-Global-Ban (https://github.com/bcool/ULX-Global-Ban)
(http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png) (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US)
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
-
Very nice! And I'm a fan of your license choice. :)
-
Very nice! And I'm a fan of your license choice. :)
Why thank you good sir!
Just updated to 0.5Beta :)
-
For the people whom arn't following the project on Github, this project is now on 0.6. Simple fixes were done to the code and he fixed SQL injections.
For my self i decided to create a skin for the bans page, as the default one is, let me say it un professional.
Demo: http://ban-hammer.net/ban/ (http://ban-hammer.net/ban/)
Download Link: http://www.mediafire.com/?jw9pcxdh76replx
Note: This is source code for the online template and not the addon source.
-
First, the SQL file is setup wrong. ServerIP appears to not have correct type, integer shouldn't be so.
Secondly, Once that is fixed...
...ulx_globalbanmodule/lua/globalban/gb_serverheartbeat.lua:40: attempt to concatenate global 'GB_SERVERID' (a nil value)
I can't seem to fix this.
Database is setup correctly, the addon appears to agree.
[ULX GB] - Database Connection Successful
Any help?
-
I'm getting the same error, but also when it prints message
[ULX GB] - Database Connection Restarted
it actually breaks the server, like a little windows screen pops up saying "srcds.exe has stopped working"
but before it does that, it says in console
[ULX GB] (BanStatus) - Error: [Query:1ACCA850]
-
How do I add servers or does it do that for me automatically?
-
-Snip-
-
Ok, I got it now. I did not realise it was going to delete all my previous bans, or I would have backed the file up :( The latest backup of my server my host has is a week old.
-
I can get this to connect to my DB but after a player joins it errors out with the UpdateNames Query error then it shows all the other Query errors and around 1 min later the server restarts.
It loads when the server starts and it creates and loads the server info but its just when the player spawns it just goes crazy.
-
With this mod the player has to load into the server before they get kicked.
ULX by itself will kick people from the server the moment they try to connect.
How do I change this?
-
I can get this to connect to my DB but after a player joins it errors out with the UpdateNames Query error then it shows all the other Query errors and around 1 min later the server restarts.
It loads when the server starts and it creates and loads the server info but its just when the player spawns it just goes crazy.
Are you sure the server is connected to the database correctly? If it was it shouldn't error out on anything.
With this mod the player has to load into the server before they get kicked.
ULX by itself will kick people from the server the moment they try to connect.
How do I change this?
ULX smartly utilises the source engine banning system using tables and the banned_user.cfg file, I found it was easier to load the table and create my own auth system. The only difference is that you annoyed the banned users more, which I quite enjoy personally!
Ok, I got it now. I did not realise it was going to delete all my previous bans, or I would have backed the file up :( The latest backup of my server my host has is a week old.
So sorry!! I really should add that as a warning!
First, the SQL file is setup wrong. ServerIP appears to not have correct type, integer shouldn't be so.
Secondly, Once that is fixed...
...ulx_globalbanmodule/lua/globalban/gb_serverheartbeat.lua:40: attempt to concatenate global 'GB_SERVERID' (a nil value)
I can't seem to fix this.
Database is setup correctly, the addon appears to agree.
[ULX GB] - Database Connection Successful
Any help?
Getting the host / ip in Garry's mod is given as a string, so I inserted it as one.
Your server either can't select the ServerID from the database or it doesn't have permissions.
FYI: I look at the facepunch thread more that I do here! http://facepunch.com/showthread.php?t=1231554 (http://facepunch.com/showthread.php?t=1231554)
-
Still Working?
-
Still Working?
Works for me.
-
Hey, sry for bumping.
Anybody have problems with that addon? I think it's broken for me.
functions are working well, but it totally up the xgui. Every list is empty (group-list, ban-list, server adverts). But they're working in the background. I can't modify the group-permissions either. From time to time it worked when i clicked the "refresh" button at Setting/Client. but right now it just does nothing.
I know this hasn't been updated for a while but it would be very nice if ther would be a way to fix it.
regards