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

0 Members and 2 Guests are viewing this topic.

Offline giloh

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
Re: URestrict
« Reply #585 on: May 28, 2010, 05:10:00 AM »
I get the same as tweak, but does URestrict work fine without this problem so long as the data files are right?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #586 on: May 28, 2010, 06:25:20 AM »
From what debugging I did yes, it just appears to be related to the datastream that garry broke.
I managed to get some functionality back by typing: (in the server console)
Code: [Select]
lua_run ur.syncClient()That should populate everything but the tool list.
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 Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URestrict
« Reply #587 on: May 30, 2010, 07:11:33 PM »
From what debugging I did yes, it just appears to be related to the datastream that garry broke.
I managed to get some functionality back by typing: (in the server console)
Code: [Select]
lua_run ur.syncClient()That should populate everything but the tool list.
That won't work for everybody...
Code: [Select]
] rcon lua_run ur.syncClient()
Can't use cheat command lua_run in multiplayer, unless the server has sv_cheats set to 1.
and I am having the same issue now.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #588 on: May 31, 2010, 09:32:06 AM »
That won't work for everybody...
Code: [Select]
] rcon lua_run ur.syncClient()
Can't use cheat command lua_run in multiplayer, unless the server has sv_cheats set to 1.
and I am having the same issue now.
     - It's meant to be ran from the server console directly. However, you can also manually use any URestrict command to change restrictions, and it will run the syncClient() function.
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 #589 on: May 31, 2010, 02:20:05 PM »
The command works fine for me so long as i do it in HLSW, just have to make sure that urestrict isn't open when I run it.

Offline DoomGiver

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: URestrict
« Reply #590 on: June 01, 2010, 02:40:20 PM »
Hey, I'm having issues with ulib SVN and ulx SVN, would it be possible to make a non-svn for this? :(

OR

Could you tell me how to set it up to be non svn? I tried deleting all the "hidden" svn folders but that didn't work lol. :(

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #591 on: June 01, 2010, 04:56:50 PM »
Doom, there is little way possible to make URestrict not rely on ULib SVN. It has nothing to do with hidden folders, the actual SVN ULib code has new commands that would make URestrict useless without.
SVN ULib (and ULX) are coming near to next release. We have no set date, but, time draws nearer than in past.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DoomGiver

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: URestrict
« Reply #592 on: June 01, 2010, 06:20:31 PM »
Doom, there is little way possible to make URestrict not rely on ULib SVN. It has nothing to do with hidden folders, the actual SVN ULib code has new commands that would make URestrict useless without.
SVN ULib (and ULX) are coming near to next release. We have no set date, but, time draws nearer than in past.

Ya I figured that out about 5 mins ago when I checked the code out for a ulib plugin that has both svn and non svn releases. :(

If anyone can help me figure out how to get the SVN to work I would mail them a cookie :) haha.

Offline The_code

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #593 on: June 04, 2010, 02:05:37 PM »
Hello everyone. Im having problem figuring out how to restrict weapons from the /data/urestrict files, since the GUI is not working right now.
I want to for example restrict weapon_ak47 for all except superadmin, but i dont know the syntax.

I think it should be in denyspawn.txt, right?

Should i then write:
Quote
"weapon"
{
       "user"
       {
             "weapon_ak47"
       }

       "operator"
       {
             "weapon_ak47"
       }
       "admin"
       {
             "weapon_ak47"
       }
}
or something...

EDIT: Are there no examples?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #594 on: June 05, 2010, 07:50:48 AM »
As far as the ability to spawn the weapons, you've done it correctly. However in order to deny it to everyone but superadmin, you'll have to use data/URestrict/loadouts.txt

Code: [Select]
"default"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
}
"groups"
{
"user"
"admin"
"operator"
}
}
"Administrators"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_ak47"
}
"groups"
{
"superadmin"
}
}
"excluded"
{
}

Alternatively, you can just add superadmins to the excluded loadout.

Code: [Select]
"default"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
}
"groups"
{
"user"
"admin"
"operator"
}
}
"excluded"
{
"superadmin"
}

I do apologize for the lacking of clear documentation. If you notice my todo list for when I rebuild URestrict, documentation is a part of it.

Code: [Select]
URestrict:
Modularize
Globablize Excluded function
Presets
Optimize Client Sync
Optimize File updates
Merge with XGUI
Restrictions for Adv. Dupe.
Merge with ASpam
DOCUMENT!
Global All for all groups
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 The_code

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #595 on: June 09, 2010, 07:32:06 AM »
As far as the ability to spawn the weapons, you've done it correctly. However in order to deny it to everyone but superadmin, you'll have to use data/URestrict/loadouts.txt

Thanks. Now it works :)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #596 on: June 09, 2010, 11:09:44 AM »
Thanks. Now it works :)
     - No problem, glad I could help.
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 Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: URestrict
« Reply #597 on: June 14, 2010, 02:08:32 PM »
I'm gettting this:

] URestrict
Unknown command: URestrict

And, I spawn with no weapon.

I have installed the SVN and I have restarted my server.

I also get this when joining:
ULib\modules\urestrict.lua:265: attempt to index field 'cmds' (a nil value)

And, I have the default settings in data/urestrict and so..
« Last Edit: June 14, 2010, 02:21:04 PM by Fair »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URestrict
« Reply #598 on: June 14, 2010, 02:26:09 PM »
You need the svn of ULib to be able to use this.
Experiencing God's grace one day at a time.

Offline Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: URestrict
« Reply #599 on: June 14, 2010, 02:31:12 PM »
I should have that.

My host is UKGame, and I used their SVN system to install it..

I will try install it manually.
Thanks