Game Development Community

Assertion Error...

by Paul Hoey · in Torque X 2D · 06/29/2008 (1:28 pm) · 2 replies

I fell silly asking this, as I'm sure it's a simple problem but I haven't found an answer after looking for the last while. When I create a starter 2d game, if I add in a new material the game no longer runs. I get an error every time, here's a screenshot of it:
http://img156.imageshack.us/img156/5337/errorvz5.png

I've got the new .png I've added in the same directory as the GG logo, and it has been added to the project.

About the author

Recent Threads


#1
06/29/2008 (1:55 pm)
I believe that you will hit this assertion if your material calls out a texture file that is not physically there. It sounds like you added your new .png file to the same directory as the GGLogo file, but did you include it in the C# content project? Also, did you go to the C# properties for the file and set it Compile with the Texture importer? That might do it.

John K.
#2
06/29/2008 (2:12 pm)
Yes, it has been added in the C# project and the Build Action is compile and the Content Importer and Processor is set to texture.

The project compiles fine, I get this error at runtime.

EDIT: After some more looking at it, the issue is not the new image, but a particle emitter that I added to the level. Will this emitter have to be saved somewhere to be used?