Author Topic: ulx ban commands  (Read 27978 times)

0 Members and 1 Guest are viewing this topic.

Offline Sickofguessing

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
ulx ban commands
« on: August 06, 2012, 04:00:29 PM »
I am an admin on a TTT server with ULX installed and what not for admin tools.
I am quite fair in admin'ing and such but there is one issue I cant get round.
typically ulx ban(and banid) Which I cant get the correct syntax to initiate a ban.

I always mess up and get "string #2 is invalid" or somthing along the lines of that.

If I had to guess I usually do;
ulx banid Steam_0:0:00000 1d(or even 5000) Reason


That never works for me although if I not add a time and perma ban the user that works.

I know ulx banid <steamid> [<minutes, 0 for perma: 0<=x, default 0>] [{reason}]
is the example syntax but I just cant get my head round it.
Asking for help from other admins is like straining blood from a stone and there are no examples on the internet I have found.

Can someone here try and teach me how to figure it out? Its kind of embarrassing not to be able to use it.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ulx ban commands
« Reply #1 on: August 06, 2012, 04:06:06 PM »
Can you show us the console log from you trying to ban someone, including the exact format you're using?

Otherwise the format is just saying "ulx banid", followed by the steamid (no spaces here), followed by the minutes/time string (no spaces here either), followed by the reason.
Experiencing God's grace one day at a time.

Offline Sickofguessing

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: ulx ban commands
« Reply #2 on: August 06, 2012, 04:39:54 PM »
------------------------------------------------------------------
ulx banid STEAM_0:0:22253831 60 Testing
Command "ulx banid", argument #2: invalid string
------------------------------------------------------------------

That is what I would assume would work.

Thats my own steam ID.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx ban commands
« Reply #3 on: August 06, 2012, 06:58:34 PM »
Try quotes around steamid.
If that fixes, input of the colons is breaking the string, much like a semi-colon breaks a command into separate commands at console.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ulx ban commands
« Reply #4 on: August 06, 2012, 08:52:56 PM »
Odd, just tried it in my server console:
Code: [Select]
ulx banid STEAM_0:0:22253831 60 Testing
(Console) banned steamid STEAM_0:0:22253831 for 60 minute(s) (Testing)

.. Then tried it in my in-game console:
Code: [Select]
] ulx banid STEAM_0:0:22253831 60 Testing
You banned steamid STEAM_0:0:22253831 for 60 minute(s) (Testing)

.. And it works fine. D:


My guess is you may be running into an issue with restrictions set on the ulx ban / ulx banid commands. What does your client console say when you enter these commands?:
Code: [Select]
lua_run_cl print( ULib.ucl.groups.superadmin.allow["ulx ban"] )
lua_run_cl print( ULib.ucl.groups.superadmin.allow["ulx banid"] )
(Be sure to replace superadmin with whichever group you're in)
« Last Edit: August 06, 2012, 08:54:41 PM by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Sickofguessing

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: ulx ban commands
« Reply #5 on: August 07, 2012, 12:06:39 PM »
I ran those commands and replaced the superadmin with my rank and it displayed nothing. Didnt show any errors.

I would be inclined to ask the owners but they never respond to anything I ask so I give up on that route of trying to fix it.

I also tried putting the steam ID with "" and it came up with the same error.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx ban commands
« Reply #6 on: August 07, 2012, 02:23:12 PM »
SickofGuessing,
Are you sure the server owners are running latest ULX code base?
Seems I remember a similar error way back near when banid was added.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ulx ban commands
« Reply #7 on: August 08, 2012, 12:29:31 AM »
I ran those commands and replaced the superadmin with my rank and it displayed nothing. Didnt show any errors.

Did you run the commands on the server or client console? I wrote the commands to be run on the client, but if you run it on the server you should change the command to 'lua_run' instead. Otherwise, the output of that command should either be a lua error, nil, or something useful. It shouldn't be absolutely nothing lol
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Sickofguessing

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: ulx ban commands
« Reply #8 on: August 08, 2012, 07:00:16 AM »
Did you run the commands on the server or client console? I wrote the commands to be run on the client, but if you run it on the server you should change the command to 'lua_run' instead. Otherwise, the output of that command should either be a lua error, nil, or something useful. It shouldn't be absolutely nothing lol

Client I dont have access to server console

Also the version is ULX 3.54 and just now I found out the @ message system is broken too...doubt anyone is going to fix it either.