Author Topic: AutoPromote  (Read 76320 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6207
  • Karma: 394
  • Project Lead
Re: AutoPromote
« Reply #30 on: July 27, 2009, 01:28:31 PM »
Oh, whoops, didn't see that. :P
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #31 on: July 27, 2009, 09:27:11 PM »
You can take over megg :D
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 Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: AutoPromote
« Reply #32 on: July 28, 2009, 07:17:18 AM »
jay please could you look into the code, there are problems. I'm sure they depend from the times I set.

Offline Major_Pain

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
Re: AutoPromote
« Reply #33 on: August 06, 2009, 09:15:58 PM »
Would someone please remake it? I'm going to have to take it off and promote manually for now...


Offline Major_Pain

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
Re: AutoPromote
« Reply #34 on: September 06, 2009, 09:12:58 PM »
After a good week of learning lua, I have successfully made an autopromote script that works just for my server. I will be remaking it tomorrow to be more user-friendly for you all.


Offline Major_Pain

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
Re: AutoPromote
« Reply #35 on: September 11, 2009, 06:41:05 PM »
Sorry it took so long guys! I got it done finally!

To edit the promotions simply change the first part of the A1-A10 to how ever many hours and the second part to the group.
  Ex: A1 = { [hours] = "group" }

It must be listed in ascending order or it will not work properly.

For right now, it will only work for 10 groups and will only exclude 10 groups. I can extend that if anyone needs it.

EDIT: Sorry to that one person that downloaded it. I fixed it to where it doesn't add you to the same group everytime you die.

UPDATE: Made it add groups by steam id so weird names don't screw up the adding.
UPDATE: Added in a timer with the help of jay.
« Last Edit: September 17, 2009, 06:54:06 PM by Major_Pain »


Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: AutoPromote
« Reply #36 on: September 13, 2009, 04:01:26 PM »
Sorry it took so long guys! I got it done finally!

To edit the promotions simply change the first part of the A1-A10 to how ever many hours and the second part to the group.
  Ex: A1 = { [hours] = "group" }

It must be listed in ascending order or it will not work properly.

For right now, it will only work for 10 groups and will only exclude 10 groups. I can extend that if anyone needs it.

EDIT: Sorry to that one person that downloaded it. I fixed it to where it doesn't add you to the same group everytime you die.

UPDATE: Made it add groups by steam id so weird names don't screw up the adding.

If this works you can have my babies and eat them

Offline Major_Pain

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
Re: AutoPromote
« Reply #37 on: September 15, 2009, 09:05:25 PM »
If this works you can have my babies and eat them

It works.

I am going to be updating it soon to use a timer so it will check to see if they need a promote every minute or so.


Offline Major_Pain

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
Re: AutoPromote
« Reply #38 on: September 17, 2009, 05:09:56 PM »
With the help of jay...

UPDATE: Now it will check to see if a player needs a promotion every 10 seconds, so no more waiting for them to die.


Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #39 on: September 17, 2009, 07:35:31 PM »
Hehe, I love working mysteriously in the background :D
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 TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: AutoPromote
« Reply #40 on: November 15, 2009, 12:48:18 PM »
seems it won't promote anyone with quotes in their username, but i'm not sure about any other special characters


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8007
  • Karma: 377
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AutoPromote
« Reply #41 on: November 15, 2009, 01:42:12 PM »
Quote, as in a ' (single) or " (double)...which?
I could see both causing problems.
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: AutoPromote
« Reply #42 on: November 15, 2009, 01:55:28 PM »
oh, a double quote. i didn't try single quotes but it probably would do the same thing, i'm sure it could be fixed though with some simple string manipulations i just don't know any lua lol


Offline HOLOGRAPHICpizza

  • Newbie
  • *
  • Posts: 9
  • Karma: 4
    • GmodPlanet.com
Re: AutoPromote
« Reply #43 on: November 20, 2009, 04:35:03 PM »
Hey guys, I just checked back here and it seems a lot has gone on with this addon. What's going on right now? If mine is broken and someone else has made a working version, then I'll just link to it and stop development on this. If there is no new better addon than mine and mine is broken, then I'll fix mine and release a new version.

So what's going on?
Quote from: Jeremy S. Anderson
There are two major products that came out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
Open SourceNet NeutralityUbuntuFirefoxSumatra PDF

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8007
  • Karma: 377
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AutoPromote
« Reply #44 on: November 20, 2009, 08:31:43 PM »
Pizza.
Welcome Back! Everyone missed you... autopromote (as you can see) was/is quite popular.
Seems it broke somewhere along the way..not sure why. Several started working on it.
MajorPain in the post above yours seems to be the latest.
Also, someone on Facepunch tried having someone do all the work for them
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin