Renaming default namespace bug?
by Andy S. · in Torque X 2D · 12/08/2007 (12:02 pm) · 5 replies
Hi,
I tried create a project using the TorqueCombat template-ptoject.
1.) created the project, but i changed the name to "GameFramework" instead of "TorqueCombat1"
2.) when the project is created, i open up "program.cs" and then i change the namespace "TorqueCombat" to "GameFramework".
3.) Visual Studio asks if it should perform thjis change on all "TorqueCombat". Everything works fine, the project builds without error.
4. Now i try to run/debug the project...it starts without error, but all i get is a purple screen.
Does anyone have an idea why this happens?
If i do not change the namespace, it runs normally.
I tried create a project using the TorqueCombat template-ptoject.
1.) created the project, but i changed the name to "GameFramework" instead of "TorqueCombat1"
2.) when the project is created, i open up "program.cs" and then i change the namespace "TorqueCombat" to "GameFramework".
3.) Visual Studio asks if it should perform thjis change on all "TorqueCombat". Everything works fine, the project builds without error.
4. Now i try to run/debug the project...it starts without error, but all i get is a purple screen.
Does anyone have an idea why this happens?
If i do not change the namespace, it runs normally.
#2
This information is about 4 weeks old (I'm not in QA nor am I on the TorqueX team, so I'm not sure if it's been addressed yet, and can't find out on a weekend), but you may want to take a look at another starter if it becomes too burdensome to work within that one :)
12/08/2007 (1:07 pm)
The TorqueCombat starter project has some subtle flaws in it--I can't remember specifically off of the top of my head, but right now it's not the best starter project to use if you are simply exploring how TorqueX works.This information is about 4 weeks old (I'm not in QA nor am I on the TorqueX team, so I'm not sure if it's been addressed yet, and can't find out on a weekend), but you may want to take a look at another starter if it becomes too burdensome to work within that one :)
#3
12/08/2007 (1:11 pm)
Thanks david.....i missed this one. I am exploring torquecombat because i am learning how the gui works.
#4
12/08/2007 (1:40 pm)
Hehe, I loved the TorqueCombatPro project, it really gave me a lot of insight in how to use the GUI, levels, etc. Now Ijust need to convert the TrooqueCombat GUIControls 1.0 over to 1.5, and I will be back on track :)
#5
Then i also try to tackle the conversion from 1.0 to 1.5 ;-)
12/08/2007 (2:30 pm)
I try the same after i have fleshed out most of the gamestuff itself. I am trying to create some project-skeleton which could be used for many games. Basically a game which contains of some GUI-Screens only. Then i also try to tackle the conversion from 1.0 to 1.5 ;-)
Torque Owner David Everhart
GUIUtil.InitGUIScreens("TorqueCombat.Canvas");to:
GUIUtil.InitGUIScreens("YourNewNamespace.Canvas");The canvas state machine uses reflection to instantiate all the GUI classes you defined. If your namespaces changed in your objects, then when it goes to instantiate, it would not be able to find your guis with the new namespace. You may also have to do it in LevelSM line 54.