Ulysses

Ulysses Stuff => Releases => Topic started by: nexbr on November 26, 2012, 08:20:58 AM

Title: UnoLimited - Change spawn limits per user group
Post by: nexbr on November 26, 2012, 08:20:58 AM
(https://raw.githubusercontent.com/ZionDevelopers/UnoLimited/master/logo.jpg)
UnoLimited v2.5.2 is based on the old UnoLimited v2.3 by JamminR and other contributors.

Features

New XGUI Interface:
(https://raw.githubusercontent.com/ZionDevelopers/UnoLimited/master/xgui.jpg)

Download Now: From Github (https://github.com/ZionDevelopers/UnoLimited/archive/master.zip) or From Steam Workshop (http://steamcommunity.com/sharedfiles/filedetails/?id=187192556)

For historical release, see archived release; http://forums.ulyssesmod.net/index.php/topic,3864.0.html (http://forums.ulyssesmod.net/index.php/topic,3864.0.html)
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: bobcat4848 on March 15, 2013, 09:33:08 PM
Can you do this with non-dedicated servers with a host?
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: nexbr on March 15, 2013, 09:42:58 PM
Can you do this with non-dedicated servers with a host?

I think it works with SinglePlayer or Listen Servers, never tested.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: JamminR on March 15, 2013, 10:43:12 PM
I think it works with SinglePlayer or Listen Servers, never tested.
Unless Gm13 changed, single player doesn't have limits. Guess garry figured you're limited by your hardware.
No idea what a listen server would do.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: JamminR on October 13, 2013, 09:42:43 AM
Though I think it was mentioned in the original release thread a few times, if you're using this on a non-Sandbox server, the gamemode you use will likely have some type of prop control and/or conflict with this.
UNoLimited was intended for Sandbox Build servers... your gamemode mileage may vary.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: xLiaMz on October 15, 2013, 05:32:24 AM
Could a limit of props per rank be implemented? So that you can make Administrators have so many along with the VIP... for e.g. VIP's can have 100 props as normal players can only have 50?
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: nexbr on October 15, 2013, 07:01:04 AM
That can be done, but need a complete Rewrite of the Module.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: xLiaMz on October 15, 2013, 08:00:07 AM
That can be done, but need a complete Rewrite of the Module.

Could you do that or would I need to?
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: nexbr on October 15, 2013, 08:02:12 AM
Well if you know LUA maybe you could do that.

I can do it, i just don't know when.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: xLiaMz on October 15, 2013, 10:39:41 AM
Well if you know LUA maybe you could do that.

I can do it, i just don't know when.

I don't know LUA :S I guess i'll just have to wait.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: JamminR on October 15, 2013, 07:50:53 PM
Uh, guys, no rewrite is necessary.
Unless nexbr really totally redid code to make it work (I didn't look)
Look at the top of the lua file.
Code: [Select]
-- The numbers are a percentage and will be multiplied to the actual sbox limit.
-- Range is 0 (0 percent) to 2 (200 percent). Setting a group to 0 will limit that group to nothing.
-- Example - Server has "sbox_maxprops 400" limit. .5 percent of that is 200 props.
-- Any group = .5 will have a 200 prop limit. However, 1.5 would give them 600
-- NOTE!!! - Any decimals will be rounded DOWN to nearest whole number.
-- If you allow sbox 1 of something...any multiplier below 1 will set that groups limit to 0. Any not 2 will be 1.
-- All groups not specified get 'standard' limit set in your server.cfg.
-- Any group set to -1 becomes unlimited
-- ==================
-- Edit the following table. Add groups as necessary. Add comma at end of previous line if additional added.

UNL.groups = {
superadmin = -1,
admin = 2,
operator = 1.5
}

That table is meant to be editable.
You add 'groups' as necessary.
Set multiplier 0 to 2 (nothing out of range)
group = #, that group would get <maxprops> multiplied by #
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: nexbr on October 15, 2013, 08:18:25 PM
Yes, i know that, but i'm rewriting all the code.

To Make UnoLimited more Flexible, not everybody knows how edit lua files.

So i'm adding a Panel on XGUI to do that.
Title: Re: [GM13+] UnoLimited - No spawn limits for Admins or SuperAdmins
Post by: xLiaMz on October 19, 2013, 05:08:14 AM
Yes, i know that, but i'm rewriting all the code.

To Make UnoLimited more Flexible, not everybody knows how edit lua files.

So i'm adding a Panel on XGUI to do that.

Have you updated it?
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nexbr on October 19, 2013, 05:38:23 AM
As you can see on the Top of the Topic Yes.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: JamminR on October 19, 2013, 08:21:14 AM
Great work.
Thanks for bringing this to the modern Ulib and Gmod era.

EDIT - Oh, and though I don't have any strict 'version number' rules, the vague ideas I have about them in my head would have this perfectly fine at version 3.0.
You've made it yours..a new version number seems worthy. :)
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nexbr on October 19, 2013, 08:23:26 AM
Great work.
Thanks for bringing this to the modern Ulib and Gmod era.

OK, I'm glad you liked.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: xLiaMz on November 04, 2013, 11:41:55 AM
Doesn't work for 2.5. DarkRP? I've set Admin's etc to have more props, however they dont? I have 60 default on the server and when I put Administrator to have 2.0 they dont have 120? When I put SuperAdmin's to Unlimited they can only have 60.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: JamminR on November 04, 2013, 12:09:18 PM
Liam, years ago during my role in UnoLimited, I found that DarkRP uses some of the exact same functions to limit banned props and other limits as UnoLimited does.
It was a conflict that couldn't be helped, other than to not try to use both.
It's likely the DarkRP code hasn't changed, and you'd need to most likely ask the DarkRP authors to write in the same 'group limit' functions as UnoLimited does.
Reference old thread discussion history @ http://forums.ulyssesmod.net/index.php/topic,3864.msg17257.html#msg17257 (http://forums.ulyssesmod.net/index.php/topic,3864.msg17257.html#msg17257)
Nexbr may of course dig deeper and verify, but that would be my guess.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nexbr on November 04, 2013, 12:51:20 PM
Doesn't work for 2.5. DarkRP? I've set Admin's etc to have more props, however they dont? I have 60 default on the server and when I put Administrator to have 2.0 they dont have 120? When I put SuperAdmin's to Unlimited they can only have 60.

Try change to Max Value Multiplier, but i think is that DarkRP is OverWriting these Hooks.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: xLiaMz on November 04, 2013, 02:24:40 PM
Liam, years ago during my role in UnoLimited, I found that DarkRP uses some of the exact same functions to limit banned props and other limits as UnoLimited does.
It was a conflict that couldn't be helped, other than to not try to use both.
It's likely the DarkRP code hasn't changed, and you'd need to most likely ask the DarkRP authors to write in the same 'group limit' functions as UnoLimited does.
Reference old thread discussion history @ http://forums.ulyssesmod.net/index.php/topic,3864.msg17257.html#msg17257 (http://forums.ulyssesmod.net/index.php/topic,3864.msg17257.html#msg17257)
Nexbr may of course dig deeper and verify, but that would be my guess.

So I have to ask the creators, That's going to be a mission. :S
Thanks for the reply anyway :)

Try change to Max Value Multiplier, but i think is that DarkRP is OverWriting these Hooks.

I don't understand?
Thanks for the reply. :)
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nexbr on November 04, 2013, 02:28:16 PM
Try Move the Limit Slider to Maximum value.

But i think the problem is DarkRP, It are Overwriting the UnoLimited Limits Manager.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nexbr on November 04, 2013, 04:19:20 PM
I think i know a way to Overwrite DarkRP or any other Gamemode, i'll update the Addon in the next days.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: JamminR on November 04, 2013, 07:06:41 PM
I don't understand?
He's saying try setting a different setting, but, he believes DarkRP uses the same Gmod hooks that UNoLimited does.
The same answer as me but with an additional step.

I think i know a way to Overwrite DarkRP or any other Gamemode, i'll update the Addon in the next days.
Be careful..though you could set a ULib hook priority value (http://ulyssesmod.net/docs/files/lua/ulib/shared/hook-lua.html#hook.Add), you might break what other mods, including DarkRP, are using to do.
I think DarkRP uses the hooks for prop banning. (I've not looked at the DarkRP code in years to know)
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: xLiaMz on November 05, 2013, 08:26:34 AM
I think i know a way to Overwrite DarkRP or any other Gamemode, i'll update the Addon in the next days.

This would be good if you can do it, thanks.

EDIT- This was my response when asking him (https://github.com/FPtje/DarkRP/issues/1149)
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nexbr on November 05, 2013, 11:43:11 AM
I just tested UnoLimited on DarkRP.

it is working Fine.

(https://dl.dropboxusercontent.com/u/18850333/hl2%202013-11-05%2017-37-16-49.jpg)
(https://dl.dropboxusercontent.com/u/18850333/hl2%202013-11-05%2017-37-47-41.jpg)

Try update your DarkRP.

And check if you have any other addon that can restrict Props limits.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: xLiaMz on November 06, 2013, 08:16:51 AM
I'm using DarkRP 2.5 and im 100% sure its not working for me, Ill test it again soon and give you the results.

EDIT - Working now, I don't know what I did but i believe it is (I tried this with max props set to one, hope it works when its 60)
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: xLiaMz on November 09, 2013, 06:39:51 PM
The limit doesn't count when trying to stack things, idk if you could edit this or if its stacker's fault anyway thought I'd let you know.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: xLiaMz on November 20, 2013, 12:09:13 PM
Last post - "The limit doesn't count when trying to stack things, idk if you could edit this or if its stacker's fault anyway thought I'd let you know."

Also, would this have something to do with certain ranks not been able to spawn in any props?
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: JamminR on November 20, 2013, 03:14:30 PM
Liam, It works for nexbr and I in Sandbox.
It works for nexbr in his quick test of DarkRP.
It's likely you have another addon that's conflicting in someway.
If there's another mod that overwrites the same garry's functions UnoLimited uses, then no, there's no way nexbr (or I) can edit to fix.
It's up to you to determine those answers, and the DarkRP author is apparently not going to help you by adding group limits.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: nex86 on March 14, 2015, 02:44:34 PM
it does not pop up in xgui and neither in the permissions.
I have it installed correctly like the other mods. what is the problem here?
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: filipok911 on December 06, 2015, 05:25:27 PM
really useful addon, specially for taking off limits on DarkRp for super admins. Only i get an error upon launching my server.

[ERROR] addons/unolimited-master/lua/von.lua:127: vON: Malformed data... Can't f
ind a proper type definition. Char#2:'
  1. error - [C]:-1
   2. d_findVariable - addons/unolimited-master/lua/von.lua:127
    3. deserialize - addons/unolimited-master/lua/von.lua:224
     4. loadSave - addons/unolimited-master/lua/unolimited/library/server.lua:47

      5. unknown - addons/unolimited-master/lua/unolimited/initializer.lua:35
       6. include - [C]:-1
        7. unknown - addons/unolimited-master/lua/autorun/_unolimited_loader.lua
:37

Does anoyone know what could be the problem? Thanks.
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: JamminR on December 06, 2015, 05:37:53 PM
Likely not compatible with non-Sandbox gamemodes.
http://forums.ulyssesmod.net/index.php/topic,6720.msg32735.html#msg32735
Title: Re: UnoLimited -- Change Spawn Limits per User Group.
Post by: filipok911 on December 06, 2015, 06:04:20 PM
Too bad it wont work properly on darkrp mod.
Title: Re: UnoLimited [BACK FROM THE DEAD]
Post by: nexbr on January 16, 2017, 05:15:20 PM
UnoLimited is back from Death!, Like a phoenix, Fixed, tested and ready to roll!
Title: Re: UnoLimited - Change spawn limits per user group
Post by: JamminR on January 16, 2017, 06:39:23 PM
Haha. I was so about to come to this post expecting a necro post that I'd have to move the release to the archives.
I'm glad the necro is due to a phoenix.
So nice to see stuff I dreamed, re-envisioned, re-awakened from a long cold entombed hibernation.