ULX

Author Topic: UBan -- Global ban system. Ban users from all servers connected to a single DB!  (Read 99395 times)

0 Members and 1 Guest are viewing this topic.

Offline PhaxeNor

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Cool :)
Some of the other admin started to get worried about the 3 min update  :o lol

Thanks for 1.1  ;D

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
just a suggestion.

Maybe, with the new admin name and admin steamID, you should put in a check to see if the admin who is banning is a player in the game or someone using RCon (IE Dedicated Console)

Im getting errors when I try and ban from my console app. Fortunately I know how to make the necissary changes, but some people might not.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
What is the error?
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Something about the adminname can not be null. Maybe it's because I added the 2 new fields in manually, but what I did to fix it was added an else to your if statement.

you had

if banner:IsValid() and blah and blah then
set banner name
end

I added

else
set banner name to "<console>"
set banner ID to "<console>"
end

and it works fine.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Your error stemmed from using NOT NULL on the field. This problem would not be present for anyone with a new install. Glad you were able to fix it though!
Experiencing God's grace one day at a time.

Offline AviZ

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
don't seem to work.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
15:24:19 UBan failure. Error is: autorun/server/uban.lua:137: MySQL server has gone away

I have persistent set to false.(if that means anything)

This is what happens on my servers, it seems that UBan only works correctly when I first start the servers and after a while it starts to error like this when I try and ban someone.

Anyone know what is going on?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
No idea here, but that's an error from the MySQL module and not from UBan.
Experiencing God's grace one day at a time.

Offline AviZ

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
now what i was going to say before i got banned for 7 days is it didn't work till i modified the mysql table of serverip from null to not null then worked fine, however this does not make the server ip show in the mysql database.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
The link in the facepunch thread for GM_MYSQL is dead :( Does anybody have it and can upload it?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Works for me
Experiencing God's grace one day at a time.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
When i click the download link from facepunch it brings me to this page

http://www.brownlittlehandfootman.com/

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Hmm, I don't seem to have it on my local machine right now. Seems like you'll need to wait for him to fix it. Have you check garrysmod.org?
Experiencing God's grace one day at a time.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Yes, It's not there either

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Here you go. These are the files off of my server. I didn't have the origional documentation that came with the files so I wrote one up for you. Just look in the readme.txt file to see where to copy the files to.

=)=)

edit: Meg.. you really should enable .rar extensions. This zip is like.. 300kb bigger than the rar was =)