Playtime reset

Dieses Thema im Forum "Server Info" wurde erstellt von Slind, 26. Januar 2015.

  1. Slind

    Slind Founder

    Beiträge:
    8.332
    Zustimmungen:
    3.018
    Ortszeit:
    03:54
    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
     
    Zuletzt bearbeitet: 26. Januar 2015
    JacaRoe, Mijikai, SUNRISEBAGELS und 2 anderen gefällt das.
  2. 19e8

    19e8 Well-Known Member

    Beiträge:
    162
    Zustimmungen:
    11
    Ortszeit:
    21:54
    Will this effect a player applying for a moderate position?
     
    Jeppe0701 und sk_ gefällt das.
  3. sk_

    sk_ Active Member

    Beiträge:
    45
    Zustimmungen:
    5
    Ortszeit:
    02:54
    that's unfortunate.
     
  4. night3y3s

    night3y3s chaotic constructor

    Beiträge:
    80
    Zustimmungen:
    4
    Ortszeit:
    03:54
    aww, i almost got immortal :(
     
  5. matijase

    matijase Well-Known Member

    Beiträge:
    217
    Zustimmungen:
    29
    Ortszeit:
    03:54
    same here :banghead:
     
  6. XxPeBxX

    XxPeBxX Monster Hunter

    Beiträge:
    18
    Zustimmungen:
    1
    Ortszeit:
    21:54
    Hurray now my playtime will actually make sense rather than others getting my hours (apparently)!
     
    Jeppe0701 gefällt das.
  7. Denash

    Denash New Member

    Beiträge:
    15
    Zustimmungen:
    2
    Ortszeit:
    02:54
    Perhaps I shall no always be 'lost soul'.
     
  8. Decnav

    Decnav Proud member of the VRMasterRace Patron Tier 2

    Beiträge:
    413
    Zustimmungen:
    140
    Ortszeit:
    21:54
    yea im right on the heals of that too
     
  9. Death008u

    Death008u New Member

    Beiträge:
    31
    Zustimmungen:
    3
    Ortszeit:
    21:54
    I've Been an Alchemist for like 3 weeks. Maybe this will fix it.
     
  10. Mr_Gavitt

    Mr_Gavitt Active Member

    Beiträge:
    50
    Zustimmungen:
    4
    Ortszeit:
    20:54
    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

    Beiträge:
    5.861
    Zustimmungen:
    730
    Ortszeit:
    21:54
    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

    Beiträge:
    1.537
    Zustimmungen:
    466
    Ortszeit:
    02:54
    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

    Beiträge:
    33
    Zustimmungen:
    6
    Ortszeit:
    18:54
    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

    Beiträge:
    5.861
    Zustimmungen:
    730
    Ortszeit:
    21:54
    thats my point
     
  15. XxPeBxX

    XxPeBxX Monster Hunter

    Beiträge:
    18
    Zustimmungen:
    1
    Ortszeit:
    21:54
    As long as we get accounted for actual playtime now I'll be happy :3
     
  16. iCallHaxx

    iCallHaxx New Member

    Beiträge:
    20
    Zustimmungen:
    0
    Ortszeit:
    18:54
    dang, moderation positions requirements tho... was almost there :(
     
  17. chugga_fan

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

    Beiträge:
    5.861
    Zustimmungen:
    730
    Ortszeit:
    21:54
    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

    Beiträge:
    1.193
    Zustimmungen:
    606
    Ortszeit:
    03:54
    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

    Beiträge:
    741
    Zustimmungen:
    182
    Ortszeit:
    03:54
    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

    Beiträge:
    50
    Zustimmungen:
    4
    Ortszeit:
    20:54
    Donors can still afk as much as we want right?
     

Diese Seite empfehlen