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: 1

  • Print

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

0 Members and 1 Guest are viewing this topic.

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #120 on: July 06, 2009, 10:09:09 am »
I love this script but have had a lot of problems with it so far.
One probelm I have encountered:
  • When I added gmod_wire_turret and restared the server it would not load the Urestrict menu
  • One of my groups "resmember" is not showing up in the tool restrict menu when you click on an tool
Code: [Select]
All groups sspecified in loadout Menu
"owner" <exempt>
"superadmin" <exempt>
"admin" <exempt>
"moderator"
"resmember"
"member"
"respected"
"regular"
  • Another problem is that the newest version (21) does not give you the option to turn on or off Weather or not "weapons are given to the player/group on spawn"
I fixed this by editing all the <toolname>.txt to include "resmember" but needs to be done with each new tool.

Version being used: Sticking to Version 20 as you are unable to define what each group spawns with in 21.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #121 on: July 06, 2009, 10:29:01 am »
Quote
Another problem is that the newest version (21) does not give you the option to turn on or off Weather or not "weapons are given to the player/group on spawn"
     - Loadouts have to be configured to determine what each groups allow to use; then you apply a loadout to a group in game from the menu
     - As far as choosing what they spawn with I'm working on adding that feature now, currently everyone except excluded groups spawn with:
          "weapon_physgun", "weapon_physcannon", "gmod_tool", "gmod_camera", "weapon_crowbar"  as defined by URestrict.DefaultLoadout at
           the top of URestrict.lua    ::EDIT WITH CAUTION::
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 #122 on: July 06, 2009, 10:41:52 am »
Revision: 22
Author: jay
Date: 12:39:33 PM, Monday, July 06, 2009
Message:
Added A Configuration For Choosing What Weapons Users Are Allowed To Spawn With EX: You have the default loadout set to allow the user group to use with pistol, crowbar, physgun, tool gun, and camera.   And you have the trusted loadout set to allow admins to use pistol, crowbar, physgun, tool gun, and camera, glock, rpg, ... ect and you only have the pistol allowed in the default_spawn.txt both the user group and admin group will only spawn with the pistol, but the admin group would still be able to use the rpg, glock,..ect if they spawn it or pick one up somewhere while the user group will still have to follow the restrictions.
----
Modified : /lua/ULib/modules/server/URestrict.lua

Example of new configuration:

...\garrysmod\data\URestrict\Loadouts\default.txt:
Code: [Select]
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"

...\garrysmod\data\URestrict\Loadouts\trusted.txt:
Code: [Select]
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
"weapon_crowbar"
"weapon_pistol"
"weapon_357"
"weapon_pistol"

...\garrysmod\data\URestrict\Loadouts\default_spawn.txt:
Code: [Select]
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"
"weapon_crowbar"

With this configuration, both groups will spawn with:
"weapon_physgun"
"weapon_physcannon"
"gmod_tool"
"gmod_camera"

But the group using the trusted loadout would spawn with a crowbar too. Even though they're allowed to use the pistol, and 357, they won't spawn with it.



Revision: 23
Author: jay
Date: 12:41:30 PM, Monday, July 06, 2009
Message:
Updated the URestrict Title Bar To Show The Current Revision
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua

« Last Edit: July 06, 2009, 10:48:02 am by jay209015 »
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 #123 on: July 06, 2009, 02:39:59 pm »
because all mine are unique.

I forget what, but we've seen some versions Gcombat break a few things in ULX, unique names or not.
I think it was somehow allowing players to pick up each other, even if not admin.
Unless Garry has improved his hook system, if any script shares a hook type (playerloadout for instance), and for any reason returns anything (true false or otherwise)  instead of just returning... that hook stops for all other scripts.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #124 on: July 06, 2009, 02:45:21 pm »
Thankyou so much for adding that feature. Loadouts seem to work
One problem still remaining like i said before is whenever I seem to add a tool it breaks the in game menu.
I deleted the /urestrict/tools folder but this had little effect.
When In game and go to access the in game menu i get this error:
Code: [Select]
] urestrict
Timer Error: ULib/modules/client/URestrict_cl.lua:228: attempt to concatenate field '?' (a nil value)
Note: I have not edited any files in the Addon folder and have Revision 22 now.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #125 on: July 06, 2009, 03:08:40 pm »
Quote
I forget what, but we've seen some versions Gcombat break a few things in ULX, unique names or not.
I think it was somehow allowing players to pick up each other, even if not admin.
Unless Garry has improved his hook system, if any script shares a hook type (playerloadout for instance), and for any reason returns anything (true false or otherwise)  instead of just returning... that hook stops for all other scripts.
     - Oh yeah, I remember that.
Quote
] urestrict
Timer Error: ULib/modules/client/URestrict_cl.lua:228: attempt to concatenate field '?' (a nil value)
     -  Temporarily removing GCombat, and see if URestrict works then, if not try removing URestrict and start fresh with the svn. I looked at the line the error above show an error for, and frankly I don't see a way for that to be broken especially since that line isn't even related to the tools section of the script.
Code: [Select]
LButtonName:SetText( v.. "(" ..URestrict_Loadout[v].. ")" )     - That's line 228: and that is for the loadout menu where it show admin(trusted) ect..
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 Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #126 on: July 06, 2009, 04:59:37 pm »
Hi,
1. Removed Gcombat file - Had no effect
2. Removed Loadout folder - Worked until I added a group through the GUI.
3. Reinstalled the SVN (23) and removed the Data folder - Went into game, Menu fixed at first but broke again after adding group. Same error.
4. Added all my files into Loadout folder - Broke as soon as entered Urestrict

Ill upload you the content of the files; hopefully it will help :|

Below is my Ulib groups file to show you that it is corresponding with the the groups in ULib
Code: Text
  1. "owner"
  2. {
  3.         "deny" 
  4.         {
  5.         }
  6.         "allow"
  7.         {
  8.                 "ulx hiddenecho"
  9.                 "ulx rcon"
  10.                 "ulx luarun"
  11.                 "ulx cexec"
  12.                 "ulx ent"
  13.                 "ulx adduser"
  14.                 "ulx adduserid"
  15.                 "ulx removeuser"
  16.                 "ulx userallow"
  17.                 "ulx userdeny"
  18.                 "ulx addgroup"
  19.                 "ulx removegroup"
  20.                 "ulx groupallow"
  21.                 "ulx groupdeny"
  22.                 "overcomeimmunity"
  23.         }
  24.         "inherit_from" 
  25.         {
  26.                 "superadmin"
  27.         }
  28. }
  29. "superadmin"   
  30. {
  31.         "deny" 
  32.         {
  33.         }
  34.         "allow"
  35.         {
  36.                 "ulx hiddenecho"
  37.                 "ulx rcon"
  38.                 "ulx luarun"
  39.                 "ulx cexec"
  40.                 "ulx ent"
  41.                 "ulx adduser"
  42.                 "ulx adduserid"
  43.                 "ulx removeuser"
  44.                 "ulx userallow"
  45.                 "ulx userdeny"
  46.                 "ulx addgroup"
  47.                 "ulx removegroup"
  48.                 "ulx groupallow"
  49.                 "ulx groupdeny"
  50.         }
  51.         "inherit_from" 
  52.         {
  53.                 "admin"
  54.         }
  55. }
  56. "admin"
  57. {
  58.         "deny" 
  59.         {
  60.         }
  61.         "allow"
  62.         {
  63.                 "ulib_passtime"
  64.                 "ulib_passtimeout"
  65.                 "ulx spawnecho"
  66.                 "ulx tsay"
  67.                 "ulx csay"
  68.                 "ulx gimp"
  69.                 "ulx mute"
  70.                 "ulx ungimp"
  71.                 "ulx unmute"
  72.                 "ulx gag"
  73.                 "ulx ungag"
  74.                 "ulx chattime"
  75.                 "ulx welcomemessage"
  76.                 "ulx slap"
  77.                 "ulx whip"
  78.                 "ulx slay"
  79.                 "ulx sslay"
  80.                 "ulx ignite"
  81.                 "ulx unignite"
  82.                 "ulx playsound"
  83.                 "ulx freeze"
  84.                 "ulx unfreeze"
  85.                 "ulx god"
  86.                 "ulx ungod"
  87.                 "ulx noclip"
  88.                 "ulx hp"
  89.                 "ulx armor"
  90.                 "ulx cloak"
  91.                 "ulx uncloak"
  92.                 "ulx blind"
  93.                 "ulx unblind"
  94.                 "ulx jail"
  95.                 "ulx unjail"
  96.                 "ulx ghost"
  97.                 "ulx unghost"
  98.                 "ulx ragdoll"
  99.                 "ulx unragdoll"
  100.                 "ulx maul"
  101.                 "ulx strip"
  102.                 "ulx adminmenu"
  103.                 "ulx clientmenu"
  104.                 "ulx mapsmenu"
  105.                 "ulx showmotd"
  106.                 "ulx banmenu"
  107.                 "ulx exec"
  108.                 "ulx rslotsmode"
  109.                 "ulx rslots"
  110.                 "ulx rslotsvisible"
  111.                 "ulx reservedslots"
  112.                 "ulx bring"
  113.                 "ulx goto"
  114.                 "ulx send"
  115.                 "ulx teleport"
  116.                 "ulx tooldeny"
  117.                 "ulx toolallow"
  118.                 "ulx tooldenyuser"
  119.                 "ulx toolallowuser"
  120.                 "ulx tooldenyoverride"
  121.                 "ulx map"
  122.                 "ulx kick"
  123.                 "ulx ban"
  124.                 "ulx banid"
  125.                 "ulx unban"
  126.                 "ulx spectate"
  127.                 "ulx physgunplayer"
  128.                 "ulx vote"
  129.                 "ulx votemap2"
  130.                 "ulx votekick"
  131.                 "ulx voteban"
  132.                 "ulx veto"
  133.                 "ups_damage"
  134.                 "ups_vehicle"
  135.                 "ups_freeze"
  136.                 "ups_physgun"
  137.                 "ups_remove"
  138.                 "ups_tool"
  139.                 "ups_unfreeze"
  140.                 "ups_use"
  141.                 "ups disableplayers"
  142.                 "ups miscdeletionaccess"
  143.                 "ulx addnextmap"
  144.         }
  145.         "inherit_from" 
  146.         {
  147.                 "moderator"
  148.         }
  149. }
  150. "moderator"    
  151. {
  152.         "deny" 
  153.         {
  154.         }
  155.         "allow"
  156.         {
  157.                 "ulx seeasay"
  158.                 "ulx map"
  159.                 "ulx kick"
  160.                 "ulx ban"
  161.                 "ulx vote"
  162.                 "ulx votemap2"
  163.                 "ulx votekick"
  164.                 "ulx voteban"
  165.                 "ulx slap"
  166.                 "ulx whip"
  167.                 "ulx slay"
  168.         }
  169.         "inherit_from" 
  170.         {
  171.                 "member"
  172.         }
  173. }
  174. "resmember"    
  175. {
  176.         "deny" 
  177.         {
  178.         }
  179.         "allow"
  180.         {
  181.                 "ulx kick"
  182.         }
  183.         "inherit_from" 
  184.         {
  185.                 "member"
  186.         }
  187. }
  188. "member"       
  189. {
  190.         "deny" 
  191.         {
  192.         }
  193.         "allow"
  194.         {
  195.  
  196.         }
  197.         "inherit_from" 
  198.         {
  199.                 "respected"
  200.         }
  201. }
  202. "respected"    
  203. {
  204.         "deny" 
  205.         {
  206.         }
  207.         "allow"
  208.         {
  209.                 "ulx voteban"
  210.         }
  211.         "inherit_from" 
  212.         {
  213.                 "regular"
  214.         }
  215. }
  216.  
  217. "regular"      
  218. {
  219.         "deny" 
  220.         {
  221.         }
  222.         "allow"
  223.         {
  224.                 "ulx vote"
  225.                 "ulx votemap2"
  226.                 "ulx votekick"
  227.         }
  228.         "inherit_from" 
  229.         {
  230.                 "user"
  231.         }
  232. }
  233.  
  234. "user" 
  235. {
  236.         "deny" 
  237.         {
  238.         }
  239.         "allow"
  240.         {
  241.                 "ulx"
  242.                 "ulx help"
  243.                 "ulx psay"
  244.                 "ulx asay"
  245.                 "ulx thetime"
  246.                 "ulx menu"
  247.                 "ulx_valueupdate"
  248.                 "ulx_cvar"
  249.                 "ulx_getgamemodes"
  250.                 "ulx motd"
  251.                 "ulx_getbans"
  252.                 "ulx usermanagementhelp"
  253.                 "ulx who"
  254.                 "ulx votemap"
  255.         }
  256.         "inherit_from" 
  257.         {
  258.         }
  259. }
  260. "none" 
  261. {
  262.         "deny" 
  263.         {
  264.         }
  265.         "allow"
  266.         {
  267.                 "ulx logecho"
  268.                 "ulx logfile"
  269.                 "ulx logevents"
  270.                 "ulx logchat"
  271.                 "ulx logspawns"
  272.                 "ulx logspawnsecho"
  273.                 "ulx logdir"
  274.                 "ulx addgimpsay"
  275.                 "ulx addadvert"
  276.                 "ulx addcsayadvert"
  277.                 "ulx addforceddownload"
  278.                 "ulx debuginfo"
  279.                 "ulx voteecho"
  280.                 "ulx votemap2successratio"
  281.                 "ulx votemap2minvotes"
  282.                 "ulx votekicksuccessratio"
  283.                 "ulx votekickminvotes"
  284.                 "ulx votebansuccessratio"
  285.                 "ulx votebanminvotes"
  286.                 "ulx votemapenabled"
  287.                 "ulx votemapmintime"
  288.                 "ulx votemapwaittime"
  289.                 "ulx votemapsuccessratio"
  290.                 "ulx votemapminvotes"
  291.                 "ulx votemapvetotime"
  292.                 "ulx votemapmapmode"
  293.                 "ulx votemapaddmap"
  294.         }
  295.         "inherit_from" 
  296.         {
  297.         }
  298. }
« Last Edit: July 06, 2009, 05:03:27 pm by Jethro »

Offline Tom_007

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URestrict
« Reply #127 on: July 06, 2009, 08:33:43 pm »
Hi,
we got similar problem with this addon. We have these users in data/ULib/groups.txt  superadmin, admin, donator, member, snoob, noob, user. We can only set restrict for admin and user.
Any idea how to fix it ?

this is print users what we can use
console  lua_run_cl PrintTable(ULib.ucl.groups)
Code: [Select]
] lua_run_cl PrintTable(ULib.ucl.groups)
admin:
      allow:
            1   =   ulib_passtime
            2   =   ulib_passtimeout
            3   =   ulx spawnecho
            4   =   ulx tsay
            5   =   ulx csay
            6   =   ulx gimp
            7   =   ulx mute
            8   =   ulx ungimp
            9   =   ulx unmute
            10   =   ulx gag
            11   =   ulx ungag
            12   =   ulx chattime
            13   =   ulx welcomemessage
            14   =   ulx slap
            15   =   ulx whip
            16   =   ulx slay
            17   =   ulx sslay
            18   =   ulx ignite
            19   =   ulx unignite
            20   =   ulx playsound
            21   =   ulx freeze
            22   =   ulx unfreeze
            23   =   ulx god
            24   =   ulx ungod
            25   =   ulx noclip
            26   =   ulx hp
            27   =   ulx armor
            28   =   ulx cloak
            29   =   ulx uncloak
            30   =   ulx blind
            31   =   ulx unblind
            32   =   ulx jail
            33   =   ulx unjail
            34   =   ulx ghost
            35   =   ulx unghost
            36   =   ulx ragdoll
            37   =   ulx unragdoll
            38   =   ulx maul
            39   =   ulx strip
            40   =   ulx adminmenu
            41   =   ulx clientmenu
            42   =   ulx mapsmenu
            43   =   ulx showmotd
            44   =   ulx banmenu
            45   =   ulx exec
            46   =   ulx rslotsmode
            47   =   ulx rslots
            48   =   ulx rslotsvisible
            49   =   ulx reservedslots
            50   =   ulx bring
            51   =   ulx goto
            52   =   ulx send
            53   =   ulx teleport
            54   =   ulx tooldeny
            55   =   ulx toolallow
            56   =   ulx tooldenyuser
            57   =   ulx toolallowuser
            58   =   ulx tooldenyoverride
            59   =   ulx map
            60   =   ulx kick
            61   =   ulx ban
            62   =   ulx banid
            63   =   ulx unban
            64   =   ulx spectate
            65   =   ulx physgunplayer
            66   =   ulx vote
            67   =   ulx votemap2
            68   =   ulx votekick
            69   =   ulx voteban
            70   =   ulx veto
      inherit_from:
user:
      allow:
            1   =   ulx
            2   =   ulx help
            3   =   ulx psay
            4   =   ulx asay
            5   =   ulx thetime
            6   =   ulx menu
            7   =   ulx_valueupdate
            8   =   ulx_cvar
            9   =   ulx_getgamemodes
            10   =   ulx motd
            11   =   ulx_getbans
            12   =   ulx usermanagementhelp
            13   =   ulx who
            14   =   ulx votemap
      inherit_from:

(data/ULib/groups.txt)
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}

}
"donator"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
}
"snoob"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
}
"noob"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
}
« Last Edit: July 06, 2009, 08:39:51 pm by Tom_007 »

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #128 on: July 09, 2009, 03:51:40 pm »
Hi, I also have a problem with this.

When I click on anything or try to do anything with URestrict, this error appears in console:
Code: [Select]
Timer Error: ULib/modules/client/urestrict_cl.lua:228: attempt to concatenate field '?' (a nil value)

The URestrict window goes grey and there is a big black box stuck on the screen (removable by server reconnect)

Please help love this add-on!
Thanks.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #129 on: July 09, 2009, 08:01:10 pm »
Do you have custom groups as well? I'll test it thoroughly tomorrow, and hopefully get a fix out.
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 #130 on: July 09, 2009, 08:53:39 pm »
Ok, Managed to find some time tonight and got it done. Enjoy!

Revision: 24
Author: jay
Date: 10:52:49 PM, Thursday, July 09, 2009
Message:
You Can Now Add Groups That The Name Is Atleast Three Characters Long To The Loudout List EX: "Vip"
Now All Groups Are Displayed On The Drop-Down For Tool Restrictions
Fixed Timer Error When At temping to Add A Group To The Loadout List
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua
Modified : /lua/ULib/modules/server/URestrict.lua

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 Lisianthus

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
Re: URestrict
« Reply #131 on: July 09, 2009, 11:08:27 pm »
I'm getting "Invalid Group Entered" in console when I try to allow a group to use a tool.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #132 on: July 09, 2009, 11:36:34 pm »
Revision: 25
Author: jay
Date: 1:36:11 AM, Friday, July 10, 2009
Message:
Fixed "Invalid Group Entered" Error -- Thanks For The quick Find Lisianthus!
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua
Modified : /lua/ULib/modules/server/URestrict.lua

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 Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #133 on: July 10, 2009, 11:49:41 am »
Hi,
Thanks again for another release; fixed a lot of bugs.
I was wondering if you would be able to configure a feature that enabled us to add groups to a file in the "/data/Urestrict/tools/" folder. The purpose of this file would be to list the groups that are not effected by the tool restrictions. EG: in the loadout folder you have a file that lets users add "superadmin" and "owner" to it. I believe this would be a great feature and reduce the amount of time it takes to restrict each tool that is added.

Also if possible would you be able to change the colour of the text that appears upon clicking on a tool in the Urestrict "Tool" menu. Maybe make it so if a tool was allowed for a usergroup it would turn the text green and if disallowed it would remain black. The purpose of this is so that its easier to see what usergroups have been granted access at a glance.

Thanks
Jethro
« Last Edit: July 10, 2009, 05:34:12 pm by Jethro »

Offline Lisianthus

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
Re: URestrict
« Reply #134 on: July 10, 2009, 11:51:48 am »
I've found another bug. When a player with restricted weapons spawns. (Only get toolgun etc..) all the weapons gets spread all over the groud.

  • Print