Game Development Community

Empty Starter Project for VS2008 and XNA3

by Luke McCampbell · in Torque X 2D · 05/05/2009 (12:27 pm) · 1 replies

Does someone have an empty starter project for
VS2008 and XNA3?

Or a walkthrough of how to create a temporary one?

Just looking for something to have to work with while
we wait for the official release.

I can get the demo apps compiling fine under VS2008 and
XNA3. If I leave them in the demo directory.

Thanks
-Luke


#1
05/10/2009 (4:34 pm)
I found that I was able to create my own starter project for VS2008 by updating the VS2005 starter project template. Because I didn't have VS2005 installed when I installed Torque X 2D, the starter project templates were written to the following directory:

C:\VS2005DIR\ProjectTemplates\CSharp\XNA Game Studio 2.0

To update the project template for VS2008, I copied the 2D Starter project (GarageGames_StarterGame2D_Template_src.zip) to the appropriate template path for VS2008:

[MY_DOCS]\Visual Studio 2008\Templates\ProjectTemplates\Visual C#\XNA Game Studio 3.0

I then unzipped the file and modified its contents to make it compatible with VS2008. To do so, I made the following modifications:

1) I updated the Content.contentproj files in the Game and Engine folders to use the XNA 3 content builder. .contentproj files are simple XML files, so it's relatively simple to find references to XNA 2 and increase the version number.

2) I replaced the files under the template's Engine folder with the contents of my Torque X 2D installs Engine folder (C:\Program Files\GarageGames\Torque X 2.0 Pro\v2.0.0.0\Engine).

3) I renamed base.vstemplate to MyTemplate.vstemplate.

Finally, I re-zipped the files and was able to create the Starter project under VS2008.

A couple of notes:

1) I'm going from memory on the modifications, so I've probably forgotten a few spots that I fixed while I was debugging my project template.

2) The item templates seem to work as is. I just copied them over when I copied the project templates to the VS2008 template directory.

3) I've only gone through the HelloWorld tutorial so far, but the Starter Project template worked fine with it.

4) VS complains about a few files being added multiple times to the project files Game and Engine projects, but that doesn't seem to stop the resulting projects from working.

5) I've only tested the Windows build so far, so I'm not sure if X360 deployment works or not with the templates.

I hope this helps you get started. I wanted to post up my modified template up on my site, but it occurred to me that GarageGames might not appreciate that considering that the template contains a full copy of their engine source code.... Maybe there's some fine member of the GarageGames who'd be willing to upload the modified template to some place with appropriate permissions for license holders?