Ulysses Stuff > Releases
Sourcebans & ULX/ULib
NaRyan:
Got it working on my servers ok. (TTT & The Stalker)
However there is one big problem, Voteban will cause the server to crash.
Every time a voteban is made and passes the server will crash with this error.
--- Quote ---12:05:16 [ULX] Mr.Zerhot approved the voteban against muymakina (280 minutes) (ghosting)
12:05:16 Lua Error: addons/ulx/lua/includes/modules/sourcebans.lua:272: string expected, got no value
--- End quote ---
Guessing that is more of a Sourcebans problem though, since line 272 needs the info for the Admin who done the ban.
And since it is a donator on the server and not a server Admin then there is no Admin info for them in the Sourcebans setup.
centran:
--- Quote from: NaRyan on December 20, 2012, 04:14:59 AM ---Got it working on my servers ok. (TTT & The Stalker)
However there is one big problem, Voteban will cause the server to crash.
Every time a voteban is made and passes the server will crash with this error.
Guessing that is more of a Sourcebans problem though, since line 272 needs the info for the Admin who done the ban.
And since it is a donator on the server and not a server Admin then there is no Admin info for them in the Sourcebans setup.
--- End quote ---
Try changing lin 272 to
--- Code: ---local adminID, adminIP = getAdminDetails(admin) or "";
--- End code ---
centran:
--- Quote from: PAL-18 on December 19, 2012, 03:51:39 PM ---Cool, it works! Thanks :3
I messed up the paths :-[
EDIT: It loads but its not working. I banned myself from the Sourcebans website and i was able to connect to server. Then i banned myself through ULX (after doing the edits to replace ULX ban function with Sourceban function) and the Sourcebans website didnt show my ban.
SQL ports are working because on the same box, my other servers use Sourcebans with no problem.
--- End quote ---
You sure it is loading? You should see in console it says [SourceBans.lua] Starting the database. and then when you connect it should show all the admins you have in sourcebans being loaded.
Any errors in the console you can see?
NaRyan:
--- Quote from: centran on December 20, 2012, 08:13:19 AM ---Try changing lin 272 to
--- Code: ---local adminID, adminIP = getAdminDetails(admin) or "";
--- End code ---
--- End quote ---
I take it ya ment line 270 as it is the line that says
--- Code: ---local adminID, adminIP = getAdminDetails(admin);
--- End code ---
I changed that to
--- Code: ---local adminID, adminIP = getAdminDetails(admin) or "";
--- End code ---
And done a voteban against myself, I was banned from the server (Lan one), however it still gave the error.
--- Quote ---Lua Error: addons/ulx/lua/includes/modules/sourcebans.lua:272: string expected, got no value
--- End quote ---
The server did not crash, however as I said it was just a lan based one so it was only me on it, so the lack of 23 other players might have had something to do with that.
It also did not write the ban to sourcebans (it writes them fine using !ban)
PAL-18:
--- Quote from: centran on December 20, 2012, 08:20:18 AM ---You sure it is loading? You should see in console it says [SourceBans.lua] Starting the database. and then when you connect it should show all the admins you have in sourcebans being loaded.
Any errors in the console you can see?
--- End quote ---
Yes its loading, it says starting the database and im even able to use sm_ban. But no bans are being read or written to the database.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version