Game Development Community

Trouble Building/Running Platformer Demo in GS 3.1

by ki16-bit · in Torque X Platformer Kit · 07/02/2010 (9:15 pm) · 8 replies

Greetings. I just purchased and installed Torque X 2D 3.1.4 along with the Platformer Kit 3.1.0.1 and I was able to build and run the PlatformerStarterGame project in both VC#2008 and TX2D, but when I attempt to build the PlatformerDemo project I temporarily get a blank window with the startup "Yeah, come on!" sound clip and then it crashes.

In VC#2008 I get warnings saying "Project item 'levels\demo_modified.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it." This repeats for each level in the project.

When the program crashes I also get the error, "This device does not support 32-bit indices. Use IndexElementSize.SixteenBits or a type that has a size of two bytes" In Game.cs, class gamestarter, game.Run();

I tried setting the property to Compile, but I when I build I get the error "Cannot autodetect which importer to use for "levels\demo_modified.txscene". There are no importers which handle this file type. Specify the importer that handles this file type in your project."

I looked at the properties for the .txscene for Content Importer and didn't see anything appropriate. Sorry for the newbie question. Any help would be greatly appreciated.

About the author

Recent Threads


#1
07/03/2010 (11:27 am)
The properties on your Txscene files should be "Copy if newer" and "Content". I'm not sure about those other errors, but, I'm curious about your graphics card maybe..?
#2
07/03/2010 (2:16 pm)
Thanks for the response. I checked the properties and Build Action is set to "Content", and Copy to Output folder is set to "Copy if newer" like you said.

I get the same warnings for the PlatformerStarterGame that say "Project item 'levelsdemo_modified.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.", but it still builds and runs correctly.

That leaves the the error, "This device does not support 32-bit indices. Use IndexElementSize.SixteenBits or a type that has a size of two bytes" in Game.cs, class gamestarter, game.Run();

I'm using the Intel GMA 3100 onboard gpu running on a Biostar G31D-M7 mobo. Before I bought TX2D and the Platformer Kit, I found the old Platformer Demo 1.1.0 .exe and successfully installed and ran it.

Thanks for your help, once again.
#3
07/04/2010 (1:54 pm)
Oh, here this image should help... this is your "configuration manager" make sure it looks similar to this...

img42.imageshack.us/img42/6550/configv.png
#4
07/04/2010 (2:21 pm)
These are the settings present in my Configuration Manager. I'm not sure how to get the other projects into the manager. Is it supposed to load with the PlatformDemo project?
[IMG=http://img821.imageshack.us/img821/8254/config.jpg][/IMG]
#5
07/04/2010 (6:08 pm)
Oh, maybe mines different because its the source and doesn't have the platformer framework in it. what you posted there looks honky dory.
#6
07/06/2010 (9:40 am)
from what I see in the image you posted it looks like your using the binary version of the engine.. chances are this has a bug in it that does not clear the display properly. are you running it from visual stuido or direct from your hdd?

try running it direct from your hdd and don't alt-tab or switch out to another program and then back to the game..
#7
07/07/2010 (4:23 pm)
I'm running it from Visual Studio, and I've also tried running from Torque X 2D. I can build it successfully with just some warnings, but when it runs it has the error I described above and crashes.

A work-around that I found was to use the PlatformerDemo project, but not the scenes/levels that are included. I just created a new scene and changed it in Visual Studio to run my new level. That way I still get access to all the components, which is why I bought the kit. The PlatformStarterGame didn't have the DragonActorComponent, and this way I get at that and can do the tutorials.*breathes sigh of relief*

I'm still interested in solving the problem I was having. What do you mean by try running it from hdd, and how would I go about doing that?

I apologize for these newbie questions. I greatly appreciate you guys going out of your way to help.
#8
07/12/2010 (9:32 pm)
I just upgraded to a 4350 gpu($15 after rebate!), and what do ya know everything works fine. Nice call Will.

Thanks guys.