Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 09-07-2007, 12:40 AM
HighSteaks HighSteaks is offline
Senior Member
 
Join Date: Aug 2006
Location: Australia
Posts: 658
Default Re: Fix for GameTime+ on Everest Poker

I can't get it to paste other than continuous lines, can you put a link to a Python or text file that can be downloaded or something?
Reply With Quote
  #22  
Old 09-07-2007, 03:14 AM
HighSteaks HighSteaks is offline
Senior Member
 
Join Date: Aug 2006
Location: Australia
Posts: 658
Default Re: Fix for GameTime+ on Everest Poker

Ship it, got it working- thanks dude.
Reply With Quote
  #23  
Old 09-10-2007, 07:02 PM
SpaceyFCB SpaceyFCB is offline
Junior Member
 
Join Date: Mar 2005
Posts: 25
Default Re: Fix for GameTime+ on Everest Poker

I installed Vista (32 bit) and it doesn't work anymore.
Black dos-screen opens and remains open, but the HH's aren't written to the folder I want to.
I installed Pyton 2.5.1

Greets. K.
Reply With Quote
  #24  
Old 09-15-2007, 06:32 AM
Brit_Abroad Brit_Abroad is offline
Member
 
Join Date: Aug 2006
Location: Amsterdam, Netherlands
Posts: 39
Default Re: Fix for GameTime+ on Everest Poker

works fine for me on Vista
Reply With Quote
  #25  
Old 10-09-2007, 10:21 AM
olator olator is offline
Junior Member
 
Join Date: Oct 2007
Posts: 1
Default Re: Fix for GameTime+ on Everest Poker

Hi everybody. I add some "feature" to this script.
Now you don't have to choice the number of player yourself. The script check in a list of name table to know which type of table it is (short handed, full ring, head's up).
If the name isn't in the list so it's a multi table tournament (always full ring now)
Please tell me if there is problem or if i forgot a table name.

<font class="small">Code:</font><hr /><pre>
import os, time, re, xml.dom.minidom, xml.parsers.expat

############################### SETTINGS ###############################

everest_dir = "C:\Program Files\Everest Poker\history\\"
output_dir = "C:\Program Files\Everest Poker\history\processed\\"
number_of_players = 10
FR_table_name = ['Aracar', 'Ankara', 'Bishorn', 'Bronze', 'Bangkok', 'Beijing', 'Berlin', 'Brussels', 'Chichon', 'Colima', 'Dom', 'Dhaka', 'Ecrins', 'Elbert', 'Fuji', 'Galeras', 'Gold', 'Hanoi', 'Honiara', 'Jungfrau', 'K2', 'Kabul', 'Kigali', 'Liskamm', 'London', 'Monch', 'Maipo', 'Malabo', 'Manila', 'Moroni', 'Moscow', 'Osaka', 'Putana', 'Purace', 'Pelee', 'Paris', 'Robson', 'Rabat', 'Riga', 'Rome', 'Shasta', 'Sangay', 'Sarajevo', 'Seoul', 'Taal', 'Tashkent', 'Tokyo', 'Usluga', 'Ubinas', 'Vienna']
SH_table_name = ['Alphubel', 'Ararat','Apia', 'Batura', 'Bamako', 'Belgrade', 'Bogota', 'Castor', 'Changtok', 'Cook', 'Chowusha', 'Castries', 'Droites', 'Dili', 'Dodoma', 'Doha', 'Eiger', 'Etna', 'Janak', 'Hungchhi', 'Harare', 'Kenya', 'Kotte', 'Lhotse', 'Lusaka', 'Makalu', 'Muscat', 'Nordend', 'Nassau', 'Olympus', 'Palikir', 'Risum', 'Riyadh', 'Rosseau', 'Sanaa', 'Suva', 'Taipei', 'Thimphu', 'Toronto', 'Tutupaca']
HU_table_name = ['Algiers', 'Athens', 'Beirut', 'Belmopan', 'Bern', 'Cameroon', 'Dublin', 'Elbrus', 'Essen', 'Funafuti', 'Hekla', 'Koror', 'Lisbon', 'Luanda', 'Mawenzi', 'Manaslu', 'Manama', 'Oslo', 'Quito', 'Savoia', 'Sinai', 'Tyree', 'Tsogaka', 'Tarawa', 'Tbilisi', 'Tirana', 'Victoria']

############################# / SETTINGS ###############################


def ParseFile( filename ):
in_file = open( everest_dir + filename, 'rb' )
out_file = open( output_dir + filename, 'wb' )
lines = in_file.readlines()
handtext = [ ]
for line in lines:
handtext.append( line )
if '&lt;SESSION' in line:
xmlLine = xml.dom.minidom.parseString( line )
nickname = xmlLine.childNodes[0].getAttribute( 'screenName' )
tablename = xmlLine.childNodes[0].getAttribute( 'tableName' )
tablename = tablename.split('-')[0]
if tablename in FR_table_name:
number_of_players = 10
### "full ring table" ###
elif tablename in SH_table_name:
number_of_players = 6
### "short handed table" ###
elif tablename in HU_table_name:
number_of_players = 2
### "heads up table" ###
else:
number_of_players = 10
### "tournament HH" ###
elif '&lt;HAND' in line:
position = { }
elif '&lt;SEAT' in line:
xmlLine = xml.dom.minidom.parseString( line )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
name = xmlLine.childNodes[0].getAttribute( 'name' )
position[ name ] = pos
elif '&lt;DEALER' in line:
offset = int( position[ nickname ] )
elif '&lt;/HAND&gt;' in line:
for l in handtext:
try:
xmlLine = xml.dom.minidom.parseString( l )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
pos = int(pos)
pos = (pos - offset) % number_of_players
out_file.write( re.sub( 'position="[0-9]+"', 'position="' + str(pos) + '"', l ) )
except (ValueError, xml.parsers.expat.ExpatError):
if '&lt;WIN' in l:
pos = int( l[ 17 ] )
pos = (pos - offset) % number_of_players
l = l[:17] + str(pos) + l[18:]
out_file.write( l )
handtext = [ ]


handled = { }
while True:
files = os.listdir( everest_dir )
for file in files:
if re.match( "^[0-9]+\.txt", file ):
mtime = os.path.getmtime( everest_dir + file )
if file not in handled:
handled[ file ] = 0
if mtime &gt; handled[ file ]:
ParseFile( file )
handled[ file ] = mtime
time.sleep( 60 )

</pre><hr />
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.