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 - rafatins

Pages: [1] 2
1
Help Me / Re: Help With Stats
« on: January 11, 2016, 02:34:38 PM »
It worked perfectly , I was just missing the sum ( scores ) . Thank you so much.

2
Help Me / Help With Stats
« on: January 10, 2016, 08:16:40 PM »
Please I need help. I have a league with 44 games already played and saved. The formula "points for playing" in every game was n - r + 1, and the formula in tournament scores in stats profile was "points".

But I need now that the formula for calculating the points is: switch (r, 1,25,2,18,3,15,4,12,5,10,6,8,7,6,8,4,9,2 ,1). I put that formula in tournament scores and overall scores, it also calculates the points by the formula n - r + 1.

Must calculate the league points already down the formula switch (r, 1,25,2,18,3,15,4,12,5,10,6,8,7,6,8,4,9,2 , 1. what to do?

3
Help Me / Re: Value of Rake in Exported Game
« on: January 08, 2016, 07:10:56 AM »

4
Help Me / Re: Value of Rake in Exported Game
« on: January 08, 2016, 07:04:41 AM »
I had tried that way but failed.

Below html code TournamentExport.html file:

Code: [Select]
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=<charset>" />
    <title><eventname></title>
  </head>

  <style type="text/css">
   
    .infotable
    {
      border: 2px solid #000000;
      padding: 8px;
      background-color: #ffffff;
      color: #000000;
      font-family: Tahoma;
      font-size: 12pt;
    }

    .eventname
    {
      font-size: 16pt;
      font-weight: bold;
    }

    .description
    {
      font-weight: bold;
    }

    .league
    {
    }

    .season
    {
    }

    .financials
    {
    }

    .info
    {
    }

    .playerRankingsTable
    {
      border: 2px solid #000000;
      padding: 8px;
      background-color: #ffffff;
      color: #000000;
      font-family: Tahoma;
      font-size: 10pt;
    }

    .playerRankingsColumnHeader
    {
      font-weight: bold;
      padding-left: 5px;
      padding-right: 5px;
      white-space: nowrap;
   }

    .playerRankingsColumn
    {
      padding-left: 5px;
      padding-right: 5px;
      white-space: nowrap;
   }

    .odd
    {
    }

    .even
    {
      background-color: #eeeeee;
    }

  </style>

  <script>

var TDSort = (function()
{
  // the column index on which we are sorting
  var sortIndex = -1;
  // was the last sort a reverse sort?
  var reverseSort = false;
  // not going to try too hard for browser compatibility - just check for IE or non-IE
  var mTextKey = document.all ? "innerText" : "textContent";
  var mTableID = "";
  var mHeaderRowID = "";
  var mData = <playerdata>;
  var mIndexCol = -1;



  // initialize the page
  function init(inTableID, inHeaderRowID)
  {
    mTableID = inTableID;
    mHeaderRowID = inHeaderRowID;

    // set the "Index" column
    if(mData.length > 0)
    {
      for(var i=0, iLen = mData[0].length; i < iLen; i++)
      {
        if(mData[0][i]["IsIndex"])
          mIndexCol = i;
      }
    }

    // install an onClick handler for each column header
    var theRow = document.getElementById(mHeaderRowID);
    var getSortFn = function(inIndex) { return function() { sortByColumn(inIndex); }; }

    if(theRow)
    {
      for(var i=0, iLen = theRow.cells.length; i < iLen; i++)
      {
        if(i != mIndexCol)
        {
          theRow.cells[i].onclick = getSortFn(i);
          theRow.cells[i].style.cursor = "pointer";
        }
      }
    }

    // put a reference to each row in the data, if we haven't already
    var theRows = document.getElementById(mTableID).rows;

    for(var i=0, iLen = mData.length; i < iLen; i++)
      mData[i].Row = theRows[i + 1];
  }



  // sort fn
  function sortRow(a, b)
  {
    var aVal = a[sortIndex].SortValue;
    var bVal = b[sortIndex].SortValue;

    if((aVal === null) || (bVal === null))
    {
      // for equal values, fall back on the row index
      if(aVal === bVal)
        return a[0].Index - b[0].Index;

      return aVal === null ? -1 : 1;
    }

    if(aVal < bVal)
      return -1;
    else if(aVal > bVal)
      return 1;

    // for equal values, fall back on the row index
    return a[0].Index - b[0].Index;
  }



  function sortByColumn(inIndex)
  {
    if(mData.length == 0)
      return;

    if(inIndex == sortIndex)
      reverseSort = !reverseSort; // sorting the same column, again, so reverse the current sort
    else
      reverseSort = false; // if sorting on a new column, always reset to forward sort

    sortIndex = inIndex;

    var theTable = document.getElementById(mTableID);
    var theParent = theTable.rows[0].parentNode;

    // remove all rows, in current sort order (appears to be the fastest way)
    for(var i=0, iLen = mData.length; i < iLen; i++)
      theParent.removeChild(mData[i].Row);

    // sort the rows
    mData.sort(sortRow);

    if(reverseSort)
      mData.reverse();

    // put the rows back in the new sorted order
    // there may or may not be an empty row followed by a sum and average rows, so for an easy solution insert the
    // rows before the header row, then pop the header row off and put it back in front of the first row
    var theHeader = theParent.rows[0];

    for(var i=0, iLen = mData.length; i < iLen; i++)
    {
      // set the row's class to maintain even/odd row shading
      mData[i].Row.className = (i % 2) ? "odd" : "even";
      theParent.insertBefore(mData[i].Row, theHeader);
    }

    theParent.removeChild(theHeader);
    theParent.insertBefore(theHeader, mData[0].Row);

    // update the index column
    if(mIndexCol >= 0)
    {
      for(var i=0, iLen = mData.length; i < iLen; i++)
        mData[i].Row.cells[mIndexCol][mTextKey] = "" + (i+1);
    }
  }



  return {
    init: init
  };

}());

  </script>

  <body onLoad="if(TDSort) { TDSort.init('pTable', 'pColumns') }" style="background-color: #FFFFFF">

    <center>
      <table border="0" class="infoTable">
        <tr>
          <td class="eventname" align="center"><eventname></td>
        </tr>
        <tr>
          <td class="description" align="center"><description></td>
        </tr>
        <tr>
          <td class="league" align="center">Liga: <league></td>
        </tr>
        <tr>
          <td class="season" align="center">Temporada: <season></td>
        </tr>
        <tr>
          <td><hr size=1 width=80% style="color: #000000" /></td>
        </tr>
        <tr>
          <td class="info" align="center"><players> Jogadores - <rebuys> - <addons></td>
        </tr>
        <tr>
          <td class="info" align="center"><pot> Premiação Total - <payouts> Premiados</td>
        </tr>
        <tr>
          <td class="info" align="center">Início: <starttime></td>
        </tr>
        <tr>
          <td class="info" align="center">Término: <endtime></td>
        </tr>
        <tr>
          <td class="info" align="center">Rake: <totalrake></td>
        </tr>
      </table>

      <p>

      <table id="pTable" border="0" cellspacing="0" class="playerRankingsTable">
        <tr id="pColumns"><playerRankingsColumns></tr>

        <playerRankingsRows>
      </table>
    </center>

  </body>
</html>

5
Help Me / Value of Rake in Exported Game
« on: January 07, 2016, 07:13:44 PM »
How to display the value of the total rake when I export the game ?

6
Help Me / Re: Create a Event
« on: May 21, 2014, 11:50:58 AM »
worked perfectly, thank you.

7
Help Me / Create a Event
« on: May 20, 2014, 06:23:42 PM »
Hello, how do I create an event in which missing when the 300 second round 4, a message appears "x" by "y" seconds and touch a sound "z"?

8
Help Me / Re: Tied Points in Stats
« on: February 25, 2014, 09:53:31 AM »
now it worked, thank you.

9
Help Me / Re: Tied Points in Stats
« on: February 24, 2014, 04:56:54 PM »
It did not work, look https://googledrive.com/host/0B2wKdFdgDnquZ0p4RF9MNGIxLWM/test.html

See what I have labeled the column "Overall Score", according to the formula + points averagePoints. But if you see the "Points" column was out of order ranking.

Recalling that the first criterion would be the points and in case of a tie, the tiebreaker would be the average points.

10
Help Me / Re: Tied Points in Stats
« on: February 24, 2014, 03:24:58 PM »
Sorry, the correct is "average points"

11
Help Me / Re: Tied Points in Stats
« on: February 24, 2014, 01:59:03 PM »
My rank is calculated according to the formula points for playing. In that case is n - r + 1.

See the ranking https://googledrive.com/host/0B2wKdFdgDnquZ0p4RF9MNGIxLWM/ranking.html

12
Help Me / Re: Tied Points in Stats
« on: February 22, 2014, 07:02:03 PM »
Yes, I would use the average score as a tiebreaker.

13
Help Me / Re: A stats rank with 2 points for playing different
« on: February 22, 2014, 07:00:00 PM »
thank you very much, worked perfectly

14
Help Me / A stats rank with 2 points for playing different
« on: February 21, 2014, 10:14:55 PM »
In my league the points for playing and tournament score formula uses the formula n - r + 1.
But in the last game I'll need to use the formula (n - r + 1) * 2. The question is, at the end of the league, I need to generate stats with the formula n - r + 1 for all games, plus the latest game using (n - r + 1) * 2. How to proceed?

In short:
All Games: n - r + 1
Main Event: (n - r + 1) * 2
I need a rank with the sum, All Games + Main Event

15
Help Me / Tied Points in Stats
« on: February 21, 2014, 10:02:36 PM »
Hello, we have a league where some players are tied in points. What is the factor that determines how to stay ahead of the other? Can determine the grade point average will be the tiebreaker factor?

Pages: [1] 2