Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rakrul

Pages: [1] 2 3
1
Suggestions / Re: API
« on: October 23, 2022, 04:45:16 PM »
Even later to the party, but to add to this:

And responding to myself: in my notes I included a few actions for the first pass:
- Start or stop the clock
- Move to next/previous round
- Buy-in player
- Bust-out player
- Add-on player
- Rebuy player

Any thoughts on other functions?

Balancing tables would be useful, I'd guess.

2
Help Me / Re: Status update working, but blank TournamentStatus.html
« on: September 30, 2021, 07:00:19 PM »
I realized I had been a bit retarded and never checked the browser console, so the reason the webpage was blank was because it was served on https and the html page had this line
Code: [Select]
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>which obviously browsers aren't happy with. So once I changed that to https, I got some data on the webpage, but all the values are undefined or NaN.

I then started looking at the examples files and I think I downloaded some old ones as I thought your manual (http://www.thetournamentdirector.net/userguide/docs370.html#_Toc493847226) was up to date (*cough*). ;)

Anyways, since I had to replace my C: drive in the PC, I reinstalled win10 and TD so I had a fresh install. Copied the files in that example folder over, modified html to use https, gave write permission to the listener-json.php and tested. Now it creates a 7kB tdstatus.txt file which seem fine to me but the web-page still has no correct values, only "undefined" and "NaN".

I'm a bit stumped. tdstatus.txt is updated every 60 seconds and I'm guessing it's the JS-file which is failing here. But I don't understand why or where to look.

3
Help Me / Re: Status update working, but blank TournamentStatus.html
« on: September 22, 2021, 08:29:33 AM »
I noticed that my statusListener.php and TournamentStatus.js were quite old and compared to the ones in the example folder and noticed differences, so I started using the ones from the example-folder instead. Now it writes to tdstatus.txt every minute but the file is 0 bytes...

Edit:

Old listener that writes ~7kB to tdstatus.txt:
Code: [Select]
<?php

// Receives a POST in JSON format from the TD and writes out the object.
// It's up to the viewer page to interpret those; we do no validation here.
// kFileOutput will probably need to be an absolute path.  The web server must have write access to the file.

$kFileOutput "tdstatus.txt";

$handle fopen($kFileOutput"w");

fputs($handlefile_get_contents("php://input"));

fclose($handle);

?>


New one from example-folder that gives me 0B tdstatus.txt every minute:
Code: [Select]
<?php

// receives a POST or GET request from the TD and writes out the included variables
// it's up to the viewer page to interpret those; we do no validation here

$kFileOutput "tdstatus.txt";

$handle fopen($kFileOutput"w");

foreach(
$_GET as $key => $val)
  
fputs($handle"$key=" $val "\n");

foreach(
$_POST as $key => $val)
  
fputs($handle"$key=" $val "\n");

fclose($handle);

?>


4
Help Me / Status update working, but blank TournamentStatus.html
« on: September 22, 2021, 07:10:56 AM »
So I had this working earlier, but made some changes on my web-server which receives these updates.

I can see that tdstatus.txt is updated correctly every minute, but the web-page still draws a blank. Meaning the fields/text is there, but the values from the tournament isn't (i.e. Clock: but no text after that, Round:, etc).
This is running on a linux server and I made sure that the php-file has write permission, and since the tdstatus is fine this shouldn't be a problem. I modified your html file earlier and it worked before, and I also tested with the original in the examples folder with the same results.
TournamentStatus.js is in the same folder as the php script. I figured this to be all my restructuring could cause issues with, but apparently not. I'm a bit stumped now, so any suggestions? (I know this isn't related to your software as it does what it's supposed to.)

5
Help Me / Re: Remove decimals from points and score
« on: September 25, 2020, 10:59:09 AM »
Hmmm, seems like all my preferences are gone. Hotkeys are back to default, I'm uploading tournament stats to a server - that's gone as well, etc. There has been some windows updates since I last used this in July and I've removed my gfx card, but I doubt the latter matter.

Edit: Figured it out. You can define decimals in Preferences -> Currency / Numbers.

6
Help Me / Remove decimals from points and score
« on: September 24, 2020, 04:06:11 PM »
Seems like an upgrade removed my Stats profiles. I only use one, so not a big problem. A small annoyance now is that the points are shown with 2 decimals and score has 4 decimals but I need none. So my points formula is
sum(Points))
and my (Overall) score formula is
sum(top(6, ListPoints))

So I tried to change to
round(sum(Points))
and
round(sum(top(6, ListPoints)))
as, according to the highligh-tip, if there's no second parameter it will assume zero and convert the first to integer. That's what I want but it doesn't change anything, I still get 2 and 4 decimals. I guess in my case sum() might be a list? I also tried int() instead of round() but it doesn't seem to exist.

7
Help Me / Re: RFID Poker Chips
« on: April 20, 2020, 05:03:54 PM »
That's not really true as long as you expect multiple inputs. A friend of mine started a project like yours over 10 years ago. He got some RFID card deck samples from china and the deck was like 25 cm high.  ;D
That's obviously not a problem anymore. The thing was that you need to pass the discards through a "discard reader" as the muck pile can be too big. A couple of years ago, I saw someone testing with rfid chips (can't remember the brand, think it was Italian), and the antenna could read a 10 high stack. Anything above 10 chips isn't "seen". This requires unique IDs per chip which is both common and somewhat expensive.

Since you need to dedicate an area for the hole cards (and community cards) it's common to make them so you can fit two cards side by side. This also makes it easier for the code.

When my friend made this he had many rfid antennas but only one reader and would switch between different antennas per second. For this to work properly you need to know the power-up time for the antennas so you don't switch to the next antenna before it has time to power up the rfid antenna  and read the tag, but it shouldn't be a problem. 

8
General Discussion / Re: Camera Track Added
« on: March 20, 2019, 07:49:03 PM »
First I would like to say I truly appreciate The Tournament Director software. I have used this for a number of years and appreciate all of the work that has gone into its development.  We use TD for our charity poker fund raising event and everyone seems to like it. 

During our events the final table is used for the final 9 players and we have recorded an overhead time laps for the last few years. This progressed into adding 4 "hole cameras" that used a PC and a USB video recording adapter. I know, why would you want to record your friends, why would anyone allow you to review their play, you know you are not ESPN.... To this I say we are a charity and the video is used to promote the next event.  ;)

Well long story short we decided to add a full set of hole cameras to the table. We took quite a few photos and have documented the build at http://www.JoshFarler.org/cameratrack.html. (sub page menu on right side of article)

Hopefully this build will give you the reader some insights to adding cameras to your table.
Cool! I started something similar about 10 years ago, but gave up as all the CCTV systems would encode their videos with a special encoder, so it was really hard to export the files into anything useful. Which again meant you could only play the files with the player the system included. I assume your system didn't have this issue?

9
Help Me / Stats over many seasons seems wrong
« on: August 31, 2018, 09:53:15 PM »
We've had a tourny league for quite some time and I was looking to check if we had some anniversary coming up soon, so I went to stats and I chose all seasons and later, any season and the stats came up with 41 tourneys. However, when I checked the save files, it was 176 tourneys. We're currently in season 16 and there's a minimum of 6 tourneys per season so 41 is wrong regardless. I thought maybe I had classified them as different leagues, but I only have one league and from the spot checks I did, they were all correct. So now I'm thinking that the filter, for whatever reason, stops counting after 41. Which doesn't make a whole lot of sense, programming-wise, unless you have some profound fear of Douglas Adams. So what's going on? :)

Let me know if you want my save directory zipped.

10
Help Me / Re: Tournament starts at round 2
« on: January 10, 2018, 05:39:58 PM »
Thank you for the response. It wasn't really a big issue and the workaround was easy enough, but happy to help.

11
Help Me / Re: Tournament starts at round 2
« on: January 09, 2018, 06:47:42 PM »
Sorry, completely forgot about this. Mailed it to you now.

12
Help Me / Re: Tournament starts at round 2
« on: January 03, 2018, 10:25:41 PM »
Yes and yes. Want me to mail it to support@...?

13
Help Me / Tournament starts at round 2
« on: January 03, 2018, 08:40:54 AM »
I changed my tournament a bit, so I loaded my last tournament, saved as different file, reset it, added a new first round (right click and insert round before round 1) and saved. Then I bought in players and started the tournament but it starts at my previous round 1 (which is now round 2) instead of my new first round. This happens both if I start the tournament as normal or with countdown.

If I click the Blinds schedule button, it shows the blinds correctly - meaning it includes my new round 1.

I'm pretty sure this is a bug, because if I insert a round before round 2 (or higher) and move it up to round 1, it will start at the newly added round 1 as it should.

14
Help Me / Status Update, Include paid player information unexpected error
« on: December 10, 2017, 05:17:11 PM »
I saw that you have done some updates on 3.4.1, so I try JSON and the Attempt update now button and it works fine. If I check Include paid player information and try to update I get an unexpected error occurred message with this message:

'theBustout' is undefined (PreferencesTab, TournamentPage: 109)
 at GamePlayer.toReportObj(Tournament)
 at GamePlayers.toReportObj(Tournament, Object, Boolean)
 at Tournament.toReportObj(null, Boolean, Boolean)
 at PrefStatusUpdates.performFileUpdate()
 at PrefStatusUpdates.updateNow()
 at PreferencesTab.StatusUpdateControl.updateNow()
 at anonymous()
 at openDialog(SettingsDialog)
 at SettingsDialog.openDialog()
 at SettingsDialog.enterTab()
 at Hotkey.handleCommonHotkeyActions(Hotkey.Binding)
 at GameWindow.processHotkeyBinding(Hotkey.Binding)
 at GameWindow.hotkey()
 at GameWindow.hotkeyHandler()

Browser: Microsoft Internet Explorer
Browser Beta: false
Browser Client Info Version: 7.0
Browser Code Name: Mozilla
Browser Decided Version: 11.0
Browser Detected Version: 11.0
Browser Language: en-US
Browser Minor Version: 0
Browser Version: 4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Tablet PC 2.0)
Cookies Enabled: true
CPU Class: x86
Data Folder: C:\Users\gar\Documents\The Tournament Director 2
Date: 0:10:37 12/11/2017
DB File: C:\Users\gar\Documents\The Tournament Director 2\Data\db\td.db
DB Folder: C:\Users\gar\Documents\The Tournament Director 2\Data\db
Install Folder: C:\Program Files (x86)\The Tournament Director 3
Install Info: c3e91b4795ef567e0217979d272009fb5d65eb72eb4482d51059ce87b8eca8772a3b715efa5480c7d062b08928026ed2237bb3bd603b2eb5fa3b55f29fb1cfe5
JScript Build: 16384
JScript Version: 5.8
License Info: UurQ1V0Pbk6U5LPeldABplg794InwOnv/lE0F1ORZJCUR4/VxfXzOu1wFrrzijPG6TILzed9ySbpMgvN533JJmo8WOreLo7z1muOIznsjYk=
Media Player Version: 12.0.15063.726
Online: true
Platform: Win32
Preferences File: C:\Users\gar\Documents\The Tournament Director 2\prefs.sav
Preferences FS File: C:\Users\gar\Documents\The Tournament Director 2\prefs.fs
Repo Config File: C:\Users\gar\Documents\The Tournament Director 2\repo.sav
Repo Folder: C:\Users\gar\Documents\The Tournament Director 2\Data
Support Key: 26A9B19A0005Y69LC8E5NE1A7456DD46014ACF72A3A
System Language: nb-NO
TD Patch Level: null
TD Version: 3.4.1
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Tablet PC 2.0)
User Language: nb-NO

Also, with the JSON format, I guess I have to change my php-scripts. Do you have any examples available?

15
Help Me / Re: TD3 suddenly stopped printing receipts
« on: July 01, 2017, 09:35:03 AM »
Uninstall update KB4022719. This update screwed up my printer too

That solved it, thanks Jody!

Pages: [1] 2 3