<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mr. Pig's House of Bacon &#187; HE</title>
	<atom:link href="http://www.valdegames.com/pig/wordpress/category/my-programs/he/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.valdegames.com/pig/wordpress</link>
	<description>Another Blog of a Computer Programmer</description>
	<lastBuildDate>Sat, 27 Mar 2010 03:11:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>It&#8217;s been a while &#8211; Some PHP Code</title>
		<link>http://www.valdegames.com/pig/wordpress/2007/06/19/its-been-a-while-some-php-code/</link>
		<comments>http://www.valdegames.com/pig/wordpress/2007/06/19/its-been-a-while-some-php-code/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 18:03:26 +0000</pubDate>
		<dc:creator>Mr. Pig</dc:creator>
				<category><![CDATA[HE]]></category>
		<category><![CDATA[My Programs]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.valdegames.com/pig/wordpress/2007/06/19/its-been-a-while-some-php-code/</guid>
		<description><![CDATA[Well, it&#8217;s been a while sense I last updated this&#8230; works being done on HE and some of my other projects. School&#8217;s almost over (one more day). Anyway, I recently created a sig generator for a game I play called Frag.Ops. A nice community member (known as Diesel_Fuel_Only) created a stats site for all the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s been a while sense I last updated this&#8230; works being done on HE and some of my other projects. School&#8217;s almost over (one more day). Anyway, I recently created a sig generator for a game I play called Frag.Ops. A nice community member (known as Diesel_Fuel_Only) created a stats site for all the servers. It runs UTStatsDB with no modifications (other than images). I wanted to create sigs for the site, the only problem was he wouldn&#8217;t give me access to his MySQL databases because he&#8217;s kind-of a duche. Anyway, the work around was the parse the site directly, and build the sigs. He now made his own (that suck balls) so I decided to release the code I used to parse the site, as well as generate the images.</p>
<p>I split it into two classes. One to parse the site, and one to build the image. The image class is a php GD interface. The UTStatsDB parser is a different class. You enter the ID of the player you want, and the URL of the site pages, and it gathers some data about the player. A download link to the classes will be at the bottom of this post. First, heres and example of how to use them:</p>
<blockquote><p>$thisID = 7;<br />
$statObj = new statsParser($thisID, &#8216;http://www.fostats.com/fostats/playerstats.php?player=&#8217;, &#8216;http://www.fostats.com/fostats/index.php?stats=players&#8217;);</p>
<p>// Check stats<br />
$mRank = $statObj->playerMissionRank;<br />
if ($statObj->playerMissionRank == 0)<br />
$mRank = &#8216;N/A&#8217;;</p>
<p>$wRank = $statObj->playerWarRank;<br />
if ($statObj->playerWarRank == 0)<br />
$wRank = &#8216;N/A&#8217;;</p>
<p>// Build Array<br />
$text[0] = &#8216;Player: &#8216; . $statObj->playerName;<br />
$text[1] = &#8216;Total Kills: &#8216; . $statObj->playerKills;<br />
$text[2] = &#8216;Total Deaths: &#8216; . $statObj->playerDeaths . &#8216;          KDR: &#8216; . round($statObj->playerKills / $statObj->playerDeaths, 2);<br />
$text[3] = &#8216;Mission Rank: &#8216; . $mRank . &#8216;          War Rank: &#8216; . $wRank;<br />
$text[4] = &#8216;Overall Rank: &#8216; . $statObj->playerOverallRank;<br />
$totalText = 5;</p>
<p>// Make the image<br />
$imageSys = new imgEditor(&#8216;bgimg.png&#8217;, &#8221;);<br />
$imageSys->setFont(&#8216;main.ttf&#8217;);<br />
$imageSys->setSize(12);<br />
$color[0] = 255;<br />
$color[1] = 255;<br />
$color[2] = 255;<br />
$shade[0] = 150;<br />
$shade[1] = 150;<br />
$shade[2] = 150;</p>
<p>for ($iLoop2 = 0; $iLoop2 < $totalText; $iLoop2++)<br />
$imageSys->addShadowText($text[$iLoop2], 5, 19 + (20 * $iLoop2), $color, $shade, 1);</p>
<p>$imageSys->outputToFile($thisID . &#8216;.png&#8217;, &#8216;./built_sigs/&#8217;);</p></blockquote>
<p>This work is licensed under the <a target="_blank" href="http://creativecommons.org/licenses/by-nd/3.0/us/">Creative Commons Attribution-NoDerivs 3.0 United States</a>. If you wish to use my work for the public (generate sigs/images for the public/more people than just yourself you <em>must</em> include &#8220;Generated using classes by Matt Razza&#8221; in the image you generate (or page if it&#8217;s just a stats page)). If it&#8217;s just for you, it&#8217;s not needed.</p>
<p>Download: <a href="http://www.valdegames.com/pig/php_code.zip">Here</a></p>
<p>See the classes, and example code in action: <img src="http://www.swag-network.com/fo-sigs/?ID=7" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.valdegames.com/pig/wordpress/2007/06/19/its-been-a-while-some-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alert Zee Internets!</title>
		<link>http://www.valdegames.com/pig/wordpress/2007/02/04/alert-zee-internets/</link>
		<comments>http://www.valdegames.com/pig/wordpress/2007/02/04/alert-zee-internets/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 17:56:10 +0000</pubDate>
		<dc:creator>Mr. Pig</dc:creator>
				<category><![CDATA[HE]]></category>

		<guid isPermaLink="false">http://www.valdegames.com/pig/wordpress/?p=33</guid>
		<description><![CDATA[I fixed the SVN!
It&#8217;s quite a happy occasion for the people here at Valde Games. I fixed the SVN. I just started work on the game again &#8211; I just added code for &#8220;nade charging&#8221; the longer you hold fire, the farther the nade will go. Hopefully the rest of the team will get motivated&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I fixed the SVN!</strong></p>
<p>It&#8217;s quite a happy occasion for the people here at Valde Games. I fixed the SVN. I just started work on the game again &#8211; I just added code for &#8220;nade charging&#8221; the longer you hold fire, the farther the nade will go. Hopefully the rest of the team will get motivated&#8230; or come back&#8230; or something.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.valdegames.com/pig/wordpress/2007/02/04/alert-zee-internets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HE is Moving!</title>
		<link>http://www.valdegames.com/pig/wordpress/2006/10/07/he-is-moving/</link>
		<comments>http://www.valdegames.com/pig/wordpress/2006/10/07/he-is-moving/#comments</comments>
		<pubDate>Sat, 07 Oct 2006 22:54:28 +0000</pubDate>
		<dc:creator>Mr. Pig</dc:creator>
				<category><![CDATA[HE]]></category>

		<guid isPermaLink="false">http://www.valdegames.com/pig/wordpress/?p=21</guid>
		<description><![CDATA[It&#8217;s about damn time I guess&#8230; but finally HE is moving along. The team is motivated and we are speeding up production of the game. If we can keep the current speed we can expect it to finally be finished early to middle 2007.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s about damn time I guess&#8230; but finally HE is moving along. The team is motivated and we are speeding up production of the game. If we can keep the current speed we can expect it to finally be finished early to middle 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.valdegames.com/pig/wordpress/2006/10/07/he-is-moving/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Game Progress</title>
		<link>http://www.valdegames.com/pig/wordpress/2006/09/20/game-progress/</link>
		<comments>http://www.valdegames.com/pig/wordpress/2006/09/20/game-progress/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 23:44:32 +0000</pubDate>
		<dc:creator>Mr. Pig</dc:creator>
				<category><![CDATA[HE]]></category>
		<category><![CDATA[My Programs]]></category>

		<guid isPermaLink="false">http://www.valdegames.com/pig/wordpress/?p=19</guid>
		<description><![CDATA[Well, RSE has taken a back-seat to HE. I guess this is a good thing as I havn&#8217;t touched the game in months. I recently finished re-coding rounds and teams and we should start to see the game moving again&#8230;
I dunno, I really liked the idea of RSE (mainly as I&#8217;d use it a lot). [...]]]></description>
			<content:encoded><![CDATA[<p>Well, RSE has taken a back-seat to HE. I guess this is a good thing as I havn&#8217;t touched the game in months. I recently finished re-coding rounds and teams and we should start to see the game moving again&#8230;</p>
<p>I dunno, I really liked the idea of RSE (mainly as I&#8217;d use it a lot). I guess that app will just need to wait.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.valdegames.com/pig/wordpress/2006/09/20/game-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhysX by Ageia</title>
		<link>http://www.valdegames.com/pig/wordpress/2006/07/15/physx-by-ageia/</link>
		<comments>http://www.valdegames.com/pig/wordpress/2006/07/15/physx-by-ageia/#comments</comments>
		<pubDate>Sat, 15 Jul 2006 17:07:08 +0000</pubDate>
		<dc:creator>Mr. Pig</dc:creator>
				<category><![CDATA[HE]]></category>

		<guid isPermaLink="false">http://www.valdegames.com/pig/wordpress/?p=10</guid>
		<description><![CDATA[Our game, Hostile Engagement, now has support for PhysX by Ageia. I spent a while integrating it and what I have completed is very promising. I&#8217;ll be posting videos as we get further into development.
]]></description>
			<content:encoded><![CDATA[<p>Our game, Hostile Engagement, now has support for PhysX by Ageia. I spent a while integrating it and what I have completed is very promising. I&#8217;ll be posting videos as we get further into development.<a target="_blank" href="http://www.ageia.com/"><img border="0" align="left" alt="PhysX" src="http://www.valdegames.com/images/physx.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.valdegames.com/pig/wordpress/2006/07/15/physx-by-ageia/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I hope it&#8217;ll stay working&#8230;</title>
		<link>http://www.valdegames.com/pig/wordpress/2006/07/10/i-hope-itll-stay-working/</link>
		<comments>http://www.valdegames.com/pig/wordpress/2006/07/10/i-hope-itll-stay-working/#comments</comments>
		<pubDate>Tue, 11 Jul 2006 04:39:25 +0000</pubDate>
		<dc:creator>Mr. Pig</dc:creator>
				<category><![CDATA[HE]]></category>
		<category><![CDATA[My Programs]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.valdegames.com/pig/wordpress/?p=5</guid>
		<description><![CDATA[I recently attempted to upgrade to a paid hosting package for Valde Games (and this site). As you can see with the recent down time, it didn&#8217;t work too well. They moved my account to the paid server and attempted to transfer the MySQL databases. Sadly, however, the MySQL database versions were different (newer on [...]]]></description>
			<content:encoded><![CDATA[<p>I recently attempted to upgrade to a paid hosting package for Valde Games (and this site). As you can see with the recent down time, it didn&#8217;t work too well. They moved my account to the paid server and attempted to transfer the MySQL databases. Sadly, however, the MySQL database versions were different (newer on the free server then the paid) so they failed to transfer my MySQL databases. I complained and they said they&#8217;d have it fixed in 1 &#8211; 2 days. Five days later, they upgraded the databases (without notifying me) and I took it apon myself to transfer the data to the new server. They did however refund my paid payment which means I am on the paid server, but do not have a paid account. This is bad because upgrading to a paid account may, once again, bring downtime &#8211; or I may loose files. We&#8217;ll see, I sent the admin a PM on the host&#8217;s forums.</p>
<p>Another note: I recently got a cell phone, <a target="_blank" href="http://www.mobilemag.com/content/images/8394_large.jpg">LG VX8300</a>.</p>
<p>ServConv: A new version is out (build 99), download it <a href="http://www.valdegames.com/pig/wordpress/?page_id=4">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.valdegames.com/pig/wordpress/2006/07/10/i-hope-itll-stay-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
