ULX

Author Topic: How to: Organize Sandbox server  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
How to: Organize Sandbox server
« on: November 08, 2015, 12:44:02 PM »
Hello there. I have made my very own Sandbox server on Garry's Mod using SteamCMD and by port forwarding though I am having some troubles ingame. First, I'd like to disable the Skybox for users except for Admins and the owner which is myself. What I mean by this is when a user tries going into the Skybox, I'd like for it to be blocked and kick them out sending them back to spawn or wherever really. The ranks in my server from least to greatest are Guest (user), Officer (user), Moderator (developer), Administrator (admin) and Manager (superadmin). Secondly, I'm having some troubles with organizing the ranks. Players are able to target one another and I'm not sure how exactly to fix this. For instance, say if there are two Guest players online ingame. I granted access to the command of ulx god and ulx ungod to the rank Guest and for the first player, he's/she's able to god and ungod the second player so I'd like to block that. Also, just in case, I'd like to disable godmode killing which is when you're in godmode, you do not have the right(s) to kill someone who is out of godmode and if you're out of godmode, you do not have the right(s) to kill someone in godmode. If these problems get solved, I will gladly appreciate it. Thank you and have a wonderful day/night.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to: Organize Sandbox server
« Reply #1 on: November 08, 2015, 01:11:44 PM »
This section of the forum is specifically for help with what ULib and ULX can do and how to use our specific releases; we can help with targetting, but the rest of your questions might better be asked in developers corner (if you wish to write the code yourself)
I've seen discussion of some of your questions, and you may wish to check out the Releases section of our forum.

You can use this google link to search only our site - our forum is well indexed.
https://www.google.com/?gws_rd=ssl#q=%2Bsite:forums.ulyssesmod.net
That will load a google page with our address in it - add a space and your search terms
Using the above link with terms "pvp godmode" found another discussion - http://forums.ulyssesmod.net/index.php/topic,8710.0.html
It has code in it to help with majority what you want regarding PVP during godmode and noclip.
If you need help with it, go to developers corner, make a new topic, reference that discussion, and ask what you need.

You're on your own for anti skybox code - I've not seen it discussed here, but if your learning to code, Developers corner is the place, if your asking it be done for you, Off-Topic is the place.
ULX doesn't have that capability.

As for targeting other players, if you read our readme.txt for ULX, and if you follow it's suggestion of using "ulx help" and "ulx usermanagementhelp" from console as superadmin, and our forum FAQs, you likely would have seen use of the self character "^" and how can_target works.
Instead of giving guest users access to "ulx god", you need to give them access to "ulx god ^". That will limit them to only performing actions on themselves.
« Last Edit: November 08, 2015, 01:14:21 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
Re: How to: Organize Sandbox server
« Reply #2 on: November 08, 2015, 03:53:51 PM »
I'm sorry but unfortunately I don't fully understand the can_target solution. I'm tried using the ulx menu and doing it through there gaining them access to "ulx god" but there is no "ulx god ^" or "ulx ungod ^"

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to: Organize Sandbox server
« Reply #3 on: November 08, 2015, 07:59:43 PM »
From superadmin console (server or you as superadmin in game) ] ulx groupallow guest "ulx god ^"
I forget where it can be done that way in XGUI, but that's how it's done. @ = target, ^ = self, and a few others listed in help but I don't have in front of me.
I'd recommend making sure ulx god isn't granted twice though using XGUI if/when you do it that way.
« Last Edit: November 08, 2015, 08:01:16 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
Re: How to: Organize Sandbox server
« Reply #4 on: November 10, 2015, 12:03:24 PM »
Could you perhaps add me on Steam, please? I prefer to deal with someone in person.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: How to: Organize Sandbox server
« Reply #5 on: November 10, 2015, 08:34:53 PM »
Could you perhaps add me on Steam, please? I prefer to deal with someone in person.
Jam isn't a huge fan of Steam IMs, mate.
When granting access to a command, if you click on the command itself instead of the tick box, you'll be given a set of restriction options. Find the section related to targeting, and use the guide on can_target to configure this. It's just like group can_target.
If you want to remove the restriction for a group higher up, grant that group access to the command as welk—their access will inherit can_target attributes from lower groups in the tree unless granted explicit access like that.
bw81@ulysses-forums ~ % whoami
Homepage

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
Re: How to: Organize Sandbox server
« Reply #6 on: November 11, 2015, 11:12:09 AM »
I really need someone to do this with me ingame so please, if someone may, add me on Steam, I will open up my server, make you a superadmin and we can work this out together.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to: Organize Sandbox server
« Reply #7 on: November 11, 2015, 03:59:23 PM »
If you can't follow a simple direction typed out manually for you plain as day here in a forum with multiple people trying to assist, both with console command or XGUI, I see little hope for someone to try to spend time out of the kindness of their heart doing one on one time on a server.

From server or superadmin console:
Code: [Select]
ulx groupallow <group_you_want> "ulx god ^"

EXACTLY like that, but with group_you_want typed out exactly like the name of the group (you mentioned "guest")
If you do it from game console as a super admin, it will even start autocompleting for you.

EDIT-Here, in case you can't read the font in that code block.
ulx groupallow <group_you_want> "ulx god ^"

« Last Edit: November 11, 2015, 04:01:02 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
Re: How to: Organize Sandbox server
« Reply #8 on: November 13, 2015, 05:32:51 PM »
When I put, "ulx groupallow Guest 'ulx god ^'" and become a Guest myself, it says I don't have access to the command. What I did was revoke the "ulx god" command from the Guest group first then entered that Console command. Please help and I apologize for acting dumb. I just don't understand these things.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: How to: Organize Sandbox server
« Reply #9 on: November 13, 2015, 06:23:48 PM »
Make sure to tell groupallow about the access tag in a separate argument.

From ulx help:
ulx groupallow <group> <command> [<access tag>] - Add to a group's access.

Example:
ulx groupallow "operator" "ulx god" "^"

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to: Organize Sandbox server
« Reply #10 on: November 13, 2015, 07:08:47 PM »
Well how about that, I forgot my own ulx help.
Amazing what one can learn when using commands written by developers.
ulx help
ulx usermanagementhelp

Thanks Timmy.
Thanks for reading the help we painstakingly wrote and apparently, forget ourselves.
(help files aren't always just for the end-user)

:)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
Re: How to: Organize Sandbox server
« Reply #11 on: November 14, 2015, 03:50:16 PM »
Thanks a lot, Timmy. It worked and I am satisfied though there's one last thing if you don't mind.  I'm really sorry for bothering you all by the way but the ranks on my server from least to greatest are Guest, Member, Trusted, Moderator, Administrator and Manager. What I want is to have the Trusted rank be able to ulx ragdoll, ulx unragdoll, ulx freeze and ulx unfreeze anyone in the Trusted rank and below. I'd like the same for the Moderator and Administrator rank, too. To be able to target other people in their rank and below so how do I do this?

Offline WispySkies

  • Full Member
  • ***
  • Posts: 144
  • Karma: 0
  • I make random commands and Lua errors.
Re: How to: Organize Sandbox server
« Reply #12 on: November 15, 2015, 12:18:40 PM »
Thanks a lot, Timmy. It worked and I am satisfied though there's one last thing if you don't mind.  I'm really sorry for bothering you all by the way but the ranks on my server from least to greatest are Guest, Member, Trusted, Moderator, Administrator and Manager. What I want is to have the Trusted rank be able to ulx ragdoll, ulx unragdoll, ulx freeze and ulx unfreeze anyone in the Trusted rank and below. I'd like the same for the Moderator and Administrator rank, too. To be able to target other people in their rank and below so how do I do this?
Open !menu. Go to the Cmds tab, then user management, then proceed to setgroupcantarget. Select manager and type !%manager, select administrator and type !%administrator, select moderator and type !%moderator, select trusted and type !%trusted, select member and type in !%member, and finally select guest and type in !%guest. If you don't understand what I mean, I'm going to uninstall Garry's mod and sell my steam account for a vanilla bean frappachino. :D

Offline MyNameIsJeff

  • Newbie
  • *
  • Posts: 14
  • Karma: -7
Re: How to: Organize Sandbox server
« Reply #13 on: November 15, 2015, 02:16:05 PM »
I understood and I did it. The only problem is, the Trusted rank in which has the ulx ragdoll, ulx unragdoll, ulx freeze and ulx unfreeze command(s) is/are still able to target the rank(s) higher than them such as Moderator and Administrator. I tried revoking access to the command then restricting players and whatnot but it simply does not work. Please, I am begging you, please. Someone PLEASE spare the time to add me on Steam, join my server and fix this problem instead of having to reply to the same post a hundred times. That's all I'm asking.