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
  #11  
Old 12-15-2006, 01:23 AM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: $$$ for a HH file splitter (like the one PT has)

[ QUOTE ]

I recently bought a 17" Sony Vaio laptop with WUXGA (1920x1200)


[/ QUOTE ]

Sweet... I [img]/images/graemlins/heart.gif[/img] Sony laptops.

[ QUOTE ]

that comes with a free Vista upgrade.


[/ QUOTE ]
Here in the UK they want to charge a $19 "shipping fee" for the "free" upgrade to Vista, and it only upgrades to the lame Standard version [img]/images/graemlins/frown.gif[/img]
Reply With Quote
  #12  
Old 12-16-2006, 05:27 AM
Dazarath Dazarath is offline
Senior Member
 
Join Date: Nov 2004
Location: (>\'.\')>
Posts: 3,394
Default Re: $$$ for a HH file splitter (like the one PT has)

Hey Dave, how would I edit the script so that it doesn't ask for folders. Rather, I'd like it to just detect all text files in the current directory, and then automatically create a new directory (maybe HHSplitter or something), and place all of the new text files in there.
Reply With Quote
  #13  
Old 12-26-2006, 08:34 AM
Dazarath Dazarath is offline
Senior Member
 
Join Date: Nov 2004
Location: (>\'.\')>
Posts: 3,394
Default Re: $$$ for a HH file splitter (like the one PT has)

Hey Dave, I sometimes get the following error:

Reply With Quote
  #14  
Old 01-11-2007, 05:05 AM
Golden Golden is offline
Senior Member
 
Join Date: Jul 2004
Posts: 114
Default Re: $$$ for a HH file splitter (like the one PT has)

I tried using this for my stars histories and it just split it into one large file with no breaks between the hands. Any help?
Reply With Quote
  #15  
Old 01-19-2007, 04:04 PM
Golden Golden is offline
Senior Member
 
Join Date: Jul 2004
Posts: 114
Default Re: $$$ for a HH file splitter (like the one PT has)

[ QUOTE ]

Just Copy/Paste, save & run.

It will ask you for an input folder and an output folder. Take care with output folder - Make sure it's empty, preferably new folder - there is no checking if files are already present before writing output.

It will tell you how many hands processed when finished.

You can specify Hands per file output at the top of this script.

StarsHandHistorySplitter.ahk
<font class="small">Code:</font><hr /><pre>
;------------------------------------------------------------------------------
#NoEnv
#MaxMem 1024


HandsPerFile := 100
dlim := "PokerStars Game #"



;SetBatchLines, -1

AllHands := ""
FileSelectFolder, InputFolder, , , Select the Folder of Hand Histories
if (!ErrorLevel)
{
FileSelectFolder, OutputFolder, , , Select the Folder to Save Output
if (!ErrorLevel)
{
Loop, %InputFolder%\*.txt
{
tmp := ""
FileRead, tmp, %A_LoopFileFullPath%
AllHands := AllHands . tmp
}
StringReplace, AllHands, AllHands, %dlim%, µ, All
StringSplit, hands, AllHands, µ
OutFile := OutputFolder . "\Hands_"
Loop, %hands0%
{
OutFileName := OutFile . Floor((A_Index / HandsPerFile)) . ".txt"
data := dlim . hands%A_Index%
FileAppend, %data%, %OutFileName%
}
MsgBox, %hands0% Hands Processed.
}
}
;------------------------------------------------------------------------------
</pre><hr />
Enjoy,

dave.

[/ QUOTE ]

I did everything exactly as you said Dave. Copied and pasted exactly. But when I try to split my pokerstars hand histories, I get one large notepad file with not breaks between the hands. Could anyone help out, please? It's a pain having to use pokertracker's splitter.
Reply With Quote
  #16  
Old 01-20-2007, 11:53 AM
kidpokeher kidpokeher is offline
Senior Member
 
Join Date: Apr 2006
Location: value shoving
Posts: 2,115
Default Re: $$$ for a HH file splitter (like the one PT has)

[ QUOTE ]
Get at least 1GB RAM (as fast as you can afford), preferably 2GB. If budget is a concern I'd prefer 1GB of super-fast RAM over 2GB of standard stuff.


[/ QUOTE ]

Sorry for the thread hijack for a really old response but this caught my eye. Is faster memory really so good that this is the better way to go? I usually get quality components but admit to purchasing Kingston's Valueram or a similar offering from Crucial.

I figured sticking with a major vendor should keep it decent. No?
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 08:58 PM.


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