Tournament Finish Event not work

Report bugs found in Poker Mavens

Tournament Finish Event not work

Postby salar » Sun Aug 25, 2013 12:48 pm

hi kent.
when I run this url:
http://localhost:800/eventshandler.asp? ... sh&name=HO Double or Nothing 20K&time=2013-08-25&number=7
every things is ok but when a tourny finish event not work.
PM Config:
Version : 3.19
Enable callback : Yes
URL: http://127.0.0.1:800/eventshandler.asp
Tournament Finish Event: Yes
Hand Event : Yes

my Pm config is ok because hand event work successfully but tournament finish event not work.
salar
 
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Postby salar » Sun Aug 25, 2013 12:58 pm

i things Tournament Finish Event is NOT "TourneyFinish"
salar
 
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Postby Kent Briggs » Sun Aug 25, 2013 1:16 pm

salar wrote:i things Tournament Finish Event is NOT "TourneyFinish"


It is definitely "TourneyFinish". Try amending your code so that every call gets logged to a text file that you can examine. I don't have an ASP version but it would look something like this in PHP:

Code: Select all
<?php
  $f = fopen("Callback.txt","a");
  $event = $_POST["Event"];
  $time = $_POST["Time"];
  fwrite($f,"Event = " . $event . "\n");
  fwrite($f,"Time = " . $time . "\n");
  fwrite($f,"\n");
  fclose($f);
?>


I just tested this by running a 2-person tournament and going all-in on the first hand. It created a Callback.txt file with this content:

Event = TourneyFinish
Time = 2013-08-25 13:08:54
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3906
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Finish Event not work

Postby salar » Sun Aug 25, 2013 2:00 pm

hi again.
i do it.

i dont see date format.
thank you
salar
 
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Postby Kent Briggs » Sun Aug 25, 2013 2:24 pm

salar wrote:i dont see date format.


What do you mean by "date format"?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3906
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Finish Event not work

Postby salar » Thu Aug 29, 2013 9:59 am

tournament event send YYYY/MM/DD MM:SS date format and when i want date only to compare ;) MM:SS Cause bug
salar
 
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Postby Kent Briggs » Thu Aug 29, 2013 10:13 am

salar wrote:tournament event send YYYY/MM/DD MM:SS date format and when i want date only to compare ;) MM:SS Cause bug


Then just trim off the MM:SS part in your code.

Code: Select all
$time = $_POST["Time"];
$date = substr($time, 0, 10);
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3906
Joined: Wed Mar 19, 2008 8:47 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 6 guests