Game Development Community

Build Torquescript project using command line

by Gilberto Catarino · in Torque Game Builder · 10/08/2009 (3:29 pm) · 4 replies

How do i build a torquescript project?
Basically i want to be able to build it via batch file instead of going to Torque Game Builder Editor -> Build Project option.

Is this possible?

Thank you

PS- I've searched around but could find a way, maybe i missed something.

#1
10/08/2009 (4:30 pm)
If you go digging in the TGB directories, you'll find "function ProjectBuilderBuildButton::onClick(%this)" in "tools/projectBuilder/main.cs". It wouldn't take too much effort to convert this to a DOS batch file.

If you do convert it, there might be some interest here for the result. You could make it a resource for others to get, too. Good luck!
#2
10/09/2009 (12:20 pm)
Thanks very much for that info. It really helped me a lot.
Instead of putting that in the batch i added and arg "-build" ont the file common/mains.cs. Now i just need to put something like this on the batch file:
TGBGame.exe -build [dest path] [platform]

And it copy and compile all the data to the destination path.

Had to make some changes to the TGB source code (just make some fileIO functions available to the console) and used part of the code from "function ProjectBuilderBuildButton::onClick(%this)"

I'll put here every detail later.
#3
10/09/2009 (2:26 pm)
Cool! That's a really nice way to handle it.
#4
11/20/2009 (8:25 am)
Sorry for the delay.
I have created a resource for it -> www.garagegames.com/community/resources/view/18803
Hope i haven't miss nothing as my project layout is a bit different from the standard ones.

Thanks William for helpful info :)