ULX

Author Topic: URS BETA - A Highly Customizeable Restriction System (or will be)  (Read 561208 times)

0 Members and 6 Guests are viewing this topic.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #105 on: July 27, 2011, 03:15:00 PM »
Do you get any errors?  What happens when you type this in and hit Add?  Could you copy and past the echo in your console when you type "ulx print all" into your console.

I'm not able to get on gmod right now and won't be for a couple days.

Offline blackfire88

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #106 on: July 28, 2011, 12:02:33 AM »
wesley, to restrict something you need the enitity name, not the toolgun. For example, if you wanted to restrict spawning a turret with advanced duplicater, you would need to restrict gmod_turret instead of tool_turret

Offline Setup1337

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #107 on: July 30, 2011, 08:26:40 AM »
There seems to be a problem with restriction for me.  I just can't seem to restrict any tools at all.

 For example, I restricted the duplicator tool with command "ulx restrict tool duplicator superadmin" but I still was able to use the duplicator.

All the other restrictions seem to be working (like SWEP restriction), so why can't I restrict tools? I've tried multiple different ways and commands.


ulx print all     result:
Code: [Select]
=============================================================
URS - Limits:
ragdoll:
effect:
vehicle:
sent:
npc:
superadmin = 99999
prop:
=============================================================
URS - Restrictions:
ragdoll:
effect:
sent:
npc:
prop:
advdupe:
all:
swep:
duplicator:
tool:
tool_duplicator:
pickup:
tool_duplicator:
vehicle:
tool:
duplicator:
1 = *
2 = superadmin
tool_duplicator:
1 = superadmin
gmod_duplicator:
1 = superadmin
_duplicator:
stacker:
weld:
wire_forcer:
1 = *
2 = superadmin
target:
tool_weld:
target name/model path:
1 = Groups
superadmin:
swep:
weapon_staff:
tool_duplicator:
=============================================================
URS - Loadouts:
=============================================================
* Check console for a list of your Limits, Restrictions, and Loadouts *

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #108 on: July 30, 2011, 11:19:09 AM »
Code: [Select]
tool:
duplicator:
1 = *
2 = superadmin
This is causing it to be restricted from every group except superadmin.  At this point it may just be better if you completely reset your data files and start fresh.

EDIT:  Sorry again, I'm slowly working on rewriting the original post.  I'll get it up soon, hopefully..
« Last Edit: July 30, 2011, 11:27:17 AM by Aaron113 »

Offline Setup1337

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #109 on: July 30, 2011, 02:23:33 PM »
Yeah... That does not actually work either - other people can use the duplicator as well.

It didn't work from the start, the very first command I issued was that ulx restrict tool duplicator user and then I tested it with other player who is not an admin. Nothing. Did not restrict.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #110 on: July 30, 2011, 03:17:19 PM »
Could I come on your server and try for myself?

Offline Setup1337

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #111 on: July 30, 2011, 05:51:26 PM »
Sure. My Steam is Setup1337 .

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #112 on: July 30, 2011, 07:51:03 PM »
Sure. My Steam is Setup1337 .

Would it not be easier to just give him your server IP?
I cry every time I see that I am not a respected member of this community.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #113 on: July 30, 2011, 10:04:31 PM »
If you would, add me to a group with the correct permissions and I'll see what I can find out.  (STEAM_0:0:25464234)  Otherwise, you can invite me sometime when I'm online.

PS:  Don't forget to supply the IP for the first.

Offline Maor360

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #114 on: July 31, 2011, 09:54:02 AM »
If I have some props like "models/props_c17/oildrum001_explosive.mdl"
How to disable use them?
Thanks :)

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #115 on: July 31, 2011, 11:23:42 AM »
ulx restrict prop models/props_c17/oildrum001_explosive.mdl superadmin admin user
ulx restrict [type] [item] [groups separated by spaces]

This is all in the original post.  May not be explained the best and I'm working on that.

Offline Setup1337

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #116 on: July 31, 2011, 08:26:51 PM »
The problem has been fixed and URS is working nicely, thanks to Aaron113 personally helping me out. Many thanks!

He will release this version soon as well, as he told me, because it seemed to conflict with FPP.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #117 on: July 31, 2011, 08:28:39 PM »
I just got ninja'd.  Here's what I was going to post...

We found a solution to Setup's problem.  I believe FPP (Falco's Prop Protection) was returning true in a CanTool hook causing every other CanTool hook to be forgotten about.  I just set the priority of URS's hook a little higher.  I'll do this for every hook, and I will release this in the next revision.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #118 on: July 31, 2011, 08:49:57 PM »
I just set the priority of URS's hook a little higher.  I'll do this for every hook, and I will release this in the next revision.

Ah, this is why I love ULib. :)
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: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #119 on: July 31, 2011, 09:41:14 PM »
FPP (Falco's Prop Protection) was returning true in a CanTool hook causing every other CanTool hook to be forgotten about.
Falco's been around a long time.
Returning true is a rookie mistake.

Make sure the version of FPP you are using is up to date, whether that be using the latest, or if latest is years old, contact Falco to see if he plans on updating.

Oh, and, garrysmod.org is NOT a good place to get releases unless they are put there by the actual author.
Too many times we've seen crap ulib/ulx stuff put there.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming