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

0 Members and 5 Guests are viewing this topic.

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: URestrict
« Reply #345 on: August 26, 2009, 01:26:18 PM »
I have 1 suggestion I just want to throw out there.
I'm thinking maybe a inherit from system like ulx groups have, but for tools and weapons at lest optional in some cashes.

Ok will that's about it with my suggestion.

Grate work with the URestrict BTW I love the new GUI going on.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #346 on: August 26, 2009, 01:44:56 PM »
I thought about adding inheritance, but haven't quite figured out how I want to do it.

Thanks, did a lot of work to make that GUI happen.
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 Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: URestrict
« Reply #347 on: August 26, 2009, 03:20:48 PM »
Shouldn't be too difficult-- Depending on how you have your groups setup anyways:

Use ULib.ucl.groups.*groupname*.inherit_from to determine which group to look for adding allowed/denied tools and weapons and stuff

Also depending on how you have your initialization, you can use ucl.getInheritanceTree() to load your list of groups including inheritance so you don't have a case where superadmin is trying to inherit admin's permissions, but you haven't loaded admin's permissions yet.

I don't know if that helps you out or not, but.. there it is! lol
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URestrict
« Reply #348 on: August 26, 2009, 04:23:46 PM »
Don't forget Player:CheckGroup! :)
Experiencing God's grace one day at a time.

Offline Mr.Bean

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #349 on: August 27, 2009, 05:10:40 PM »
Hello, would it be possible for a message to be displayed if the player selects a restricted weapon? Something like "This weapon is restricted". I ask because at the moment it acts just like you don't have the weapon model installed and players might assume that you have a sucky server.

Offline bennie900

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 5
Re: URestrict
« Reply #350 on: August 27, 2009, 05:20:56 PM »
Goto: http://forums.ulyssesmod.net/index.php/topic,3680.287.html and get the third post with the picture. That should happen... It did for me when i had it.

Offline Mr.Bean

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #351 on: August 27, 2009, 05:52:52 PM »
Goto: http://forums.ulyssesmod.net/index.php/topic,3680.287.html and get the third post with the picture. That should happen... It did for me when i had it.

It does do that for a tool, but for a restricted weapon that you select in the "Q" menu I don't think it gives any kind of notification.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #352 on: August 27, 2009, 07:18:53 PM »
Quote
Hello, would it be possible for a message to be displayed if the player selects a restricted weapon? Something like "This weapon is restricted". I ask because at the moment it acts just like you don't have the weapon model installed and players might assume that you have a sucky server.
     - Hmm.. can't believe I actually didn't think of that. I will implement that tonight.
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 #353 on: August 27, 2009, 07:36:06 PM »
can't believe I actually didn't think of that.
I love community collaboration. :D
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #354 on: August 28, 2009, 09:43:28 AM »
:D

Sorry I didn't get an update out last night, I worked on it only to find a few more bugs that seem to come out of nowhere. I will be working diligently to get an update out sometime before monday.
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 #355 on: August 28, 2009, 01:35:24 PM »
Revision 9:
*Fixed the give.lua module accidentally passing an admin through as excluded even with admin exclusion off and the admin not being in the excluded list
*Fixed the pickup.lua module from passing all admins through as excluded
*Fixed the pickup.lua module from denying all weapons to non admins even if the group is allowed to pick it up.
*Fixed the spawn.lua module from passing all admins through as excluded
*Added an alert to let users know that they are not allowed to spawn a weapon when they try from the Q menu.
*Added an advert on initial spawn that lets the user know if their group is under either loadout or tool restrictions.

I highly suggest that whenever you update URestrict also check to see if you can update ULib.
Me and Megiddo worked together on fixing the random crashing and that should all be fixed now.
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 Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #356 on: August 28, 2009, 02:42:42 PM »
Okay, there is a button that can apprently disable loadout restrictions. When I disable them no-one can spawn with the weapons the gamemode provides, and the restrictions still apply to the Q menu.

For example, if I had a loadout called test, which had weapon_glock. Then if I applied this loadout to the group Admin, admins would spawn with glocks and can spawn them from the Q menu.

If I then disabled loadout restrictions, admins wouldnt spawn with any weapon whatsoever, however they couldnt spawn any guns in the Q menu, apart from the glock.

I would like it so if you disabled loadout restrictions, you could spawn anything from the Q menu, and can spawn with any weapons that the gamemode gives you.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #357 on: August 28, 2009, 04:07:17 PM »
Quote
I would like it so if you disabled loadout restrictions, you could spawn anything from the Q menu, and can spawn with any weapons that the gamemode gives you.
     - That's exactly how it works.
     - What revision of URestrict are you running?
     - What Revision of ULib are you running?
     - Are you getting any errors in the server/client console?
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 #358 on: August 28, 2009, 04:18:56 PM »
Revision 10:
*Fixed when you disable loadout restrictions, it disables all restrictions, not just spawn.

Quote
- That's exactly how it works.
     - As for that note, I'd like to apologize. I didn't realize I hadn't pushed the update to svn yet. Thought I included it in Revision 9
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 #359 on: August 28, 2009, 05:01:33 PM »
Revision 11:
*Fixed excluding a group in the loadouts tab resulting in the group being restricted from ever thing.
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