• Resolved af3

    (@af3)


    OMG @antoine, when I did the recalculation after the match today, the total points for users doesnt total up correctly. Its off by 20+ points. ANy pointer of how to resolve this?

    I realized i activated this plugin football-pool-different-oints-per-match-type.php and noticed the definition:

    
    if ( ! defined( 'FPX_POINTS_PER_MATCHTYPE' ) ) {
    	define( 
    		'FPX_POINTS_PER_MATCHTYPE',
    		'{
    			"1":[2,5,2,0,0],
    			"8":[4,10,4,0,0],
    			"3":[4,15,6,0,0],
    			"4":[4,20,8,0,0],
    			"5":[4,25,10,0,0],
    			"6":[4,30,12,0,0]
    		}' 
    	);
    }

    Does it mean that matchtype 1 has 2 point for joker, 5 points for fullscore, 2 for goalsbonus etc and this changed my original point set?

    When activated, the total points per user is about +150points. When I deactivated, the scores total with about +20 to +26 points different.

    • This topic was modified 1 year, 12 months ago by af3.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter af3

    (@af3)

    So i removed the plugin and reset the scoring options — seems it is back to normal. phew!

    Plugin Author AntoineH

    (@antoineh)

    Does it mean that matchtype 1 has 2 point for joker, 5 points for fullscore, 2 for goalsbonus etc and this changed my original point set?

    This is the JSON format

    {
    	"match_type_id" : [joker,full,toto,goalbonus,goaldiff],
    	"another_match_type_id" : [joker,full,toto,goalbonus,goaldiff]
    }

    This means for a match type with database ID = 1
    – joker multiplier: 2x
    – full: 5
    – toto: 2
    – goal bonus: 0
    – goal difference bonus: 0

    If your match type for the group phase is one of the other numbers, then I can imagine that the calculation is giving a lot of points.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘total points does not add up’ is closed to new replies.