Author Topic: UnoLimited - No spawn limits for Admins or SuperAdmins  (Read 96415 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 #60 on: February 14, 2010, 09:12:29 PM »
I've attempted to find Spacebuild2 download for testing, and haven't been able to.
Have a link for download or an SVN link for it?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline koolaid

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #61 on: February 14, 2010, 09:59:09 PM »
no i dont know where my friend got the download for it. It's his server I was just posting it for him but he got it working.

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 #62 on: February 15, 2010, 04:42:05 AM »
Ok, glad he got it working... was there something I can change for SB2 servers to work?
I can't guarantee compatibility for every gamemode made, but I like to know just in case I can.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline superkyol

  • Newbie
  • *
  • Posts: 32
  • Karma: 2
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #63 on: February 16, 2010, 09:19:52 PM »
Any way to add functionality for specific users as well as groups?

And will there be future support for simple addition instead of multiplication?
Example: sbox_maxvehicles is 0, but for a certain group I want to allow them +2 vehicles. And of course if I try to use the current multiplication factor, anything multiplied by 0 is 0, therefore kaput.

Thanks!
« Last Edit: February 17, 2010, 09:37:04 AM by superkyol »

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 #64 on: February 17, 2010, 03:33:35 PM »
Any way to add functionality for specific users as well as groups?
Absolutely!
Will I be doing it; no.
It would complicate the simplicity of this addon to have to keep track of players settings too.

And will there be future support for simple addition instead of multiplication?

Most likely no; but, it is something to perhaps consider.
Though I could write in a comparison that if sbox_whatever = 0 and multiplier > .99 then sbox_ = 1 else if multiplier = 2 then sbox = 2, then I'd have people complaining that they didn't want people with 1 or higher to have sbox 0 items.
Multiplication just works for majority of the design I had behind the check system.
Attempt tp write in more controls per player, per sbox item, per check, just cancels out the easy way this works.

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

Offline superkyol

  • Newbie
  • *
  • Posts: 32
  • Karma: 2
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #65 on: February 17, 2010, 05:19:05 PM »
I'm not really a script writing kind of person, not anymore. How difficult would it be to code the suggestions I've made, for someone with Java and PERL background experience and knowledge of scripting protocol?

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 #66 on: February 17, 2010, 07:36:07 PM »
My background before I learned Lua was, in chronological order, TRS80 BASIC, C64 BASIC, MS/PC DOS batch/command shell, PHP 4, tidbits of variants of *nix shells (tcsh, bash, ...), and just a good ability to read what some script is doing even if I don't know original construct.
So, since you have background, your 'addition' idea wouldn't be difficult. Shouldn't take more than a if/then comparison or two like I kind of outlined in my previous reply to your idea.
As for per player modification....well, that would not only take Lua experience, it would require a bit of experience with ULib and the UCL.
I don't mean to scare you away from it. It can just get complicated at times depending on what you're trying to do. Version 2 of this script uses so little ULib integration now.. it just looks up what group someone is in...then sets the limit multiplier if they belong to a predefined group or not.(1 if not)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline superkyol

  • Newbie
  • *
  • Posts: 32
  • Karma: 2
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #67 on: February 17, 2010, 09:05:31 PM »
C64 BASIC? You don't say! I started using a Commodore PET when I was only a few years old, moved up to C64 a year later, and QBASIC on an IBM not long after that.

I'll take a crack at making a per-user system, see if I can come up with my own little ULX/ULib addon within the next few weeks.

Thanks for all your help!

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 #68 on: February 18, 2010, 03:38:59 PM »
In order greatest to least recommended, the following should help you.
Lua 5.1 documentation - http://www.lua.org/manual/5.1/

ULib documentation - http://ulyssesmod.net/docs/index/General.html

Gmod Lua wiki - http://wiki.garrysmod.com/?title=Lua

If you have questions or want general help, use our Developers corner area. Most here would assist even in non-ULib related Lua.
Some would also help with SQL, and though fewer, maybe even some with other languages, scripting construct or not.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mishappp

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #69 on: March 03, 2010, 09:39:31 PM »
You probably wont consider this but this plugin disables bannedprops for every user in darkrp, I know ulx was not intended to be used in rp but it is being used by a lot of people and I would love to use this plugin.

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #70 on: March 04, 2010, 12:54:35 PM »
Not urgent IMO but just reporting that uRestrict breaks the svn version of this. It makes it so that you can't spawn anything.

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 #71 on: March 04, 2010, 03:41:14 PM »
disables bannedprops
ULX as an admin mod was meant for any game mode.
Certain features of ULX, and many of it's plugins, were meant for Sandbox.
Whatever author of the bannedprops feature within darkrp should also be able to write in a prop limit adjustment depending on whatever system darkrp uses to control it's class/group/team/job/whatever system.

uRestrict breaks the svn version of this.
Thanks for the info.
 Jay asked me if he could include this feature in URestrict... guess he did.
I've not looked at URestict code much... perhaps he (should include/included) a way to use one over the other?
At the least if his works, guess you don't need UnoLimited.
URestrict is meant to be all inclusive... UnoLimited was simpler in scope.
« Last Edit: March 04, 2010, 03:48:56 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline stanlee

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • XtremeServerGaming
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #72 on: March 06, 2010, 03:25:05 PM »
Does this let you set prop limits to groups?

Great Mod!
ADD ME ON STEAM:   sirusmaximu
I'm always in the need of good lua coders!

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #73 on: March 06, 2010, 05:36:55 PM »
Quote from: JamminR
UnoLimited v2 (ENHANCED) ;

    * Requires ULib 2.4+
    * Allows you to set a multiplier (0 to 2, can used decimals .75 , 1.5, etc) for each group you wish to control.
    * Defaults to 1 (standard limit) if you do not set up a custom group.
    * Allows setting a group 'unlimited' using "-1"
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 dpoolas

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: UnoLimited - No spawn limits for Admins or SuperAdmins
« Reply #74 on: April 02, 2010, 02:09:57 AM »
little problem i put this on my server and now nobody can spawn anything i need some serious help