Game Development Community

Upgrading project from torquex 1.0 to 2.0

by Temasek Polytechnic (#0001) · in Torque X Platformer Kit · 08/24/2008 (11:41 pm) · 1 replies

Hey guys, i need some help here.
after reading the upgrading guide at:
http://www.garagegames.com/mg/forums/result.thread.php?qt=73999
http://tdn.garagegames.com/wiki/TorqueX/Platformer20Update

i still encounter some error in the project i am upgrading. the error are as follow:
'GarageGames.Torque.T2D.T2DSceneGraph' does not contain a definitation for 'Instance'
The type or namespace 'InstancePlayLimitException' could not be found(are you missing a using directive or an assembly reference?)
The type or namespace name 'DXEffects' does not exist in the namespace 'GarageGames.Torque.Materials' (are u missing an assembly reference?)
The type or namespace name 'Font' could not be found(are you missing a using directive or an assembly reference?)
'TorqueCombat.GUI.GUIButtonBaseStyle.Font' is a 'property' but is use like a 'type'

can someone kindly help me with the error? help would be very much appreciated

#1
08/25/2008 (4:10 pm)
Scenegraphs got overhauled in 2.0. You can now create them by doing
T2DSceneGraph sg = new T2DSceneGraph();
// Then you can use sg.****** instead of T2DSceneGraph.Instance.******
For the middle three you are either forgetting to include the using statement(those things at the top of the program) or you were using a library or something that needs to be referenced in your program. You can right click on the underlined area and you might see a resolve menu which should fix the using errors. I'm not much help on the assembly references or the last error, I'm just learning about GUIs.
Hopefully this will help, Viktor