Ulysses

Ulysses Stuff => Releases => Topic started by: Lead4u on June 23, 2011, 03:08:53 PM

Title: APromote GUI
Post by: Lead4u on June 23, 2011, 03:08:53 PM
(http://cloud-2.steampowered.com/ugc/451786796248378282/4C993AF63B4A87210A746D79CC072187F05A08A0/200x200.resizedimage)
Updated!!!

APromote GUI is a GUI/Real time alternative to the standard AutoPromote offered here.

Features:

Requires:
(http://lead4u.org/pictures/apsmall.png) (http://lead4u.org/pictures/apbig.png)
Special thanks to Stickly Man for putting up with all my questions <3.


Subscribe here: http://steamcommunity.com/sharedfiles/filedetails/?id=226312488 (http://steamcommunity.com/sharedfiles/filedetails/?id=226312488)
Title: Re: APromote GUI
Post by: Stickly Man! on June 23, 2011, 03:20:28 PM
Very nice! Glad you finally got a post here :P I hope many people find it useful! (and it uses XGUI! :D)
Title: Re: APromote GUI
Post by: JamminR on June 23, 2011, 08:05:07 PM
The confetti isn't a lie!
Surprise! *sounds of party horns*
Title: Re: APromote GUI
Post by: krooks on June 24, 2011, 05:59:55 PM
Awesome job!
Someone should create an addon that does confetti anytime anyone is promoted/demoted by any means, that's such a cool feature!
Title: Re: APromote GUI
Post by: ThatBum on July 10, 2011, 08:36:13 PM
The message when someone gets promoted is sort of ugly, just the Ulib "Console added X to group Y" message. It would be nice to have the original AutoPromote message when someone gets promoted.
Title: Re: APromote GUI
Post by: Lead4u on July 12, 2011, 11:23:54 AM
I couldn't find any obvious way to get rid of the original message without causing a Lua error, and I didn't like having two messages... if someone here could suggest a way to suppress the console message I'm more than willing to change it.
Title: APromote GUI
Post by: Megiddo on July 12, 2011, 02:30:10 PM
ULib.ucl.addUser I believe? The docs are at http://ulyssesmod.net/docs
Title: Re: APromote GUI
Post by: JamminR on July 12, 2011, 02:33:40 PM
Bah, Megiddo sniped me while I was typing.
My original response. (Which, is essentially what Megiddo said in so few words)
-------------
Take a copy of the ulx function that you use to modify access (presumably, adduser), localize it (local function myPromote(...) ) pass it the parameters you need yourself, making sure they are checked for validity before being passed (ulx adduser does this already, but, you aren't going to make it a console command like we do)... run the function when needed with passed parameters.
You can edit the fancylog and log statements as needed within your own copy.

Now that I've said that, Megiddo and maybe even MrPresident will have a much simpler solution. :)
Title: Re: APromote GUI
Post by: Aaron113 on July 12, 2011, 02:39:46 PM
You'll need this (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser) and this (http://ulyssesmod.net/docs/files/lua/ulib/shared/messages-lua.html#tsayColor).

EDIT:  I'll write if up if you need.
Title: Re: APromote GUI
Post by: sweetone on December 19, 2011, 04:38:36 PM
Propably fun addon but we don't have working download link. :<
Title: Re: APromote GUI
Post by: Lead4u on December 19, 2011, 07:55:06 PM
Its hosted on garrysmod.org which is down right now.
Title: Re: APromote GUI
Post by: sweetone on December 19, 2011, 08:12:41 PM
Its hosted on garrysmod.org which is down right now.

Thanks :D
Title: Re: APromote GUI
Post by: strk9 on February 19, 2012, 10:16:52 PM
hmmm... is there any way that i can make it to where i assign the group and after a certain amount of time lets say 720 hours or 1 month it demotes them back to guest?
Title: Re: APromote GUI
Post by: Lead4u on February 21, 2012, 01:02:59 PM
Not with this addon no.
Title: Re: APromote GUI
Post by: Xtreon on August 17, 2012, 04:24:06 PM
Thank you very much, I love this add-on and my server would not be the same without it.

Some suggestions that would make this add-on more popular and way better are:

1) Add an optional Fanfare sound at rank up.
2) Add an optional center screen display for the player that ranked up displaying Customised details about that rank or whatever the owner or whoever is running the add-on settings decides. Example: The owner can make text pop up in the center of the screen for player who ranked up saying whatever is set to say when that rank is added. also the owner can optionally make it display different text in the center of all other players screens than the player that ranked up. (So person X will rank up and see details about his rank or whatever is set while everyone else sees "Player X is now in the rank "rankname" or whatever the custom message is)


Another thing that would  be the most important thing to add is: to kill the player that ranked up, this is because if you have it so that a certain rank has certain weapons, when they first join the server or there next rank has a different loadout then their current one, they have all weapons/old weapons until they reconnect to the server or are killed. (I'm using URS to set loadouts and restrictions)
Title: Re: APromote GUI
Post by: Wully616 on November 12, 2012, 01:13:36 PM
Does anyone have a fixed version of this? When using it in my server I get the following lua error:
Code: [Select]
[ERROR] addons/autopromotegui/lua/ulx/xgui/settings/cl_apromote.lua:19: attempt to call field 'makepanellist' (a nil value)
  1. unknown - addons/autopromotegui/lua/ulx/xgui/settings/cl_apromote.lua:19
   2. include - [C]:-1
    3. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:121
     4. Call - addons/ulib/lua/ulib/shared/hook.lua:168
      5. fn - addons/ulib/lua/ulib/cl_init.lua:45
       6. unknown - addons/ulib/lua/ulib/shared/hook.lua:168
        7. LocalPlayer - [C]:-1
         8. unknown - addons/utime/lua/autorun/cl_utime.lua:138

Unfortunately I am no good with lua and have no idea how to fix it :(
Title: Re: APromote GUI
Post by: JamminR on November 12, 2012, 07:20:03 PM
Quote from: Lead4u last active
Last Active:
    April 25, 2012, 11:03:13 PM

As majority of the GUI code was redone in Gmod13 (as Stickly Man can attest, with the 4398489230^2 fixes he did to XGUI), it's likely not soon coming unless you try to reach the author by PM.
He's not been here since months before GM13 was released.
Title: Re: APromote GUI
Post by: Stickly Man! on November 13, 2012, 09:16:06 AM
Ah the dreaded panellist. I may be able to ping the author and see what he's up to-- otherwise he pretty much used the code I had in a different XGUI panel, and it should be a 'relatively' simple fix.
Title: Re: APromote GUI
Post by: Wully616 on December 15, 2012, 10:02:10 AM
Ah the dreaded panellist. I may be able to ping the author and see what he's up to-- otherwise he pretty much used the code I had in a different XGUI panel, and it should be a 'relatively' simple fix.

Did you manage to get a hold of the author stickly? I think wrex had a fixed version of this or the non-gui version of auto promote, but I can't get a hold of him either.
Title: Re: APromote GUI
Post by: justinboggs on December 17, 2012, 02:11:20 AM
is there anyone that knows how to fix that i need a copy of this also
Title: Re: APromote GUI
Post by: Bite That Apple on December 22, 2012, 11:30:07 PM
I've spoken with Lead4u on steam to see if he was going to update this at all. He told me this, "When I have time I'll fix it, maybe sometime this winter. At this moment it will remain broken unless someone wants to pick it up, and fix it as someone did to utime from what I've heard."
Title: Re: APromote GUI
Post by: emilhem on December 23, 2012, 05:54:05 AM
I'm almost finished with a fix for AutoPromote (http://forums.ulyssesmod.net/index.php/topic,3826.0.html) (the one without the GUI/xgui) so it will work with gmod 13.

I'll post it in the AutoPromote topic when it's done!
Title: Re: APromote GUI
Post by: TweaK on January 11, 2013, 04:37:36 PM
This one should be working https://dl.dropbox.com/u/7934790/gmod/ulx_apromote.zip
Title: Re: APromote GUI
Post by: Bite That Apple on March 04, 2013, 11:04:52 AM
I started to work on this (the cool gui version of this). After speaking with lead4u on steam for a few minutes, and than looking at some GWEN documents I've decided that this might not be too hard to fix as Sticky Man said himself. So I'll hopefully get this fixed by the end of the month because I'm busy with other addons and gamemodes I'm making...

So towards the people who are wanting this back, check back on this thread for an update.


Edit:

Well, I didn't download the one from above, and I downloaded a broken version still... so ofc it didn't work so I assumed it still didn't work. Well I guess my "work" here is done. Sorry for any confusion I created.
Title: Re: APromote GUI
Post by: delagious on March 05, 2013, 06:57:54 PM
I started to work on this (the cool gui version of this). After speaking with lead4u on steam for a few minutes, and than looking at some GWEN documents I've decided that this might not be too hard to fix as Sticky Man said himself. So I'll hopefully get this fixed by the end of the month because I'm busy with other addons and gamemodes I'm making...

So towards the people who are wanting this back, check back on this thread for an update.


Edit:

Well, I didn't download the one from above, and I downloaded a broken version still... so ofc it didn't work so I assumed it still didn't work. Well I guess my "work" here is done. Sorry for any confusion I created.

So you aren't doing anything with this?
Title: Re: APromote GUI
Post by: JamminR on March 05, 2013, 07:09:19 PM
This one should be working https://dl.dropbox.com/u/7934790/gmod/ulx_apromote.zip

Why would he if that one is working?
Title: Re: APromote GUI
Post by: delagious on March 07, 2013, 07:59:43 PM
Why would he if that one is working?

I'm sorry his reply was just really confusing. Sounds great that it's working.


After adding this to my server and restarting the server and logging in I get this error in console:

Code: [Select]
[ERROR] lua/includes/extensions/table.lua:51: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. Empty - lua/includes/extensions/table.lua:51
    3. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:428
     4. func - addons/ulib/lua/ulib/client/cl_util.lua:22
      5. unknown - lua/includes/modules/net.lua:31
Title: Re: APromote GUI
Post by: JamminR on March 07, 2013, 08:30:21 PM
Working copy of Utime installed on your server too?
(First post, though actual code/links outdated, say Utime is required)
Title: Re: APromote GUI
Post by: delagious on March 08, 2013, 02:59:16 PM
Working copy of Utime installed on your server too?
(First post, though actual code/links outdated, say Utime is required)

Yes my Utime is working like a champ and I downloaded the dropbox version of APromote provided in TweaK's reply.
I put it in my addons, stopped the server, started the server and joined then got that error.
Title: Re: APromote GUI
Post by: pa1n on May 17, 2013, 11:07:11 AM
I also have the same issue. Utime works but autopromote gui is not working.

Got it working.. I had to add the files into the ulx folder... Seems to be mis-packed in the download for the addon.
Title: Re: APromote GUI
Post by: JamminR on May 17, 2013, 01:58:19 PM
Pain, are you using this one? http://forums.ulyssesmod.net/index.php/topic,5312.msg27779.html#msg27779

The original post is for pre-gm13, which, redid the way addons work.
Title: Re: APromote GUI
Post by: pa1n on May 17, 2013, 10:55:15 PM
I am using the latest version but the packing of the addon seems to be causing the issue... Works great on my server putting them in the ulx folder.
Title: Re: APromote GUI
Post by: TweaK on May 17, 2013, 11:13:30 PM
If you're using the same folder structure there is no reason it shouldn't work in its own addon vs. merging it in with ulx... but whatever works.
Title: Re: APromote GUI
Post by: SaintSin on June 15, 2013, 10:46:37 AM
Having issues adding this to my server.

Quote
[ERROR] addons/autopromotegui/lua/ulx/xgui/settings/cl_apromote.lua:19: attempt to call field 'makepanellist' (a nil value)
  1. unknown - addons/autopromotegui/lua/ulx/xgui/settings/cl_apromote.lua:19
   2. include - [C]:-1
    3. fn - addons/ulx/lua/ulx/modules/cl/xgui_client.lua:119
     4. Call - addons/ulib/lua/ulib/shared/hook.lua:183
      5. fn - addons/ulib/lua/ulib/cl_init.lua:45
       6. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
        7. LocalPlayer - [C]:-1
         8. fn - addons/ulib/lua/ulib/cl_init.lua:39
          9. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Pa1n how did you manage to get it working?
Title: Re: APromote GUI
Post by: Lead4u on February 09, 2014, 10:35:29 AM
Just an update for those still looking for this, I updated my version to latest gmod build.

You can find it here: http://steamcommunity.com/sharedfiles/filedetails/?id=226312488 (http://steamcommunity.com/sharedfiles/filedetails/?id=226312488)
Title: Re: APromote GUI
Post by: Bryantdl7 on November 22, 2014, 11:09:15 PM
Not meaning to revive a dead post, but you should really post this on github so I can use it on my server via svn.
Title: Re: APromote GUI
Post by: JamminR on November 22, 2014, 11:25:01 PM
Not meaning to revive a dead post, but you should really post this on github so I can use it on my server via svn.
OR, you could just add it to your server via workshop.
Just an update for those still looking for this, I updated my version to latest gmod build.

You can find it here: http://steamcommunity.com/sharedfiles/filedetails/?id=226312488 (http://steamcommunity.com/sharedfiles/filedetails/?id=226312488)
Title: Re: APromote GUI
Post by: Bryantdl7 on November 23, 2014, 01:01:23 AM
But doing that makes it so when i hand out the collection clients subscribe to an addon useless to nothing but servers.
Title: Re: APromote GUI
Post by: JamminR on November 23, 2014, 09:57:04 AM
How are you handing this "collection" out?
Links?
Title: Re: APromote GUI
Post by: Bryantdl7 on November 23, 2014, 05:14:22 PM
How are you handing this "collection" out?
Links?

Yes, www.bit.ly/g-addons (http://www.bit.ly/g-addons) I throw at anyone saying they have red errors. We have a lot of things like sCars and TDM, and those are more than one addon so I made a one click solution.
Title: Re: APromote GUI
Post by: Bryantdl7 on November 23, 2014, 05:16:00 PM
I have APromote working 100% and have for over 6 months now, one user does not auto promote like others, the sound keeps going off but she doesnt promote. Her steam name is
Code: [Select]
ThatOneGirl #RoadToUnusal"™ and my only thought is that the ™ could somehow screw things up? Any ideas?

EDIT: tested this with her, the "™ is throwing apromote off for whatever reason.
Title: Re: APromote GUI
Post by: JamminR on November 23, 2014, 06:32:02 PM
I made a one click solution.
Well, then you may be causing issues later.
If you're downloading SVN zips (which you've asked lead4U to do, convert to SVN so you can do that), and then RE-distributing them in a collection, when an addon author goes to update (via svn, or workshop like I recommended), your collection is then out of date. Worst case, it has exploits or major bugs. Best case, it's just missing a model/sound or two.
You should really get/setup a fastDL if you're going to use addon packs that have additional items in them.
Then you just keep your server and DLcache up to date, Gmod clients do the rest.
If not that, then have them download an HTML file with links they can click on to direct them to the SVN and Workshop subscriptions (or here, if you're using releases only available here).

Title: APromote GUI
Post by: Bryantdl7 on November 23, 2014, 06:51:28 PM
Youre not understanding, serverside addons i rather keep up to date by svn-updating. Im not uploading them to workshop. I dont want users getting serverside addons installed when they click the subscribe all button. Look at that bitly, its steamcommunity you'll hopefully get what i mean.
Title: Re: APromote GUI
Post by: Bite That Apple on December 01, 2014, 01:19:19 AM
tested this with her, the "™ is throwing apromote off for whatever reason.

When Lead and I were creating this, and working out the kinks, we stopped caring about this because we knew it had issues. For some reason, I do remember it not working correctly with unique characters, but at the time I wasn't experienced enough with lua when I requested it to be made back in 2011. The original poster does not come on here anymore, nor does he care about Garry's Mod, so he kinda gave me the responsibility to take care of it.

I don't actually know how to really fix this, because the way he made it was kinda messy (imo). So, I've decided that... the issue is rare enough to not be fixed, nor has anyone else complained about this issue, so it may be unique to your server, or just actually messed up within the addon.

Edit:
My version of it might be the updated version of it that I worked on when he handed me the project over. Here -> http://forums.ulyssesmod.net/index.php/topic,6791.0 (http://forums.ulyssesmod.net/index.php/topic,6791.0)