<?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>Dan Rigsby - Coding Up Style &#187; XNA</title>
	<atom:link href="http://www.danrigsby.com/blog/index.php/category/xna/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danrigsby.com/blog</link>
	<description>Developer.Speaker.Blogger</description>
	<lastBuildDate>Tue, 17 Nov 2009 18:29:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Alien Game on a Zune using XNA Game Studio</title>
		<link>http://www.danrigsby.com/blog/index.php/2008/09/19/installing-alien-game-on-a-zune-using-xna-game-studio/</link>
		<comments>http://www.danrigsby.com/blog/index.php/2008/09/19/installing-alien-game-on-a-zune-using-xna-game-studio/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 22:44:18 +0000</pubDate>
		<dc:creator>Dan Rigsby</dc:creator>
				<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://www.danrigsby.com/blog/index.php/2008/09/19/installing-alien-game-on-a-zune-using-xna-game-studio/</guid>
		<description><![CDATA[This post is a little more “101” than most of my posts, but I think it’s useful to show how easy it is to install and debug a game on the Zune using XNA Game Studio. For this series of steps, we are going to look at getting the game “Alien Game” up and running [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a little more “101” than most of my posts, but I think it’s useful to show how easy it is to install and debug a game on the Zune using <a href="http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/">XNA Game Studio</a>. For this series of steps, we are going to look at getting the game “Alien Game” up and running on a Zune from scratch.&#160; Once you have done this, you should know the basics to install other games, or deploy your own.</p>
<h2>Steps to Install</h2>
<h3>1. Download <a href="http://www.zune.net/en-US/products/zunesoftware/default.htm">Zune 3.0 firmware</a> or greater </h3>
<h3>2. Install <a href="http://creators.xna.com/en-us/3.0beta_mainpage">XNA Game Studio 3.0 Beta</a> or greater</h3>
<p>You will need to have Visual Studio 2008 installed or <a href="http://www.microsoft.com/express/vcsharp/">Visual C# 2008 Express</a> installed first.</p>
<h3>3. Open Visual Studio and ensure XNA Game Studio is installed</h3>
<p>You can do this by checking the “About Visual Studio” window located in the “Help” menu item.&#160; Scroll down until you find the XNA Game Studio:<a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/vsxna1.png"><img title="VSXNA1" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="297" alt="VSXNA1" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/vsxna1-thumb.png" width="654" border="0" /></a> </p>
<h3>4. Download “<a href="http://creators.xna.com/downloads/?id=199">Alien Game</a>” and extract to your local disk</h3>
<h3>5. Open the AlienGameZune.sln file in Visual Studio</h3>
<p>When opened you should see the AlienGameZune project and all of its files and resources:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/aliengame.png"><img title="AlienGame" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="484" alt="AlienGame" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/aliengame-thumb.png" width="500" border="0" /></a> </p>
<h3>6. Connect Zune to your PC via the Usb Cable (not Wifi)</h3>
<p>Be sure that you don’t have any other Zune software running since Visual Studio needs full control of the device.</p>
<h3>7. Add Zune to the XNA Game Studio Device Center</h3>
<p>You can access the XNA Game Studio Device Center via the start menu or through the Tools menu in Visual Studio.    <br /><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/vsxna2.png"><img title="VSXNA2" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="300" alt="VSXNA2" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/vsxna2-thumb.png" width="302" border="0" /></a> </p>
<p>One in the XNA Game Studio Device Center, Click “Add Device”:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna1.png"><img title="XNA1" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="210" alt="XNA1" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna1-thumb1.png" width="244" border="0" /></a> </p>
<p>On the next screen select “Zune” and continue:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna21.png"><img title="XNA2" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="151" alt="XNA2" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna2-thumb1.png" width="244" border="0" /></a> </p>
<p>If your Zune is connected correctly, you should see it in the list with the device name.&#160; More than one Zune will appear, if you have multiple devices plugged into the PC.&#160; If you don’t see your device, double check your connection.</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna3.png"><img title="XNA3" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="151" alt="XNA3" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna3-thumb.png" width="244" border="0" /></a>&#160;</p>
<p>Once you have selected your device, you need to make sure you have it selected as your “default Zune device”.&#160; If you only have one Zune you are using, then this is automatically selected for you.</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna4.png"><img title="XNA4" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="151" alt="XNA4" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna4-thumb.png" width="244" border="0" /></a>&#160;</p>
<p>Now that the wizard is finished, you should see your Zune device with a “green checkmark” that indicates that it is ready:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna5.png"><img title="XNA5" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="210" alt="XNA5" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna5-thumb.png" width="244" border="0" /></a>&#160;</p>
<h3>8. Simply run the debugger from Visual Studio by pressing F5</h3>
<p>You should see all of the files transferring down to the Zune.&#160; Once the game is running, you can play the game, set breakpoints in Visual Studio, etc.</p>
<h2>Nabbing Screenshots</h2>
<p>One other little tip, is that you can snag screenshots of the an executing game on the Zune.&#160; This won’t work unless you are currently running a game from your PC to the Zune.&#160; All you need to do is to right click on the device in XNA Game Studio Device Center and select “Take Screen Capture”.</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna6.png"><img title="XNA6" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="209" alt="XNA6" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna6-thumb.png" width="244" border="0" /></a></p>
<p>Here are a couple of screenshots nabbed from “Alien Game”:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/danr2.png"><img title="DanR-2" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="324" alt="DanR-2" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/danr2-thumb.png" width="244" border="0" /></a> <a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/danr1.png"><img title="DanR-1" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="324" alt="DanR-1" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/danr1-thumb.png" width="244" border="0" /></a></p>
<div class="wlWriterHeaderFooter" style="text-align:left; margin:0px; padding:4px 4px 4px 4px;"><a href="http://www.dotnetkicks.com/kick/?url=http://www.danrigsby.com/blog/index.php/2008/09/19/installing-alien-game-on-a-zune-using-xna-game-studio/"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http://www.danrigsby.com/blog/index.php/2008/09/19/installing-alien-game-on-a-zune-using-xna-game-studio/&amp;bgcolor=FF8000&amp;fgcolor=FFFFFF&amp;border=000000&amp;cbgcolor=D4E1ED&amp;cfgcolor=000000" alt="DotNetKicks Image" border="0/"></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.danrigsby.com/blog/index.php/2008/09/19/installing-alien-game-on-a-zune-using-xna-game-studio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XNA Game Studio 3.0 Beta &#8211; Released with 64-Bit Support</title>
		<link>http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/</link>
		<comments>http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 14:54:37 +0000</pubDate>
		<dc:creator>Dan Rigsby</dc:creator>
				<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/</guid>
		<description><![CDATA[XNA Game Studio is Microsoft’s cross platform game development extensions for Visual Studio and .Net.&#160; With it you can target games and applications for either Windows, Xbox 360, or Zune (running &#62;= the 3.0 firmware).

A few months back I blogged about the release of the CTP of XNA Game Studio 3.0 and about how there [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>XNA Game Studio is Microsoft’s cross platform game development extensions for Visual Studio and .Net.&#160; With it you can target games and applications for either Windows, Xbox 360, or Zune (running &gt;= the 3.0 firmware).</p>
</blockquote>
<p>A few months back I blogged about the release of the <a href="http://www.danrigsby.com/blog/index.php/2008/05/22/xna-game-studio-30-ctp-no-64-bit-support-yet/">CTP of XNA Game Studio 3.0</a> and about how there was no 64-bit OS support.&#160; Well, a couple of days ago, Microsoft released the <a href="http://creators.xna.com/en-us/3.0beta_mainpage">first Beta</a> of the Studio. This release was heavily overshadowed by the release of the <a href="http://www.zune.net/en-US/products/zunesoftware/default.htm">Zune 3.0 software</a> and firmware.&#160; However, I am pleased to find that there is finally 64-bit support, and I have it up and running.&#160; This Beta release requires Visual Studio 2008 (2005 is no longer supported).&#160; If you don’t have Visual Studio, but want to try out XNA Game Studio, you can always download <a href="http://www.microsoft.com/express/vcsharp/">Visual C# 2008 Express</a> (which is free) and install XNA Game Studio on it. The only language supported is still C#.</p>
<p>Once you have XNA Game Studio installed, you can start creating projects by using one of the predefined templates:</p>
<p><img title="xna1" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="466" alt="xna1" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna1-thumb.png" width="634" border="0" /></p>
<p>Notice that there are 2 different templates for each of the 3 target project types (Windows, XBox 360, and Zune).&#160; When a project is created, each target platform project has a different Icon:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna2.png"><img title="xna2" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="164" alt="xna2" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/09/xna2-thumb.png" width="308" border="0" /></a>&#160; </p>
<p>This makes it a bit easier to tell what a project is targeted for.&#160; You could also look for the XnaPlatform node in the xml for the .csconfig file:</p>
<div>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">XnaPlatform</span><span style="color: #0000ff">&gt;</span>Zune<span style="color: #0000ff">&lt;/</span><span style="color: #800000">XnaPlatform</span><span style="color: #0000ff">&gt;</span></pre>
</div>
<p><em>The 3 possible values are “Zune”, “Xbox 360”, and “Windows”.</em></p>
<p>You can download XNA Game Studio 3.0 Beta here: <a title="http://creators.xna.com/en-us/3.0beta_mainpage" href="http://creators.xna.com/en-us/3.0beta_mainpage">http://creators.xna.com/en-us/3.0beta_mainpage</a></p>
<p>If you are interested in doing Zune work, the game “Alien Game”, which was introduced in the CTP, is back for the Beta.&#160; You can download it here: <a title="http://creators.xna.com/downloads/?id=199" href="http://creators.xna.com/downloads/?id=199">http://creators.xna.com/downloads/?id=199</a> and start tweeking it.</p>
<div class="wlWriterHeaderFooter" style="text-align:left; margin:0px; padding:4px 4px 4px 4px;"><a href="http://www.dotnetkicks.com/kick/?url=http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/&amp;bgcolor=FF8000&amp;fgcolor=FFFFFF&amp;border=000000&amp;cbgcolor=D4E1ED&amp;cfgcolor=000000" alt="DotNetKicks Image" border="0/"></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.danrigsby.com/blog/index.php/2008/09/19/xna-game-studio-30-beta-released-with-64-bit-support/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>XNA Game Studio 3.0 CTP, no 64-Bit support (yet)</title>
		<link>http://www.danrigsby.com/blog/index.php/2008/05/22/xna-game-studio-30-ctp-no-64-bit-support-yet/</link>
		<comments>http://www.danrigsby.com/blog/index.php/2008/05/22/xna-game-studio-30-ctp-no-64-bit-support-yet/#comments</comments>
		<pubDate>Thu, 22 May 2008 20:31:25 +0000</pubDate>
		<dc:creator>Dan Rigsby</dc:creator>
				<category><![CDATA[XNA]]></category>
		<category><![CDATA[Zune]]></category>

		<guid isPermaLink="false">http://www.danrigsby.com/blog/index.php/2008/05/22/xna-game-studio-30-ctp-no-64-bit-support-yet/</guid>
		<description><![CDATA[As a Zune owner I have been quite excited to get my hands on XNA Game Studio 3.0 CTP.&#160; I am excited about not only being about to develop games, but also applications for my Zune (see this post about XNA for the Zune).&#160; So, I eagerly downloaded the setup, ran the install, and all [...]]]></description>
			<content:encoded><![CDATA[<p>As a <a href="http://www.zune.net" target="_blank">Zune</a> owner I have been quite excited to get my hands on <a href="http://www.microsoft.com/downloads/details.aspx?familyid=df4af56a-58a7-474c-bfd0-7cf8ed3036a3&amp;displaylang=en">XNA Game Studio 3.0 CTP</a>.&nbsp; I am excited about not only being about to develop games, but also applications for my Zune (see <a href="http://www.danrigsby.com/blog/index.php/2008/02/20/xna-game-development-on-the-zune/" target="_blank">this post</a> about XNA for the Zune).&nbsp; So, I eagerly downloaded the setup, ran the install, and all was well, until I went into the &#8220;XNA Game Studio Device Center&#8221; to add my Zune device:</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/05/xna.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="304" alt="xna" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/05/xna-thumb.png" width="534" border="0"></a> </p>
<p>After clicking &#8220;Next&#8221; I was greeted with the following error:</p>
<blockquote><p>System.IO.FileNotFoundException: Unable to find the specified file.<br />&nbsp;&nbsp; at Microsoft.Xna.GameStudio.DeviceManagement.UnsafeNativeMethods.AcquireZuneTransport()<br />&nbsp;&nbsp; at Microsoft.Xna.GameStudio.DeviceManagement.ZuneDeviceInfo.GetAllConnectedDevices()<br />&nbsp;&nbsp; at Microsoft.Xna.GameStudio.DeviceManagement.UI.ZuneNamePage.SetCurrentPage()<br />&nbsp;&nbsp; at Microsoft.Xna.GameStudio.DeviceManagement.UI.AddDeviceWizard.Proceed()<br />&nbsp;&nbsp; at Microsoft.Xna.GameStudio.DeviceManagement.UI.ZuneWarningPage.SetCurrentPage()<br />&nbsp;&nbsp; at System.Windows.Forms.Control.OnClick(EventArgs e)<br />&nbsp;&nbsp; at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.Button.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</p>
</blockquote>
<p>After a bit of digging around, I discovered that this exception is caused because there is no support for 64-bit operating systems in XNA Game Studio 3.0 yet.&nbsp; Unfortunately, all of my PCs right now are 64-bit Vista to take advantage of &gt;3.5 gig of ram and to test applications in 64-bit mode.&nbsp; So, I will have to attempt to run this in a Virtual PC and hope I have better luck.</p>
<p>To save you some frustration, there are a few other things to note about this version of the CTP:</p>
<ul>
<li>You must be running Visual Studio 2008 Standard Edition or higher or Visual C# 2008 Express Edition.&nbsp; Those of you running Visual Studio 2005 are out of luck for now.
<li>No game development for XBox 360 yet.&nbsp; This CTP was released for working with the Zune.&nbsp; Perhaps more CTPs will come out over time.
<li>No support for 64-bit operating systems.&nbsp; They should have support for this by RTM though (I hope).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.danrigsby.com/blog/index.php/2008/05/22/xna-game-studio-30-ctp-no-64-bit-support-yet/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
