Author Topic: People dodging ladder games.  (Read 32195 times)

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
People dodging ladder games.
« Reply #60 on: May 23, 2016, 08:48:29 PM »
....


but i have no interest in doing shit for them that they should already be doing..

Dam, money shot.



Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline mousEtopher

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 2065
    • View Profile
    • War2.me
Re: People dodging ladder games.
« Reply #61 on: May 23, 2016, 09:01:05 PM »
Damn, get a room you two.
squeak!

Offline Certified MENSA Genius Brain (smart)

  • "The Architect"
  • Global Moderator
  • Dragon
  • *****
  • Posts: 5384
    • View Profile
Re: People dodging ladder games.
« Reply #62 on: May 23, 2016, 09:20:18 PM »
That's probably possible but won't be easy for me personally to do since I'm not much of a code guy.  But I do think currently it starts with the total number of players that joined the game, and then subtracts out watchers to get to the 2 people playing (a 1v1).  It could probably be changed to instead count the number of people that played from 0 up, instead of from the number of total players down, which would make a watcher dying or disconnecting irrelevant

You should add simple checks for dates of games before they are put into the ladder equation. That would keep the active players where they should be on the ladder? I think 90 days is great.
you mean inactive people should be demoted?  I tried to code something for that but it fucked up so I just do it manually if someone says the guy on the top is inactive or if i notice that myself.
oh, since it's easy, would someone, anyone, like to write a script to demote people by 50 ranks if they don't play for 20 days for this community?


I'll give it a shot if you want drop it to me in a pm. I can see what I can do. Don't you already parse the game report?

You should have a variable for game date already. Use that one add this variable

$Date = date('m/d/Y');

You can change it around. Now you can compare.

I'm not sure exactly what didn't work with my code when I tried it, but I think it was dealing with the times.  I needed to get two times, first pull a player's most recent game, and then subtract that from the current time.  Times are in unix time or epoch actually or something.  Then I have to see if the difference in time is over 20 days or 30 or whatever.   I think I probably didn't have a problem combing through all the players or doing demotions, just working with the times.
« Last Edit: May 23, 2016, 09:25:56 PM by Chairman Blid »
    

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: People dodging ladder games.
« Reply #63 on: May 23, 2016, 10:17:40 PM »
23:26:18 on 05/21/2016 looks like current format for your ladder now.

$Date = date('m/d/Y');

So $Data is already formatted correctly.

$Clock = date("H:i:s");

http://php.net/manual/en/function.date.php

$YOURTIME&DATEVARAIBLE
$Date = date('m/d/Y');
$Clock = date("H:i:s"); //if you want clock....
$CleanDate = explode("/", $Date);
$Month = $CleanDate[0];
$Day = $CleanDate[1];
$Year = $CleanDate[2];

Now parse your date from your variable like above. Then you can do

$LastPlayed = $Day - $Day2

if ($LastPlayed > 19)
echo "DEMOTE HERE"

I don't know php and just read and wrote it idk if it works didn't test. You would obviously Get day from your variable and make $day2 or whatever.



« Last Edit: May 23, 2016, 10:20:03 PM by tupac »

Offline Certified MENSA Genius Brain (smart)

  • "The Architect"
  • Global Moderator
  • Dragon
  • *****
  • Posts: 5384
    • View Profile
Re: People dodging ladder games.
« Reply #64 on: May 23, 2016, 10:23:48 PM »
Nah that's not the format time is in in the DB which I don't actually have access to look at actually.
    

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: People dodging ladder games.
« Reply #65 on: May 23, 2016, 10:39:52 PM »
You can change it around how it needs to be. You can change the order those parameters are in and see all the parameters and what they do with the date() function. Link is above.

Edit: yeah you can just look up the variable used already probally.

Games of u8t3io3p

u8t3io3p (#1) defeated braviet (#2) on "Schwartzwald BNE" at 23:26:18 on 05/21/2016.
« Last Edit: May 23, 2016, 10:43:33 PM by tupac »

Offline Sentinel1

  • Axe Thrower
  • ****
  • Posts: 265
    • View Profile
Re: People dodging ladder games.
« Reply #66 on: May 24, 2016, 03:12:42 PM »
tk is such a weirdo little crybaby.  hes gotta be like 16, right?

Offline JyNx

  • Critter
  • *
  • Posts: 1
    • View Profile
Re: People dodging ladder games.
« Reply #67 on: May 24, 2016, 04:29:45 PM »
There is an easy solution to this problem. Start a war2 ladder thread in which active ladder players may call out opponents for battle and schedule a time in which they can play against each other.  This will allow everyone to witness dodges as well as entice players who "dodge" to play so they may not be forcefully lowered in the ladder rankings.  If players are not responsive within a week to the appointment request due to inactivity or dodges then they will automatically be dropped in the ladder rankings.

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: People dodging ladder games.
« Reply #68 on: May 24, 2016, 10:28:57 PM »
There is an easy solution to this problem. Start a war2 ladder thread in which active ladder players may call out opponents for battle and schedule a time in which they can play against each other.  This will allow everyone to witness dodges as well as entice players who "dodge" to play so they may not be forcefully lowered in the ladder rankings.  If players are not responsive within a week to the appointment request due to inactivity or dodges then they will automatically be dropped in the ladder rankings.

Or....(hear me out..[emoji50])











he could just fix "his" code, just a suggestion [emoji54]


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline Certified MENSA Genius Brain (smart)

  • "The Architect"
  • Global Moderator
  • Dragon
  • *****
  • Posts: 5384
    • View Profile
Re: People dodging ladder games.
« Reply #69 on: May 25, 2016, 03:29:25 PM »
he could just fix "his" code, just a suggestion
whats with all these conspiracy theories lately.  i programmed the ladder from scratch.  jordan gave me some tips to get started.  once it was up, iL did some clean up to make it work more smoothly.  frostbitten made the webpage.  please dont troll
    

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
People dodging ladder games.
« Reply #70 on: May 25, 2016, 03:30:25 PM »
he could just fix "his" code, just a suggestion
whats with all these conspiracy theories lately.  i programmed the ladder from scratch.  jordan gave me some tips to get started.  once it was up, iL did some clean up to make it work more smoothly.  frostbitten made the webpage.  please dont troll

Not really a theory, when it's kind of obvious. Not trolling, just confused with who you are trying to fool lol...doesn't matter me to the source of the code, why it was probably open sourced so people can use it for their own projects. Just irks me when people take credit for stuff they obviously didn't design.

Sent from my Motorola DynaTAC 8000X using Tapatalk
« Last Edit: May 25, 2016, 03:48:54 PM by EviL~Ryu »

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: People dodging ladder games.
« Reply #71 on: May 25, 2016, 03:59:04 PM »
he could just fix "his" code, just a suggestion
whats with all these conspiracy theories lately.  i programmed the ladder from scratch.  jordan gave me some tips to get started.  once it was up, iL did some clean up to make it work more smoothly.  frostbitten made the webpage.  please dont troll

Ladder.war2.ru right?? That is the current ladder system?

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
People dodging ladder games.
« Reply #72 on: May 25, 2016, 04:51:14 PM »
Whatever the case blid, I'll work on it when I can. Tupac said he has some availability so he will start looking at the scripts.


Sent from my Motorola DynaTAC 8000X using Tapatalk
« Last Edit: May 25, 2016, 05:04:09 PM by EviL~Ryu »

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline Certified MENSA Genius Brain (smart)

  • "The Architect"
  • Global Moderator
  • Dragon
  • *****
  • Posts: 5384
    • View Profile
Re: People dodging ladder games.
« Reply #73 on: May 25, 2016, 05:18:25 PM »
now that you have the code, ryu, youll see that it's not been copied from anywhere.  it's all original (and super amateur lol)
he could just fix "his" code, just a suggestion
whats with all these conspiracy theories lately.  i programmed the ladder from scratch.  jordan gave me some tips to get started.  once it was up, iL did some clean up to make it work more smoothly.  frostbitten made the webpage.  please dont troll

Ladder.war2.ru right?? That is the current ladder system?

yes it is
    

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: People dodging ladder games.
« Reply #74 on: May 25, 2016, 05:28:19 PM »
now that you have the code, ryu, youll see that it's not been copied from anywhere.  it's all original (and super amateur lol)


Meh, I still have my doubts. [emoji53] but I'll still try to help where I can [emoji55]



Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)