OBBLM tie-breakers

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
dwarfrunner
Veteran
Veteran
Posts: 279
Joined: Fri Jun 09, 2006 3:51 pm
Location: Ottawa, Ontario, Canada EH!

OBBLM tie-breakers

Post 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

Reason: ''
Tim
Da Tulip Champ II
Posts: 3458
Joined: Wed Oct 16, 2002 4:18 pm
Location: Heidelberg, Germany
Contact:

Re: OBBLM tie-breakers

Post 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

Reason: ''
Image
"In NUFFLE we trust!" - Retired Inquisitor of Nuffle.
Father of the Halfling Scribe
Admin of the Kurpfalz Cup
dwarfrunner
Veteran
Veteran
Posts: 279
Joined: Fri Jun 09, 2006 3:51 pm
Location: Ottawa, Ontario, Canada EH!

Re: OBBLM tie-breakers

Post 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?

Reason: ''
Tim
Da Tulip Champ II
Posts: 3458
Joined: Wed Oct 16, 2002 4:18 pm
Location: Heidelberg, Germany
Contact:

Re: OBBLM tie-breakers

Post 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)

Reason: ''
Image
"In NUFFLE we trust!" - Retired Inquisitor of Nuffle.
Father of the Halfling Scribe
Admin of the Kurpfalz Cup
Post Reply