ULX

Author Topic: URS BETA - A Highly Customizeable Restriction System (or will be)  (Read 562810 times)

0 Members and 1 Guest are viewing this topic.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102


I've been working on this project slowly and decided just to release a Beta that I would build off of.  URS is an acronym and stands for Ultimate Restriction Suite.  This project is a replacement of URestrict, which development was sadly stopped on.  I decided to develop this after URestrict just suddenly stopped working one day on my server and I had absolutely no restrictions.  Then Jay announced that he would not be able to continue development on it, and so I decided I'd take up a project of my own.  I'm not the most experienced in the field of Lua, but I certainly can get the job done (hopefully I do a decent job).


Features:

  • Fully functional menu IN XGUI!!
  • Restrictions for:  Props, Tools, Sweps, Sents, Vehicles, Ragdolls, Effects, Advance Duplicator, Pickups (weapons), and NPCs.
  • Custom Limits for:  Vehicles, Effects, Npcs, Ragdolls, Props, and Sents.
  • Custom Loadouts for each and every group.
  • Tool Usage Logging
  • Auto-Saving, never lose your changes!
  • Decide if your changes are public or not!
  • Restrict everything of a given type at once!
  • Does not tamper with Prop Protections or other scripts!

=============================
Please see our Wiki page for additional help!
https://github.com/Aaron113/URS/wiki
=============================

=============================
NOTE: Requires version 3.50+ of ULX


(Workshop is most likely to be out of date)
=============================
Need Help?  SVN Guide
=============================
« Last Edit: May 27, 2016, 06:02:11 PM by JamminR »

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #1 on: May 09, 2011, 09:18:07 PM »
I think you have a great idea going there, but I hope you have a menu soon because 70% of my admins cant use stuff like this without a menu (no offence any admins that are reading this). I also would like to offer some help, because I am just starting to code LUA and this is a great opportunity to learn. In addition if its not too much of a struggle I was wondering if you could integrate the restrictions with SQL.
I cry every time I see that I am not a respected member of this community.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #2 on: May 09, 2011, 09:27:15 PM »
Looking good!
Experiencing God's grace one day at a time.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #3 on: May 10, 2011, 05:14:37 AM »
I think you have a great idea going there, but I hope you have a menu soon because 70% of my admins cant use stuff like this without a menu (no offence any admins that are reading this). I also would like to offer some help, because I am just starting to code LUA and this is a great opportunity to learn. In addition if its not too much of a struggle I was wondering if you could integrate the restrictions with SQL.
I could probably get something in for SQL, but the menu and some other additions I have planned come first.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #4 on: May 10, 2011, 08:17:42 AM »
Very nice.
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 krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #5 on: May 10, 2011, 09:22:22 AM »
Awesome! Glad you've found some time to work on this.
I'll be installing it as soon as I find a little time myself  ;D
My TTT server. Join the fun!

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #6 on: May 10, 2011, 01:52:20 PM »
I'd just like to note, I haven't tested this much at all in a dedicated server.  I shut mine down, so I'll have to get one up to test.  Otherwise, any feedback on how it's working in dedicated servers is welcome.

EDIT:  I also added a little Features list.

EDIT2:  I just organized and decorated the OP even more.
« Last Edit: May 10, 2011, 02:20:54 PM by Aaron113 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #7 on: May 10, 2011, 02:09:45 PM »
Not URS!
Oh, wait, it IS URS.

Nice!
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #8 on: May 10, 2011, 05:30:35 PM »
Added the command ulx print [limits/restrictions/loadouts] to make up for not having a menu yet.  This prints the tables for loadouts, limits, or restrictions into your console.  See better description in OP.

Also, thanks for the compliments.
« Last Edit: May 11, 2011, 05:10:37 AM by Aaron113 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #9 on: May 10, 2011, 08:21:10 PM »
Aaron, I was looking over your code and just wanted to point out that ULX function call backs are only called server-side, so putting "if SERVER then ... end" is unnecessary.  And calling GetConVarNumber() is pretty inefficient because the engine has to lookup the cvar object in a linked list each time, it'd be better to store the cvar object and get the number directly from it.

Hope you find these suggestions helpful. :)
Experiencing God's grace one day at a time.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #10 on: May 11, 2011, 04:29:44 AM »
Thanks, both will be changed.

EDIT:  Done as of 5/11/11.
« Last Edit: May 11, 2011, 02:36:09 PM by Aaron113 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #11 on: May 12, 2011, 01:30:06 PM »
You can still make convar changes have instant effect, I was just recommending using ConVar:GetBool() instead of using the global function (which incurs a lookup). :P
Experiencing God's grace one day at a time.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #12 on: May 13, 2011, 11:37:26 AM »
You can still make convar changes have instant effect, I was just recommending using ConVar:GetBool() instead of using the global function (which incurs a lookup). :P
Hehe, I'll be changing it in rv5.  :-[

Also, is there a way to have the completes for a command updated?  I know XGUI uses something for ban and kick reasons, but rather then looking through several files I thought I'd just ask.  Stickly is going to help later, but feel free to explain if you want.
« Last Edit: May 13, 2011, 12:25:54 PM by Aaron113 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #13 on: May 13, 2011, 12:44:03 PM »
Also, is there a way to have the completes for a command updated?  I know XGUI uses something for ban and kick reasons, but rather then looking through several files I thought I'd just ask.  Stickly is going to help later, but feel free to explain if you want.

You just update the table that has the completes you want. Make sure you don't try to "clear" the table first by doing "my_var = {}" because that creates a new table that is no longer tracked by ULX. (This is a Lua language thing, if you want me to go more in depth I can)
Experiencing God's grace one day at a time.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #14 on: May 13, 2011, 01:59:22 PM »
I swear I've tried that before and it didn't update.  Anyway, I'll try it out later and get back to you.