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 ... 356 357 [358] 359 360 ... 414
5356
Suggestions / Re: Export Layout - included images files
« on: July 10, 2007, 10:28:09 AM »
Omit <TDFolder>\ when specifying the path in those dialogs.  I know, somewhat inconsistent...

Your screenshot is pretty small, but I think you're trying to reference "<TDFolder>\images\chip_black.gif".  If your TD is installed in the default location, or "C:\Program Files\The Tournament Director 2", you can enter either of the following:

images\chip_black.gif

or

C:\Program Files\The Tournament Director 2\images\chip_black.gif

Either way will work, and internally the TD will store "images\chip_black.gif" no matter which you choose, because it recognizes that the path is relative to the TD folder.  This way, if you load the same chips template on a computer on which the TD is installed on D:\TD2, the chip image will still be referenced properly.

When the chips are rendered on the screen, it automatically expands the paths to absolute paths so the chip images should never "break".

5357
Suggestions / Re: "buyinscount" variable
« on: July 10, 2007, 10:22:58 AM »
I guess you needed to specify exactly what you meant by "buyinscount", and for which formula you are needing this variable.

For the Points for Playing formula, or for the Score formula, the variable "numberOfPlayers" or "n" represents the number of players who have bought-in to the tournament.  Since a player can only buy-in once (any further "buy-ins" would be "rebuys"), this also represents the "buyinscount", in the sense of "the number of buy-ins for the tournament".  If you meant "how many times a player bought-in", this is always 1 for any tournament, so it is a useless number for Points for Playing or Score formulas.

For the Overall Score formula, the variable "numberOfTournaments" or "n" represents the number of tournaments that passed your filter (or the number of tournaments over which we are calculating stats).  The "numberOfScores" or "s" represents the number of scores a player has, which also equals the number of tournaments in which the player participated.  You can also get this by using the count() function: "count(scores)" will return the same number.  I failed to document "numberOfScores" and "s" in the user manual, I think.

5358
Suggestions / Re: Export Layout - included images files
« on: July 09, 2007, 03:46:21 PM »
No, it should work.  As a matter of fact, if that one didn't work, I would have heard about it long ago, since the included chip images are located in the "images" folder.  Therefore, it has to use absolute paths (or, it HAD to), or else the chip images would have been broken.

When you specify an image for a chip, you can enter the path yourself, or use the Browse... feature to find it.  Either way, the TD converts it to a relative path, if possible, so that your chips templates are portable.  However, when it inserts a chip image on the screen, it always uses an absolute path.

This is relating to using the <chips> token to display your chips on the Tournament page.  That IS what you were referring to, right?

5359
Help Me / Re: How is the Score & Overall Score determinded?
« on: July 09, 2007, 09:54:49 AM »
Take a look in the user manual included with the software, under the Stats tab section.  There's a sub-section on scoring.

5360
Suggestions / Re: Export Layout - included images files
« on: July 09, 2007, 09:53:10 AM »
Glad to hear it is working properly.  This is always good to know, but especially in a situation such as this one where the application behaves differently in my development setting....

5361
Help Me / Re: AAARRRGH ! ERROR 7-126 TD WON'T RUN !!
« on: July 08, 2007, 11:16:06 AM »
I think what is most interesting to me about this is the "7-126" part.  That is NOT in the code.  If I intentionally break this (by renaming the "lang/en-us" folder, which must exist), I get an expected error that says "Unable to load message catalog for language en-us (catalog folder not found)", followed by an (again expected) error that says "The default language catalogs (en-us) could not be loaded.  Sorry, cannot continue.", at which point the program exits.  There is never any "7-126".

Perhaps something has gotten fudged to the point that the TD isn't able to access your filesystem at all.  I'd try reinstalling Windows Script.  Links for Windows Script are in this topic: http://thetournamentdirector.net/forums/index.php?topic=15.msg54#msg54

5362
Help Me / Re: tables
« on: July 06, 2007, 08:57:45 PM »
Put the 3 tables into the "collapse these tables last" list, in reverse order (table 3, table 2, table1).  Make sure the "In the order specified above" checkbox at the bottom of that list is checked.

5363
Suggestions / Re: "buyinscount" variable
« on: July 06, 2007, 08:55:36 PM »
numberOfPlayers, or n

5364
Help Me / Re: Need help with Points Formula
« on: July 05, 2007, 07:08:54 PM »
I think you meant "switch" instead of "assign":

switch(r, 1, 10,  2, 5,  3, 1,  0)

5365
Help Me / Re: stats output
« on: July 05, 2007, 10:58:57 AM »
What qualifies a player's "best" tournament?  Money won?  Profit?  Points?  Score?

On the Stats tab you can calculate a score based on any of these, and then use the "best" 8 to create an overall score for the player.  You can also display that score for each player for each tournament (View -> Single field mode), but it will display all the player's scores, not just their best 8.

5366
Suggestions / Re: Export Layout - included images files
« on: July 05, 2007, 01:03:51 AM »
ASAP.  By this weekend, if all goes well.

5367
Suggestions / Re: Export Layout - included images files
« on: July 03, 2007, 08:24:56 PM »
Ugh, this turns out to be one of those [few] things that behaves differently in a development environment.  Frankly, I can't see how using relative paths has ever worked, but I can't see why it hasn't come up until now.  Either way, I could find no way to make IE understand a relative path when running in an "installed" mode (versus my development mode).

To solve this, I have created a <home> token (<tdfolder> is synonymous).  This will expand to the full path of where your TD is installed.  So basically, all images should be referenced with a full (absolute) path, but I've added code to allow you to specify it relatively, and the TD fills in the path for you.

If you insert an image with the "Insert Image" button (for example one of the built-in chip images), it used to insert:

Code: [Select]
<img src="images\chip_red.gif" border="0">
It will now insert:

Code: [Select]
<img src="file:///<home>\images\chip_red.gif" border="0">
When displayed on the Tournament page, it will automatically be expanded to:

Code: [Select]
<img src="file:///C:\Program Files\The Tournament Director 2\images\chip_red.gif" border="0">
(or wherever you have the TD installed).  The "file:///" is inserted by IE automatically if omitted, but I chose to go ahead and insert it just to be sure.  Hopefully this will clear this issue up.

5368
Suggestions / Re: Export Layout - included images files
« on: July 03, 2007, 07:11:59 PM »
OK, I was able to reproduce it.  I'll get back with details when I figure this out.

5369
Suggestions / Re: Export Layout - included images files
« on: July 03, 2007, 01:47:32 PM »
It's technically not the TD that is looking for the image (when displaying it on the Tournament clock page), it's Internet Explorer.  So it comes down to what Internet Explorer thinks is its "current directory".  The TD gleans this information from Internet Explorer, so they should be the same, but according to what you are seeing, it would appear that it is not.  Don't know why, that's why I need to try a few things (like running from a different drive).

In this context, forward slashes (/) and backslashes (\) are interchangeable.  IE just doesn't care which you use.


5370
Suggestions / Re: Export Layout - included images files
« on: July 03, 2007, 11:50:03 AM »
Wish I knew what was going on, too.

The TD determines where it is "located" at run time.  That means it doesn't store its "installed location" anywhere - it derives each time you run the software.  The installer *does* remember where it was last installed - that's why when you install a new version when you already have an existing version installed it will attempt to install it to the same location as the existing version.

It could have something to do with running on a different drive (different than C:), but I don't see why.  I'll try that later.


Pages: 1 ... 356 357 [358] 359 360 ... 414