Game Development Community

How do I compile the engine? (Visual Studio 2012 help)

by Jeff Moretti · in Torque 2D Beginner · 04/06/2014 (10:08 am) · 0 replies

GETTING VISUAL STUDIO 2012 AND BUILDING FROM SOURCE:

If you do not know how to compile the engine, below is some basic details on how to do it (in Visual Studio 2012).

1) Download Visual Studio 2012. And yes, the "Visual Studio 2012 Express" edition will work with this project. Its free too, you don't have to pay for it.
2) Open the project in Visual Studio 2012. You want to open \Torque2D\engine\compilers\VisualStudio 2012\Torque 2D.sln to do it.
3) After that, wait for everything to load (you should see some progress updates at the very bottom), then build it. To do that its: BUILD > Build Solution (or press the F7 key). Once you've build it, you will get the necessary files in the base folder (\Torque2D) that you need (ie Torque2D_DEBUG.exe, OpenAL32.dll, unicows.dll).

As a side note, by default the 'Debug' mode project is built. If you want to build the Release version (runs your game faster, but less debug statements shown), go to BUILD > Configuration Manager... then choose Release for the Configuration setting for the Torque2D project (instead of having it as Debug).

Hope that helps. All the best, and good luck!

Jeff