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
  #31  
Old 04-02-2007, 01:38 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: ColoredStacks Problem

Okay people - I figured out why it's not working with the regular Party hhs. For whatever reason Party are adding a binary zero at the end of every hh, so AHK can't read further than the first hh. I found a work around, but it's too slow. It doesn't matter though, since we have FPHG [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #32  
Old 04-02-2007, 01:39 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: ColoredStacks Problem

[ QUOTE ]

yes, C:\FreePHG_HandHistories

[/ QUOTE ]

I don't know what's wrong then. Try a different table or something.

Edit: Are you running FPHG with the default settings?
Reply With Quote
  #33  
Old 04-02-2007, 02:10 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: ColoredStacks Problem

I just put up a new version, which should be less confusing to use. Also uploaded my functions again, I'm not sure if I changed anything.

Toasta, try downloading everything again.
Reply With Quote
  #34  
Old 04-02-2007, 05:56 PM
Toasta Toasta is offline
Senior Member
 
Join Date: Sep 2006
Posts: 205
Default Re: ColoredStacks Problem

woho \o/ works perfect now, big thanks roland [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #35  
Old 04-30-2007, 01:26 PM
Bryn Bryn is offline
Senior Member
 
Join Date: Jun 2006
Posts: 190
Default Re: ColoredStacks Problem

i'm getting the
Error at line 191
Line Text: Convert(show)
Error: Duplicate function Defintion

I've got FPHG running, latest functions and latest colored stacks code.
Reply With Quote
  #36  
Old 05-01-2007, 01:59 PM
HalvSame HalvSame is offline
Senior Member
 
Join Date: May 2006
Posts: 391
Default Re: ColoredStacks Problem

[ QUOTE ]
Okay people - I figured out why it's not working with the regular Party hhs. For whatever reason Party are adding a binary zero at the end of every hh, so AHK can't read further than the first hh. I found a work around, but it's too slow. It doesn't matter though, since we have FPHG [img]/images/graemlins/smile.gif[/img]

[/ QUOTE ]Don't know if this is similar to the workaround you were referring to, but here's what I did in the BigPotGrabber script to get around this issue:
<font class="small">Code:</font><hr /><pre> ;---- read content of file and split into individual hands
;since Party separates the hands by writing a NULL character, we need to replace those characters in memory.
;(see http://www.autohotkey.com/forum/view...?p=91578#91578)

file = %partyHistoryPath%\%A_LoopField%

SetBatchLines, -1 ; Run at top speed!

FileGetSize, dataSz , %file% ; StrLen() will not work with binary data
FileRead , binData , %file% ; Read the whole binary file into a variable

Pointer := &amp;binData

Loop, %dataSz% ;Parse the binary data for NULL terminator
If ( *(Pointer+(A_Index-1)) = 0 ) ; If Chr(0) found replace it with Chr(167)/§
DllCall( "RtlFillMemory", UInt, Pointer+(A_Index-1), Int,1, UChar,167 )

StringSplit, hand, binData, §</pre><hr />
Don't know if it'll be fast enough for real-time use, as the script I used it in works in longer intervals. Just thought I'd throw it out there [img]/images/graemlins/smile.gif[/img].
Reply With Quote
  #37  
Old 05-01-2007, 03:11 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: ColoredStacks Problem

Yeah, that's what I did too - even used the same replacement char as you (§) [img]/images/graemlins/smile.gif[/img]
Skans stuff is just amazingly good, isn't it?

It does work pretty well, and if there was no other option I'd use it; it would probably be quite okay actually if you move the files every 5 minutes or so. But luckily we have FPHG [img]/images/graemlins/smile.gif[/img]

Thanks for sharing, in any case.
Reply With Quote
  #38  
Old 05-01-2007, 03:12 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default Re: ColoredStacks Problem

[ QUOTE ]
i'm getting the
Error at line 191
Line Text: Convert(show)
Error: Duplicate function Defintion

I've got FPHG running, latest functions and latest colored stacks code.

[/ QUOTE ]

Try deleting the whole folder and downloading again....
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:05 PM.


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