Finally seems to be getting to grips with this program after 6 days!!
Seems the main problem is I ported the program over from a site which had one text file per game where as for the new site all the games for a table were in one file.
Or it may have been that I did it OK first time and then introduced a bug trying to fix another bug!!! (because I am sure it worked fairly well at one point, however they may have changed the format of a game file.Some file have a <NUL> in. Which I can't display here
but it's basically a line with a null (00 hex) followed by a newline (\n)
which caused all sorts of problems
Code:
george_shrub wins $0.06 USD
dskywalker89 has left the table.
Game #12518520775 starts.
#Game No : 12518520775
***** Hand History for Game 12518520775 *****
$4 USD NL Texas Hold'em - Wednesday, January 09, 14:23:33 EST 2013
Table Suffolk Coastal (Real Money)
Seat 2 is the button
and
Code:
DrFlichsbart does not show cards.
DrFlichsbart wins $0.23 USD
AGrady has left the table.
Game #11795667345 starts.
NUL#Game No : 11795667345
***** Hand History for Game 11795667345 *****
$2 USD NL Texas Hold'em - Thursday, May 31, 14:08:09 EDT 2012
Table Roudne (Real Money)
Note the fifth line NUL#Game No : 11795667345
Odd thing is some files seem to have it in and some don't and I can't quite figure out why.
I just need to make sure it is not missing any files out now, and fix a minor bug in the stats processing.
Finally produces something like this:
Code:
(RealOrtaköy.txt
01 ignatio777 11.4X -0.02P 35G 4C 35G 4C 3.0W 11.4X8 9%WON 3F 9%FW 11.4VIP 3%P 3%F 6%T 0%R NaN%SD ignatio777
02 knobelclown 6.1X 0.56P 66G 4C 66G 4C 7.0W 6.1X8 11%WON 7F 11%FW 6.1VIP 9%P 5%F 3%T 3%R NaN%SD knobelclown
03 hchch 2.9X 0.01P 35G 1C 35G 1C 2.0W 2.9X8 6%WON 2F 6%FW 2.9VIP 3%P 0%F 0%T 3%R NaN%SD hchch
04 Draganta333 5.1X -0.86P 59G 3C 59G 3C 2.0W 5.1X8 3%WON 1F 2%FW 5.1VIP 2%P 3%F 2%T 0%R 25%SD Draganta333
05 kruteranio 13.4X -1.13P 97G 13C 97G 13C 15.5W 13.5X8 16%WON 12F 12%FW 13.4VIP 12%P 1%F 5%T 3%R 19%SD kruteranio
06 Jr.Joe 19.8X 2.25P 96G 19C 96G 19C 16.0W 19.8X8 17%WON 11F 11%FW 19.8VIP 1%P 10%F 8%T 3%R 31%SD Jr.Joe
07 MistWar 9.4X -3.77P 138G 13C 138G 13C 11.0W 9.4X8 8%WON 11F 8%FW 9.4VIP 5%P 5%F 2%T 4%R 0%SD MistWar
08 george_shrub 24.3X -79.90P 6255G 1502C 5998G 1458C 929.6W 25.2X8 15%WON 704F 11%FW 24.1VIP 4%P 13%F 5%T 4%R 21%SD george_shrub
09 tjc1628 19.5X -0.62P 41G 8C 41G 8C 2.0W 19.5X8 5%WON 1F 2%FW 19.5VIP 0%P 0%F 2%T 0%R 50%SD tjc1628
I think there is bug in the last percentage on a line (SD showdowns won) the figure seems to be too low, but as it is the same bug for everyone it does not matter so much, I can still see who win more than average.
I am pretty sure I win more than 21%!!! (I think those figures need to be doubled )