ULX

Author Topic: UnoLimited - No spawn limits for Admins or SuperAdmins  (Read 96445 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #15 on: March 29, 2009, 08:46:13 AM »
is there anyway to get unolimited to recognise us as admins?

This uses the Gmod standard "IsUserGroup" to check for both a group named admin or superadmin.
If the player isn't found to be in one of those groups, limits get set.
If using ULib, you can set your custom groups to inherit either admin or superadmin, and they should work without limits from there.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline 123dan5

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #16 on: April 06, 2009, 05:02:51 PM »
Cool thanks for this, its very nice :)

Offline ahref

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 4
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #17 on: April 07, 2009, 06:33:40 AM »
This uses the Gmod standard "IsUserGroup" to check for both a group named admin or superadmin.
If the player isn't found to be in one of those groups, limits get set.
If using ULib, you can set your custom groups to inherit either admin or superadmin, and they should work without limits from there.
inheritance worked fine thanks ! L:D

Offline cheiftiger

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #18 on: June 22, 2009, 11:49:01 AM »
Awesome Addon. I recently began coding an RP server and I didn't want this as a seperate addon so I incorporated it into the ULX files and added a ConVar to toggle it and also added a button to the admin menu and it works great! Thanks Jammin, You da man! (b^_^)b

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #19 on: June 22, 2009, 08:59:38 PM »
Thanks. Again, team effort. 97% Garry - 2% Megiddo writing past limits, 1% me correcting some syntax, working past Garry's updates, and putting it in addon format.

We love simplicity  :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #20 on: July 24, 2009, 04:12:49 PM »
All/anyone - I'm considering updating this to allow group configuration.
I intend to make (yet another one!) a configuration area where anyone can set the groups they want and what level.
I believe the best way would be to allow whole/or decimal multipliers over the actual server limit.
This, at least in my mind, allows 'autoadjust' during any live game.
So this way, no hard code within UNoLimited exists on any limit. Props, ragdolls, vehicles, etc.
Theoretical;
sbox_maxvehicles = 1
sbox_maxprops = 200
sbox_maxragdolls = 1

Superadmins - no limit - can go above server settings as per version 1.1
Admins - (2 x limit) + limit (600 props, 3 vehicles, 3 ragdolls)
<group a> - (1.5 x limit) + limit = ( 500, 2(rounded), 2(rounded)
<group b> - (1 x limit) + limit = ( 400, 1, 1)
<group c> - (.5 x limit) + limit = ( 300, 1, 1)
...
you get the idea I hope.

Some variable would need to be made if limit is actually less than 1...set limit to 0 or 1 decided by host

The above would allow changing server limits at any time. If you wanted to increase limits for props... this would still limit without a server restart to the percentage of props, still keeping all the other sbox_max limits

Anyone else have any other/better ideas?
« Last Edit: July 24, 2009, 04:23:39 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #21 on: July 24, 2009, 10:07:51 PM »
Sounds great. Pretty much exactly what I would have done if I had carried out the project. :)
Experiencing God's grace one day at a time.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #22 on: July 27, 2009, 06:07:28 PM »
Since today's update (27th July '09), UnoLimited has been broken.
I am superadmin on my server, in the gmod settings and in ULX, and it has always worked before. I have been hitting all the limits, and have even tried lua_openscript'ing the unolimited file, but it still won't work.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #23 on: July 27, 2009, 08:16:49 PM »
Any errors in server console, before, during, or after attempting to go past limits?
Any errors in client console? (Same)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #24 on: July 27, 2009, 08:20:26 PM »
It works fine on my server.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #25 on: July 27, 2009, 08:28:14 PM »
I see the blatant screaming change within his code. Go ahead and provide me any errors, as it may assist finding less blatant issues.
This all boils down because Garry changed a Metatable name. Abbreviated it from GAMEMODE: to GM:
It's more efficient, saves bytes later, but, just a little thing that can break so much.
Until I get a fix link, go ahead and change all your GAMEMODE: to GM: within addons\UNoLimited\lua\autorun\server\UNoLimited.lua

It works fine on my server.
Did you update your server?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #26 on: July 28, 2009, 07:19:29 AM »
I see the blatant screaming change within his code. Go ahead and provide me any errors, as it may assist finding less blatant issues.
This all boils down because Garry changed a Metatable name. Abbreviated it from GAMEMODE: to GM:
It's more efficient, saves bytes later, but, just a little thing that can break so much.
Until I get a fix link, go ahead and change all your GAMEMODE: to GM: within addons\UNoLimited\lua\autorun\server\UNoLimited.lua
Did you update your server?

Yes, my server is up to date.

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #27 on: July 28, 2009, 04:51:54 PM »
Hm.
After 5 reboots mine is working again  ;D

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #28 on: July 28, 2009, 06:55:46 PM »
Glad it works. I posted on facepunch to get a reaction.
Seems as cold there as it ever has been. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #29 on: August 10, 2009, 07:13:14 PM »
-snip-

I do like your feature ideas and would probably use them on my server. However, by "I intend to make (yet another one!) a configuration area..." do you mean have a separate UnoLimited.cfg file that defines how much each group can spawn and then pull the users from ulib? Or do you mean define a completely separate group and users list? One of these methods obviously requires ulib. My point is that we already have two user/group systems. Right now we have ulib's and Garry's Mod's users.txt files. I (and assume others) put players in both files for compatibility with other add-ons. If UnoLimited doesn't utilize ulib (to be a stand-alone add-on), it would just make this more of a hassle then it already is.