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 491158 times)

0 Members and 6 Guests are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #450 on: September 27, 2009, 09:21:54 AM »
Code: [Select]
I have removed urestrict from my server until this problem is fixed.     - That doesn't help me at all. I need errors.
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 jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #451 on: September 27, 2009, 09:31:55 AM »
Revision 29:
* Fixed tools not working do to a nil value
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 Mysterymeat201

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Urestrict
« Reply #452 on: September 29, 2009, 08:58:49 PM »
I'm running the current svn versions of ulib and ulx, however, when I attempt to install URestrict on my dedicated server (Run through lowpings) it doesn't really work. When the player spawns, they have no weapons whatsoever, including admins (I'm going to assume this is the default setting). As a superadmin, i have tried to access the console command for the gui but have only gotten a return message saying that the command was unrecognized. I looked through the console on my initial spawn and was greeted with this error message.

Ulib/modules/urestrict.lua:267: attempt to index field 'cmds' (a nil value)

Any help would be appreciated

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #453 on: September 30, 2009, 04:36:20 AM »
What revision of ULib are you using?
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 NikoKun

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Urestrict
« Reply #454 on: September 30, 2009, 02:41:25 PM »
I'm running the current svn versions of ulib and ulx, however, when I attempt to install URestrict on my dedicated server (Run through lowpings) it doesn't really work. When the player spawns, they have no weapons whatsoever, including admins (I'm going to assume this is the default setting). As a superadmin, i have tried to access the console command for the gui but have only gotten a return message saying that the command was unrecognized. I looked through the console on my initial spawn and was greeted with this error message.

Ulib/modules/urestrict.lua:267: attempt to index field 'cmds' (a nil value)

Any help would be appreciated
I have this exact same problem. I just got URestrict from the SNV today, Rev 29. (And I have ULX v3.40 and ULib v2.30)
"ULib/modules/urestrict.lua:267: attempt to index field 'cmds' (a nil value)"
No weapons, no tools, can't even spawn anything.
« Last Edit: September 30, 2009, 02:45:29 PM by NikoKun »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URestrict
« Reply #455 on: September 30, 2009, 02:46:55 PM »
I have this exact same problem. I just got URestrict from the SNV today, Rev 29. (And I have ULX v3.40 and ULib v2.30)
"ULib/modules/urestrict.lua:267: attempt to index field 'cmds' (a nil value)"
No weapons, no tools, can't even spawn anything.

You need ULib SVN.
Experiencing God's grace one day at a time.

Offline NikoKun

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #456 on: September 30, 2009, 03:36:48 PM »
ooooh... silly me. Thanks, I'll try that in a bit.

Edit: OK I got it working. Maybe the OP should mention that we need the SVN version.lol
« Last Edit: September 30, 2009, 09:19:27 PM by NikoKun »

Offline blt950

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: URestrict
« Reply #457 on: October 04, 2009, 02:13:33 AM »
I got a problem that I can't restrict some wiretools like wire_forcer.. It just says "invalid tool"

What to do?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #458 on: October 06, 2009, 12:31:44 PM »
For the time being, you'll have to do some wire tools manually in the data/urestrict files. For some reason wiremod doesn't follow the rules.
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 Wayne Brady

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Re: URestrict
« Reply #459 on: November 01, 2009, 05:53:53 PM »
I have this on my darkrp server, and I have a glitch with it. As soon as someone spawns, this error appears -

ULib/modules/urestrict.lua:267: attempt to index field 'cmds' (a nil value)

It causes players to spawn without weapons. How do I fix this?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #460 on: November 01, 2009, 07:41:14 PM »
ULib/modules/urestrict.lua:267: attempt to index field 'cmds' (a nil value)

Run latest SVN of ULib.
That error sounds like you aren't.
The official release version (v2.3) and below of ULib, URestrict isn't compatible with
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Simple

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #461 on: November 04, 2009, 11:40:17 AM »
          -Control what weapons/swept users are allowed to use based on what group they're in. Usage include spawning, picking up, and spawning with.

How do you go about doing that?
« Last Edit: November 04, 2009, 11:42:08 AM by Simple »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #462 on: November 05, 2009, 08:21:06 AM »
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)



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 giloh

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
Re: URestrict
« Reply #463 on: November 07, 2009, 01:32:24 PM »
Is there a way to disable loadouts, because if you Exclude a group from it, they can use weapons that have been defined admin only in the .lua code of the weapon (eg. Admin Gun from CSS Realistic Weapons)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #464 on: November 08, 2009, 01:41:15 AM »
Is there a way to disable loadouts, because if you Exclude a group from it, they can use weapons that have been defined admin only in the .lua code of the weapon (eg. Admin Gun from CSS Realistic Weapons)
     - Yes, but you bring up a good point. Even if you disable the loadouts, it'll override the admin only weapons. I'll work on a fix asap.
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