Don't unregister from tournaments

Add your suggestions for improving Poker Mavens

Don't unregister from tournaments

Postby imperialized » Wed Jul 22, 2009 11:31 pm

I have had a lot of users complain when I have to restart my server and it unregisters them from tournaments. If a tourny is scheduled for a later time can we make it so they dont get unregistered?
David Lallone
http://www.whypaypoker.com
WhyPayPoker Owner
imperialized
 
Posts: 25
Joined: Sat Jul 18, 2009 1:16 pm

Re: Don't unregister from tournaments

Postby Kent Briggs » Thu Jul 23, 2009 12:48 am

imperialized wrote:I have had a lot of users complain when I have to restart my server and it unregisters them from tournaments. If a tourny is scheduled for a later time can we make it so they dont get unregistered?


Once the system goes offline, the tournament object is freed and it loses all memory of registrations. If the downtime is planned, you could write a function using the API that grabs and saves the registration lists and restores them when you come back online. That could also be done manually.
Kent Briggs - kbriggs@briggsoft.com
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 2061
Joined: Wed Mar 19, 2008 8:47 pm

Re: Don't unregister from tournaments

Postby imperialized » Thu Jul 23, 2009 4:57 am

Will this ever be implemented in future releases? Or should I write a script
David Lallone
http://www.whypaypoker.com
WhyPayPoker Owner
imperialized
 
Posts: 25
Joined: Sat Jul 18, 2009 1:16 pm

Re: Don't unregister from tournaments

Postby Kent Briggs » Thu Jul 23, 2009 9:37 am

imperialized wrote:Will this ever be implemented in future releases? Or should I write a script


You should write a script but how often are you taking the server down while people are registered for tournaments?
Kent Briggs - kbriggs@briggsoft.com
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 2061
Joined: Wed Mar 19, 2008 8:47 pm

Re: Don't unregister from tournaments

Postby monsterix » Thu Jul 23, 2009 11:33 am

Kent Briggs wrote:
imperialized wrote:Will this ever be implemented in future releases? Or should I write a script


You should write a script but how often are you taking the server down while people are registered for tournaments?


Hi Kent,

What is happened server down by the hosting provider for x reasons??

regards.
ManiakPoker.com: An other poker experience :)

http://www.maniakpoker.com
monsterix
 
Posts: 9
Joined: Sun Jul 12, 2009 5:45 pm
Location: Switzerland

Re: Don't unregister from tournaments

Postby Kent Briggs » Thu Jul 23, 2009 1:14 pm

monsterix wrote:What is happened server down by the hosting provider for x reasons??


There's a Crash Recovery setting that writes chips balances to a file for each table at the beginning of each hand. The files are deleted when play ends normally. Each time the server starts, it looks for those files indicating that there was a non-orderly shutdown previously. It then refunds those accounts. In the case of tournaments that haven't started, it just refunds the buy-ins since it doesn't know if the server was taken down on purpose for just a minute or for some other reason that lasted for hours or days.
Kent Briggs - kbriggs@briggsoft.com
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 2061
Joined: Wed Mar 19, 2008 8:47 pm

Re: Don't unregister from tournaments

Postby madcow » Thu Jul 23, 2009 2:22 pm

Kent Briggs wrote:
imperialized wrote:I have had a lot of users complain when I have to restart my server and it unregisters them from tournaments. If a tourny is scheduled for a later time can we make it so they dont get unregistered?


Once the system goes offline, the tournament object is freed and it loses all memory of registrations. If the downtime is planned, you could write a function using the API that grabs and saves the registration lists and restores them when you come back online. That could also be done manually.


how do i do this in API ? .. save and restore tourney's registration .. this is neat ..

thanks
madcow
 
Posts: 194
Joined: Fri May 22, 2009 1:25 pm

Re: Don't unregister from tournaments

Postby Kent Briggs » Thu Jul 23, 2009 4:06 pm

madcow wrote:how do i do this in API ? .. save and restore tourney's registration .. this is neat ..


Use the TournamentsWaiting command to get the list of registrants prior to shutting down. Either store the names in a file, database, or hold them in a web form. Then when you come back online, retrieve the names and use the TournamentsRegister command in a loop to put everyone back in.
Kent Briggs - kbriggs@briggsoft.com
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 2061
Joined: Wed Mar 19, 2008 8:47 pm

Re: Don't unregister from tournaments

Postby rjones33 » Thu Jul 23, 2009 5:27 pm

I wrote a vb program that just copies all the files from the Crash recovery directory and stores them in a temp directory. When I bring the server back online, my program loops through the files in the temp directory and re-registers the players. Definitely worth the time...
Ricky Jones
Poker Sharkz, LLC
http://www.pokersharkz.net
rjones33
 
Posts: 94
Joined: Tue Jun 24, 2008 6:51 pm
Location: Warrenville, SC

Re: Don't unregister from tournaments

Postby Kent Briggs » Thu Jul 23, 2009 5:36 pm

rjones33 wrote:I wrote a vb program that just copies all the files from the Crash recovery directory and stores them in a temp directory. When I bring the server back online, my program loops through the files in the temp directory and re-registers the players. Definitely worth the time...


That'll work too although it requires your program to be running on the same machine as the game server, whereas the all-API method does not.
Kent Briggs - kbriggs@briggsoft.com
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 2061
Joined: Wed Mar 19, 2008 8:47 pm

Next

Return to Wish List

Who is online

Users browsing this forum: No registered users and 0 guests

cron