ULX

Author Topic: AutoPromote  (Read 106605 times)

0 Members and 3 Guests are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #60 on: March 06, 2010, 05:40:46 PM »
I'll look into since smithy appears to be busy.
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 someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
Re: AutoPromote
« Reply #61 on: March 07, 2010, 04:20:06 PM »
any fix would be great!

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #62 on: March 08, 2010, 02:43:15 AM »
Been looking at it, and trying to make head or tails of this code is a difficult task lol. I've come to the conclusion that I'm going to overhaul this and try and make it more developer friendly.
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 jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #63 on: March 08, 2010, 06:51:47 PM »
Got a fix I think, but no way to test. Anyone care do test it for me?
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 someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
Re: AutoPromote
« Reply #64 on: March 10, 2010, 01:53:30 PM »

EDIT: doesn't work, comes out with tis lua error:

Code: [Select]
Lua Error: Timer Error: ulx\modules/AutoPromote.lua:68: attempt to call field 'count' (a nil value)
« Last Edit: March 10, 2010, 03:34:10 PM by someone920 »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #65 on: March 10, 2010, 04:13:44 PM »
Sorry, that was my bad. Case error.
Quick fix below.

::EDIT::
Tested, and working! :)
« Last Edit: March 10, 2010, 08:27:43 PM by jay209015 »
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 smithy

  • Newbie
  • *
  • Posts: 7
  • Karma: 1
Re: AutoPromote
« Reply #66 on: March 11, 2010, 05:36:24 AM »
Tested, and working! :)
Thanks for fixing that, haven't checked back here in a while.

Offline someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
Re: AutoPromote
« Reply #67 on: March 11, 2010, 02:44:14 PM »
Thanks for the help!

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #68 on: March 11, 2010, 06:42:30 PM »
No problem, do what I can to help.
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 someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
Re: AutoPromote
« Reply #69 on: March 14, 2010, 04:46:43 PM »
Just found a problem, it promotes someone to the last rank at the right time, but them promoted them back to the first rank and goes through the ranks again in a loop.

EX. User has been promoted to "platinum Member"
-5 seconds later-
User have been promoted to "member"
and so on

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #70 on: March 15, 2010, 03:09:23 PM »
Again no way to test, but this should fix her.
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 JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AutoPromote
« Reply #71 on: March 15, 2010, 03:14:54 PM »
<clip>her<clip>
Well now... that explains the loopiness of the application.

* JamminR ducks as ULX feminine users throw 50 pound unix manuals at him
* JamminR covers screen as he's posting to hide from wife.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: AutoPromote
« Reply #72 on: March 15, 2010, 03:58:45 PM »
Haha, careful Jamm, treading in dangerous waters :P
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 Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: AutoPromote
« Reply #73 on: April 03, 2010, 12:06:02 AM »
I have not been able to get this to work, and I'm tired of waiting an hour every time to test it.
Code: [Select]
promotes = {
{ hours = 14, group = "respected3", name = "Bronze" },
{ hours = 24, group = "respected2", name = "Silver" }
}

---------IF A PLAYER IS A MEMBER OF THESE GROUPS THEY WONT GET PROMOTED.......EVER
excludes = { "owner", "respected", "admin", "superadmin", "temp-admin" }

I downloaded the one from Jay, the most recent one he fixed.
Should I maybe rename the groups so they don't have similar names?

I was thinking that it stores the groups you have been in and still excludes you if you demote yourself to test it.
« Last Edit: April 03, 2010, 12:09:48 AM by Aaron113 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: AutoPromote
« Reply #74 on: April 03, 2010, 08:49:23 AM »
Aaron, I think you have to have the hours from more to less, higher group to lesser group/name.
That may have changed in more recent versions, but the original cfg had higher to lower.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming