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 jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #135 on: July 10, 2009, 04:50:03 pm »
Quote
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.
     - Reload the map, and the problem should be fixed, I noticed that as well.
Quote
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.
     - Don't have a way of doing that, or atleast no that I know of.
Quote
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 it added.
     - So, like the exclusion list in the loadout menu, but for tools? Good idea if I understand you correctly.
« Last Edit: July 10, 2009, 05:01:03 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 Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #136 on: July 10, 2009, 05:44:54 pm »
- Don't have a way of doing that, or at least no that I know of.
Shame, that would have made it =p

- So, like the exclusion list in the loadout menu, but for tools? Good idea if I understand you correctly.
Yes, don't know why I found it that hard to explain lol.

Another thing; does urestict's tool menu have the capability (or near capability) of adding Entities, NCPS or Vehicles to a restricted list?

Offline dougofborg

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: URestrict
« Reply #137 on: July 10, 2009, 06:03:10 pm »
Hello, i found a simmilar error to someone on the first page of this thread:
Code: [Select]
Timer Error: ULib/modules/client/urestrict_cl.lua:228: attempt to concatenate field '?' (a nil value)
Two boxes then appear, one in the upper left with a button that says "label", and another empty one. The empty one i can move around and close, but the first one appears stuck.

Any ideas?

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #138 on: July 10, 2009, 06:37:14 pm »
Hello, i found a simmilar error to someone on the first page of this thread:
Code: [Select]
Timer Error: ULib/modules/client/urestrict_cl.lua:228: attempt to concatenate field '?' (a nil value)
Two boxes then appear, one in the upper left with a button that says "label", and another empty one. The empty one i can move around and close, but the first one appears stuck.

Any ideas?

What Revision of the SVN are you using?  Revision 25 that i am using has that problem fixed.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #139 on: July 10, 2009, 07:01:39 pm »
Yes, you need to update to the latest revision.
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 dougofborg

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: URestrict
« Reply #140 on: July 10, 2009, 07:36:06 pm »
Rev 25 is the latest, correct? Thats what im using. Am i supposed to access it some other way than typing urestrict into the console?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #141 on: July 10, 2009, 08:30:55 pm »
No, check both your server and client console for 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 Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: URestrict
« Reply #142 on: July 11, 2009, 09:04:55 am »
I recently added a few tools to the restriction list and am back to being unable to get the Urestirct menu up
Code: Text
  1. ] urestrict
  2. Warning: Unhandled usermessage ''
  3. Warning: Unhandled usermessage ''
  4. Warning: Unhandled usermessage ''
  5. Warning: Unhandled usermessage ''
  6. Warning: Unhandled usermessage ''
  7. Warning: Unhandled usermessage ''
  8. Warning: Unhandled usermessage ''
  9. Warning: Unhandled usermessage ''
  10. Warning: Unhandled usermessage ''
  11. Warning: Unhandled usermessage ''
  12. Warning: Unhandled usermessage ''
  13. Warning: Unhandled usermessage ''
  14. Warning: Unhandled usermessage ''
  15. Warning: Unhandled usermessage ''
  16. Warning: Unhandled usermessage ''
  17. Warning: Unhandled usermessage ''
  18.  

I have attached my data folder as the error is being generated because of the content added in here; in case you need to see it.


I have also encountered the problem of weapons being flung out of spawning players but there are no errors.
« Last Edit: July 11, 2009, 10:34:17 am by Jethro »

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #143 on: July 11, 2009, 01:30:26 pm »
I also noticed this today.

I recently added a few tools to the restriction list and am back to being unable to get the Urestirct menu up
Code: Text
  1. ] urestrict
  2. Warning: Unhandled usermessage ''
  3. Warning: Unhandled usermessage ''
  4. Warning: Unhandled usermessage ''
  5. Warning: Unhandled usermessage ''
  6. Warning: Unhandled usermessage ''
  7. Warning: Unhandled usermessage ''
  8. Warning: Unhandled usermessage ''
  9. Warning: Unhandled usermessage ''
  10. Warning: Unhandled usermessage ''
  11. Warning: Unhandled usermessage ''
  12. Warning: Unhandled usermessage ''
  13. Warning: Unhandled usermessage ''
  14. Warning: Unhandled usermessage ''
  15. Warning: Unhandled usermessage ''
  16. Warning: Unhandled usermessage ''
  17. Warning: Unhandled usermessage ''
  18.  

I have attached my data folder as the error is being generated because of the content added in here; in case you need to see it.


I have also encountered the problem of weapons being flung out of spawning players but there are no errors.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #144 on: July 11, 2009, 07:02:12 pm »
I'm aware of this error, and working on the fix.
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 #145 on: July 11, 2009, 07:50:38 pm »
Revision: 26
Author: jay
Date: 9:50:18 PM, Saturday, July 11, 2009
Message:
Fixed "Flying Weapons" On Spawn When The Players Group Is Set To A Loadout Other Than Excluded.
Fixed "Warning: Unhandled usermessage ''" When Trying To Open URestrict After Adding More Then 5 Tools.
Fixed Buttons In The Loadouts Tab Showing "Label" Instead Of Their Proper Text.
----
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 #146 on: July 12, 2009, 09:06:18 am »
Hi Jay

Bug found: If you enter "Urestict" into your console more than once when on a server it will duplicate the tool menu so you have your tools listed twice, three, four or five times depending on how many times you have loaded the urestrict menu.

Bug found: My custom loadouts are not working for any of the groups. It only gives them the "default" loadout and 2 other custom weapons. No errors are being displayed.

Idea for new feature: The exclusion list in the loadout menu, but for tools.

Idea for new feature: Have this line of code customisable in the data folder:
Code: Text
  1. ply:PrintMessage( HUD_PRINTTALK, "This tool is restricted to certain groups" ) -- If not then display this message
The purpose of this is so that you can change the message to what you want eg: Members only tool! Please donate to get access to this tool.

Thanks
Jethro
« Last Edit: July 12, 2009, 01:14:23 pm by Jethro »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #147 on: July 12, 2009, 03:49:38 pm »
Revision: 27
Author: jay
Date: 5:47:13 PM, Sunday, July 12, 2009
Message:
Quote
Bug found: If you enter "Urestict" into your console more than once when on a server it will duplicate the tool menu so you have your tools listed twice, three, four or five times depending on how many times you have loaded the urestrict menu.
     -Fixed
Quote
Code: (server/URestrict.lua Line:144) [Select]
ply:PrintMessage( HUD_PRINTTALK, "This tool is restricted to certain groups" ) -- If not then display this messageThe purpose of this is so that you can change the message to what you want eg: Members only tool! Please donate to get access to this tool.

     -Added, config in data/URestrict/tools/message.txt
----
Modified : /lua/ULib/modules/client/URestrict_cl.lua
Modified : /lua/ULib/modules/server/URestrict.lua

Quote
Bug found: My custom loadouts are not working for any of the groups. It only gives them the "default" loadout and 2 other custom weapons. No errors are being displayed.
     - Attempted to replicate, only thing I found that could be your issue is you don't have the default_spawn.txt set.

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 #148 on: July 12, 2009, 05:22:53 pm »
     - Attempted to replicate, only thing I found that could be your issue is you don't have the default_spawn.txt set.

How do I set the default_spawn.txt? I have put all the weapons I wish players to be able to spawn with in that file already =/.
Thanks for the additional feature.

EDIT:
Just found an error in the console of single player when spawning:
Code: [Select]
Updated DuaFiles (4899)
Attempted to create unknown entity type weapon_real_cs_desert_eagle!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_mp5a5!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_smoke!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_flash!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_grenade!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_xm1014!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_pumpshotgun!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_p90!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_scout!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_real_cs_awp!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_hand_device!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_dexgun!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type sodan_cloak!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_staff!
NULL Ent in GiveNamedItem!
Attempted to create unknown entity type weapon_zat!
NULL Ent in GiveNamedItem!
weapons/ep2snip_base/shared.lua:647: attempt to call method 'SprintEnable' (a nil value)
Attempted to create unknown entity type weapon_jihadbomb!
NULL Ent in GiveNamedItem!
All these weapons above are the weapons I should be spawning with.
Is this to do with incompatibility of my custom weapons or is it and error with Urestrict?
« Last Edit: July 12, 2009, 05:41:21 pm by Jethro »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #149 on: July 12, 2009, 05:59:32 pm »
Those weapons do not exist on the server then
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

  • Print