Ulysses Stuff > Suggestions
MySQL server
MrPresident:
wouldn't it be possible to create a module (new command) that essentially combined the 2 commands together.. or modified the ulx ban command to perform the default function of kicking and banning the user from the server and adding it to the local flat file, and also performing the function of the UBan command and adding that command to the SQL database?
This would be useful in keeping local bans up to date in case of a SQL malfunction as well as allowing for a SQL list for multiple servers or for use in tables on websites and such.
I don't know enough about LUA to know if this is possible or to attempt to do this myself.. but in theory it doesn't seem like it would be too difficult? right?
spbogie:
Yes, that would be possible, though in that situation I'd probably go with a simple timer which checked every few minutes and synchronized the lists. The problem being you need to decide which list gets priority. One main reason for using an SQL server for tracking bans, besides sharing accross servers, would be to display, and modify the bans from a web page.
Killers:
--- Quote from: zakap on October 30, 2007, 02:39:02 PM ---wouldn't it be possible to create a module (new command) that essentially combined the 2 commands together..
--- End quote ---
Thats exactly what i am looking for...
It would be better if ULX supported this officially.
( Server.ini preferences to choose between the flat file and my sql the default should be the flat file )
JamminR:
Killers, Our motto is "striving for simplicity".
From the questions we get daily, I (Guestimate) 80+% of the Gmod admin community doesn't even know where the ban list is stored normally, let alone if we were to complicate matters with an SQL module option as standard.
As soon as someone would see it, we'd start getting "I enabled SQL in the options...how come my bans aren't being stored...blah blah"
We have enough frustration as it is with "How do I add myself as admin?"
I'm not saying your idea is bad...however, I disagree with you wanting us to add it as a standard part of ULX.
Many of the compliments we get about ULX are due to its low resource requirements.
We wrote ULib and ULX to be modular. If you, or someone you know, know Lua..its not hard to add on.
MrPresident:
I agree with JAM... ULX is already too complicated for *most* people who want to run servers.. unfortunately. I agree that the SQL Database is a great idea it is best served as a side dish.. if you know what I mean ;D ;D ;)
Just get UBan.. and then do this.. but PLEASE back up your origional files... please...
Open up the UBan lua file.. and change the command for ulx gban to ulx ban
Change the command for ulx gbanid to ulx banid
(just remove the g's) ;)
Then go into Addons/ULX/ and find the file that houses the Ban and banid commands for ULX.. I think it's util.lua.. NOT SURE on that.. I'd have to look.. and comment out the commands for ulx ban and ulx banid..
This will effectively keep the same commands and same functionality.. but instead of saving your bans to your local flatfile.. they will now be saved to your database (assuming you set up UBan correctly)
Like I said.. make a backup of all the files you changed.. in case you need to revert them for some reason.
Also.. since you are modifying your default file for ULX you will have to do this modification to the ULX files every time you update ULX as it will be reverted to it's previous state.
If you arent sure how to edit those files.. I might be able to post the modified versions up here for you. but look at them yourself first..
Navigation
[0] Message Index
[*] Previous page
Go to full version