Game Development Community

Why need "generateProjects.bat"?(Is "New Project" of Toolbox not enough?)

by Tom Giant · in Torque 3D Professional · 11/22/2010 (5:49 am) · 4 replies

I was already able to create a new project by the function "New Project" in the Torque Toolbox. That will help me to generate all things according to the "full" template. So I don't know why need to use the batch file "generateProjects.bat" mentioned many times in the forum. Is there any special purpose?

Thanks for any help in advance.

#1
11/22/2010 (6:28 am)
*disregard this no respect to find here...*
#2
11/22/2010 (8:12 am)
When you have multiple developers working out of the same set of files (subversion repo, TFS or alike) it is easy for your local copies of the the Visual Studio solution or project files to conflict with team member's. The project generator is there to ensure that all members of your development staff always work out of the same project definitions.

Whenever you check-in or check-out updates to a repo you should run the project generator to ensure that the project files are clean and build correctly.

This process is less important if you are an individual, but quite usefull to a team.
#3
11/22/2010 (8:13 am)
Thanks for your reply. I was just curious about the following thread that mentioned the project generate tool. Maybe I misunderstood them meaning.


http://www.torquepowered.com/community/forums/viewthread/96161

and

http://www.torquepowered.com/community/forums/viewthread/81664

and

http://www.torquepowered.com/community/forums/viewthread/115439

05/18/2010 (8:27 am)
The best thing to do is to use the project generator. Inside buildFiles/config/ there are some configuration files which setup the projects that are created once you run the generator. There are two files in here which you need to examine in particular, projectCode.conf and project.conf. You can copy and paste their contents from the template into your own project and then run the generator.

Alternatively, since you've already done 1/2 the work, you should just be able to add the preprocessor directives to your project. You need to add two, VT_VERVE and VT_EDITOR.

Let me know how you get on!
#4
11/22/2010 (8:24 am)
Got it. Thanks for Phillip's reply.