Page 1 of 1

OBBLM tie-breakers

Posted: Mon Jun 03, 2019 6:55 pm
by dwarfrunner
Hi collective Hive mind.
Likely a stupid question. How do I customize the tie-breakers for league standings?
I got them to show the right columns in the league standings, but they arent sorted right.
I want them teams sorted by win %, GP, sdiff, tcdiff
I tried playing with the settings.php house ranking stuff, but couldnt get it to work.
Sorry, this is not my strong suit. Kinda stuck.
Can someone just let me know how to fix it.
Thanks

Re: OBBLM tie-breakers

Posted: Tue Jun 04, 2019 9:12 am
by Tim
This is the documentation: https://github.com/nicholasmr/obblm/wik ... stemsrules

So in your case, define a House Ranking Rule:
$hrs[<use a free number in settings_##.php here>]['rule'] = array('-win_pct', '-played', '-sdiff', '-tcdiff');

This means sort first by win% descending, then GP descending (1st tiebreaker), then sdiff descending (2nd TB), then tcdiff descending (3rd TB)

You do not need a points definition, as you all your sorting parameters are already delivered by the system, so define it empty:
$hrs[<same number as above>]['points'] = '';

Afterwards assign the new house ranking rule to your tournament and run the steps under "Saving the changes"! https://github.com/nicholasmr/obblm/wik ... he-changes

Re: OBBLM tie-breakers

Posted: Fri Jun 21, 2019 6:43 pm
by dwarfrunner
Sorry, I have a hard time understanding this. I only know basic stuff about this, so sorry if you have to spoon feed me some info.

But this is what I have public_html/settings.php

// Rule #1
$hrs[1]['rule'] = array('-pts', '-td', '+smp'); // Sort teams against: most points, then most TDs and then least sportsmanship points.
$hrs[1]['points'] = ''; // The definition of points.

// Rule #2
$hrs[2]['rule'] = array('-pts', '-ki', '-mvp'); // Sort teams against: most points, then most killed and then by most MVPs.
$hrs[2]['points'] = '1*[gf] - 1*[ga]'; // The definition of points.

// Rule #3
$hrs[3]['rule'] = array('-sdiff', '-smp'); // Sort teams against: largest score difference, then most sportsmanship points.
$hrs[3]['points'] = ''; // Points not used.

// Rule #4
$hrs[4]['rule'] = array('-win_pct', '-played', '-sdiff', '-tcdiff');

This is obviously wrong as it doesnt work, which part am I fixing?

Re: OBBLM tie-breakers

Posted: Fri Jun 21, 2019 10:24 pm
by Tim
Rule 4 is missing the empty points line, add the red line:

// Rule #4
$hrs[4]['rule'] = array('-win_pct', '-played', '-sdiff', '-tcdiff');
$hrs[4]['points'] = ''; // Points not used.

Then check which rule is used by your tournament. (Link to league page would help)