Game Development Community

Compiling using Visual Studio 2005 Pro

by David Byrge · in Torque Game Engine · 02/05/2007 (5:58 pm) · 2 replies

I am a little confused at the compiling. Here is what I am doing....

I open vs2005pro and click "open project". I select the C:\Torque\SDK\VS2005 folder in torque and select the Torque SDK file. It opens up some files and lists them int he left panel. I then right clcik the same file and go to properties. I select release and have the output file to C:\Torque\SDK\Example I do the same for debug. Then, I click "Build Torque Demo" and it goes through and does its thing. I get no errors whatsoever Build: 7 suceeded and 0 errors.

You think everything would be fine except for the fact that it didn't include the files that I added in C:\Torque\SDK\engine\gui .....I am trying to complete a radar resource and all I am doing is putting the files in C:\Torque\SDK\engine\gui and then the png files in C:\Torque\SDK\example\starter.fps\client\ui . What on earth am I doing wrong? It's been very difficult to impliment some cool features by not being able to compile new engine changes. Please help.

#1
02/05/2007 (6:56 pm)
You may be missing the step where you add them to the project itself. Just adding them to the folders in the engine area doesn't add them to the project.

In your case where you have added files into engine/gui...

In the left panel find the folder you added them to.. TorqueDemo/Sourcefiles/engine/gui (or wherever) and right click on the folder icon...

select Add existing....

this will pop a select window... navigate to your directory of engine.gui and highlight your new files and select Open.

You will notice that the file is now listed in the left panel.

Once you have all your files in the right place in the left panel...

Go to the build menu with TorqueDemo highlighted and first select CLEAN Project.

Then select Build project.

If you have the changes done correctly, you will again get build 7 errors 0 and your functionality will now be in the main exec :)

Hope this helps

Regards

Graham
#2
02/05/2007 (7:44 pm)
That worked like a charm. I appreciate the fast response. Of course the file itself is giving me errors but atleast it compiled. Thanks a lot.