Game Development Community

Error finding .dts in project

by Matt Fischman · in Torque X 2D · 03/12/2008 (6:37 pm) · 1 replies

I'm trying to add the box.dts from the FPS demo into a starter game project, however when I try to load the scene object, I get a fatal assertion that the .dts file cannot be found. I am positive that it actually exists in the directory specified, and I have added it to the actual visual studio project, so I am really not sure what the problem could be. Anyone run into this?

#1
03/12/2008 (7:16 pm)
Couple of thoughts.

1. In Visual C# Express, after you include the .dts file in your project, select it and go to the Properties panel. From there, set the Compile option to "Content" and the Copy File option to "Only when newer". The reason is that .dts files are not compiled with the XNA content pipeline into a .xnb files, instead, they are just loaded straight from the filesystem at runtime.

2. Your level data XML or source code should refer to the .dts file starting from "\data\...".

I think those are the most common issues that individuals run into. If this doesn't help, you can post the relevant portions of code/XML that deals with the model loading.

John K.