Game Development Community

Chapter 11 MyXnaFPS

by Jeff C. Huff · in · 09/30/2008 (5:36 pm) · 3 replies

When using the Chapter 11 MyXnaFPS files downloaded from the website I get the following error:

Error 1 Cannot autodetect which importer to use for "levels\levelData.txscene". There are no importers which handle this file type. Specify the importer that handles this file type in your project. C:\Users\Jeff\Documents\Visual Studio 2005\Projects\MyXnaFPS\MyXnaFPS\Game\data\levels\levelData.txscene Game

I've gone into the properties and tried each of the Importer types to no avail. Any Idea?

Also, I had to set each of the dts files, level, and terrain file to compile before I could get rid of 4 errors on the build. I believe that this is normal but might be handy to have a text file of such notes in the download.

Thanks,
Jeff Huff

#1
09/30/2008 (6:12 pm)
Ouch, I'll check on that and upload a fix right away. The .txscene files should not have any content processor, so set it to

Build Action = "Content"
Copy to Output Directory = "Copy if Newer"

The same holds true fot the DTS and Terrain files (but not images). The reason for this is that there is no XNA content loader for these custom GarageGames objects. Therefore, they should not be compiled into .xnb files. Instead, Torque X will load these files within the SceneLoader class.

I'll double-check the code for Chapter 11. In fact, I still have some more chapter code to upload too.

John K.
#2
09/30/2008 (6:22 pm)
John,

Interesting note is that if you complete the exercise as you outlined it in the book it works perfectly! Must be something thing in the downloaded file it doesn't like.

On to Chapter 12!

Jeff
#3
09/30/2008 (6:22 pm)
LOL! Looks like I should have read the book ;)

John K.