ULX

Poll

Do You Like The New GUI Better?

Yes, Much Better!
71 (59.7%)
Yeah
22 (18.5%)
I Don't Care, I Use The Console
14 (11.8%)
No
4 (3.4%)
I Prefer The Old GUI
8 (6.7%)

Total Members Voted: 116

Author Topic: URestrict [Depreciated-author no longer supports]  (Read 483805 times)

0 Members and 4 Guests are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #495 on: December 20, 2009, 11:11:02 AM »
You must have the latest ULib and Ulx svn installed in order for it to work.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
Re: URestrict
« Reply #496 on: December 20, 2009, 11:44:07 AM »
i already tried that, it is the latest. And now ulx is continueing to bug out for some unknow reason. Some of the commands end up in a nil value. Along with me not being able ot access the menu.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #497 on: December 20, 2009, 02:59:55 PM »
The first error when URestrict loads looks as though you aren't using ULib SVN, or at the least, an older version is also somehow conflicting. "cmds" is part of the new SVN, if it's nil, the SVN version of ULib isn't loading (right).

As for the second error, no idea. Googled the FCVAR thing and found tons of stuff about Source servers in general, not just Gmod.
It's a Source engine issue in some way, not just Lua.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline dinero

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
Re: URestrict
« Reply #498 on: December 21, 2009, 03:32:15 AM »
Just a suggestion, but I think you should add

TOOL.AddToMenu = false

to URestrict/lua/weapons/gmod_tool/stools/restricted.lua, so that people don't see it in the Q menu.
« Last Edit: December 21, 2009, 04:07:57 AM by dinero »

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
Re: URestrict
« Reply #499 on: December 21, 2009, 11:04:47 AM »
ok so urestrict isn't working, as far as i can see. It says that it is an unknown command. but there are no errors in console

But when a new client joins my server ULX doesnt "catch" them.  So they are dumped into the "none" group wich gives them access to all the tools and weapons. Please help i hate "A Simple Server MODification"
« Last Edit: December 21, 2009, 11:27:22 AM by joe_sandwich »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #500 on: December 21, 2009, 03:47:03 PM »
<clip>there are no errors in console
<clip>But when a new client joins my server ULX doesnt "catch" them.

From your posts, including the first one where you showed errors, it sounds as though ULib isn't loading right, therefore causing ULX and URestrict to not load right.
You posted console errors that I commented on a post or two ago.
Your server has more issues it looks like than not loading ULib. FCVAR errors may mean you have variables set on the server sv_pure or script enforcer enabled.
Find your server console error solution, and rest may/will fall into place.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline joe_sandwich

  • Newbie
  • *
  • Posts: 11
  • Karma: -1
Re: URestrict
« Reply #501 on: December 22, 2009, 04:32:31 PM »
you should have mentioned the script enforcer in the first place, i never thought that would interfere with ulib loading XD

Ok so i removed it, and now everything magically works, except now it still will not add players to the "users" they jsut get dropped into "none" here is the ever helpful console


Hook 'ulxPlayerPickup' Failed: ULib/shared/sh_ucl.lua:58: [ULib] Player Singularity has an invalid group (), aborting. Please be careful when modifying the ULib files!
ULib/shared/sh_ucl.lua:281: Invalid group ()

i can post the contents of that code if it would help

just letting you know i never touched that file
« Last Edit: December 22, 2009, 06:27:03 PM by joe_sandwich »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #502 on: December 22, 2009, 07:23:31 PM »
Shut down server, Move your /data/ULib/groups.txt and misc_registered.txt to a backup location.
Restart server.
See if you still get errors.

It seems many are copying over the groups.txt from old versions of ULib after the new SVN has been installed.
Did you do that?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #503 on: December 22, 2009, 11:43:59 PM »
Also if you're running a FastDL Server, make sure you keep your cache updated as well.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #504 on: December 23, 2009, 05:26:27 PM »
(Moved Joe's troubleshooting posts to "General help and support"
Issue no longer related to just URestict
"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: URestrict
« Reply #505 on: December 27, 2009, 10:10:40 AM »
Seems everyone out in the Gmod Lua world is now jumping on the 'restrict tools based on <x>' bandwagon.
In a Facepunch thread where someone released a tool restrict tool, FPtje comments he's adding that feature to his FPP.
http://www.facepunch.com/showpost.php?p=19231418&postcount=21

He's going so far as to allow restriction based on team it seems.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #506 on: December 27, 2009, 12:41:30 PM »
Wow, look at what I started.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Gmods

  • Newbie
  • *
  • Posts: 43
  • Karma: 2
Re: URestrict
« Reply #507 on: December 27, 2009, 01:47:39 PM »
Just started using this today and all I can say is... it's bloody confusing. All I want to do is restrict normal users from using 1 tool but I can't even figure that out >_>

I click the tools tab, I select the tool I want to restrict and click add. What now? Groups don't show up in the "Allowed Groups" window and all I see on the other tab is 3 columns asking me to mess about with loadouts, whatever they are. Some help or a small tutorial would be great.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #508 on: December 27, 2009, 02:24:04 PM »
What don't you understand from the below step by steps??
And are you using ULib svn?

Creating Loadouts
================================================
1: Type URestrict in the console
2: Open the loadouts tab
3: Click Add ( Middle Column )
4: Type in a name for your loadout ( Text box appears after clicking add )

Changing Group Loadouts
================================================
1: Type URestrict in the console
2: Open the loadouts tab
3: Select what group you want to modify ( Column on the far left )
4: Select what loadout you wan that group to use ( Column in the middle )
5: Click apply ( Middle Column 3rd button from the bottom )

Modifying Loadouts
================================================
1: Type URestrict in the console
2: Open the loadouts tab
3: Select what loadout you want to modify  ( Column in the middle )
4:   To Remove Items From The Loadouts
      1: Select what items you want to remove (Column on the right )
      2: Click modify ( Column on the right )
5:   To Add Items To The Loadouts
      1: Click modify ( Column on the right )
      2: Type in what you want to add ( Text box appears after clicking modify)

« Last Edit: December 27, 2009, 02:25:35 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #509 on: December 29, 2009, 06:27:30 PM »
Sorry, I actually didn't cover that one since it was so similar to the loadouts. So far you are correct. Here are the steps to follow.

Tool Restrictions
================================================
1: Type URestrict in the consol
2: Open the tools tab
3: Select a tool to apply restrictions to (Left Column)
4: Click add (Center Column)
5: Select the newly added tool (Center Column)
6: Click allow/deny (Right Column)
7: Now type in the groups you would like to allow/deny use
    of the tool separating each with a space then press enter
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly