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

0 Members and 6 Guests are viewing this topic.

JackBauer

  • Guest
Re: URestrict
« Reply #270 on: August 19, 2009, 10:52:25 AM »
Run in the server console:
Code: [Select]
lua_run PrintTable(URestrict)

hmmm nothing. I have see ERRORS:

ERROR: Hook 'URestrict_Loadout_Hock' Failed: Ulib/modules/server/URestrict.lua:151: attempt to index field '?' (a nail value)

ERROR: Hook 'URestrict.PickupHock' Failed: Ulib/modules/server/URestrict.lua:151: attempt to index field '?' (a nail value)

ERROR: Hook 'URestrict_CanTool_Hock' Failed: Ulib/modules/server/URestrict.lua:151: attempt to index field '?' (a nail value)

« Last Edit: August 19, 2009, 10:54:45 AM by JackBauer »

Offline SmokingBarrel

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #271 on: August 19, 2009, 11:34:13 AM »
Also having a problem with URestrict, I've installed it properly in the addons folder it has created the URestrict folder in my data folder however It refuses to use the loadouts in the loadouts.txt file.

Here is my loadouts.txt file in my data\URestrict folder

Code: [Select]
"rebel"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_para"
"weapon_deagle"
"weapon_mp5"
"weapon_crowbar"
"weapon_pumpshotgun"
}
"groups"
{
"rebel"
}
}
"excluded"
{
}
"police"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_m4"
"weapon_stunstick"
"weapon_deagle"
}
"groups"
{
"police"
}
}
"regular"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_peapis"
"weapon_peashotty"
}
"groups"
{
"regular"
}
}
"criminal"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_mac10"
"weapon_glock"
}
"groups"
{
"criminal"
}
}
"player"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_peapis"
"weapon_peashot"
}
"groups"
{
"user"
}
}
"default"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
}
"groups"
{
"undead"
}
}
"admin"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_crowbar"
"weapon_AWP"
"rt_combinemortar"
"weapon_godsmiter"
}
"groups"
{
"goldadmin"
"vetadmin"
"superadmin"
"supadmin"
"admin"
}
}
"soldier"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_para"
"weapon_deagle"
"weapon_mp5"
"weapon_stunstick"
"weapon_pumpshotgun"
}
"groups"
{
"soldier"
}
}
"terrorist"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_ak47"
"weapon_fiveseven"
"weapon_jihadbomb"
}
"groups"
{
"terrorist"
}
}
"cadet"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
"weapon_mp5"
"weapon_deagle"
}
"groups"
{
"cadet"
}
}

When I attempt to apply the loadouts to each group I get the following console errors.
Code: [Select]

] urestrict apply regular regular
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow
ULib/client/cl_util.lua:108: Bad flow

Appreciate any feedback.

-Smoky

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #272 on: August 19, 2009, 11:35:56 AM »
Cant comment on this error, how ever try updating your ulib? May work.

Offline SmokingBarrel

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #273 on: August 19, 2009, 11:46:02 AM »
Cant comment on this error, how ever try updating your ulib? May work.
Updated Ulib and ULX, The errors went away but nothing happens when I run the commands now. URestrict Loadouts still aren't working, the default gamemode is still being used.
« Last Edit: August 19, 2009, 11:50:05 AM by SmokingBarrel »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #274 on: August 19, 2009, 06:08:03 PM »
*Fixed ur.getLoadout() falsely report "excluded"
*Began work on the gui

Quote
Updated Ulib and ULX, The errors went away but nothing happens when I run the commands now. URestrict Loadouts still aren't working, the default gamemode is still being used.
     -Update URestrict and let me know if that solves your problem, I tested it with your configs and everything works.
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 #275 on: August 19, 2009, 06:42:42 PM »
Revision 42:
*Added URestrict Modify <loadout> <weapon to add/remove> <weapon to add/remove> ... (Automatically determines if the weapon needs to be added or removed by checking to see if it already exists in the loadout.)
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 SmokingBarrel

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #276 on: August 19, 2009, 08:11:40 PM »
     -Update URestrict and let me know if that solves your problem, I tested it with your configs and everything works.
I updated now; All ranks have a loadout of  psygun, Grav gun, camera and Toolgun.
Here's a screenshot of your Gui, I don't know if the information it's displaying is reliable but if it's making all my ranks excluded it explains it.
Some more information: The urestrict apply <rank> <loadout> is giving a message saying it's successful, However it is not changing the loadout.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #277 on: August 19, 2009, 08:29:59 PM »
Revision 43:
*ADDED command URestrict AdminExclude <loadouts|tools> <1|0>
*FIXED admin groups are no longer added to the excluded loadout when Admin Exclusion is set, the script just checks for boolean.
Revision 44
*Fixed GUI showing 90% of the groups excluded

Quote
I updated now; All ranks have a loadout of  psygun, Grav gun, camera and Toolgun.
     -URestrict doesn't choose what you spawn with, it only determine whether or not to allow the gamemode to give those items to you. You should be able to spawn/pickup the other items in the loadout  though.
     -If you're using Sandbox, the only items you will be able to spawn with are: weapon_crowbar, weapon_pistol, weapon_smg1,weapon_ frag, weapon_physcannon, weapon_crossbow, weapon_shotgun, weapon_357, weapon_rpg, weapon_ar2, gmod_tool, gmod_camera, and weapon_physgun.
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 #278 on: August 19, 2009, 09:28:03 PM »
Revision 45:
*Changed dimensions of the gui
*Activated the apply, remove, and update buttons
*URestrict Remove now updates to the gui
*Added admin only access
*Added a close button to the gui

« Last Edit: August 19, 2009, 09:53:13 PM 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 bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #279 on: August 20, 2009, 03:26:39 AM »
Looks nice!!! Now just for the tool restriction tab :P

JackBauer

  • Guest
Re: URestrict
« Reply #280 on: August 20, 2009, 03:54:32 AM »
Looks nice!!! Now just for the tool restriction tab :P

yes and i hope the bug is fixed.

Offline mishappp

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: URestrict
« Reply #281 on: August 20, 2009, 02:54:29 PM »
I installed the new one and no one spawns with guns but all guns are allowed to be picked up, almost there, how do I access the gui?


I got into the gui but nothing is in there its blank, I put in that lua_run code and got this in return

includes\util.lua:35: bad argument #1 to 'pairs' (table expected, got nil)
« Last Edit: August 20, 2009, 03:04:10 PM by mishappp »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #282 on: August 20, 2009, 08:08:11 PM »
-URestrict in console to access the gui
-Update ULib/ulx/urestrict to the latest svn
-Make sure you do lua_run PrintTable(ur) in the server console, not the client. (works on client too, but would be lua_run_cl PrintTable(ur))
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 #283 on: August 21, 2009, 12:17:28 PM »
Requires The Latest SVN Version Of ULib!!

*Remove Update Button
*Added Automatic GUI Refreshing
*Added Working Modify, Make, Loadouts Enabled, Exclude Admins Buttons
*Allowed You To Hold Shift In The Groups Tab To Select Multiple Groups And Apply Them All To The Same loadout/loadouts.lua
*You Can Now Modify Loadouts In Game
*Now If You Select An Item From The Loadout In The GUI And Hit Modify, It Will Remove Those Items From The Loadout. Can Select More Then One At A Time
*If You Hit Modify Without A Weapon/Item Selected A Text Box Comes Up For You To Add Items To The Selected Loadout. To Add More Than One Item, Serate With A Space. Also If The Item You're Trying To Add Already Exists, It'll Remove It Instead.
*Included A Screen Shot With The Addon
*Added URestrict Toggle <tools|loadouts> (Toggles Tool/Loadout Restrictions)

New:


The Old :S
« Last Edit: August 21, 2009, 12:34:18 PM 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

JackBauer

  • Guest
Re: URestrict
« Reply #284 on: August 21, 2009, 12:51:54 PM »
i need the tools restrict for my server but 31 not work.