Game Development Community

TorqueX 2D and 3D starter projects don't work in 3.1 or 3.14

by Doug Reichard · in Torque X 2D · 12/27/2009 (2:24 am) · 7 replies

I have created starter projects in v3.1 of TorqueX 2D and 3D. Then upgraded to 3.1.4 and have the same problem.

The program crashes due to not having a scene camera.

I find it hard to believe such a blatant bug made it through QA. Is there an issue with Windows7?

The GUI templates run until you get to the scene where the actual levels are supposed to run and again the same crash, so it seems mostly related to the scene loader. Which leads me to think its not a Windows 7 issue.


#1
12/27/2009 (5:34 am)
Are you using the full VS or VS express. I had the same problem with my MSDN VS. Fix in this thread: www.torquepowered.com/community/forums/viewthread/91675

Basically some versions of VS2008 don't get the assembly names right.

Right Click Torque2D, select properties. the Assembly name should match the title when you click Assembly information. Should be GarageGames.TorqueX.Framework2D. TorqueCore should be GarageGames.TorqueX.Framework not just framework.

#2
12/27/2009 (10:31 am)
Thanks. Sounds like it is VS2008 and Windows7 64bit related.

That semi-works. Now I have no Physics component and the default movement component crashes in process tick. This is for a 2D project. 3D project runs, but of course it does do anything except render a desert.

This is quite annoying since I create lots of starter projects when I am teaching.
#3
12/27/2009 (10:38 am)
Fixed the physics component. This one is a problem with the template. It is set up by default to not have a physics component. I changed it from false to true. Now it works.

<StaticSprite>
            <CreateWithPhysics>true</CreateWithPhysics>
#4
12/27/2009 (11:06 am)
Actually, it looks like the editor is changing the CreateWithPhysics value to false. With no way of enabling it in the properties.

Load The level. Save. The value reverts to false.
#5
12/27/2009 (2:47 pm)
Why not try installing C# Express, it works great, I dont even know why I'd use VS2008. It doesn't seem to to give me anything that I use.
#6
12/27/2009 (9:50 pm)
I was going to reply and say I need C++ and other things, but I went to install Express anyway....

while attempting to install VSC# express it informed me In needed SP1 of visual studio.

Long story short Visual Studio SP1 FIXES the problem with the full VS. I never install VS express.

Oddly its seems to fix the physics component issue as well, though that doesn't make sense to me. The editor now loads the Physics and collision components in the editor. Possibly an issue with the .NET runtime that the Service Pack fixes as well.

Mysteries solved, and a clearer path for people who run into this.

INSTALL SP1.

Thanks so much for the help.
#7
12/28/2009 (1:13 am)
Ah ha! I never installed SP1, I just dropped in VS2008 and thought it may have to do with it being from my MSDN. Thanks