The Tournament Director Forums

Main => Help Me => Topic started by: E Z Aces on January 15, 2012, 09:40:49 PM

Title: Help with out payout autoprizes.xml
Post by: E Z Aces on January 15, 2012, 09:40:49 PM
I have tryed modifing autoprizes.xml for how the pay outs go for one of the toutnys I help run. But i keep getting an error when I do.  Something about the first line wich i never changed.

Pay outs go as followes.  numbers repisent multibles of buy ins insted of percentages



Players     2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20
First         2  3  4  5  6  6  6  6   7   7    7    8    9   10  10  11  11  12  13
Second                       1  2  2   2   3    3    3    3    3    3    3   4    4    4
Third                                  1   1   1    2    2    2    2    2    2   2    2    2
Fourth                                                                      1    1   1    1    1
Title: Re: Help with out payout autoprizes.xml
Post by: Corey Cooper on January 16, 2012, 12:16:50 PM
Post the file after you've modified it and we can see what might be wrong.
Title: Re: Help with out payout autoprizes.xml
Post by: E Z Aces on January 16, 2012, 07:45:57 PM
Is there a way to do multibles of buy ins rather than percentages?
Title: Re: Help with out payout autoprizes.xml
Post by: E Z Aces on January 16, 2012, 08:39:18 PM
Here is what I tryed
Title: Re: Help with out payout autoprizes.xml
Post by: Corey Cooper on January 17, 2012, 11:24:45 AM
  <prizeLevel minPlayers="11" maxPlayers="11">
    <prize rank="1" nil="63.6" shareLeftover="true" />
    <prize rank="2" percent="27.2" />
    <prize rank="3" percent="9.2" />
  </prizeLevel>


The attribute nil should be percent.

However, after fixing this I'm seeing another error where it thinks the prize levels overlap, but as far as I can see they don't.  Might be a bug.  I'm investigating.
Title: Re: Help with out payout autoprizes.xml
Post by: Corey Cooper on January 17, 2012, 11:48:58 AM
Not a bug, just me not thinking clearly.  OK, I've attached a modified version of your file that should work.  Here are the other issues I found:

  <prizeLevel minPlayers="7" maxPlayers="7">
    <prize rank="1" name="{1} Place" percent="87.7" shareLeftover="true" />
    <prize rank="14.3" name="{1} Place" percent="30" />
  </prizeLevel>


You've got rank 1, and rank 14.3.  This actually produces only a warning, as 14.3 would be rounded to 14, but gives a warning due to no prizes for ranks 2 through 13.

  <prizeLevel minPlayers="16" maxPlayers="16">
    <prize rank="1" percent="62.5" shareLeftover="true" />
    <prize rank="2" percent="18.6" />
    <prize rank="3" percent="13" />
    <prize rank="2" percent="5.9" />
  </prizeLevel>


Overlap of ranks, as you've specified prizes for ranks 1, 2, and 3, and then 2 again.  This is the same for prize levels 16 and up.  I changed the second 2 to 4.
Title: Re: Help with out payout autoprizes.xml
Post by: E Z Aces on January 17, 2012, 04:53:49 PM
When I try to use your file or any of mine I get this error.

audomatic prizes file: exception parsing file on line one
Title: Re: Help with out payout autoprizes.xml
Post by: Corey Cooper on January 17, 2012, 05:22:25 PM
Whatever editor you used to modify the file encoded it in UTF-8 format.  The Tournament Director version 2.x doesn't like that.  Try this one.
Title: Re: Help with out payout autoprizes.xml
Post by: Seitz333 on January 17, 2012, 07:53:06 PM
Just as an FYI, I have been using XML Notepad 2007, a free download from Microsoft. Works great.

Chuck
Title: Re: Help with out payout autoprizes.xml
Post by: E Z Aces on January 18, 2012, 08:21:31 AM
I works great Cory, other than where I messed up the persentages on lvl 2(when we have 7 players).  I have it as 87.7% and 30% lol.

I am useing microsoft XML notepad 2007.  Is ther a setting for the format it saves in?
Title: Re: Help with out payout autoprizes.xml
Post by: Corey Cooper on January 18, 2012, 04:58:09 PM
No idea.  I haven't used that editor.