<?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>HackDevDotCom &#187; Fixes / Patches</title>
	<atom:link href="http://hackdev.com/category/gaming/fixes-patches/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackdev.com</link>
	<description>Hacked Development</description>
	<lastBuildDate>Thu, 10 Jun 2010 22:55:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Just a general update&#8230;</title>
		<link>http://hackdev.com/2010/04/just-a-general-update/</link>
		<comments>http://hackdev.com/2010/04/just-a-general-update/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 20:48:55 +0000</pubDate>
		<dc:creator>Gues7</dc:creator>
				<category><![CDATA[Fixes / Patches]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mancave]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://hackdev.com/?p=144</guid>
		<description><![CDATA[It&#8217;s been quite a while since I&#8217;ve posted  anything, I&#8217;ve been very busy lately but since I&#8217;m out sick now for a few days, I have a bit of time to update&#8230; If you have tried to play Fallout 3 using an Asus branded NVidia card, and it crashes stating &#8220;Fallout 3 has stopped working&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been quite a while since I&#8217;ve posted  anything, I&#8217;ve been very busy lately but since I&#8217;m out sick now for a few days, I have a bit of time to update&#8230;</p>
<p>If you have tried to play Fallout 3 using an Asus branded NVidia card, and it crashes stating &#8220;Fallout 3 has stopped working&#8221; every time you try to load a new game, check and see if you have Asus Gamer OSD installed, if you do, get rid of it. Something the overlay does interferes with the game  and causes this to happen&#8230;</p>
<p>I have been doing some more work on the lighting for the man cave so I have some Python code that will pull the Average color (not the most predominant, yet, wont be hard, but I am lazy) so here it is, please keep in mind its not nice, fast or clean&#8230; for high res images it takes a few seconds to do its thing&#8230;</p>
<p style="padding-left: 30px;">

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># PIL Image Module Handbook - http://www.pythonware.com/library/pil/handbook/image.htm</span>
<span style="color: #808080; font-style: italic;">#</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">from</span> PIL <span style="color: #ff7700;font-weight:bold;">import</span> Image
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">optparse</span> <span style="color: #ff7700;font-weight:bold;">import</span> OptionParser
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> processImageAverage<span style="color: black;">&#40;</span>imageFile<span style="color: black;">&#41;</span>:
    image = Image.<span style="color: #008000;">open</span><span style="color: black;">&#40;</span>imageFile<span style="color: black;">&#41;</span>     <span style="color: #808080; font-style: italic;">#open the image for processing</span>
    pixels = <span style="color: #008000;">list</span><span style="color: black;">&#40;</span>image.<span style="color: black;">getdata</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>    <span style="color: #808080; font-style: italic;">#break the image down into a list of pixels, each pixel contains a list of red,green,blue</span>
&nbsp;
    totalpx = <span style="color: #ff4500;">0</span> <span style="color: #808080; font-style: italic;">#set some default values to start counting...</span>
    redpx = <span style="color: #ff4500;">0</span>
    greenpx = <span style="color: #ff4500;">0</span>
    bluepx = <span style="color: #ff4500;">0</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">for</span> pixel <span style="color: #ff7700;font-weight:bold;">in</span> pixels:    <span style="color: #808080; font-style: italic;">#loop through the lists and build the values.</span>
        totalpx += <span style="color: #ff4500;">1</span>
        redpx += pixel<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>
        greenpx += pixel<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
        bluepx += pixel<span style="color: black;">&#91;</span><span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span>
&nbsp;
    redavg = redpx / totalpx   <span style="color: #808080; font-style: italic;">#generate the averages</span>
    greenavg = greenpx / totalpx
    blueavg = bluepx / totalpx
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Total Pixels:<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>, totalpx     <span style="color: #808080; font-style: italic;">#and write them out.</span>
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Red Average:<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>, redavg
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Green Average:<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>, greenavg
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Blue Average:<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>, blueavg
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;HEX Color:<span style="color: #000099; font-weight: bold;">\t</span>#%x%x%x&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>redavg, greenavg, blueavg<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    <span style="color: #dc143c;">parser</span> = OptionParser<span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;Usage: %prog source&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: black;">&#40;</span>options, arguments<span style="color: black;">&#41;</span> = <span style="color: #dc143c;">parser</span>.<span style="color: black;">parse_args</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>arguments<span style="color: black;">&#41;</span> <span style="color: #66cc66;">!</span>= <span style="color: #ff4500;">1</span>:
        <span style="color: #dc143c;">parser</span>.<span style="color: black;">error</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;Please specify a single input file.&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
    processImageAverage<span style="color: black;">&#40;</span>arguments<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">&quot;__main__&quot;</span>:
    main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

</p>
<p>I have a new job now, I&#8217;m no longer a software validation engineer (tester), I&#8217;m now an IT Support Engineer (IT Techie&#8230;) which is kinda nice&#8230;.</p>
<p>Well&#8230; that is for now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hackdev.com/2010/04/just-a-general-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Manhunt to run in Windows Vista</title>
		<link>http://hackdev.com/2009/11/getting-manhunt-to-run-in-windows-vista/</link>
		<comments>http://hackdev.com/2009/11/getting-manhunt-to-run-in-windows-vista/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:30:44 +0000</pubDate>
		<dc:creator>Gues7</dc:creator>
				<category><![CDATA[Fixes / Patches]]></category>
		<category><![CDATA[Gaming]]></category>

		<guid isPermaLink="false">http://hackdev.com/?p=65</guid>
		<description><![CDATA[Many people have tried to run Manhunt on Windows Vista but without any luck, through a fair ammount of Googling in the past, I came across this fix&#8230; Step 1: Download XVI32 from http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm Step 2: Back up your manhunt.exe file Step 3: Open manhunt.exe in XVI32 Step 4: From the addreess tab at the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hackdev.com/wp-content/uploads/2009/11/Manhunt-2-256x256.png"><img class="size-full wp-image-69 alignleft" title="Manhunt Icon" src="http://hackdev.com/wp-content/uploads/2009/11/Manhunt-2-256x256.png" alt="RockStar Manhunt" width="154" height="154" /></a></p>
<p>Many people have tried to run Manhunt on Windows Vista but without any luck, through a fair ammount of Googling in the past, I came across this fix&#8230;</p>
<p style="text-align: left;"><strong>Step 1:</strong><br />
Download XVI32 from http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm</p>
<p><strong>Step 2:</strong><br />
Back up your manhunt.exe file</p>
<p><strong>Step 3:</strong><br />
Open manhunt.exe in XVI32</p>
<p><strong>Step 4:</strong><br />
From the addreess tab at the top, select &#8220;Goto&#8221;<br />
Select the hexedecimal option and set the go mode to &#8220;Absolute&#8221;</p>
<p><strong>Step 5:</strong><br />
In the Goto box, enter in 08DE</p>
<p><strong>Step 6:</strong><br />
If all above went well, you should see a box highlighted containing 6A,<br />
modify this so that it says 2A.</p>
<p><strong>Step 7:</strong><br />
Save the file and exit the editor.</p>
<p><strong>Step 8:</strong><br />
Play.</p>
<p>Thanks to Sonnilivo for the great information relating to this!</p>
]]></content:encoded>
			<wfw:commentRss>http://hackdev.com/2009/11/getting-manhunt-to-run-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
