Playtime reset

Discussion in 'Server Info' started by Slind, Jan 26, 2015.

  1. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    7:11 PM
    Hey everyone,

    straight: the play time is going to be reset!

    Why?
    As some of you might have noticed something was wrong with the data, I did find out why:
    Consider a database with the columns like "session_id, player_id, server_id, play_time, login_time, logout_time"
    In order to avoid sql injections the data is passed via prepared statements. This means the "command"/statement is being written with question marks instead of the value. Later on you assign the question marks their value. The problem here was that the statement was at the top of a 300 line page and the binding happened somewhere in the middle/end.
    It was logical - on how the information was passed - to bind it in the order of session_id, play_time -> but the statement was the other way around..
    So the session_id was bound to play_time and play_time as the session_id..
    Code:
    logPlayerSessionUpdate.setInt(1, sessionId);
    logPlayerSessionUpdate.setInt(2, playTime);
    instead of
    Code:
    logPlayerSessionUpdate.setInt(1, playTime);
    logPlayerSessionUpdate.setInt(2, sessionId);
    In the end all data is useless, which explains why some players have enormous amounts of playtime, due to other players giving them those :D
     
    Last edited: Jan 26, 2015
  2. 19e8

    19e8 Well-Known Member

    Messages:
    162
    Likes Received:
    11
    Local Time:
    1:11 PM
    Will this effect a player applying for a moderate position?
     
    Jeppe0701 and sk_ like this.
  3. sk_

    sk_ Active Member

    Messages:
    45
    Likes Received:
    5
    Local Time:
    6:11 PM
    that's unfortunate.
     
  4. night3y3s

    night3y3s chaotic constructor

    Messages:
    80
    Likes Received:
    4
    Local Time:
    7:11 PM
    aww, i almost got immortal :(
     
  5. matijase

    matijase Well-Known Member

    Messages:
    217
    Likes Received:
    29
    Local Time:
    7:11 PM
    same here :banghead:
     
  6. XxPeBxX

    XxPeBxX Monster Hunter

    Messages:
    18
    Likes Received:
    1
    Local Time:
    1:11 PM
    Hurray now my playtime will actually make sense rather than others getting my hours (apparently)!
     
    Jeppe0701 likes this.
  7. Denash

    Denash New Member

    Messages:
    15
    Likes Received:
    2
    Local Time:
    6:11 PM
    Perhaps I shall no always be 'lost soul'.
     
  8. Decnav

    Decnav Proud member of the VRMasterRace Patron Tier 2

    Messages:
    413
    Likes Received:
    140
    Local Time:
    1:11 PM
    yea im right on the heals of that too
     
  9. Death008u

    Death008u New Member

    Messages:
    31
    Likes Received:
    3
    Local Time:
    1:11 PM
    I've Been an Alchemist for like 3 weeks. Maybe this will fix it.
     
  10. Mr_Gavitt

    Mr_Gavitt Active Member

    Messages:
    50
    Likes Received:
    4
    Local Time:
    12:11 PM
    gonna say, had like 1 day of playtime and resurrection is my second life lol.
     
  11. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    1:11 PM
    i told you that Doctorfoxwolf shoulda had the top playtime, not those people with OVER 200 DAYS of playtime
     
  12. Mijikai

    Mijikai Well-Known Member

    Messages:
    1,537
    Likes Received:
    466
    Local Time:
    6:11 PM
    I had 176d o_O
    (I was at like 17d after it reset when 1.7.10 came out) -_-

    Pretty sure Doctor and Decnav were the top 2 though
     
  13. SUNRISEBAGELS

    SUNRISEBAGELS Well-Known Member

    Messages:
    33
    Likes Received:
    6
    Local Time:
    10:11 AM
    yay ive played for muiltiple days and it says ive been on almost zilch
     
  14. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    1:11 PM
    thats my point
     
  15. XxPeBxX

    XxPeBxX Monster Hunter

    Messages:
    18
    Likes Received:
    1
    Local Time:
    1:11 PM
    As long as we get accounted for actual playtime now I'll be happy :3
     
  16. iCallHaxx

    iCallHaxx New Member

    Messages:
    20
    Likes Received:
    0
    Local Time:
    10:11 AM
    dang, moderation positions requirements tho... was almost there :(
     
  17. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    1:11 PM
    don't worry, if you're like me and have 0% of a life, it's easy to get :D
     
  18. Matryoshika

    Matryoshika Well-Known Member

    Messages:
    1,193
    Likes Received:
    606
    Local Time:
    7:11 PM
    Just as a reminder for anyone and all who reads about the playtime reset.
    We staff will be even more watchful than before, for anyone using any setup to bypass the afk-kick, once the reset is done.
    Anti-afk machines are against the rules of MyM. Tries to gain playtime with these setups, as well as continuously loading base/map can be punishable.
     
  19. CommonExplosion

    CommonExplosion Well-Known Member

    Messages:
    741
    Likes Received:
    182
    Local Time:
    7:11 PM
    Remembers me of that one time I made a afk machine .... to let someone write a book. Had to do that to prevent another player getting kicked in the midst of all that writing and having to do it again. XD
     
  20. Mr_Gavitt

    Mr_Gavitt Active Member

    Messages:
    50
    Likes Received:
    4
    Local Time:
    12:11 PM
    Donors can still afk as much as we want right?
     

Share This Page