Author Topic: Points under V prizes show as 0 when using a formula  (Read 1939 times)

hawklight

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Points under V prizes show as 0 when using a formula
« on: July 30, 2007, 04:08:45 PM »
Hi

Using 2.3.6 - all looks great - but notice that the "V Prizes" token in my layout (with showpoints as true) shows the points for the prizes as "0" when I am using a formula.

Any ideas folks?

Thanks in advance!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5402
    • View Profile
Re: Points under V prizes show as 0 when using a formula
« Reply #1 on: July 31, 2007, 11:29:50 AM »
The points shown as part of the <prizes> token show points that are given as part of the prize, not as part of the "Points for Playing" formula.

hawklight

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Points under V prizes show as 0 when using a formula
« Reply #2 on: July 31, 2007, 11:40:48 AM »
ok - sounds reasonable. So the obvious followup to that is are there tokens or cells that show points for playing either separately or combined with prize points?

thanks

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5402
    • View Profile
Re: Points under V prizes show as 0 when using a formula
« Reply #3 on: July 31, 2007, 12:39:14 PM »
<pointsforplaying>

hawklight

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Points under V prizes show as 0 when using a formula
« Reply #4 on: July 31, 2007, 02:45:55 PM »
Ok cool - so had a little play with that and looks like it will be the ticket.

One question though - the prizewinnings variable would seem to indicate it will show the prizes for a rank as well as the points for playing? Is that right?

If it is I am not sure how to use it currently I have a cell that has:

<pointsforplaying orient="vertical" ranks="1-9" displayRank="true" prizeWinnings="0">

It lists ranks 1 to 9 with their respective points for playing - which is fine. I would like it to also show what prize money (if any) that each rank gets too. I also tried the above with just "prizewinnings" on its own too - no joy there either I'm afraid.

We are just embarking on using the points for playing formula in our leagues (instead of hardecoded points for finishing 1 to 9) so I guess I'm looking to do the equivalent of the <prizes> token I have used that shows the rank, prizes and points won we used originally.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5402
    • View Profile
Re: Points under V prizes show as 0 when using a formula
« Reply #5 on: July 31, 2007, 03:37:05 PM »
The <pointsforplaying> token is a little tricky, because depending on what your Points for Playing formula looks like, you sometimes can't actually show the number of a points a player who busts out in a particular position will receive.  All you can give is an estimate.

If, for example, your PfP formula is: n-r+1+nh

You can't really show what a player who goes out in 3rd place will get for points, because you don't know how many other players that 3rd place finisher will bust out.  In this case, the "nh" part of the formula (number of hits) won't necessarily be accurate for a particular player until the tournament is over.

The <pointsforplaying> token works like the Points for Playing "Test All" dialog.  That is, "here's my formula, let me fill in some fake values for what any player might get, like number of hits, number of rebuys, etc, and then run it for ranks 1 through 10".  Attributes in the token, such as "prizeWinnings", are the fake values you fill in to give a more accurate representation of what a player might receive if they go out in rank N.

To be honest, I'd love to get rid of this token.  It's messy and unless you have a straightforward formula, like the default "n-r+1", it won't show you real point values that will be awarded - only estimates.

At this time, there is no unified way to show the prize amount a rank receives along with the points for playing amount.  You'll have to use <prizes> (or <prize>) and <pointsforplaying>.  It's an ugly solution, but frankly, it's an ugly problem.

hawklight

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Points under V prizes show as 0 when using a formula
« Reply #6 on: July 31, 2007, 03:41:39 PM »
I hear ya Corey

Mine is a straightforward formula (no points for hits etc). What I have ended up doing is creating a cell for prizes and a cell for points - side by side. Seems to work okay.

Many thanks for your help though.