• ULX Source Bans Module
    172 replies, posted
Ok this is a module for ULX. It will make SourceBans and ULX work together. I made it so it's easy to install and config. [B]News[/B] There are still alot of bugs but they are getting fixed as you read this. [B]Demo[/B] Here is my servers running the module. [URL="http://sban.fundk.net"]sban.fundk.net[/URL] [B]How it works[/B] 1. You make your groups on the servers with ULX. 2. You add your groups to sourcebans, the same name as the ULX groups 3. You add your admins to sourcebans and assign the right group to the admin. 4. You join the server and the module will add the admin to the right group on the server. 5. If you remove a admin from sourcebans, then next time the admin joins he will lose his admin/mod/rank [B]Commands[/B] [I]sm_rehash[/I] Reloads the admins live on the server [B]Todo[/B] - ULX Users sync command - ULX Bans Converter [B]Installing[/B] For 0.2.0a and up [url]https://www.youtube.com/watch?v=tGP5DSO6EDU[/url] For 0.1.7a and down [I] !!!You need to have mysqloo installed on your server [URL="http://facepunch.com/showthread.php?t=1220537"]Click Here to see how[/URL]!!! 1. Download the ULX module 2. Put the modules folder into /addons/ulx/lua/ulx/ 3. Config the /addons/ulx/lua/ulx/modules/sban.lua to your needs 4. Restart the server 5. Enjoy [/I] [B]Upgrade[/B] 1. Download the ULX module 2. Put the modules folder into /addons/ulx/lua/ulx/ and overwrite the old once 3. Reconfigure the /addons/ulx/lua/ulx/modules/sban.lua to your needs 4. Restart the server 5. Enjoy [B]Download[/B] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.2.3a.zip"]ULX Source Bans v0.2.3a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.2.2a.zip"]ULX Source Bans v0.2.2a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.2.1a.zip"]ULX Source Bans v0.2.1a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.2.0a.zip"]ULX Source Bans v0.2.0a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.7a.zip"]ULX Source Bans v0.1.7a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.6a.zip"]ULX Source Bans v0.1.6a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.5a.zip"]ULX Source Bans v0.1.5a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.4a.zip"]ULX Source Bans v0.1.4a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.3a.zip"]ULX Source Bans v0.1.3a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.2a.zip"]ULX Source Bans v0.1.2a.zip[/URL] [URL="http://www.fundk.net/download/addons/ULXsban/ULX%20Source%20Bans%20v0.1.1a.zip"]ULX Source Bans v0.1.1a.zip[/URL] [B]FAQ[/B] Q: Is SourceBans v2.0 supported A: No im sorry but v2.0 is to not supported atm [B]Changelog[/B] [QUOTE] [U]0.2.3a d. 27-05-2014[/U] - Fixed Flags not working on sban website (ip and port problem) [U]0.2.2a d. 26-05-2014[/U] - Optimized some minor code [U]0.2.1a d. 25-05-2014[/U] - Fixed error when none admin is joining [U]0.2.0a d. 05-05-2014[/U] - Remade the whole thing - Added Async mysql for better performenc - Added better mysql querys - Removed ulx_sban_serverid and added sban_serverid [U]0.1.7a d. 01-09-2014[/U] - Fixed one very importen line of code to fix the ulx_sban_serverid [U]0.1.6a d. 01-04-2014[/U] - Added server.cfg cvar ulx_sban_serverid to set the serverID from server.cfg/console - Fixed a big bug with removed admins [U]0.1.5a d. 12-18-2013[/U] - Mysql Bug [U]0.1.4a d. 11-26-2013[/U] - Fixed small group bug [U]0.1.3a d. 11-04-2013[/U] - Fixed sm_rehash not working (On the source bans website when you make changes) - Fixed admin that change group dosent change ulx group [U]0.1.2a d. 10-15-2013[/U] - Fixed a sban group bug [U]0.1.1a d. 10-02-2013[/U] - Added So that it's checks SBAN admin access [U]Released d. 10-01-2013[/U] - Added Basic Stuff [/QUOTE]
Looking forward to this one. The other ulx global bans module thing causes a lot of lag, something with reliable buffer overload. Would I be able to turn my current ulx bans list into the sbans one?
[QUOTE=pkhzor;42369830]Looking forward to this one. The other ulx global bans module thing causes a lot of lag, something with reliable buffer overload. Would I be able to turn my current ulx bans list into the sbans one?[/QUOTE] Is it the default ULX ban list? I can properly make a converter for that.
Ok the first version is out :D Enjoy
Wait, does this sync bans or is it JUST for syncing groups?
[QUOTE=FunDK;42370767]Is it the default ULX ban list? I can properly make a converter for that.[/QUOTE] Yes, I assume most people use the default one and it would be great if it would auto-convert them. I already had ulx groups made and I made the exact same ones on sourcebans. Do I manually need to add each and every single vip/member/operator/admin/superadmin? Or can it use my current userlist for ulx groups?
[QUOTE=The Android1;42384970]Wait, does this sync bans or is it JUST for syncing groups?[/QUOTE] "Yes" i makes a new system for checking if a player is banned. But you have to use the sban or sbanid command for it to work [QUOTE=pkhzor;42386043]Yes, I assume most people use the default one and it would be great if it would auto-convert them.[/QUOTE] I will a converter for bans :) [QUOTE=pkhzor;42386043]I already had ulx groups made and I made the exact same ones on sourcebans. Do I manually need to add each and every single vip/member/operator/admin/superadmin? Or can it use my current userlist for ulx groups?[/QUOTE] For now yes you will have to added manually. But again i will try to make a converter for that, Or make a command to sync the ULX users list with the Sourcebans Database.
[QUOTE=FunDK;42391563]"Yes" i makes a new system for checking if a player is banned. But you have to use the sban or sbanid command for it to work [/QUOTE] Why don't you instead use the function ULib.addBan so your system works with the basic ban command? It's made for such things. More info here: [URL]http://ulyssesmod.net/docs/files/lua/ulib/server/player-lua.html#addBan[/URL]
[QUOTE=ms333;42391780]Why don't you instead use the function ULib.addBan so your system works with the basic ban command? It's made for such things. More info here: [URL]http://ulyssesmod.net/docs/files/lua/ulib/server/player-lua.html#addBan[/URL][/QUOTE] ULib.addBan is not using the soucrebans Database, it's only local banning the player on the server. Or am i misunderstanding your point?
What about other ranks such as vip? They wont really get any powers but their rank is stripped on join anyways. Would be awesome if it would make use of everything you currently have on ULX, bans,groups,users. Since you already said you're making them then that's something to look forward to.
The plan was to make that today :/ but i have had alot of problems with my server. i will try to make it for tomorrow :)
ouldn't include file 'includes\modules\mysqloo.lua' (File not found) (@addons/ulx/lua/ulx/modules/sban.lua (line 5)) [ERROR] addons/ulx/lua/ulx/modules/sban.lua:5: Module not found! 1. require - [C]:-1 2. unknown - addons/ulx/lua/ulx/modules/sban.lua:5 3. include - [C]:-1 4. unknown - addons/ulx/lua/ulx/init.lua:28 5. include - [C]:-1 6. unknown - addons/ulx/lua/ulib/modules/ulx_init.lua:2 7. include - [C]:-1 8. unknown - addons/ulib/lua/ulib/init.lua:75 9. include - [C]:-1 10. unknown - addons/ulib/lua/autorun/ulib_init.lua:3 any help?
You installed the MySQLoo module incorrect.
[QUOTE=ms333;42403682]You installed the MySQLoo module incorrect.[/QUOTE] I've looked on how to install it, but its not working. Can someone make a video to make this MUCH MUCH more easy for people like me?
[QUOTE=thekiller123;42412966]I've looked on how to install it, but its not working. Can someone make a video to make this MUCH MUCH more easy for people like me?[/QUOTE] There is already a installation guide which is easy in the MySQLoo thread. Follow that. Also, your problems's aren't related to this addon.
[QUOTE=ms333;42417163]There is already a installation guide which is easy in the MySQLoo thread. Follow that. Also, your problems's aren't related to this addon.[/QUOTE] Alright, I think i'm windows, but seeing how its not working, im try something else. Even if it works, will it work for a ban-list page? From SBANS?
Very nice! So you should to make an ulx integration by editing /addons/ulib/lua/ulib/server/player.lua file. (addban and unban).
Can you still add people to groups within ULX on the server? If you do add people to groups within ULX on the server, do they get added to the group on SourceBans?
Updated 0.1.3a is out. - Fixed sm_rehash not working (On the source bans website when you make changes) - Fixed admin that change group dosent change ulx group if you need to reload/refresh your admins on the server live, just use sm_rehash in the server console. - Enjoy
Do you need Source Mod for this? I'd assume you do. If so does anyone have a download link? I can't seem to find it.
[QUOTE=StonedPenguin;42762923]Do you need Source Mod for this? I'd assume you do. If so does anyone have a download link? I can't seem to find it.[/QUOTE] nope you only need ULX, mysqloo and the sourcebans website running.
is it now easier to add admins to the site or it's still 1 by 1 and they need an account?
[QUOTE=pkhzor;42769333]is it now easier to add admins to the site or it's still 1 by 1 and they need an account?[/QUOTE] still 1 by 1 :/
There is a bug where when you ban someone it doesn't kick them.
[code][ERROR] addons/ulx/lua/ulx/modules/sban.lua:9: '=' expected near 'local'[/code] and a adding them to group on sourcebans doesn't add them in-game. [code] [ERROR] addons/ulx/lua/ulx/modules/sban.lua:185: attempt to index a nil value 1. SBAN_getadmin_group - addons/ulx/lua/ulx/modules/sban.lua:185 2. SBAN_playercheckadmin - addons/ulx/lua/ulx/modules/sban.lua:209 3. unknown - addons/ulx/lua/ulx/modules/sban.lua:228 4. unknown - lua/includes/modules/concommand.lua:69 [/code]
I have found some bugs. If you ban someone while they are jailed it will not kick them, and if you ban from console it will not ban them.
Updated 0.1.4a is out. - Fixed small group bug [QUOTE=StonedPenguin;42834848]I have found some bugs. If you ban someone while they are jailed it will not kick them, and if you ban from console it will not ban them.[/QUOTE] Will look into that
Having an error using this [code][ERROR] addons/ulx/lua/ulx/modules/sban.lua:101: bad argument #1 to 'getn' (table expected, got string) 1. getn - [C]:-1 2. SBAN_checkadmin - addons/ulx/lua/ulx/modules/sban.lua:101 3. SBAN_playercheckadmin - addons/ulx/lua/ulx/modules/sban.lua:214 4. fn - addons/ulx/lua/ulx/modules/sban.lua:204 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] Any ideas?
Please it you use this module update it the the newest version. 0.1.4a and 0.1.5a has a big security bug. [U]0.1.6a d. 12-18-2013[/U] - Added server.cfg cvar ulx_sban_serverid to set the serverID from server.cfg/console - Fixed a big bug with removed admins
I did sm_rehash and it removes everyones ranks, each map change on TTT I have to add my admins back. did I do something wrong with that? Here's my website btw: [url]http://darkpyrosserver.site.nfoservers.com/sbans/[/url] plus I cut the function of the sm_rehash off and its still happening. *EDIT* I took off sm_rehash and a function that does ulx.removeuser. I just had to look at the code more
Sorry, you need to Log In to post a reply to this thread.