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 ... 407
1
It's easy to enable, just didn't think anyone would want it on those screens.  In the meantime, you can almost fake it.  Create a new cell, give it a name and the following Contents:

Code: [Select]
<div style="left: 0px; top: 0px; position: fixed; z-index: 999999; font-family: Segoe UI; color: #000; border: 1px solid #000; border-radius: 2px; padding: 4px; background: #fff;">
  <div style="position: relative;">
    <div>
      <div style="width: 131px; margin: auto; padding-bottom: 3px; text-align: center; white-space: nowrap; font-size: 19px;">Round <round></div>
      <div style="position: relative; margin: auto; padding-bottom: 3px; text-align: center; white-space: nowrap; font-size: 16pt;">
        <div style="width: 131px; margin: auto; padding-bottom: 3px; text-align: center; white-space: nowrap; font-size: 19px;"><hours>:<minutes>:<seconds></div>
      </div>
      <div hidefocus="true" style="padding: 3px; border: solid 1px transparent; border-radius: 2px; background: transparent; cursor: pointer; margin: auto; width: 90%; text-align: center; font-size: 16px;"<action src="click" type="Clock">>
        <i class="fas fa-play"></i>
      </div>
    </div>
  </div>
</div>

It will always display the round number, even on breaks, and it won't flash PAUSED when paused or show GAME OVER after the tournament, and the button always stays as the "Play" symbol (not the "Pause" symbol when running).  But it's functional.

2
Help Me / Re: buyinChips token shows 0 despite the profile saying 5000
« on: March 09, 2023, 04:43:33 PM »
Congrats, you've found a bug.  :)

Looks like this was introduced in version 3.7, as a lot of code had to change due to (FINALLY) getting to upgrade the framework.  I will fix this for the next version.  FYI it's the lookup of the specific profile that fails, so this will work if the profileName attribute is omitted, meaning you can only get the value for the default profile.  All similar tokens have the same issue (buyinFee, buyinChips, buyinPoints, buyinRake, addonFee, addonChips, addonPoints, addonRake, rebuyFee, rebuyChips, rebuyPoints, rebuyRake).

3
Help Me / Re: Can the inlinerankings token be updated?
« on: March 09, 2023, 01:26:42 PM »
Ugh, this was posted over a week ago!  I'm not sure what's going on with being notified of new messages, but I've logged in every day to check on things.  Sorry for the wait!

I see what you are trying to do.  Basically have two listings, one for those who are in the money and those who are not.  I can't think of a way to do that currently, other than the suggestion you've already listed which requires knowing the 'in the money' rank ahead of time.  I'll put a note to add a 'max winnings' attribute to the inlineRankings token.

4
Help Me / Re: Disconnected versions on different hard drives
« on: February 25, 2023, 01:00:17 PM »
Quote
I've tried simply copying the .tdt files from one to another so they're all in one place but that doesn't work - should I copy *all* folders and files?

Actually that should work just fine.  If you have saved any custom layouts or templates (rounds, prizes, etc), you may want to copy those items as well.  What didn't work?

The other thing that will be more difficult is if you have players in both databases.  That will be a little more challenging.  If that's the case, we can work through it as well.

5
Help Me / Re: How to change the settings for score calculete?
« on: February 23, 2023, 12:37:48 PM »
The formulas are contained in your Stats Profile.  You can create as many Stats Profiles as you want, each with their own selection of tournaments and formulas.  The Default Stats Profile creates a score for every player using the Tournament Score formula log((n + 1) / r) and the Overall Score formula (1-exp(-average(scores))) * 100.  To use your own formulas, create a new Stats Profile and substitute your own formulas.

On the Stats tab, press the Edit Profiles button.  Then press the New button, give the new profile a name, then select the profile and edit the various parts of it (where it looks to find tournament files, which leagues or seasons it accepts, and the formulas it uses).

6
Suggestions / Re: Printing out Prize Winner Receipts $$$
« on: February 20, 2023, 03:51:52 PM »
This is on the list of stuff I hope to include in version 4.

7
Suggestions / Re: PKO
« on: February 20, 2023, 03:50:59 PM »
It is on the list for stuff I hope to include in version 4.

8
Help Me / Re: Using Player info during a game?
« on: February 20, 2023, 03:48:49 PM »
At this time only the player's ID and Internal ID fields are exposed to Events conditions.

9
Help Me / Re: Formula within a cell
« on: February 20, 2023, 03:47:29 PM »
Understandable confusion.  What you are doing is editing the Layout Tokens, which are a way for you to create your own tokens or override the value of an existing token.  For example, the <eventName> token will insert into your layout the value of the Event Name field on the Game tab.  If you create a token with the same name, the value you give it will override the actual <eventName> value, so that no matter what you set the Event Name to on the Game tab, it will always display whatever you put into the override.  Why would you do this and/or what is the point?  Mostly it is to allow you to add your own tokens so you can insert those tokens into the layout, then you can change the value of those tokens without having to essentially touch your layout.  This is especially useful if you use the token in multiple places in your layout.  Originally this was added to be able to override the value of the <breakText> token on breaks where there will be a chip-up event.  So you can add/override token values on a per-level basis from the Rounds tab.

What we are referring to in this case is simply inserting the <expression> token into your layout, like this:


10
Help Me / Re: Formula Help - First bust-out position
« on: February 12, 2023, 12:34:25 PM »
Unfortunately not yet.  This is on my list for the next major version.

11
Help Me / Re: No "Hit" on a person...can it be done?
« on: February 06, 2023, 12:46:28 PM »
First Option...Add the no show players to tournament, $0 buy in to keep nightly prize pool correct, and edit the player so he gets 0 points for the night instead of the typical 1pt for last place.
The problem with this option is how do I knock the player out of tournament without someone being named the hitman and getting an extra point for the "hit"?

You are not required to select a hitman when knocking a player out.  The TD will warn/ask you about it, but you can decline to assign a hitman.
Second Option...if I don't add them to the tournament for that night, I would manually edit each player so that the points would be correct. In other words, if 1 player doesn't show, he will not be put into the tournament and will get 0pts, but the person knocked out next, 17th place, will still gets 2pts. So I would have to edit every player to correct pts once tournament is over.

Your formula is likely very simple, either n - r + 1 or just position.  Both give the same result: one point to the first player knocked out, two to the next player knocked out, etc.  It should be easy to adjust to get the points correct without having to adjust individual player's points.  Per your example, if one player doesn't show then the first player knocked out will get 1 point, but should get 2 points.  So change the formula to n - r + 2 or position + 1.

12
Help Me / Re: Stats not showing
« on: January 30, 2023, 11:46:03 PM »
Without being able to see your tournaments it's only going to be a guess, but that guess would be that although it appears you have players in your database that "match" the players in your tournament(s), they are in fact different players.  Under the covers each player has a unique identifier.  This is how players in your database get correlated with players in individual tournaments, which are saved in individual files on not in an actual database.  If you load a tournament, then visit the Database tab, players in your database that are also in the currently loaded tournament are displayed in red.  Do you see this on the database tab?

There are a couple of ways to fix this, depending on your situation.

One way to fix it is to simply wipe out your database and then import players from one (or all) of your tournaments.  To do this, load each tournament one-by-one.  After loading a tournament, go to the Players tab and press the Database button, then press the "Add to the database players in your current tournament" button.  If it turns out the players in each of your tournaments have the same internal ID then this should be really straightforward and you won't end up with any duplicate players (the TD will warn you if importing a player would result in a duplicate).

Another way to fix this is to again load each tournament one-by-one (don't wipe out your database this time).  Then after loading each tournament, press the Database button on the Players tab again, but then press the "Merge players in your current tournament with players in the database" button.  This is similar to adding players from the tournament to your database, but instead you're going to "merge" players.  That is, for each player in the tournament you need to match them up with the same player in the database.  This won't actually "merge" them, but rather sets the internal ID of the player in the tournament to be the same as the corresponding player in the database, which effectively makes the player in the tournament the same as the player in the database.  Then save the tournament.  If the players in each saved tournament are different (with different internal IDs as the same player in the database as well as the same player in other tournaments), this will likely be your only option.

Hopefully (and probably) you'll be able to get by with just the first method above, but you may need to use a combination of the 2 methods to get everyone properly into the DB.

First though make a backup of everything.  You can do this on the Database tab.  Press the Backup button, check every box, press OK and choose a filename.  Honestly, you only need to backup the database and tournaments, since that's all you'll be modifying, but unless you have some big media files in those folders you can check every box and and it won't make the backup much bigger or take longer.  Backup is really easy and fast, and when you have a backup you can start over if you mess up, as many times as you like.

To delete your database you just need to delete or rename the database folder.  Quickest way to do this is from the TD: from just about anywhere press Ctrl+Alt+Shift+V to open the System Info window.  Look for the row DB Folder, right-click on it and select "Explore folder".  That should open Windows File Explorer.  Click the up arrow next to the folder location at the top.  You should then see a list of folders: db, images, receipts, saves, sounds, templates... Just select db and rename it (press F2) or delete it.  Exit the TD and restart it.  A new database folder will be created automatically.

13
Can you share your template?  Only thing that comes to mind is that the print command is being called before the image has time to render, which could happen for example if the image was being sourced from the internet from a not-so-fast website.  If that's the case I might need to add a check to make sure everything has loaded before issuing the print command.  But you could also work around this by saving the image on your PC and sourcing it from there.

14
Help Me / Re: StatsGenie: Incorrect time when importing tournament
« on: December 21, 2022, 06:39:51 PM »
Hey!  Sorry to leave you hanging for so long on this topic.  I actually started a response a couple of times, and then abandoned it and looked a little more into the issue, and then left town for a few days.  When I returned I dug in a little more and found an email thread between me and Martin of StatsGenie regarding this very issue from 2020.  And unfortunately I forgot about it and it didn't get fixed with 3.7 or subsequent versions.

The main issue here is actually on the TD side, and it's that I didn't code the export to put times in UTC format.  That means there's no indication on those times of your time zone, and so StatsGenie has to do its very best to figure it out.  When you export to an XML file and then upload that file via the StatsGenie website, your web browser session has a time zone, and therefore they have a decent chance at figuring out your time zone and acting accordingly.  When you upload your tournament directly from the TD, that session doesn't exist and StatsGenie has to figure it out another way.  I would guess they store your time zone in your account in some way and can simply assume anything you import would be in your local time.  I know they applied a hack of some sort to make this work, because the user who initiated the investigation into this issue was seeing his times off by a single hour and the hack fixed it.  Yours are off by a lot more and honestly I don't know what's going on there.

The best fix for this is for me to update the StatsGenie export from the TD to specify times in UTC, which is what I have done for the next release.  Interestingly, without this change tournaments I import into StatsGenie actually have my correct time zone, and tournaments I import with UTC times are an hour off.  I think I'm probably working around their hack, so instead of the hack fixing bad times I'm giving it good times and the hack makes the times bad.

In the meantime to import your tournaments with correct times you'll probably have to keep adjusting the times.  But an easier way than manually editing the XML export file is to use the "Time Shift" feature found on the Players tab.  This will allow you to adjust every time in the tournament (start, end, buy-ins, rebuys, add-ons, bust-outs, etc).  You can then export the tournament to StatsGenie, followed by simply adjusting the times back using the same Time Shift feature.

I've got an email out to Martin to coordinate with him on the best way to fix it.  Hopefully it will be an easy change.

Also, I see you noted that they didn't respond to your post on the StatsGenie forums but it looks like Martin did follow-up on that post sometime later.  I recommend you connect with him to see what the best solution for you in the meantime is (if it's not what I suggested above).



15
Help Me / Re: Variable to show last buy-in time/level?
« on: November 26, 2022, 02:30:39 PM »
Obviously you can manually limit how many folks can buy-in.  You can easily hard-code that into the layout, too, to show your players.  For example, in the Tournament Info cell from the default layout:

<buyin> Buy-in, <rebuyinfo>, <addoninfo>

You could change it to read:

<buyin> Buy-in until round 6, <rebuyinfo>, <addoninfo>

You could also do something like this to show how many rounds are left to buy-in:

<buyin> Buy-in (<expression text="max(7 - roundNum, 0)"> rounds left!), <rebuyinfo>, <addoninfo>

It's not dynamic, so you'll have to change this if you change the level at which buy-ins end.

Pages: [1] 2 3 ... 407