1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tipping Competition PM incorrect and other information - please read

Discussion in 'Rugby League Forum' started by Dan, Jun 18, 2013.

  1. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    Hi all,

    I have had a few PM's on this so thought I had better make a post about it to try to cut down on this.

    The PM shows the incorrect visual results. In particular for the Manly v Bulldogs game. For some reason it is reading this result from another game and I am looking into this today.

    So for some it will be showing as correct when you tipped Manly.

    This is just the PM only and there is no need to panic, your actual results and points are correct and you can see this on the leaderboard detail by clicking on your name.

    For instance, I tipped Manly in this one, so the PM shows me as correct when in fact I tipped this incorrectly. however looking at the leaderboard this is recorded correctly and the Score within the PM is still correct

    http://www.silvertails.net/forum/tipping-competition/Jan-Davis-Memorial-Tipping-Competition-2013/8/2/leaderboard_detail/user.html

    Additionally I continue to get questions on the margins, the way these are calculated are a little complicated. However more or less this is how they work.

    If you tip the correct team to win by say a margin of 10, and they win by 6, your final margin will be
    10 - 6 = 4

    If you tipped them to win by 6 and they win by 10, your margin is still
    10 - 6 = 4

    If you tipped the losing team to win by 6, and they lost by 10, the margin would be.
    6 + 10 = 16

    and so on. That is probably the best way I can explain it, so basically if you tip the winning team the lower number is subtracted from the higher, if you tip the wrong team your margin is added to the actual margin from the game.

    You think it's complicated to explain, you should try writing the code :)

    Dan
     
  2. Chip and Chase

    Chip and Chase True Supporter Staff Member Administrator Premium Member 2016 Tipping Competitor

    12,810
    3,170
    Ratings:
    +6,282 / 44
    In example two above I think you mean

    If you tipped them to win by 6 and they win by 4, your margin is
    6 - 4 = 2

    Just to confuse the issue a little more ;)
     
  3. Kiwi Eagle

    Kiwi Eagle Moderator Staff Member 2016 Tipping Competitor

    14,488
    1,734
    Ratings:
    +2,425 / 31
    Lol mate you have lost me with tipping them to win by 6, but they win by 4, the margin is 10-6=4.

    If you tip by 6 and they win by 4 it should be 2 shouldn't it ?
     
  4. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    Whoops sorry, trying to do too much at once.

    What I meant to say was but win by 10.

    which is 4. Changing the above post
    @"Kiwi Eagle" @"Chip and Chase"
     
  5. globaleagle

    globaleagle Où est mon chapeau Premium Member 2016 Tipping Competitor

    11,787
    4,708
    Ratings:
    +7,800 / 58
    I noticed the incorrect manly v bulldog result but I liked my pm saying that I was correct so after checking the points were ok, I went on smiling wistfully at the pm.

    Nice green 'correct' next to the game.


    sigh
     
  6. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    It is an odd one too because it actually shows correctly for some people but incorrectly for others. I need to look at my code in this instance.

    The way this is triggered is actually pretty complex and I have an incling where the error is.
     
  7. SeaEagleRock8

    SeaEagleRock8 Sea Eagle Lach Staff Member Premium Member 2016 Tipping Competitor

    12,599
    3,523
    Ratings:
    +6,802 / 122
    I was more concerned that you congratulated me on getting so many wrong... taking the piss?
     
    • Like Like x 2
  8. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    haha I was thinking of some logic that said

    less than 6 points (Better luck next weeK)
    more than 6 (Great tipping)
    perfect round (I hate you!)

    :)
     
  9. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    Without triggering the PM en masse to update the results I can't really test this in full scale at the moment.

    And I dont want to annoy you all with the PM.

    As such I have put some debugging and logging in place so that after the results of this round are updated I should be able to pinpoint the exact cause of the issue.

    Functionally the code *looks correct, however there are over 100 lines of code in just the PM send part of the tipping comp.

    I have an inkling of what might be happening, in that some users are getting other users results because I grab all the tips from the system and iterate through them, when we strike the next user, we send out the PM, then start building the next user PM for some reason this may be grabbing one or two incorrect results.

    Dan
     
  10. globaleagle

    globaleagle Où est mon chapeau Premium Member 2016 Tipping Competitor

    11,787
    4,708
    Ratings:
    +7,800 / 58
    That be awesome.


    Feel free to annoy us with one pm.

    yes, I know you wont.

    so carry on.
     
  11. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    I kind of already have the data in my sent PMs folder however the log will give me a sequential series of events
     
  12. Chip and Chase

    Chip and Chase True Supporter Staff Member Administrator Premium Member 2016 Tipping Competitor

    12,810
    3,170
    Ratings:
    +6,282 / 44
    Love to have a read of those logs one day @Dan, I've been suffering some terrible insomnia of late and they sound like just the cure.
     
  13. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    Haha welcome to my world, I spend 90% of my day looking at various log files and trying to figure out just in the bejeezus went wrong.

    This log simply writes out the query that was used and then each set of PM's that went out as well as a few other things, that way I can try to match this up to the database to see where the problem may come from
     
  14. Clint

    Clint . Premium Member 2016 Tipping Competitor

    3,732
    1,253
    Ratings:
    +1,658 / 14
    Do you have to then divide that by the number of tools in a Sidchrome tool kit to get the final margin? :D
     
  15. BOZO

    BOZO Well-Known Member 2016 Tipping Competitor

    5,349
    1,986
    Ratings:
    +3,855 / 192
    The only concern i have about this tipping comp is that Manly win every time !!!
     
  16. Manly To Win!

    Manly To Win! Well-Known Member 2016 Tipping Competitor

    676
    125
    Ratings:
    +178 / 2
    Is it right that there's no margin match this week?
     
  17. Dan

    Dan Administrator Staff Member Administrator 2016 Tipping Competitor

    32,371
    3,610
    Amsterdam, The Netherlands
    Ratings:
    +5,469 / 74
    hmm very good point. I hadn't enabled a bonus round. I will do that now and PM everyone
    @"Manly To Win!"
     

Share This Page