Recompiling the engine... -.
by Mark Junior · in Torque Game Engine · 01/13/2007 (2:59 am) · 4 replies
Ok guys i got a bunch of stuff that ive gotten from resources that need engine changes. I always thought they didnt all work :P until i noticed I HAVE TO RECOMPILE THE ENGINE how do i do this?
ive tried going to vc 2005 express edition then opening the project "torque demo" and compiling it but then all my engine changed things that didnt work before still dont work did i do it somehow wrongly?
ive tried going to vc 2005 express edition then opening the project "torque demo" and compiling it but then all my engine changed things that didnt work before still dont work did i do it somehow wrongly?
About the author
#2
01/13/2007 (6:13 am)
But why do i need the patch cause i arleady got a vs2005 folder in my tge 1.5
#3
01/13/2007 (6:14 am)
The file i Build is torque demo in Torque SDK so i dont see the difference?
#4
Hmm...I think from your description that you may be adding and compiling the modifications correctly, but perhaps you aren't using the newly created exe.
Open up the Torque source in VC and at the top of the window, make sure you know what type of exe your making (either Debug or Release).
Then in the Solution explorer on the left hand side, right click on the bold Torque Demo entry and select Properties.
In the window that pops up, click on Linker in the left hand pane. On the right hand pane, you'll see an entry called Output File. This is where the new exe will be made. Make sure you're using the exe indicated by that entry.
Another tip you could do to check your exe has been updated is to right click on the exe in Windows and go to Properties and look at the Last Modified date. If the exe has been recently recompiled, then the last Modified date would show the time you compiled it.
Also, make sure that there are no errors being generated when you compile. If you can't see the error window (usually at the bottom of the screen), just go to View->Other Windows->Error List. If there are any errors then the exe won't be updated.
--Amr
01/13/2007 (6:28 am)
As I said, you only need the patch if you're not using TGE 1.5.Hmm...I think from your description that you may be adding and compiling the modifications correctly, but perhaps you aren't using the newly created exe.
Open up the Torque source in VC and at the top of the window, make sure you know what type of exe your making (either Debug or Release).
Then in the Solution explorer on the left hand side, right click on the bold Torque Demo entry and select Properties.
In the window that pops up, click on Linker in the left hand pane. On the right hand pane, you'll see an entry called Output File. This is where the new exe will be made. Make sure you're using the exe indicated by that entry.
Another tip you could do to check your exe has been updated is to right click on the exe in Windows and go to Properties and look at the Last Modified date. If the exe has been recently recompiled, then the last Modified date would show the time you compiled it.
Also, make sure that there are no errors being generated when you compile. If you can't see the error window (usually at the bottom of the screen), just go to View->Other Windows->Error List. If there are any errors then the exe won't be updated.
--Amr
Torque Owner Amr Bekhit
Once you've done that, what you'll want to open is your C:\Torque\SDK\VS2005\Torque SDK.sln file in VC++.
Then you'll need to add all your code changes to the files in Torque Demo. Once you've done that, you can rebuild Torque Demo by navigating to the Build->Build Torque Demo menu.
--Amr