GithubHelp home page GithubHelp logo

aaron113 / urs Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 13.0 584 KB

An advanced Garry's Mod restriction system for ULX.

Home Page: http://forums.ulyssesmod.net/index.php/topic,5269.0.html

License: MIT License

Lua 100.00%

urs's People

Contributors

aaron113 avatar kayila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

urs's Issues

Restricting with wildcards

If you're still taking suggestions, I would be nice to be able to restrict a group from either a certain set of items or a whole addon. For example, I would like to restrict gbombs from the users group but not the admins using the target "gb5_*".

Typo in error message

When you try and restrict an item that is already restricted it will print like this: "grandmaster is already restricted from this rank." Instead of the item, it prints the rank name.

Unless limit is 0 per rank npc's are infinite

Users can spawn npc's when sbox_maxnpcs is 0, the only way to prevent this is by setting the limit for their rank to 0. I would like at times for everyone to spawn npcs but not never or always. This seems like a fairly recent bug.

New GUI

I hate the current GUI. It needs to be revamped and likely independent from others.

Easy Bodygroup Tool

Hi

im using your URS and its pretty good, however im finding it hard to set it up so that the easy bodygroup tool from robotboy655 is unrestricted from user but all other tools are restricted.. any ideas?

Restricting Playermodels

If you're still open to suggestions, I think it might be useful to be able to restrict playermodels through URS as well. It certainly might prove useful to be able to prevent certain ranks from using certain playermodels (Donor models, admin-only models, etc.).

Sound like something you might consider?

Case-sensitivity on Linux

For whatever reason, this plugin will not work on Linux if cloned into addons/URS/ (as is the default, if a destination directory is not specified). I suspect this is a Garry's Mod or ULX bug rather than your fault, but it would be a good idea to plop a reminder in the README.md.

cd /path/to/garrysmod/garrysmod/addons
# Works: (Makes urs/)
git clone https://github.com/Aaron113/URS.git urs
# Does NOT work: (makes URS/, which is NOT mounted)
git clone https://github.com/Aaron113/URS.git

prop restrictions not working

i have restricted props that people are spamming, probably related to the other restriction bug from my clueless opinion

Print Error

I got this error whilst trying to print all

[ERROR] lua/includes/modules/net.lua:66: bad argument #1 to 'pairs' (table expected, got nil)

  1. pairs - [C]:-1
  2. WriteTable - lua/includes/modules/net.lua:66
  3. call - addons/urs/lua/ulx/modules/sh/urs_cmds.lua:194
  4. __fn - addons/ulib/lua/ulib/shared/commands.lua:943
  5. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296
  6. Run - lua/includes/modules/concommand.lua:69
  7. unknown - addons/ulib/lua/ulib/shared/commands.lua:1310
  8. unknown - lua/includes/modules/concommand.lua:69

console error

With the b62db66 and latest ulib/ulx (from github) folowing error in console:

[ERROR] addons/urs/lua/ulx/modules/urs_server.lua:43: attempt to index a nil value
Check - addons/urs/lua/ulx/modules/urs_server.lua:43
fn - addons/urs/lua/ulx/modules/urs_server.lua:146
unknown - addons/ulib/lua/ulib/shared/hook.lua:179
Give - [C]:-1
RunClass - gamemodes/sandbox/gamemode/player_class/player_sandbox.lua:76
Call - gamemodes/base/gamemode/player.lua:317
PlayerSpawn - gamemodes/base/gamemode/player.lua:274
unknown - gamemodes/sandbox/gamemode/init.lua:41

Tool restrictions not working

I joined my server today to see people using the duplicator, which I have had restricted for over a year now.

Would you like my restrictions.txt again?

☣☢Bryantdl7☢☣<STEAM_X:X:> spawned/used tool duplicator -=RESTRICTED=-
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned model models/props_vehicles/car003b_physics.mdl
"duplicator" is a restricted tool from your rank.

Constraint Limit

Another suggestion that I have would be to implement some manner of constraint limit. As far as I can tell, there are no sbox limitations on, say, the number of ropes a player can create. This can be rather troublesome, as minges can easily spam hundreds of ropes to a prop or two and crash the server.

Think this might be useful to implement?

Version Checking

Acting as a reminder, would like to add version checking for future debugging problems.

Advanced Duplicator 2 and Expression 2 entities

Your tool is awesome, congratulations.

I have an issue though, I can't seem to restrict users from pasting Wire Expression 2 chips (I think they're "entities", no?).
I block it with name "wire_expression2" and even "gmod_wire_expression2" (that's the name of the class of the chip) on advdupe, prop, sent - it doesn't block the paste.

The tool is blocked just fine.

The paste with Advanced Duplicator 2 (mind the 2!) doesn't get blocked.

Thanks in advance!

Inherits

Let restrictions/loadouts/limits have the possibility to inherit through ranks.

Help

Hello,

This isn't really a issue but I didn't really know how to ask anywhere else.

The current HUD that I am using has a prop counter and it shows the max props that you are allowed to spawn but that grabs the sbox_maxprops limit. I was wondering if there is anyway to grab the prop limit defined by URS for that rank so that I can display it on the HUD.

If you can even understand what I mean aha.

Thanks in advanced,
Main Fighter.

Tool limits and target all.

Hello,
This is more of a suggestion rather than an issue. I would love to see you create a tool limit, so you can limit the stuff the tools place down e.g. only allowing 5 balloons to be placed down with the "Balloons" tool. Another suggestion would be being able to target all or certain directories. For example for vehicles, instead of typing out the directory of the vehicle "models/tdmcars/emergency/lex_is300_jamesmay.mdl" you could do "models/tdmcars/*" - which would just restrict all the cars in the specified directory by using *.

At the moment, I'm having to use URS and FPP, just because I can't limit tools etc..

Thanks!

Confliction with the Prop protection "PatchProtect

Basically patchprotect is an antispam and prop protection addon.
Link here: http://steamcommunity.com/sharedfiles/filedetails/?id=183047564

Ever since i installed URS the antispam system would fail to detect a prop spawn.

I had a discussion with the patchprotect dev and this came up:

The last thing what you can do is, to remove parts of the code of URS.
You need to remove following lines from the following file:
https://github.com/Aaron113/URS/blob/537d6ab45faf725796c65dc27976c7e0eb5456cf/lua/ulx/modules/urs_server.lua

88 till 96
106 till 119
125
137 - 140
I know, this is a very crappy solution, but nothing else can help. The thing is, that I can't do anything against that.
Last edited by Ted894.

Here is the full discussion of it (The discussion starts on page 3)
http://steamcommunity.com/workshop/filedetails/discussion/183047564/43099721684542778/#p1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.