From 8524caf76b589a8aee1a9e53399fa12948937de1 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Tue, 19 Oct 2010 17:09:32 +0300 Subject: [PATCH 1/3] Make HUD_main +x again --- pyfpdb/HUD_main.pyw | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 pyfpdb/HUD_main.pyw diff --git a/pyfpdb/HUD_main.pyw b/pyfpdb/HUD_main.pyw old mode 100644 new mode 100755 From 02fdcf307e0d0703907c087bf155a737dd928c0e Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Sun, 7 Nov 2010 20:08:56 -0500 Subject: [PATCH 2/3] reset AP/UB horse games to 8 seat support Everleaf 4-seat (need a layout, i can't get into the games) --- pyfpdb/AbsoluteToFpdb.py | 2 +- pyfpdb/EverleafToFpdb.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/AbsoluteToFpdb.py b/pyfpdb/AbsoluteToFpdb.py index c30f4544..bd6f7b9f 100755 --- a/pyfpdb/AbsoluteToFpdb.py +++ b/pyfpdb/AbsoluteToFpdb.py @@ -219,7 +219,7 @@ class Absolute(HandHistoryConverter): hand.maxseats = 6 if self.HORSEHand: - hand.maxseats = 9 + hand.maxseats = 8 # todo : unless it's heads up!!? return def readPlayerStacks(self, hand): diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 3f87a21c..c24e3329 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -179,6 +179,8 @@ or None if we fail to get the info """ elif seatnum > 6: hand.maxseats = 8 # everleaf currently does 2/6/10 games, so if seats > 6 are in use, it must be 10-max. # TODO: implement lookup list by table-name to determine maxes, then fall back to 6 default/10 here, if there's no entry in the list? + elif seatnum > 4: + hand.maxseats = 6 # they added 4-seat games too! def markStreets(self, hand): From aa0de0344dc3aa485de6f69000555074eba6a9df Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Sun, 7 Nov 2010 20:12:21 -0500 Subject: [PATCH 3/3] finish fix for 4-max --- pyfpdb/EverleafToFpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index c24e3329..586d36d9 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -145,7 +145,7 @@ or None if we fail to get the info """ logging.debug("HID %s, Table %s" % (m.group('HID'), m.group('TABLE'))) hand.handid = m.group('HID') hand.tablename = m.group('TABLE') - hand.maxseats = 6 # assume 6-max unless we have proof it's a larger/smaller game, since everleaf doesn't give seat max info + hand.maxseats = 4 # assume 4-max unless we have proof it's a larger/smaller game, since everleaf doesn't give seat max info currencies = { u'€':'EUR', '$':'USD', '':'T$', None:'T$' } mg = m.groupdict()