Game Development Community

Edit Source Code

by Philip Gregory · in Torque 3D Professional · 02/19/2012 (7:07 pm) · 4 replies

I'm new to Torque and was wondering how I can edit the source code for the game engine. When I start the toolbox, I click edit source code on my new project and it goes through a phase where it asks me my studio version (2010) and creates the path for me, but never opens up the source for me. When I edit the source for the FPS demo, it brings up all kinds of files (in my Studio 2010).

In short:
1.) How do I edit the source for my own projects

2.) If I open the source for the Demo project, is that the source for the game, or the engine/editor source?

3.) If it's the game source, how to I edit the editor/engine source?

About the author

Yes... Those are ribs. Current projects: Breaking out of the box in T2D, devoting efforts and talents to Middle School student tech projects (including basic Python programming!)


#1
02/19/2012 (7:13 pm)
When you create a project a folder is created within your new project folder - buildFiles. Inside this are folders for VS 2008 and VS 2010 - you can access the project solution files there.

In Visual Studio you will see several projects in the solution. One has the same name as your project - this is your actual project source. It is almost completely empty - you use this to add project-specific source files to your project.

There is another project called <myProjectName> DLL - this is the engine itself. Changes you make to these source files affect all projects.

Hope that helps!
#2
02/19/2012 (7:19 pm)
Ahh. So "project specific files" would be?
#3
02/20/2012 (6:42 am)
Project specific. Say, for instance, that you wanted to add a new vehicle type to your project but didn't want to muddy the main engine code with it - you put it in the source folders inside the project and add them to the project inside the solution instead of putting them in the folders in the engine and adding them to the DLL project in the solution. Then, the new code is only included in the game you added it to and not in every project you create with the Toolbox from that point on.
#4
02/20/2012 (11:30 am)
Got'cha. Thanks for the help!