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

0 Members and 2 Guests are viewing this topic.

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #375 on: July 29, 2013, 10:16:17 AM »
Would there be any way to edit this to include custom sbox_limits, for example I'm trying to limit sbox_max_acf_ammo so that new players can't spawn ammo, for fear of minges but later ranks can.
The only line I could find which might be the one to edit is in urs_server.lua:

Code: [Select]
local limittypes = { "vehicle","effect", "npc","ragdoll","prop","sent" }
Would I simply add in "acf_ammo" to that list?
[/url]

Offline Epsilon

  • Newbie
  • *
  • Posts: 19
  • Karma: -1
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #376 on: July 29, 2013, 12:10:53 PM »
I was wondering the same thing with regards to all the default sbox limits as well.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #377 on: July 30, 2013, 01:32:09 PM »
You can limit the weapons that are spawned?  You can do the same with picking up the weapons.

ulx restrict swep weapon_ar2 superadmin

I do not do much with sbox limits.  It's all done with lua and any custom limits you set.  I merely hook into the spawning and check how many you have.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #378 on: July 30, 2013, 03:44:27 PM »
I just fixed an Advanced Duplicator 2 issue someone was having.  That took forever but I pushed it out already.  I also updated the main page with updated links and what not.  The wiki is just starting out but I'll update it more.

Offline Epsilon

  • Newbie
  • *
  • Posts: 19
  • Karma: -1
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #379 on: July 31, 2013, 03:15:36 AM »
I do not do much with sbox limits.  It's all done with lua and any custom limits you set.  I merely hook into the spawning and check how many you have.

So, can you explain how one might add more custom limits, such as a limit for sbox_dynamite?

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #380 on: July 31, 2013, 11:40:15 AM »
You want to limit the amount of dynamite able to be spawned for each group?  There is currently no real easy way to add that.  You/I would have to do a bit of coding for that.  I created a issue (which is also sort of like a todo) on github. 
https://github.com/Aaron113/URS/issues/3


Also, any feedback on the new wiki would be appreciated.  You can even edit it yourself if you wish.
https://github.com/Aaron113/URS/wiki

Offline Tristian Wood

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #381 on: August 11, 2013, 08:30:39 PM »
Today I fresh installed URS and ULX and I got this error after typing in ulx print all
Code: [Select]
[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
Owner of soul gaming




Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #382 on: August 11, 2013, 09:45:29 PM »
I posted on github as well, but can you post your data files for me?  Perhaps they're in the old format?  That would likely cause this.

Offline Tristian Wood

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #383 on: August 11, 2013, 10:41:58 PM »
They're really old. But I deleted them and it didnt work.
« Last Edit: August 11, 2013, 10:47:01 PM by Tristian Wood »
Owner of soul gaming




Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #384 on: August 12, 2013, 08:18:06 PM »


Mine works just fine.  Are you updating with the correct SVN (it was changed)?

EDIT:  I also updated the workshop addon.
« Last Edit: August 12, 2013, 08:38:22 PM by Aaron113 »

Offline Tristian Wood

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 0
Owner of soul gaming




Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #386 on: August 13, 2013, 09:29:45 AM »
Can you do me a favor and type "lua_run PrintTable(restrictions)" in your SERVER'S console and post it here for me?  It's saying that there is no table in the error.  If that errors, then something is likely overriding the variable.  Or it isn't loading the data files properly.

Offline Tristian Wood

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #387 on: August 14, 2013, 05:20:12 AM »
I got
Code: [Select]
[ERROR] lua/includes/util.lua:54: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. PrintTable - lua/includes/util.lua:54
3. unknown - lua_run:1
When doing it.

I fixed it, I had to delete my old restrictions/limits/loadout files. Is there an easy way to convert the following into the new format?
http://pastebin.com/7qUB491j

Can you add me on steam please: Darkolking -S?-
« Last Edit: August 14, 2013, 05:55:40 AM by Tristian Wood »
Owner of soul gaming




Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #388 on: August 14, 2013, 12:24:16 PM »
So it is your data files.  I honestly am not sure what format it is using.  I'll tinker with it a bit.

EDIT:  If you know what version you were previously using, I could probably help.
« Last Edit: August 14, 2013, 12:35:48 PM by Aaron113 »

Offline Tristian Wood

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 0
Re: URS BETA - A Highly Customizeable Restriction System (or will be)
« Reply #389 on: August 14, 2013, 11:10:50 PM »
I'm pretty using the following version
« Last Edit: August 14, 2013, 11:21:39 PM by Tristian Wood »
Owner of soul gaming