TX2D Upgrade
by Cosmic Logic · in Torque X 2D · 11/10/2009 (3:24 am) · 3 replies
Hey,
I finally got around to upgrading my TX from my TGB non-source version to full Pro.
I'm itching to get cracking on some things I've wanted to look in to in the source code but I'm not sure where to look.
In the TX2D folder I can see all the source code files but is there anything special I have to do to play with them?
There's the .csproj in the Torque2D folder, do I just open that, play and then compile, and then the changes will have taken effect?
I also want to know if I can get down and dirty into the source code during an exception in my game, I'm getting an exception but it's all taking place inside the managed code and just stops at _myGame.Run(). I want to see where exactly the error is coming from.
I finally got around to upgrading my TX from my TGB non-source version to full Pro.
I'm itching to get cracking on some things I've wanted to look in to in the source code but I'm not sure where to look.
In the TX2D folder I can see all the source code files but is there anything special I have to do to play with them?
There's the .csproj in the Torque2D folder, do I just open that, play and then compile, and then the changes will have taken effect?
I also want to know if I can get down and dirty into the source code during an exception in my game, I'm getting an exception but it's all taking place inside the managed code and just stops at _myGame.Run(). I want to see where exactly the error is coming from.
#2
You can debug the TX engine just as you would with your own code - you can set break points, step through code, drill down into the call stack, etc. Sounds like your current error is coming from a lower level source though (e.g. XNA or .net libraries).
[1] unless you prefer to compile your TX engine in a separate project as a dll that multiple projects will reference - in which case the only project with the TX source is yr TX DLL project.
11/10/2009 (10:48 am)
If you create a TX project then all the source is presented for you to tinker with [1]. When you compile the project any modifications you made to TX will be compiled aswell.You can debug the TX engine just as you would with your own code - you can set break points, step through code, drill down into the call stack, etc. Sounds like your current error is coming from a lower level source though (e.g. XNA or .net libraries).
[1] unless you prefer to compile your TX engine in a separate project as a dll that multiple projects will reference - in which case the only project with the TX source is yr TX DLL project.
Employee David Montgomery-Blake
David MontgomeryBlake