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 - Corey Cooper

Pages: 1 2 [3] 4 5 ... 361
Help Me / Re: Problems with tournamentstatus.html
« on: November 10, 2017, 04:08:54 PM »
Most likely the server-side script (statusListener-XXX.yyy, whichever you chose) is not permitted to write to the status file.  You'll have to either give the appropriate permissions to allow that to happen, or modify the statusListener and the TournamentStatus.js files to read/write the tdstatus.txt file in a different location, where permissions are more open.

For example, your server may have a /tmp folder where scripts are free to read/write.  You can modify the statusListener to write the file there.  You might be able to modify TournamentStatus.js to read it from there, but the server will probably not be configured to allow that.  In that case you might have to write another .php or .asp script that simply reads the tdstatus.txt file from the /tmp folder and returns it, like this:

Code: [Select]
// Read the tdstatus.txt file and output it.

You could save this script with a name like "reader.php", then change TournamentStatus.js like this:

Code: [Select]
TDStatus = {
  // variables that control various features of the page
  // URL to the tdstatus.txt file
  URLStatus: "reader.php",

Now statusListener writes to the /tmp folder, where permissions are open.  TournamentStatus.js no longer tries to read the file directly, because client browsers can't load files from /tmp, but instead goes to reader.php, which outputs the file back to the browser.

Help Me / Re: TD.exe a Threat?
« on: November 10, 2017, 03:55:58 PM »
I've submitted a false positive report to McAfee and Trend Micro.

Help Me / Re: Count Down Clock
« on: November 08, 2017, 04:06:00 PM »
I don't think there's a way to do that at this time.

Help Me / Re: Slow Database
« on: November 08, 2017, 04:05:33 PM »
could it be a problem with umlauts (,,) ?
This week we get 2 crashes by using the stats.

I doubt it.  Those characters are standard ASCII and aren't treated any differently than any other characters.  Even if they were Unicode, the TD shouldn't have a problem with them.

Help Me / Re: Lang and others small problems with 3.4.1
« on: November 07, 2017, 05:47:11 PM »
1 I use TD in French version and in my lang directory I have the directory fr4 containing each of the translation files (set4) available on your site. In the preference tab, this set is set. Currently version 3.4.1 works perfectly in French, but at the launch of TD I have the message A.

The latest version has a new screen, which has its own language file.  Since the language pack you're using is older, it doesn't include this file.  It's just a warning.  If you are annoyed enough by it to take action to make it go away, you can simply create a file named "" in the folder listed in the warning message.  The file can be completely empty.  That should make it stop.

2 At the launch of TD, I always have the message B.

The TD application only knows about your main display.  If you have additional displays, you can use them, by dragging TD windows to whichever display you want to use.  If you want to use them more efficiently, you can tell the TD about your other displays (how big they are and where they are located, virtually).  This is configured on the Preferences tab in the Extended Display category.  Then you can tell the TD to move the main window (when it is full-screened and thus has no title bar by which to drag it) to your extended display and possibly resize it if necessary.  By default, the TD will remember where your various windows are, including the Settings window, and open it in the same place again.

So, the scenario is: you've hooked up your laptop to an extended display.  So now you have your laptop's built-in display as well as the extended display.  You drag the Settings window to the Extended display and use it there.  Everything works great.  Later, you exit the TD and disconnect from the extended display.  Then you open up the TD.  Where's the Settings window?  It never appears to open.  Plus the main window is unresponsive.  You click on it but you just get the "ding" from Windows like the window is inaccessible.  Pressing the ESC key to open/close the Settings window appears to do nothing.  The TD appears frozen and you can't do anything with it.  You try to exit the TD but you can't, so you have to open the Task Manager and kill it.  Or worse, if you don't know how to do that, you reboot.  When you start the TD again, you get the same results.  What's going on?  The Settings window is actually opening in exactly the same place it was before - on the Extended display which is no longer connected, but the TD doesn't know that.  So you can't see the Settings window.  This confuses people.  In response, I added the special keypress Ctrl+Alt+Shift+F12, which moves all windows back to the main display.  This fixes it, but only if you know to do this.  In version 3.4, upon startup the TD checks to see where the Settings window is opening.  If it is opening off of the main display (whether or not if you have an Extended display or not, since the TD application doesn't know that), it gives you the chance to move it back.  There's no way to prevent this message today.  I could add a checkbox to disable it in the future, if it's that much of an issue.

Help Me / Re: Black screens and application slow down
« on: November 07, 2017, 12:24:13 PM »
Corey, It seems that the tournament size affects this ... is that correct? I run small tournaments with 14-15 players max. and cannot use version 3.4 without getting the black screens but do not have any problems with 3.3.

This is on windows 10 and IE 11.

It's certainly possible.  Different actions can cause memory problems.  If I buy-in 100 players all at once (just opening the Add Players dialog once), start the tournament and just let it run (not busting players out), it would run for hours and hours with no appreciable memory increase.  Because most actions tend to involve opening dialog windows, I focused on that.  Once you start opening dialogs (even opening and closing the Settings window), memory tends to increase.

Of course, your mileage may vary.  I do not know what is causing the memory increase, other than to say it happens with IE11 and doesn't seem to happen with IE10.  And people tend to operate the application differently.  The way you operate it could be using code paths that tend to cause IE 11 to accumulate memory.

Help Me / Re: Slow Database
« on: November 07, 2017, 12:19:27 PM »
i tried it like u sayd with a new Database. No Problems with the new Database. The Problem must be my 4.900 Players Database. Even if i try to search a Player  in my old Database ist terrible slow. Any idea?

Unfortunately no.  I just tried this with a database of 5000 players, on Windows 10 with IE 11.  Performance isn't ideal, to be sure.  However, opening the Add Players to Tournament dialog takes about 6 seconds before it is responsive.  After that, if I search it takes about 3 or 4 seconds for the list of players to update.  Again, not ideal, but certainly usable.  I can't imagine what is causing yours to take 30 seconds or more.

Help Me / Re: Slow Database
« on: November 07, 2017, 12:13:52 PM »
Cz with Version 3.3 the Database start searching after i hit Return. With 3.4 it starts a live search with every single letter.

This is a preference.  Preferences tab -> Behavior category -> Automatically search as soon as text is entered

Help Me / Re: Slow Database
« on: November 06, 2017, 05:35:58 PM »
I think we've likely discussed this over email before (and if it was someone else I apologize), but I really don't know why this happens to you.  Yes, 3000 players will run more slowly than 30 or 300, but in my testing 3000 players was not remotely unusable or even annoying.

Even if i add a new player to the database it takes terrible long time between typing and writing. i have to wait after every single letter.

This sounds to me like something else is happening, but I don't know what.

Have you tried using a blank database and adding a player?  Do you see the same issue?  This is easy to test without losing anything.  Try this:

Select the Preferences tab.  Then press the Data Stores button.  Then press the New button.  This will open the "Add New Data Store" dialog.  Press the Browse button and browse to some known location (wherever you want to create a folder) and press the "Make New Folder" button.  Give the new folder a name, and then press the OK button.  You should now be back at the "Add New Data Store" dialog with the Folder and Name fields completed.  Press the OK button.  Next you should be prompted to initialize the new data store.  Press the Yes button.  Now you should be back on the Data Stores dialog, and your new Data Store should have been added.  Right-click on the new Data Store and select "Make Active".  Confirm it by pressing the Yes button.  Finally, press the OK button on the Data Stores dialog to make the switch to the new, empty data store.  At this point, you should exit the TD and start it again.  That will clear out any cached players from memory.  Now you're running with an empty database.  You can confirm this by selecting the Database tab.  Try adding a new player.  Do you get the same issue (slow typing)?

To go back to your 3000 player database, select the Preferences tab, press the Data Stores button, right-click on your previous Data Store (should be the Default at the top) and select Make Active, then press OK.

Help Me / Black screens and application slow down
« on: November 06, 2017, 05:25:45 PM »
There are some topics and replies posted, and some of you have reported directly to me, about the application showing "black screens".  I've also been receiving error reports where the main issue is "out of memory".  I believe these are the same issue and that the application can behave unexpectedly when it no longer has the memory it needs to continue operating normally.  This doesn't mean your PC doesn't have enough memory.  It's how much memory IE allocates for the TD, and how IE allocates and uses that memory.

I now believe this is happening almost exclusively with Internet Explorer 11 and Windows 10.  Previously I was unable to reproduce this issue because I had forced my development PCs to stop updating Internet Explorer at version 10, and I wasn't developing on Windows 10 yet.  After performing testing on Windows 10 and IE 11, I can reproduce this issue quite easily.  Simply opening the Buy-in Players dialog or Bust-out Players dialog 50 to 100 times will cause the memory footprint of the application to increase to a size that will slow the application's responsiveness down noticeably, and eventually will lead to black screens and unexpected (and seemingly unrelated) errors, and ultimately crash the application.

As an example, and for some hard numbers, with IE 10 installed version 3.4.1 will start with a memory size of around 100 to 110 MB (megabytes) of memory.  After busting out 100 players, the memory size will increase to about 160 MB.  While it would be awesome if it didn't increase at all, this is actually fine.  If the memory consumption is consistent, 1000 players could be busted out without an issue.

With IE 11 installed, the same actions increase the memory size to over 700 MB.  The application noticeably slows, and ultimately it will freeze for 5 to 30 seconds, and then will continue working.  At this point, IE has done some memory "garbage collection" and the memory size has dropped to around 250 to 300 MB.  While that's good, the application still responds "sluggishly" and it is only a matter of time before it increases back to an unsustainable level and the black screens and ultimate crashing occurs.

Interestingly, the behavior is the same for version 3.3 and version 3.2, so I'm not sure why this wasn't a bigger issue before now, but it might just be that more and more people are moving to Windows 10.  Earlier versions didn't seem to exhibit this problem to the same extreme, but I've been unsuccessful in pinpointing any particular change from 3.11 to 3.2 that could have caused an issue.

So what can be done?

Well, for the long term I'm moving the applicaton to a modern framework.  I'm currently investigating Electron.  The model is very different, so it's going to be a lot of work, but I see this as really the only viable way forward for the TD application.

In the short term, here are some suggestions for working around this very annoying issue.  These are mostly good ideas to follow anyway to save you from losing information and/or time during a tournament should something go wrong.

1) Always use "Auto-save".  Always.  This should make it easy to get started right back where you left off if this should something happen.  That can be enabled on the Game tab.

2) Enable "Make backups when saving tournaments".  This is on the Preferences tab in the "Loading / Saving" section.  When this is enabled, every time auto-save kicks in and saves your tournament, instead of simply writing over the tournament file with the new version, it renames the tournament file first with a time stamp.  That would allow you to even go back to an earlier copy of the tournament if necessary.  In the extremely rare case that the TD application crashed while it was saving the tournament (rendering the saved tournament useless), you could go back to a previously saved version.  You might have to bust a player out again or move the clock forward a bit, but at least you wouldn't be starting from scratch.

3) On this same Preferences page, select "Automatically enable Auto-save".  This is really just an extra precaution.  This will help in case you forget to enable Auto-save.

4) On this same Preferences page, check the box next to "Upon application start, continue where I left off".  With this enabled, when you start the TD application the same tournament file you had loaded when you last exited the TD application will automatically be loaded again.  This makes continuing quick and easy.

5) Don't be afraid to exit the Tournament Director and restart it if you think there's an issue.  By using the previous settings, you can exit the TD at ANY time, restart it, and simply continue right where you left off.  This can be done in a matter of seconds.  Restarting the application will free all memory it is using and start it over "fresh".

6) Internet Explorer 11 is a problem with the TD.  For most people it is fine, but it uses a LOT more memory than Internet Explorer 10.  If you have the chance to move BACK to Internet Explorer 10, I would recommend it, especially if you're having an issue like this.  If you're using Windows 10, this is not an option, as you cannot use any version of IE except 11.  If you're using Windows 7 or 8, you can move back to IE 10.  I would do this.  You won't lose any functionality and you'll make it less likely you'll run into issues like this.  Here are steps for doing that if you want to try it:
  • Click on the "Start" button and type "Programs and Features" in the search box (or type "Programs and Features" in the search charm if you're running Windows 8 )
  • Click on the "View installed updates" in the left pane of the menu
  • Go over to the "Uninstall an update" screen and scroll down to the "Microsoft Windows" section
  • Select Internet Explorer 11 and click "Uninstall"
  • Restart your PC

tl;dr: This is a memory issue that is, I believe, exclusing to IE 11 (and possible Windows 10).  I'm trying to get away from IE entirely, but it will be a long time until that happens.  Roll back to IE 10 if you can (you can't if you're using Windows 10).  Use the above steps to help alleviate the pain of this problem if you must use IE 11.  I don't think going back to version 3.3 will help, but you're welcome to.  It's not advertised on the Downloads page, but you can still download version 3.3.  In fact, you can download version 3.2, 3.1, 3.0, etc:

Help Me / Re: dealers getting a free buy in
« on: November 03, 2017, 09:48:27 PM »
To buy-in someone for $0, just change the buy-in fee when you buy them in.  All the values can be changed at buy-in for any particular player.

Help Me / Re: Making a new formula for points
« on: October 30, 2017, 01:45:26 PM »
I think you can reduce the ITMFactor to:

if(pw, 1, if(rank <= 9, 0.67, 0.33))

pw is prize winnings.  The inTheMoney variable was created for this.  Either works, but there is a subtle difference.  pw will have a value (and thus be "true") if the player has won any money at all.  inTheMoney will only be true if the player has won a ranked prize.  Therefore inTheMoney wouldn't be true for a player that won a bounty prize, or a manually awarded prize.

The other side can be reduced a little, too, but I personally tend to use parentheses when they're not completely necessary, so I'd probably do the same thing.  But here it is nonetheless:

sqrt(n) / sqrt(rank) * (1 + log10((totalBuyinsAmount+totalAddOnsAmount+totalRebuysAmount) / n + 0.25))

For a total of:

36 * if(pw, 1, if(rank <= 9, 0.67, 0.33)) * sqrt(n) / sqrt(rank) * (1 + log10((totalBuyinsAmount+totalAddOnsAmount+totalRebuysAmount) / n + 0.25))

Help Me / Re: Too many PCs same license?
« on: October 24, 2017, 09:10:44 AM »
How many times the license "has been used" is irrelevant.  The licensing server knows on how many PCs the license is currently installed and restricts the total concurrent installations as defined in the licensing agreement.  If you need to move the license from one PC to another, the best thing to do is to remove the license from the first PC by pressing the "Register" button on the Game tab and then pressing the "Remove License" button.  That should ensure you have no problem then installing the license on another PC.  FYI, uninstalling the software will remove the license, too, but will NOT contact the licensing server.  Thus the licensing server will think, erroneously, that the license is still installed.

If you have trouble, always email

Pages: 1 2 [3] 4 5 ... 361