<?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/">

<channel>
	<title>GameProjects.com Project - Berzerker Comments</title>
	<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
	<description><![CDATA[Berzerker is an arcade shooter in the vein of the original 'Berzerk'.  It was developed on the XNA platform as my first project to learn the basics of XNA.  It currently runs on Windows only.<br/><br/>Thanks to Gary Kacmarcik for parts of XNA Extras that were used.]]></description>
	<dc:creator>veedub</dc:creator>
	<pubDate>Sun, 18 Feb 2007 13:08:47 +0000</pubDate>
	<language>en</language>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 13:22:33 +0000</pubDate>
		<dc:creator>bdev13</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Veedub,<br/><br/>Coincidentally, I also just posted a Bezerk clone.  I'll download yours and have a look.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 14:11:14 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I get a DirectoryNotFoundException:<br/><br/>Could not find a part of the path 'C:\Documents and Settings\VanWagner\My Documents\Visual Studio 2005\Projects\Berzerker\Berzerker\Images\NewZerkie.png'<br/><br/>You may just want to make it so that file goes through the content pipeline like all the others.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 14:17:20 +0000</pubDate>
		<dc:creator>bdev13</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I got it to work by changing some code in Game1.Intialize() to remove the hard coded paths:<br/><br/>            m_mgrSprites = new XSpriteManager();<br/>            m_mgrSprites.AddTexture("Zerkie", "./Images/NewZerkie.png", 260, 500, Color.White);<br/>            m_mgrSprites.AddTexture("RobotAnimation", "./Images/RobotAnimation.png", 700, 700, Color.White);<br/>            m_mgrSprites.AddTexture("gun", "./Images/gun.png", 40, 40, Color.White);<br/>            m_mgrSprites.AddTexture("CyborgAnimation", "./Images/CyborgAnimation.png", 200, 400, Color.White);]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 14:23:29 +0000</pubDate>
		<dc:creator>veedub</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Note to self:<br/>Hard coded directories = bad.  <br/><br/>Should be fixed.  I will re-zip.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 14:29:25 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Even if I make the changes you suggested the problem is still exists depending on how the program is run. As veedub says, hard coded directories are the culprit. Your best bet is to have some code that finds the necessary directory(ies) at program startup. Then, you can prepend this found directory to all your file names before loading them. You can see how I do such a thing by looking at the DIrectoryNamePathResolver in my "XNA Utilities" project (you can find it on my profile/projects page). It looks for the named directory in a variety of known locations. It's specific to how I work but you could alter it for your needs.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 14:35:26 +0000</pubDate>
		<dc:creator>sonyice</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I also fixed the hard coded directories. But then I get:<br/><br/>"InvalidOperationException was unhandled.<br/>The size of the data passed in is too large or too small for this resource."<br/><br/>This happens on the tex.GetData statement:<br/>// get the image data<br/>Int32[] texbits = new Int32[m_pxWidth * m_pxHeight];<br/>tex.GetData(texbits);<br/><br/>strTexName is Zerkie at the point it fails.<br/><br/>Not sure what to do to fix that...<br/>m_pxwidth and m_pxheight are 260 and 500, while the size of the png is slightly different. Dunno if that's the problem...]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 14:53:49 +0000</pubDate>
		<dc:creator>veedub</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Thanks for being my QA team hehe. <br/><br/>I have uploaded a new zip.  I've never seen that sonyice.  Do you get that before the game starts up?  Can you get the new file and try again?]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 15:17:16 +0000</pubDate>
		<dc:creator>sonyice</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[veedub- <br/>Yes I don't actually see anything start even when running this newer exe. I get the "Please tell Microsoft about this Problem" error window. (I'm sure they'd do their darnest to help, but nevertheless I simply press "Don't Send").  I think my system is just starting to show its age. I had a similar issue with something else not running because textures were not in powers of two that other people didn't seem to have.  However, although my ATI 9600XT is not exactly a cutting edge video card anymore, it's still not completely over-the-hill either.<br/><br/>I might look into this later, but I have to take off for a while.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 18 Feb 2007 15:26:32 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[It works for me.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Tue, 20 Feb 2007 19:42:12 +0000</pubDate>
		<dc:creator>SwampThingTom</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I'm having the same problem as sonyice.  I'm also running an ATI graphics card (Radeon x1400).  The problem is definitely due to the fact that the m_pxwidth and m_pxheight values being reported by TexturePool are different than the actual Texture size from GetData (line 186 of XSpriteManager).]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Wed, 21 Feb 2007 21:04:25 +0000</pubDate>
		<dc:creator>veedub</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Ok I think it is probably due to the fact that the texture was an odd size.  At some point the size was being rounded up which resulted in a mismatch.  I have resized the image so that it matches.  <br/><br/>Strange that only some graphics cards are complaining.  This is definately good to know.  A good rule of thumb would be to keep image sizes rounded off to the nearest 10th pixel.<br/><br/>I uploaded a new zip with v1.1.  Let me know if this fixes the issue.  Thanks!]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Thu, 22 Feb 2007 20:06:44 +0000</pubDate>
		<dc:creator>sonyice</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I tried v1.1, but the problem was still happening.<br/><br/>It would appear that my card (and maybe all ATI cards?) only allow textures to be in dimensions of powers of two, and this error occurred slightly differently with the Snake project as well.<br/><br/>If I look at the Width and Height properties of the tex variable in your code (which is a Texture2D) at run time, those values are always powers of two for me. So the zerkie texture is 512 X 512. Apparently for you, it matches the size of the png?<br/><br/>So, if this code:<br/><br/>//get the image data<br/>Int32[] texbits = new Int32[m_pxWidth * m_pxHeight];<br/><br/>is changed to:<br/><br/>//get the image data<br/>Int32[] texbits = new Int32[tex.Width * tex.Height];<br/><br/>your game runs for me, and appears to work fine including the collision detection which I believe is what this code above is ultimately used for.<br/><br/>So, you could try that quick change, and verify that it works for your system as well.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Thu, 22 Feb 2007 20:10:10 +0000</pubDate>
		<dc:creator>sonyice</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I like this version of Berzerker.  It's easier to kill the robots! Plus it's easy to get them to walk into the walls. I also like the extra gun feature to change from single bullets to multiple.<br/><br/>Oddly, it's more entertaining to code/debug stuff lately than to actually play games. Well, with the exception of FlatOut2 maybe. Can't seem to stop playing that on the 65" screen. Too fun.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Fri, 23 Feb 2007 18:29:55 +0000</pubDate>
		<dc:creator>veedub</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Thanks sonyice!  I have made the fix and it works fine for me.  Also, the issue is in the XNAExtras code for anyone out there using XNAExtras.<br/><br/>v1.2 uploaded.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Sun, 04 Mar 2007 19:50:40 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[I'm watching Crank right now. Pretty insane movie...in one scene there was a bad guy playing this game on a monitor in the back seat of a car.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Mon, 05 Mar 2007 08:25:31 +0000</pubDate>
		<dc:creator>veedub</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Sweet.  I'm gonna rent that now.]]></description>
	</item>
		<item>
		<link>http://www.gameprojects.com/project?id=a08cf5857d</link>
		<pubDate>Mon, 05 Mar 2007 11:38:54 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
		<category>Comments</category>
		<guid isPermaLink="false">http://www.gameprojects.com/project?id=a08cf5857d</guid>
		<description><![CDATA[Lower your expectations and you will enjoy it.]]></description>
	</item>
		</channel>
</rss>
