ULX

Author Topic: Allowing other groups to use reserved slots  (Read 4306 times)

0 Members and 1 Guest are viewing this topic.

Offline sparky2002b

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
  • CloudNine Clan Administrator
Allowing other groups to use reserved slots
« on: July 28, 2009, 06:38:56 PM »
Hi, guys!

On my server, we have several usergroups - admins, donors, clan members and standard players - and we'd like to add a few reserved slots to the server. However, we want to extend this to donors and clan members, as well as administrators.

How do I configure ULX and/or ULib to allow this?

Thanks!
CloudNine Clan Server - 68.64.33.152:27019 - http://c9gc.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Allowing other groups to use reserved slots
« Reply #1 on: July 28, 2009, 06:54:33 PM »
See groupallow from "ulx usermanagementhelp"
The command needed is "ulx rslots"
Code: [Select]
ulx groupallow "<group name>" "ulx rslots"
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sparky2002b

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
  • CloudNine Clan Administrator
Re: Allowing other groups to use reserved slots
« Reply #2 on: July 28, 2009, 06:55:18 PM »
Can I just grant the groups this permission in my ULib groups.txt?
CloudNine Clan Server - 68.64.33.152:27019 - http://c9gc.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Allowing other groups to use reserved slots
« Reply #3 on: July 28, 2009, 06:56:55 PM »
That's what that command does, but, sure.
I don't like editing manually myself, too easy to make mistakes with lua syntax. Open/close quotes, brackets, etc.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Allowing other groups to use reserved slots
« Reply #4 on: July 28, 2009, 06:57:28 PM »
Put this into your console:
Code: [Select]
ulx groupallow mygroup "ulx reservedslots"
Where 'mygroup' is the group you want to allow access. The quotes are important, don't forget 'em.

Wow, three replies while I was writing this. JamminR, I'm pretty sure it's what I have above and not rslots.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Allowing other groups to use reserved slots
« Reply #5 on: July 28, 2009, 07:00:35 PM »
Megiddo, possibly yes.
I notice there is a rslots and rslotsmode... I presume those are instead being able to change the modes, not actually reserve
them.

Sorry for the misguidance sparky
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Allowing other groups to use reserved slots
« Reply #6 on: July 28, 2009, 07:03:21 PM »
Oh, one more advantage to using actual ULX commands sparky; it takes effect immediately... you don't have to restart your server like you would editing the text.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sparky2002b

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
  • CloudNine Clan Administrator
Re: Allowing other groups to use reserved slots
« Reply #7 on: July 28, 2009, 07:04:20 PM »
Yeah. Okay, well, thanks for all the assistance, guys. As always, ULX support is phenomenal.
CloudNine Clan Server - 68.64.33.152:27019 - http://c9gc.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Allowing other groups to use reserved slots
« Reply #8 on: July 28, 2009, 07:06:19 PM »
Welcome. Faster tonight than normal, but glad we could help.
And thank you for supporting us. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sparky2002b

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
  • CloudNine Clan Administrator
Re: Allowing other groups to use reserved slots
« Reply #9 on: July 28, 2009, 07:33:04 PM »
Well, I added it to the file, and did ulx groupallow mygroup "ulx reservedslots", but they're still being kicked like normal members. :\
CloudNine Clan Server - 68.64.33.152:27019 - http://c9gc.com

Offline sparky2002b

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
  • CloudNine Clan Administrator
Re: Allowing other groups to use reserved slots
« Reply #10 on: July 28, 2009, 07:35:37 PM »
Granting "ulx rslots" doens't work either.
CloudNine Clan Server - 68.64.33.152:27019 - http://c9gc.com

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Allowing other groups to use reserved slots
« Reply #11 on: July 29, 2009, 11:07:10 AM »
Do us a favor... run this in your console.

ulx debuginfo

This will print a text file to garrysmod/data/ulx/debugdump.txt

Copy the contents of this file to this thread please.

Offline sparky2002b

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
  • CloudNine Clan Administrator
Re: Allowing other groups to use reserved slots
« Reply #12 on: July 29, 2009, 11:38:45 AM »
Sorry, forgot to update this.

Megiddo, JamminR and I got this worked out over a Steam chat last night.
Turns out the problem was with whitespace in my users.txt file. (???)
Apparently Garry doesn't know how to use scanf() properly.

Anyway, I edited a few files to use the ULib scanner and everything is honky-dory now.
CloudNine Clan Server - 68.64.33.152:27019 - http://c9gc.com

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Allowing other groups to use reserved slots
« Reply #13 on: July 29, 2009, 12:32:03 PM »
ULib saves the day again! :)
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Allowing other groups to use reserved slots
« Reply #14 on: July 29, 2009, 01:34:10 PM »
yep. White space will do that. I just fixed an issue with one of my servers where one little error in the users.txt file was causing every player to have correct groups but no accesses. It was weird.

Glad you got it fixed though.