<?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: Warbook Alliance Manager</title>
	<atom:link href="http://www.smert.net/2008/01/24/warbook-alliance-manager/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:25:59 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-186</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 11 Nov 2008 19:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-186</guid>
		<description>Those two functions where added but not yet used or even finished. I was planning on saving the stats from the message processing.

Let&#039;s say someone in your alliance spied on a user you were attacking and then hit them 5 times. I would have the latest spying saved in the database. Then the attacks would subtract those values how many gold/soldiers they lost. After you were finished the projected values would be close enough for everyone to see. It was merely an easy way to approximate without having to spy again. Obviously as time goes on the projected values wouldn&#039;t be good enough anymore.

Also while that person did that it would track of how many gold/soldiers were lost overall. That way you could have running totals of how much damage was done to a person or to you from a single person.

Eventually if you were at war you could keep track of how much damage was done to the other alliance and compare with how you were doing to get an idea of just how bad/good you were doing.</description>
		<content:encoded><![CDATA[<p>Those two functions where added but not yet used or even finished. I was planning on saving the stats from the message processing.</p>
<p>Let&#8217;s say someone in your alliance spied on a user you were attacking and then hit them 5 times. I would have the latest spying saved in the database. Then the attacks would subtract those values how many gold/soldiers they lost. After you were finished the projected values would be close enough for everyone to see. It was merely an easy way to approximate without having to spy again. Obviously as time goes on the projected values wouldn&#8217;t be good enough anymore.</p>
<p>Also while that person did that it would track of how many gold/soldiers were lost overall. That way you could have running totals of how much damage was done to a person or to you from a single person.</p>
<p>Eventually if you were at war you could keep track of how much damage was done to the other alliance and compare with how you were doing to get an idea of just how bad/good you were doing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-185</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Tue, 11 Nov 2008 18:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-185</guid>
		<description>Hi Jason. I&#039;m back.
What are checkAttackStatExists and checkDefenseStatExists all about?</description>
		<content:encoded><![CDATA[<p>Hi Jason. I&#8217;m back.<br />
What are checkAttackStatExists and checkDefenseStatExists all about?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-184</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 03 Sep 2008 06:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-184</guid>
		<description>Looks like I forgot to approve these last two comments.

Hmm I&#039;m not sure. I would try retyping the line or adding something before and after it to see if the error still occurs on the same line.</description>
		<content:encoded><![CDATA[<p>Looks like I forgot to approve these last two comments.</p>
<p>Hmm I&#8217;m not sure. I would try retyping the line or adding something before and after it to see if the error still occurs on the same line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-183</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Sun, 31 Aug 2008 03:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-183</guid>
		<description>I got problem with VISTA system.
Why is there a pop-up error like this?

Windows Script Host
Script:
c:\...\warbookalliancemanager.user.js
Line:   26
Char:   1
Error:  Syntax error
Code:   800A03EA
Source: Microsoft JScript compilation error

thx.</description>
		<content:encoded><![CDATA[<p>I got problem with VISTA system.<br />
Why is there a pop-up error like this?</p>
<p>Windows Script Host<br />
Script:<br />
c:\&#8230;\warbookalliancemanager.user.js<br />
Line:   26<br />
Char:   1<br />
Error:  Syntax error<br />
Code:   800A03EA<br />
Source: Microsoft JScript compilation error</p>
<p>thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-182</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Tue, 26 Aug 2008 04:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-182</guid>
		<description>i forget to escape the HTML... so, here is the code again:

$playernamex = explode(&#039;=1&quot;&gt;&#039;,$playername);
$playernamexx = str_replace(&#039;&lt;/a&gt;&#039;,&#039;&#039;,$playernamex[1]);
$playernamexx = str_replace(&#039;&nbsp;&#039;, &#039; &#039;, $playernamexx);

checkUserPageExists($playernamexx);</description>
		<content:encoded><![CDATA[<p>i forget to escape the HTML&#8230; so, here is the code again:</p>
<p>$playernamex = explode(&#8216;=1&quot;&gt;&#8217;,$playername);<br />
$playernamexx = str_replace(&#8216;&lt;/a&gt;&#8217;,&#8221;,$playernamex[1]);<br />
$playernamexx = str_replace(&#8216;&amp;nbsp;&#8217;, &#8216; &#8216;, $playernamexx);</p>
<p>checkUserPageExists($playernamexx);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-181</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Mon, 25 Aug 2008 23:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-181</guid>
		<description>I found the bug why Spy and Survey inserted data to different place of the userpage opening. Their $playername variables come from exploding messages (which makes them as a link). Other functions get their $playername vars from greasemonkey javascript (which is a flat text). So i changed update.php of Spy and Survey function like this:

$playernamex = explode(&#039;=1&quot;&gt;&#039;,$playername);
$playernamexx = str_replace(&#039;&#039;,&#039;&#039;,$playernamex[1]);
$playernamexx = str_replace(&#039;&#160;&#039;, &#039; &#039;, $playernamexx);

checkUserPageExists($playernamexx);

cheers.</description>
		<content:encoded><![CDATA[<p>I found the bug why Spy and Survey inserted data to different place of the userpage opening. Their $playername variables come from exploding messages (which makes them as a link). Other functions get their $playername vars from greasemonkey javascript (which is a flat text). So i changed update.php of Spy and Survey function like this:</p>
<p>$playernamex = explode(&#8216;=1&#8243;&gt;&#8217;,$playername);<br />
$playernamexx = str_replace(&#8221;,&#8221;,$playernamex[1]);<br />
$playernamexx = str_replace(&#8216;&nbsp;&#8217;, &#8216; &#8216;, $playernamexx);</p>
<p>checkUserPageExists($playernamexx);</p>
<p>cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-180</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sun, 24 Aug 2008 20:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-180</guid>
		<description>When I first starting saving the messages there was no timestamp in Warbook. So I had a small Greasemonkey script to refresh the page every 5 minutes so at least I could get it close enough. There was no real way to tell at the time. Now that there are timestamps it probably would be worth it to convert the correct time and insert that into the database. My timestamps are unnecessary now but I prefer the format they are in when displayed.

I had used PST time as the default since my hosting company was in that timezone. The default is what ever timezone your hosting server is in. I didn&#039;t do any calculations for it.</description>
		<content:encoded><![CDATA[<p>When I first starting saving the messages there was no timestamp in Warbook. So I had a small Greasemonkey script to refresh the page every 5 minutes so at least I could get it close enough. There was no real way to tell at the time. Now that there are timestamps it probably would be worth it to convert the correct time and insert that into the database. My timestamps are unnecessary now but I prefer the format they are in when displayed.</p>
<p>I had used PST time as the default since my hosting company was in that timezone. The default is what ever timezone your hosting server is in. I didn&#8217;t do any calculations for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-179</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Sun, 24 Aug 2008 16:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-179</guid>
		<description>I still wonder how do you calculate the PST time, because what I get is the time when the messages are inserted to database, not when the actions were taken. Except all my own actions.

2008-08-24 09:44:41 PST
Your kingdom is under attack by Z***! You lost the battle, losing 4,866 troops, 10,206 acres, and 665,457 gold. [00:09:58 ago]
N**** says: retal [00:10:41 ago] block user
Your kingdom is under attack by N****! You lost the battle, losing 7,943 troops, 10,657 acres, and 189,656 gold. [00:10:43 ago]

2008-08-24 09:29:42 PST
You magically scry the structures of d***&#039;s kingdom.
The target has:
0 acres of free land
201,795 mines
0 forts
0 training grounds
0 barracks
0 amplifiers
0 barriers</description>
		<content:encoded><![CDATA[<p>I still wonder how do you calculate the PST time, because what I get is the time when the messages are inserted to database, not when the actions were taken. Except all my own actions.</p>
<p>2008-08-24 09:44:41 PST<br />
Your kingdom is under attack by Z***! You lost the battle, losing 4,866 troops, 10,206 acres, and 665,457 gold. [00:09:58 ago]<br />
N**** says: retal [00:10:41 ago] block user<br />
Your kingdom is under attack by N****! You lost the battle, losing 7,943 troops, 10,657 acres, and 189,656 gold. [00:10:43 ago]</p>
<p>2008-08-24 09:29:42 PST<br />
You magically scry the structures of d***&#8217;s kingdom.<br />
The target has:<br />
0 acres of free land<br />
201,795 mines<br />
0 forts<br />
0 training grounds<br />
0 barracks<br />
0 amplifiers<br />
0 barriers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-178</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Sun, 24 Aug 2008 16:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-178</guid>
		<description>$value = str_replace($playername, &#039;&lt;a href=&quot;/diplomacy/userPage/?target=&#039; . $playername . &#039;&quot;&gt;&#039; . $playername . &#039;&lt;/a&gt;&#039;, $value);</description>
		<content:encoded><![CDATA[<p>$value = str_replace($playername, &#8216;&lt;a href=&quot;/diplomacy/userPage/?target=&#8217; . $playername . &#8216;&quot;&gt;&#8217; . $playername . &#8216;&lt;/a&gt;&#8217;, $value);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rico</title>
		<link>http://www.smert.net/2008/01/24/warbook-alliance-manager/comment-page-1/#comment-177</link>
		<dc:creator>rico</dc:creator>
		<pubDate>Sun, 24 Aug 2008 16:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.smert.net/?p=55#comment-177</guid>
		<description>$value = str_replace($playername, &#039;&lt;a&gt;&#039; . $playername . &#039;&lt;/a&gt;&#039;, $value);</description>
		<content:encoded><![CDATA[<p>$value = str_replace($playername, &#8216;<a>&#8216; . $playername . &#8216;</a>&#8216;, $value);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
