<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Global High Score Lists</title>
	<atom:link href="http://www.anotherearlymorning.com/2008/10/global-high-score-lists/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/</link>
	<description>Game development, design, and discussion</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:53:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: aschearer</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-460</link>
		<dc:creator>aschearer</dc:creator>
		<pubDate>Wed, 21 Apr 2010 17:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-460</guid>
		<description>&lt;p&gt;Hi DJ, good question. For a large data set I would replace the file mechanism with a database. That would speed up reading the results. I would also advise using some form of pagination -- i.e. only fetch 50 results at a time -- so that you don&#039;t wind up bringing the entire data set into memory at once. Finally, in my experience if you high score list is that large chances are it is not compelling any longer. Getting to to the top of such a list would be beyond most players after all. If you anticipate that level of engagement I would suggest grouping high scores by a social network -- i.e. only show users their friends high scores -- which keeps things competitive.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi DJ, good question. For a large data set I would replace the file mechanism with a database. That would speed up reading the results. I would also advise using some form of pagination &#8212; i.e. only fetch 50 results at a time &#8212; so that you don&#8217;t wind up bringing the entire data set into memory at once. Finally, in my experience if you high score list is that large chances are it is not compelling any longer. Getting to to the top of such a list would be beyond most players after all. If you anticipate that level of engagement I would suggest grouping high scores by a social network &#8212; i.e. only show users their friends high scores &#8212; which keeps things competitive.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: DJ</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-459</link>
		<dc:creator>DJ</dc:creator>
		<pubDate>Wed, 21 Apr 2010 17:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-459</guid>
		<description>&lt;p&gt;quick question,&lt;/p&gt;

&lt;p&gt;how will this hold up with large data, for example, for over 1,000,000 scores, wouldn&#039;t it slow down?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>quick question,</p>

<p>how will this hold up with large data, for example, for over 1,000,000 scores, wouldn&#8217;t it slow down?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: aschearer</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-106</link>
		<dc:creator>aschearer</dc:creator>
		<pubDate>Sat, 28 Feb 2009 20:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-106</guid>
		<description>&lt;p&gt;Hey, not a problem I&#039;m glad we&#039;re covering this topic, and I&#039;m sure this is a common problem.&lt;/p&gt;

&lt;p&gt;You&#039;re right that switching to GET data will allow you to enter data through a URL, but I would advice you to keep it as POST data which has certain properties which fit well with the action you&#039;re trying to accomplish. The only downside is you can&#039;t simply type in the URL and hit enter to see the thing take effect. You&#039;ll either need to write a form or write code which posts back to the server. If you are using PHP it&#039;s as simple as calling &lt;code&gt;file_put_contents&lt;/code&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey, not a problem I&#8217;m glad we&#8217;re covering this topic, and I&#8217;m sure this is a common problem.</p>

<p>You&#8217;re right that switching to GET data will allow you to enter data through a URL, but I would advice you to keep it as POST data which has certain properties which fit well with the action you&#8217;re trying to accomplish. The only downside is you can&#8217;t simply type in the URL and hit enter to see the thing take effect. You&#8217;ll either need to write a form or write code which posts back to the server. If you are using PHP it&#8217;s as simple as calling <code>file_put_contents</code>.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: systat</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-105</link>
		<dc:creator>systat</dc:creator>
		<pubDate>Sat, 28 Feb 2009 20:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-105</guid>
		<description>&lt;p&gt;Hehe, sorry for  spamming your website but I fixed it, you need to use&lt;/p&gt;

&lt;p&gt;@$&lt;em&gt;GET instead of @$&lt;/em&gt;POST in your post.php script.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hehe, sorry for  spamming your website but I fixed it, you need to use</p>

<p>@$<em>GET instead of @$</em>POST in your post.php script.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: aschearer</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-104</link>
		<dc:creator>aschearer</dc:creator>
		<pubDate>Sat, 28 Feb 2009 20:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-104</guid>
		<description>&lt;p&gt;Systat, to answer your first question, that won&#039;t work because you&#039;re passing in GET data. You need to pass POST data to post.php in order for the values to be set. See &lt;a href=&quot;http://en.wikipedia.org/wiki/HTTP#Request_methods&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt; for an explanation of the two.&lt;/p&gt;

&lt;p&gt;As for your second problem, I believe that though you were getting &quot;success&quot; from post.php you were actually only inserting empty values. Please try correcting your usage for post.php and then board.php should work.&lt;/p&gt;

&lt;p&gt;Hope that helps, let me know if it still isn&#039;t working.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Systat, to answer your first question, that won&#8217;t work because you&#8217;re passing in GET data. You need to pass POST data to post.php in order for the values to be set. See <a href="http://en.wikipedia.org/wiki/HTTP#Request_methods" rel="nofollow">this page</a> for an explanation of the two.</p>

<p>As for your second problem, I believe that though you were getting &#8220;success&#8221; from post.php you were actually only inserting empty values. Please try correcting your usage for post.php and then board.php should work.</p>

<p>Hope that helps, let me know if it still isn&#8217;t working.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: systat</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-103</link>
		<dc:creator>systat</dc:creator>
		<pubDate>Sat, 28 Feb 2009 19:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-103</guid>
		<description>&lt;p&gt;I commented first 2 errors.
Now I get succes with post.php
but When I go to board.php?num_scores=10
I only get this
, , , , ,&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I commented first 2 errors.
Now I get succes with post.php
but When I go to board.php?num_scores=10
I only get this
, , , , ,</p>]]></content:encoded>
	</item>
	<item>
		<title>By: systat</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-102</link>
		<dc:creator>systat</dc:creator>
		<pubDate>Sat, 28 Feb 2009 19:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-102</guid>
		<description>&lt;p&gt;Hey, when I run post.php?name=something&amp;score=1234&lt;/p&gt;

&lt;p&gt;I always get the first error&lt;/p&gt;

&lt;p&gt;// verify the username is set and not empty
if (!isset($username) &#124;&#124; $username == &quot;&quot;) {
    echo &quot;failure0&quot;;
    exit;
}&lt;/p&gt;

&lt;p&gt;Do you know what is causing it?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey, when I run post.php?name=something&amp;score=1234</p>

<p>I always get the first error</p>

<p>// verify the username is set and not empty
if (!isset($username) || $username == &#8220;&#8221;) {
    echo &#8220;failure0&#8243;;
    exit;
}</p>

<p>Do you know what is causing it?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: aschearer</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-5</link>
		<dc:creator>aschearer</dc:creator>
		<pubDate>Sat, 10 Jan 2009 19:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-5</guid>
		<description>&lt;p&gt;Sorry about that, there are some minor errors with the script. I’ve updated things now such that they should work. Thanks for bringing this to my attention! Also if there is interest I can post a new method for doing global high score lists which allows you to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read/Write to a server&lt;/li&gt;
&lt;li&gt;Read/Write locally&lt;/li&gt;
&lt;li&gt;Cache scores offline when no internet is available&lt;/li&gt;
&lt;li&gt;Push local scores to the server when internet is available&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let me know and I’ll prepare things and publish them.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry about that, there are some minor errors with the script. I’ve updated things now such that they should work. Thanks for bringing this to my attention! Also if there is interest I can post a new method for doing global high score lists which allows you to:</p>

<ul>
<li>Read/Write to a server</li>
<li>Read/Write locally</li>
<li>Cache scores offline when no internet is available</li>
<li>Push local scores to the server when internet is available</li>
</ul>

<p>Let me know and I’ll prepare things and publish them.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: aleix</title>
		<link>http://www.anotherearlymorning.com/2008/10/global-high-score-lists/comment-page-1/#comment-2</link>
		<dc:creator>aleix</dc:creator>
		<pubDate>Sat, 10 Jan 2009 17:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherearlymorning.com/wordpress/?p=65#comment-2</guid>
		<description>&lt;p&gt;Great! But I get this error&lt;/p&gt;

&lt;p&gt;Parse error: syntax error, unexpected T_VARIABLE, expecting &#039;;&#039; in board.php on line 22&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great! But I get this error</p>

<p>Parse error: syntax error, unexpected T_VARIABLE, expecting &#8216;;&#8217; in board.php on line 22</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.389 seconds -->
