Ulysses

Ulysses Stuff => Releases => Topic started by: eriikok on September 23, 2015, 04:25:49 PM

Title: URM - User Restrictions Module for ULX
Post by: eriikok on September 23, 2015, 04:25:49 PM
URM - User Restrictions Module for ULX

URM is an addon to allow server admins to restict or limit entities and tools from usergroups. It also features a loadout system that allows unique loadouts to be set for different usergroups. The restrictions, limits, and loadouts can be unique to usergroups.
It has a GUI integrated into the ULX XGUI under "Settings", this is fully functional and I recommend to use it over the commands, as the commands may be difficult to use.

This was originally an addon I wrote to use on my own server, but I have cleaned it up a bit and decided to release it to whomever needs it.

DOWNLOAD
GITHUB (https://github.com/Weol/URM)

INSTALLATION
Drop URM folder into garrysmod/addons folder.



Loadouts
The loadout tab lets you select which weapons you want a usergroup to spawn with, and how much ammo you want them to spawn with. You can also select and set one of the weapons as the primary weapon, this will be the weapon they hold in their and when they spawn, the primary weapon is marked green. If no primary weapon is selected then the player will spawn with the latest weapon added to the loadout. You can also set the loadout to the loadout of a player on the server, this will delete the old loadout and replace it with the selected player's loadout, the weapon the player is holding will be set as the primary weapon.

GUI Screenshots with instructions:
Quote
(http://i.imgur.com/kObSkR6.png)
#1: This list contains all the weapons that can be added to the loadout using the add button below it. You can select multiple weapons to be added.
#2: With this textbox you can search through the list below it(#1). It supports Regular Expressions.
#3: The edit button edits the selected item primary(#5) and secondary(#5) ammo on the item list (#6).
#4: This buttons set the selected item on the item list(#6) as the primary weapon for the selected usergroup(s). Setting a weapon that already is a primary weapon will unset it.
#5: These are the ammo sliders, they are used to set how much ammo you want to add to a weapon when adding it to the loadout. Weapons that don't use ammo have no repercussions from this.
#6: This is the item list. It shows what weapons are in the loadout, which group's loadout it belongs to and how much ammo it has. You can select multiple items (for deleting).
#7: This list shows all the usergroups on the server. If you select more than one, you will see all of the selected usergroup's loadout on the item list(#6), you can also add items to multiple groups at once.
#8: This button opens a new window where you can set the selected usergroup's loadout to a players loadout. (See image below)

(http://i.imgur.com/hql0eYp.png)
#1: This window pops out when you press the "Set as..." button.
#2: This list contains all the players on the server, you can only select one player.
#3: With this you can search through the players on the list above(#2)
#4: Set the selected players loadout as the selected usergroup's loadout.

(http://i.imgur.com/BaCtE9L.png)



Restictions
The restrictions tab allows you to restrict different entities/models/weapons from usergroups. The following can be restricted:
- Effects             
- Entities           
- NPCs
- Weapon pickup 
- Weapon spawn 
- Props
- Ragdolls           
- Tools               
- Vehicles

GUI Screenshots with instructions:
Quote
(http://i.imgur.com/y9pxg7l.png)
#1: The itemlist, it shows what items are restricted from what group.
#2: This list contains all the items that can be restricted from the selected type on the type list(#3). In the cases of "Props", "Ragdolls", and "Effects" this list will disappear and the search box(#5) will be used to enter a model path.
#3: This is the type list. You use it to select what kind of item you want to select. As you select different types, the item list(#1) will show all the restricted items of that type.
#4: The usergroup list is used to select one or more usergroups which you want to restrict items from. The selected usergroups restrictions of the selected type(#3) is shown in the item list(#1).
#5 (The button): The edit button will set the selected item on the item list to the selected item in the restrictable items list(#2). It is the same as removing one item and adding another.
#5 (The textbox): This is used to search through the list below it(#2). In the cases of "Props", "Ragdolls", and "Effects" this box will be used to enter a model path.

(http://i.imgur.com/gdUC5WH.png)



Limits
The limit tab allows you to limit models, entities, weapons, and other limits for usergroups. You can set the standard sandbox limits (prop limit, npc limit, dynamite limit, etc.), this will override the sandbox limit. It also allows you to limit single entities, props, vehicles and more, you can set the limit of a model or any other item. You can also set the limit of a group of items to one limit, this means you can set an items limit to a custom limit and set the custom limit to a number. A custom limit is not a number but a variable that other limits can be set to, all the items with the custom limit will count into the custom limits count. For example, you can set all the combine npcs to a limit called "combine" (you can name the limit whatever you want) and set the combine limit to 5; now you can only have 5 combine npcs at the same, even if they are not the same npc. This example would also work for props. You can set a custom limit to a custom limit, the item in the first custom limit will not count in the second custom limit, but the first custom limit will simply have the same limit as the second limit. (Note that if you name a custom limit the same as one of the standard sandbox limits, then you will override them and set the limit to whatever you set your custom limit. Basically, don't call your custom limit for "props", or "npcs")

GUI Screenshots with instructions:
Quote
(http://i.imgur.com/97S87j3.png)
#1: This list contains all the standard sandbox limits, the box over it is used to search through it.
#2: This slider sets the limit you want.
#3: This buttons shows additional options, like limiting models, other items, and custom limits.

(http://i.imgur.com/FnJaC2t.png)
#1: This is where you enter a custom limit, if you enter something here the limit slider will be disabled and the added item's limit will be set to the custom limit you typed into the box.
#2: This is where you set the limit of .our custom limit, you can set it to either another custom limit, or to a normal limit, using the slider. This is also where you set the limit of a model,
#3: This list contains everything you can limit, excluding models, custom limits, and the standard sandbox limits. The textbox above it is used to search through the list.
#4: This button will hide the additional options

(http://i.imgur.com/QZqKGBA.png)



I may post this to the workshop in the future, any other workshop uploads will be taken down.

Feel free to ask any question or requests.
Title: Re: URM - User Restrictions Module for ULX
Post by: Aaron113 on September 23, 2015, 07:37:07 PM
Your github link is broken, but I would love to see it.
Title: Re: URM - User Restrictions Module for ULX
Post by: Bryantdl7 on September 23, 2015, 07:53:44 PM
Your github link is broken, but I would love to see it.
I found it via google https://github.com/Weol/URM

My thoughts on the addon; the addon has potential, fix all those bugs I outlined on the github page and I'll definitely consider switching to it. That is if you plan on  not dropping support for it soon
Title: Re: URM - User Restrictions Module for ULX
Post by: Aaron113 on September 23, 2015, 08:08:01 PM
I found it via google https://github.com/Weol/URM

Yeah, I found it as well.  He should update the OP though.

EDIT:  It's nice though, I like it.  Nice and clean.  The only thing I could say is the GUI seems maybe a bit cluttered, but maybe it's just the pictures with the writing on it.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on September 24, 2015, 01:20:40 AM
Fixed the link. Thanks for the feedback, although I do not know what OP is.

You probably noticed that it isn't very... refined system. I used originally used it on my own server, where everything was fine tuned to work. Also the way I handle data transfering between clients and server is rather unorthodox, as I didn't fully grasp how the system worked. I will solve any bugs that are reported of course.

I've been thinking of taking an object oriented approach to the system, instead of relying purely on tables, and switch to SQLite instead of JSON as it would improve performance.

I will keep updating it as long as I can.
Title: Re: URM - User Restrictions Module for ULX
Post by: Aaron113 on September 24, 2015, 09:53:20 AM
Fixed the link. Thanks for the feedback, although I do not know what OP is.
Original Post.

You probably noticed that it isn't very... refined system. I used originally used it on my own server, where everything was fine tuned to work. Also the way I handle data transfering between clients and server is rather unorthodox, as I didn't fully grasp how the system worked. I will solve any bugs that are reported of course.

I've been thinking of taking an object oriented approach to the system, instead of relying purely on tables, and switch to SQLite instead of JSON as it would improve performance.

I will keep updating it as long as I can.
I skimmed it, but what I seen of it, it looked good.  I would strongly recommend Workshop though, lots of people seem to prefer it.
Title: Re: URM - User Restrictions Module for ULX
Post by: TheSouthernSanta on September 25, 2015, 09:12:32 PM
Nice, Really considering switching from URS to URM if this is confirmed to be the new best thing. Im liking how it can stop weapon pickups, this is a major thing needed for me on my server as people like to try find exploits in spawning and getting weapons, and then when they get the weapons everyone else uses that exploit, some cannot be removed, this could fix a few of those hard to reach weapon issues with URS. im not saying that URS is bad either, it's just also that URS has to manually search for the swep or manually type the sent you want to block. I would really like to see this supported for years to come. I am also willing to offer my server as a test host.
Title: Re: URM - User Restrictions Module for ULX
Post by: DarKevin on September 26, 2015, 01:46:14 PM
My reaction as a server owner who has been struggling with URS for over 2 years:



                                                   (http://i.imgur.com/GFuqEYR.gif)



Title: Re: URM - User Restrictions Module for ULX
Post by: DarKevin on October 05, 2015, 03:59:05 PM
Hmm, seems like people can spawn restricted stuff with adv dupe 2.
Pickup restrictions prevent weapons to be abused, but for example I haven't found a way to restrict the Bouncy Ball that gives you HP.
I even tried restricting its model, which worked with Falcos Prop Protection, but it didn't work.
Is there something you can do about it?
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 06, 2015, 06:22:46 AM
Technically yes, but that would involve overriding Adv. Dupe's spawn function to call a hook, so no. Adv. Duplicator 2 and the normal duplicator do have a way to check if an entity can be pasted, but it does not tell which player is trying to spawn it, so I don't see how I could add a way to prevent it from spawning from one player, and not another one.

This has been fixed.
Title: Re: URM - User Restrictions Module for ULX
Post by: eliman on October 17, 2015, 01:05:49 PM
The addon works great, just that i'm encountering one problem and I've narrowed it down and its URM which is causing my problem. The problem i'm running into is spawning props and picking up sweps

Weapon example:
SBoxLimit_weapon_rpg
Though I still get this error popup on my right hand side, I can still pick it up and use the swep

Prop example:
SBoxLimit_models/props_c17_streetsign005d.mdl
When I get this popup error on the right hand side, I won't be able to spawn any props

All my sbox limits such as props, lights, lamps, etc are set properly as well.

Is there a possible way to fix this problem through the settings and whatnot? I've tried a ton of things and it isn't working out.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 22, 2015, 02:52:38 AM
The addon works great, just that i'm encountering one problem and I've narrowed it down and its URM which is causing my problem. The problem i'm running into is spawning props and picking up sweps

Weapon example:
SBoxLimit_weapon_rpg
Though I still get this error popup on my right hand side, I can still pick it up and use the swep

Prop example:
SBoxLimit_models/props_c17_streetsign005d.mdl
When I get this popup error on the right hand side, I won't be able to spawn any props

All my sbox limits such as props, lights, lamps, etc are set properly as well.

Is there a possible way to fix this problem through the settings and whatnot? I've tried a ton of things and it isn't working out.

This is wierd. URM does not operate with Sbox at all. If you have set a limit for "SBoxLimit_models/props_c17_streetsign005d.mdl" then it will not work; "SBoxLimit_" should not be there at all. Howerver, if you set a limit for "models/props_c17_streetsign005d.mdl" it will work. The same goes for the weapon part. I don't understand where you have "SBoxLimit_" from.

URM does not interfere with the Sbox limits unless you have overridden the Sbox limits with URM. So if there is no "props" limit in URM it will continue to the SBox limit.
Title: Re: URM - User Restrictions Module for ULX
Post by: eliman on October 22, 2015, 03:25:42 PM
Quote from: eriikok
This is wierd. URM does not operate with Sbox at all. If you have set a limit for "SBoxLimit_models/props_c17_streetsign005d.mdl" then it will not work; "SBoxLimit_" should not be there at all. Howerver, if you set a limit for "models/props_c17_streetsign005d.mdl" it will work. The same goes for the weapon part. I don't understand where you have "SBoxLimit_" from.

URM does not interfere with the Sbox limits unless you have overridden the Sbox limits with URM. So if there is no "props" limit in URM it will continue to the SBox limit.

Yeah.. I don't know whats going on. I didn't set any limits for certain props or weapons at all, but like I said before I did set a overall prop spawning limit.

Let me know if you have any suggestions on how to counter / fix this issue, or need anymore information.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 23, 2015, 01:04:47 AM
Allright, I have an idea. Try to rename your URM folder to "XXXXXXXURM", so that it loads last.

If that does not work, could you give me the list of addons you use, in case there are any conflicts. Also your console.log would be of help, if its not too much trouble.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 23, 2015, 04:14:31 AM
Also, is your gamemode sandbox or a derivative of sandbox?
Title: Re: URM - User Restrictions Module for ULX
Post by: JamminR on October 23, 2015, 07:15:52 AM
Unolimited, and I think URS, use Sbox limit watching.
Make sure you're not using those in combo with this, or each other.
Title: Re: URM - User Restrictions Module for ULX
Post by: eliman on October 23, 2015, 10:08:47 AM
For the "XXXXXURM" folder thing, I wasn't able to do that since I threw all the files into its proper directory for the addon to work, rather than dumping the URM-master into my addons folder which doesn't work for some reason

I'm not using much addons, just anti prop kill, ulx chattags and pointshop

The gamemode i'm running is Stranded. Really having this deep feeling it doesn't like any other gamemode besides Sandbox

Also as a side note: the latest URM is also causing more problems on my end, not able to spawn with default things (gravity guns and physgun). If you want, later on I can grab the lua errors for you
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 23, 2015, 10:19:58 AM
I suspect your Stranded gamemode is not a derivative of Sandbox (Cannot know for sure without knowing which stranded gamemode you are using). If it is not sandbox or a derivative of it, then URM will not work at all, unless the gamemode has copied certain sandbox aspects.

If  you could grab the errors for me I could probably tell for sure if it is a gamemode problem.
Title: Re: URM - User Restrictions Module for ULX
Post by: eliman on October 23, 2015, 12:59:43 PM
Currently using this gamemode: http://steamcommunity.com/sharedfiles/filedetails/?id=133364818&searchtext=stranded (http://steamcommunity.com/sharedfiles/filedetails/?id=133364818&searchtext=stranded)

And for the lua error part on my end: http://puu.sh/kVbUk/238390743b.png (http://puu.sh/kVbUk/238390743b.png)

Just want you to keep in mind that this error wasn't show up until the last update you made, which I think was like a couple hours from this post.

But yeah, coming to conclusion that it's not a derivative of Sandbox gamemode
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 24, 2015, 11:07:34 AM
Thank you. It was indeed an error in that update. I have fixed it.

But that error should not cause the limit problems that you had.
Title: Re: URM - User Restrictions Module for ULX
Post by: eliman on October 24, 2015, 04:13:29 PM
Yeah, it most definitely not because I had this error even before the update you made.

Any possibilities you'll make this addon compatible with the Stranded gamemode?
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on October 25, 2015, 06:11:05 PM
Yeah, it most definitely not because I had this error even before the update you made.

Any possibilities you'll make this addon compatible with the Stranded gamemode?

No, I'm sorry, but I will not.
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on August 13, 2016, 02:46:13 PM
Hi! Sorry for the bump, but I've been having a couple problems relating to XGUI. The addon works flawlessly, and honestly, it is the best restriction software I have used or heard of, imo.


Another user posted about the same issue. Basically, XGUI would become stuck loading at bans, commands wouldn't update ULX/ULib, the XGUI would not refresh, and adding people to groups became a hassle as it would not refresh. Our posts can be found here:

Mine:
http://forums.ulyssesmod.net/index.php/topic,9805.0.html

Cheesepuffs:
http://forums.ulyssesmod.net/index.php/topic,9835.0.html

Here is the error I got:

[ERROR] lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 120
  1. error - [C]:-1
   2. ReadType - lua/includes/extensions/net.lua:182
    3. ReadType - lua/includes/extensions/net.lua:121
     4. ReadType - lua/includes/extensions/net.lua:124
      5. ReadType - lua/includes/extensions/net.lua:124
       6. ReadTable - lua/includes/extensions/net.lua:124
        7. func - addons/ulib/lua/ulib/client/cl_util.lua:9
         8. unknown - lua/includes/extensions/net.lua:32

Once again, great addon! However, it has been hindering me lately, as it appears to be the addon causing the issue.
Title: Re: URM - User Restrictions Module for ULX
Post by: Bite That Apple on August 13, 2016, 04:25:56 PM
This reminds me of URS, but with the features more stretched out. I haven't used this addon, but it looks legit to me. URS is also a great addon too, which I've found no issues with.

Hi! Sorry for the bump, but I've been having a couple problems relating to XGUI. The addon works flawlessly, and honestly, it is the best restriction software I have used or heard of, imo.


Another user posted about the same issue. Basically, XGUI would become stuck loading at bans, commands wouldn't update ULX/ULib, the XGUI would not refresh, and adding people to groups became a hassle as it would not refresh. Our posts can be found here:

Mine:
http://forums.ulyssesmod.net/index.php/topic,9805.0.html

Cheesepuffs:
http://forums.ulyssesmod.net/index.php/topic,9835.0.html

Here is the error I got:

[ERROR] lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 120
  1. error - [C]:-1
   2. ReadType - lua/includes/extensions/net.lua:182
    3. ReadType - lua/includes/extensions/net.lua:121
     4. ReadType - lua/includes/extensions/net.lua:124
      5. ReadType - lua/includes/extensions/net.lua:124
       6. ReadTable - lua/includes/extensions/net.lua:124
        7. func - addons/ulib/lua/ulib/client/cl_util.lua:9
         8. unknown - lua/includes/extensions/net.lua:32

Once again, great addon! However, it has been hindering me lately, as it appears to be the addon causing the issue.

Edit:
Wait, I just realized that the last post has been super bumped. I didn't even notice the timestamp, until I saw it say October. The user who originally posted this, has been online since the beginning of the year, so I doubt there will be any fixes to this if it's not functioning correctly. Also, from experience, I don't believe that this addon is causing that error from what I'm reading. I believe, net.lua is default xgui/ulx/ulib, but I'm not sure anymore./
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on August 13, 2016, 05:18:32 PM
I really doubt that he will come back online, if that is the case I may try other restriction software...
Title: Re: URM - User Restrictions Module for ULX
Post by: JamminR on August 14, 2016, 08:43:27 AM
Though the author may not check here, there was a update to the Git repo a few days ago.
Find where they are monitoring, and update/post there.
No idea where that may be.

Bite that apple, net.lua is a gmod default, not ULX/ULib.
As his link points, Asian Aimbot started conversation in the help section of the forum, and we referred him here after determining ULib ban transfer works fine without URM installed.
There's another user having similar issue, also linked, that we believe may be due to URM.

We referred him here in hopes that the author has forum topic notifications enabled for this release.
Though, yes, many don't.
Title: Re: URM - User Restrictions Module for ULX
Post by: DrCheesepuffs on August 20, 2016, 06:19:49 AM
I really doubt that he will come back online, if that is the case I may try other restriction software...

The Asian Aimbot, do you have any recommendations?
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on August 20, 2016, 07:12:51 AM
I used URS at one point, however I don't remember why I switched. I'll try it out and see why.
Title: Re: URM - User Restrictions Module for ULX
Post by: Bite That Apple on August 20, 2016, 03:19:11 PM
Bite that apple, net.lua is a gmod default, not ULX/ULib.
As his link points, Asian Aimbot started conversation in the help section of the forum, and we referred him here after determining ULib ban transfer works fine without URM installed.
There's another user having similar issue, also linked, that we believe may be due to URM.

As said previously, I was unsure, as I have not played around with gmod in a while. I was attempting to be helpful, but also stated I was not sure.
Title: Re: URM - User Restrictions Module for ULX
Post by: DrCheesepuffs on August 22, 2016, 04:36:37 PM
I used URS at one point, however I don't remember why I switched. I'll try it out and see why.

If URS is worth it I would switch, because I hate how URM conflicts with the ban stuff
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on August 22, 2016, 07:16:35 PM
I would say so, yeah. It's pretty finicky to use, but it's solid and it works.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on August 24, 2016, 09:10:52 AM
Hello, I am sorry I have not been paying attention to this thread. I am active on GitHub and look into questions/problems raised there, I am currently investigating the net error. For future reference I would suggest that you bring this up on GitHub, as that is what I frequent the most. I will however try to pay more attention to this thread.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on August 24, 2016, 11:28:32 AM
I have reworked the net system so that URM no longer uses ULX's system. It now uses its own net functions, so any conflicts should be resolved.
Title: Re: URM - User Restrictions Module for ULX
Post by: JamminR on August 24, 2016, 03:05:30 PM
Eriikok, thank you. Trust us(Team Ulysses), we understand the challenge of monitoring multiple release locations.
You may wish to turn on notifications for this thread, as many ULX users don't use github to monitor discussions and changes, but instead just download and forget.

Do you believe ULib's net functionality was at fault?
Or was it just that, an accidental conflict, perhaps due to concurrent requests?
If you believe ULib fault, please bring up some constructive discussion and reasons explaining why in our Developers corner or Help and Support section.
Thanks. - JamminR
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on August 24, 2016, 03:58:44 PM
I am not sure why it happened. I could not replicate the error on my local server so I didn't have a chance to pinpoint it. All I know for certain is that if this error continues then somebody has messed with the net library.

I don't know ULib's net system enough to offer anything but speculation. Both URM and ULib bans can contain alot of data, so maybe there is something that happens when they try to send it when the player spawns. It would be interesting to know if players with access to Bans but not URM (or vice versa) would have got this error; that would give more of a inclination of where the problem lies.
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on August 24, 2016, 04:07:19 PM
Thank you for taking the time to address the issue! :D
I have no idea what I did to URM, I didn't do anything to it or the server files when the problem started bugging me.
Title: Re: URM - User Restrictions Module for ULX
Post by: DrCheesepuffs on December 28, 2016, 03:44:01 PM
I am still having issues with this :/
Title: Re: URM - User Restrictions Module for ULX
Post by: BlitherLlama on December 31, 2016, 10:10:58 PM
Is there anyway to use SteamID's instead of just groups?
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 01, 2017, 08:38:57 AM
I am still having issues with this :/

Make 100% sure you have the latest version.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 01, 2017, 08:40:03 AM
Is there anyway to use SteamID's instead of just groups?

I'm afraid not.
Title: Re: URM - User Restrictions Module for ULX
Post by: PLYSHKA on January 08, 2017, 07:36:57 AM
Hi, I have a problem. On the computer (usual PC on Windows) I can use this addon. But on the hosting (Linux) it isn't shown on the menu (but loads in the game).
Please help.
Title: Re: URM - User Restrictions Module for ULX
Post by: JamminR on January 08, 2017, 12:16:47 PM
Try renaming your linux servers gmod.. /addons/URM-master folder to lower case letters, '/addons/urm-master'
Gmod (used to/seems to still?) have a problem loading addons with upper case letters in file names.
If that doesn't work, it's possible other linux incompatibilities exist within the addon itself (most of them doing with case sensitivity)
Title: Re: URM - User Restrictions Module for ULX
Post by: iViscosity on January 08, 2017, 04:00:23 PM
Try renaming your linux servers gmod.. /addons/URM-master folder to lower case letters, '/addons/urm-master'
Gmod (used to/seems to still?) have a problem loading addons with upper case letters in file names.
If that doesn't work, it's possible other linux incompatibilities exist within the addon itself (most of them doing with case sensitivity)

To my knowledge, it's just Linux that has this issue. I have uppercase folders in my addons folder that works just fine (my client, for singleplayer things). I also do in my server's files, but that's on Windows so not a huge deal.
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 08, 2017, 07:38:42 PM
Hi, I have a problem. On the computer (usual PC on Windows) I can use this addon. But on the hosting (Linux) it isn't shown on the menu (but loads in the game).
Please help.

I'm afraid I don't have any experience with linux at all, so I'm not sure how much of help I can be. But just to clarify; everything loads and works except for the interface in the ulx menu?
Title: Re: URM - User Restrictions Module for ULX
Post by: roastchicken on January 09, 2017, 11:50:34 AM
I can confirm that uppercase letters in addon names often cause issues on Linux servers. Even if it doesn't turn out to be the issue, it's better to eliminate it as a possibility.
Title: Re: URM - User Restrictions Module for ULX
Post by: PLYSHKA on January 11, 2017, 07:48:48 AM
I find something really weird... URM is working fine, but only commands. Look:
(http://s01.geekpic.net/di-10CAO2.png) (http://s01.geekpic.net/di-BT0WNB.png)
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 11, 2017, 11:04:26 AM
I find something really weird... URM is working fine, but only commands. Look:
(http://s01.geekpic.net/di-10CAO2.png) (http://s01.geekpic.net/di-BT0WNB.png)

Hmm, do you get any client errors in your game console? What addons are you using?
Title: Re: URM - User Restrictions Module for ULX
Post by: PLYSHKA on January 12, 2017, 05:46:32 AM
Hmm, do you get any client errors in your game console? What addons are you using?
No, I have no errors in client console on server. I use a lot of addons for ulx and ulx works fine on my computer (Windows). But on the hosting(linux) URM only works without the xgui...
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 12, 2017, 07:11:26 AM
No, I have no errors in client console on server. I use a lot of addons for ulx and ulx works fine on my computer (Windows). But on the hosting(linux) URM only works without the xgui...

Allright, can you put "sv_allowcslua" to 1 and run this in your game console "lua_run_cl PrintTable(urm)" and post what is printed? This will print out all of the client side data for URM (No sensitive data is contained there).
Title: Re: URM - User Restrictions Module for ULX
Post by: PLYSHKA on January 12, 2017, 08:47:16 AM
Allright, can you put "sv_allowcslua" to 1 and run this in your game console "lua_run_cl PrintTable(urm)" and post what is printed? This will print out all of the client side data for URM (No sensitive data is contained there).
Nevermind... I got this in console:
Quote
Limits:
      VIP:
      admin:
            npcs   =   999999999
            ragdolls   =   999999999
      superadmin:
            npcs   =   999999999
            ragdolls   =   999999999
      user:
            wire_expressions   =   0
Loadouts:
Restrictions:
      SANS:
            swep:
                  weapon_ut99_translocator   =   RESTRICTED
      admin:
            swep:
      operator:
            swep:
                  acid_sprayer_minds   =   RESTRICTED
                  weapon_ut99_translocator   =   RESTRICTED
      superadmin:
            swep:
      user:
            entity:
                  entity_obs_computermhs   =   RESTRICTED
                  kekc_broom_ent   =   RESTRICTED
                  kekc_broom_hard   =   RESTRICTED
                  kekc_broom_what   =   RESTRICTED
                  kekc_broom_whew   =   RESTRICTED
                  kekc_fireball_ent   =   RESTRICTED
                  mazegenerator   =   RESTRICTED
            npc:
                  npc_vj_fo3bhs_libertyprime   =   RESTRICTED
                  npc_vj_fo3ene_libertyprime   =   RESTRICTED
            swep:
                  orbital_friendship_cannon   =   RESTRICTED
                  weapon_huntermhs   =   RESTRICTED
                  weapon_orbitalstrikemhs   =   RESTRICTED
                  weapon_ut99_redeemer   =   RESTRICTED
                  weapon_ut99_translocator   =   RESTRICTED
            tool:
                  duplicator   =   RESTRICTED
                  dynamite   =   RESTRICTED
                  emitter   =   RESTRICTED
                  omnispawn_placer   =   RESTRICTED
                  permaprops   =   RESTRICTED
                  wire_explosive   =   RESTRICTED
                  wire_simple_explosive   =   RESTRICTED
                  wire_turret   =   RESTRICTED
      ?????????:
            swep:
                  acid_sprayer_minds   =   RESTRICTED
                  weapon_ut99_translocator   =   RESTRICTED
load_list:
      1   =   xgui_limits.lua
      2   =   xgui_loadouts.lua
      3   =   xgui_restrictions.lua
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 12, 2017, 10:10:13 AM
Allright, I see what might have caused this. I pushed an update on github, try redownloading urm and see if it works.
Title: Re: URM - User Restrictions Module for ULX
Post by: PLYSHKA on January 13, 2017, 01:58:55 AM
Allright, I see what might have caused this. I pushed an update on github, try redownloading urm and see if it works.
Still no menu in settings tab...
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on January 13, 2017, 05:37:32 AM
I sent you a private message, will be easier to figure out whats wrong if I am on your server.
Title: Re: URM - User Restrictions Module for ULX
Post by: PLYSHKA on January 15, 2017, 02:03:52 AM
I sent you a private message, will be easier to figure out whats wrong if I am on your server.
IT WORKS NOW! I just reinstalled a whole ulx (without addons) and installed new version of urm.  Thanks alot
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on February 12, 2017, 08:16:03 PM
It's me again! :D SORRY FOR YET ANOTHER SUPER-BUMP

Before, I made a rank and used the addon to give it a custom loadout. Now it's shooting out this error at me and some of the weapons don't spawn with ammo.

[ERROR] addons/urm-master/lua/ulx/modules/loadouts.lua:81: attempt to call method 'GetPrimaryAmmoType' (a nil value)
  1. fn - addons/urm-master/lua/ulx/modules/loadouts.lua:81
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:110
    3. PlayerSpawn - gamemodes/base/gamemode/player.lua:274
     4. unknown - gamemodes/sandbox/gamemode/init.lua:41
      5. Spawn - [C]:-1
       6. unknown - gamemodes/base/gamemode/player.lua:115

Any help would be greatly appreciated! :D
I used the same loadouts when I removed all the addons from the server (the weps missing ammo are M9K) and switched back. I think this may be causing the issue, but my other ranks don't have the issue? (Tested it with the same guns but on different ranks)
Title: Re: URM - User Restrictions Module for ULX
Post by: eriikok on February 13, 2017, 03:52:34 AM
It's me again! :D SORRY FOR YET ANOTHER SUPER-BUMP

Before, I made a rank and used the addon to give it a custom loadout. Now it's shooting out this error at me and some of the weapons don't spawn with ammo.

[ERROR] addons/urm-master/lua/ulx/modules/loadouts.lua:81: attempt to call method 'GetPrimaryAmmoType' (a nil value)
  1. fn - addons/urm-master/lua/ulx/modules/loadouts.lua:81
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:110
    3. PlayerSpawn - gamemodes/base/gamemode/player.lua:274
     4. unknown - gamemodes/sandbox/gamemode/init.lua:41
      5. Spawn - [C]:-1
       6. unknown - gamemodes/base/gamemode/player.lua:115

Any help would be greatly appreciated! :D
I used the same loadouts when I removed all the addons from the server (the weps missing ammo are M9K) and switched back. I think this may be causing the issue, but my other ranks don't have the issue? (Tested it with the same guns but on different ranks)

Try clearing that usergroups loadout and re-add it. If that does not work, take a backup of your data/urm folder and delete it, and add your loadout manually and see if it works.
Title: Re: URM - User Restrictions Module for ULX
Post by: The Asian Aimbot on February 13, 2017, 04:33:14 PM
I'll try that now. Thanks!

Edit: it worked!