Ulysses
Ulysses Stuff => Releases => Topic started by: emilhem on June 26, 2013, 11:24:15 AM
-
AutoPromote is a lightweight UTime-integrated alternative to other promotion systems such as APromotion.
Since it has been forever since the last developer of AutoPromote gave it up, I fixed it and created a new topic for it.
Original topic (http://forums.ulyssesmod.net/index.php/topic,3826.0.html)
Feature suggestions are accepted but I can't promise anything. I might take on AutoPromote XGUI soon though.
FAQ:
Q: What is AutoPromote?
A: AutoPromote automatically promotes players to different groups based on their time on the server.
Q: Requirements for AutoPromote?
A: AutoPromote requires ULX, ULib, and UTime!
Q: How do I set different groups to be promoted?
A: In the file lua/ulx/modules/sh/autopromote.lua you can add/change groups in the promotes array at the top.
This is the format: { hours = [The amount of hours a player need to level up], group = "[Groupname CASE SENSITIVE!]", name = "[Name to be displayed when player is promoted]" }
Example: { hours = 5, group = "Regular", name = "Regular" }
Changelog:
Version 4.1 (2013-06-25)
Released by Emilhem
*It really works now with Garry's Mod 13!
*Added more documentation in code how to not "create" the unlimited promotion "bug".
*Added the option to disable sound while keeping the effects turned on. And you can do the opposite as well.
*Added console message when player joins that says how many hours he/she's been on.
*Changed folder and file names to lowcaps to make it easier to administer on GNU/Linux OS's.
----------------------
Version 4.0
Released by Emilhem
*Works with Garry's Mod 13!
----------------------
Version 3.2
Released by Smithy
*Fixed a pretty major flaw in the code, where it would only exclude the last group in the excludes table.
----------------------
Version 3.1
Released by HOLOGRAPHICpizza
*Now loads as a ULX module.
*Calls ULX promote function directly, instead of through a console command.
----------------------
Version 3.0
Released by Smithy
*Fixed and simplified code, almost a complete rewrite (based on V2)
*Added chat notifications for when you get promoted.
----------------------
Version 2.0
Released by Major_Pain
*Fixed code
*Almost complete rewrite
---------------------
Version 1.0
Released by HOLOGRAPHICpizza
*Initial release
*Autopromotion based on UTime, groups and times defined in the script
License:
The MIT License
Copyright (c) 2009 Michael Craft (HOLOGRAPHICpizza)
Copyright (c) 2009 Major_Pain
Copyright (c) 2009 Smithy
Copyright (c) 2013 Emil Hemdal (Emilhem)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
You need to be signed in to see the attachment!
-
Continuum
:P
Go ahead and work on XGUI too.
They'll go hand in hand.
-
Well done!
-
I am not sure if the Exmaple is correct:
Example: { hours = 5, group = "Regular", name = "Regular" }
It says group = "Regular"
Note the capital R.
Since groups are case sensitive wouldnt all groups be small letters in ULX or am I missing something O.o
Also cookies to you! I will be trying this out and see if it works with my Scoreboard Rank Bar :o
-
I am not sure if the Exmaple is correct:
Example: { hours = 5, group = "Regular", name = "Regular" }
It says group = "Regular"
Note the capital R.
Since groups are case sensitive wouldnt all groups be small letters in ULX or am I missing something O.o
Also cookies to you! I will be trying this out and see if it works with my Scoreboard Rank Bar :o
I've tested it. Apparently it is case sensitive. I tried with a group called "captain" and it promoted me but it continued every 15 seconds and the promotion didn't stick till the next time I joined! Then I tried with "Captain" and it worked as it should. Could anyone confirm that I'm right or that it does as it is supposed to? I should be since I've done extensive testing with a friend.
-
Always use lower case when it comes to groups in Gmod and ULib.
Teams can be mixed case.
We've written our parser, and commands to modify user input, for groups in lower case.
We have seen some space and case input issues with XGUI, but I thought Stickly/Megiddo had corrected those.
-
Always use lower case when it comes to groups in Gmod and ULib.
Teams can be mixed case.
We've written our parser, and commands to modify user input, for groups in lower case.
We have seen some space and case input issues with XGUI, but I thought Stickly/Megiddo had corrected those.
We did add the groups in XGUI when we tested it. Haven't gotten around to test it again though.
-
could anyone tell me whats wrong with this? i cant seem to get auto promote to work.
promotes = {
{ hours = 1, group = "starter", name = "Starter" },
{ hours = 3, group = "builder", name = "Builder" },
{ hours = 8, group = "regular", name = "Regular" },
{ hours = 15, group = "respected", name = "Respected" },
{ hours = 24
, group = "member", name = "Member" }
, { hours = 48, group = "senior", name = "Senior" },
{ hours = 100, group = "alty", name = "Alty" },
{ hours = 300, group = "alty As ", name = "Alty As " }
---------IF A PLAYER IS A MEMBER OF THESE GROUPS THEY WONT GET PROMOTED.......EVER
-- Same here as the previous group names
excludes = { "admin", "superadmin", "Owner", "owner" } -- I have both Owner and owner in case you would end up capping the owner group.
-
so has anyone tested what works?
-
so has anyone tested what works?
Of course it works. :P
The test is just a potential XGUI bug. Just make sure to type your groups in lower-case when you create them.
-
Please post this in the autopromote thread, as autopromote isn't officially supported by Team Ulysses (though we're very happy it exists!).
-
ohk, thank you :D, but regarding your example: hours = 5, group = "Regular", name = "Regular", would i do this instead: hours = 5, group = "regular", name = "regular"
-
ohk, thank you :D, but regarding your example: hours = 5, group = "Regular", name = "Regular", would i do this instead: hours = 5, group = "regular", name = "regular"
I've tested it. Apparently it is case sensitive. I tried with a group called "captain" and it promoted me but it continued every 15 seconds and the promotion didn't stick till the next time I joined! Then I tried with "Captain" and it worked as it should. Could anyone confirm that I'm right or that it does as it is supposed to? I should be since I've done extensive testing with a friend.
That is the potential XGUI bug.
If you try AutoPromote out please don't hesitate to comment in this forum if it's not working as intended.
Also if it works for you please leave a thanks or just say that it works.
-
thank u so much! it works!! ;D
-
I don't suppose there would be a way to supplement this with some manner of progress bar to indicate when the next rank will be achieved? I think that would be a pretty useful feature, considering a lot of people ask when the next rank up is.
-
ive a problem with my autopromotion...
every 10 seconds, in the console it tells the game that a person has been promoted! almost like spamming the console chat with the same command. does anyone know how to fix this? ive got utime working, autopromotion and my own lua file for different ranks (so i can manually assign peoples ranks)
does anyone know how to fix this repetitive console command for autopromote?
-
Well. Are you using the latest version of AutoPromote? If you're not then it will not work.
I have no problem with it.
-
This is okay, and interesting. Though I prefer the xgui version of Autopromote.
This is nice though. :)
-
It's a very nice addon!
The only problem I have is that everytime the map changes it tries to download the promotion sound.
But it doesn't play it actually. Also I found out there is an effect folder? Does it work?
-
It's a very nice addon!
The only problem I have is that everytime the map changes it tries to download the promotion sound.
But it doesn't play it actually. Also I found out there is an effect folder? Does it work?
Well are you trying to use FastDL? I'm afraid that I can't really help you with that except with this helpful links:
http://forums.ulyssesmod.net/index.php/topic,5922.msg27584.html
The effect folder is for the effects that shows when someone "levels up".
-
Go ahead and work on XGUI too.
They'll go hand in hand
-
Is it still working ? I just downloaded it and extracted it to my addons and It's not showing in the settings ??
-
Mak, you won't see settings.
You have to edit a file for settings as stated in the first post FAQ, 3rd question "Q: How do I set different groups to be promoted?"
-
I installed this correctly and editted the lua to my liking but when everyone spawns, you dont have a crowbar and you cant go holstered. The round also does not start and there is no karma.
-
::Deleted::
Some disgruntled user, complaining about the need to register to download from the forums. Except, he did so through the use of extreme profanity.
We don't have time for that kind of behavior. I hope he was able to download what he needed.
-MrP
-
Beat me to it.
-
Add a note in the config saying to use lowercase on the group because I doubt people read comments when downloading- or add code to lowercase it automagically.