Game Development Community

Making the demo an exe

by John Sandrey · in Torque Game Engine · 08/21/2007 (2:53 pm) · 10 replies

I like the torque engin and all, and I also bought all 3 books. I played with he demo that come with the 1.5 walked the blue guy around and did the whole land scaping thing. Now out of all them books and all the demos not one shows me how to use a compiler to make an exe out of what I created. Or at least I cant find it any ware. I would be most greatfull if some one could show me or link me the steps I need to create an exe just out of the demo with the blue guy running around. I have visual studio 2003 and 2005, take your pick with the compiler.

#1
08/21/2007 (2:54 pm)
You need the source code (and a license) to compile the engine. The books deal in the scripting language, not engine programming.

EDIT:
Just noticed this was on the private forum.

Download the full SDK and load the solution file. Select the debug or release target and compile.
#2
08/21/2007 (2:57 pm)
I have the source and loaded the solutions but none of them work. i need a step by step guide to see why they don't work.
#3
08/21/2007 (3:02 pm)
Where do they stop working? Can you double-click the build.bat file? I just loaded up 1.5.2's 2005 solution file and clicked compile. I built it using both ways. What errors are you seeing?
#4
08/21/2007 (3:07 pm)
For 2005 i get

19>Performing Custom Build Step
19>Access is denied.
19>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
19>Build log was saved at "file://c:\Torque\TGE_1_5_2\engine\out.VC8.RELEASE\BuildLog.htm"
19>Torque Demo - 1 error(s), 0 warning(s)
========== Rebuild All: 6 succeeded, 1 failed, 12 skipped ==========


for 2003 i get all the obj files but no exe even when the code is generated and i did a serch and cant find it anyware.
#5
08/21/2007 (3:16 pm)
Most likely, nasmw.exe got removed... Over reaching virus protection software can do that. Make sure you have that file in the bin/nasm directory...
#6
08/21/2007 (3:18 pm)
Na its still there and the virus protection is off.
#7
08/21/2007 (3:23 pm)
When i am using 2003 it compiles with no errors but no exe anyware just all the other files and the log file
#8
08/21/2007 (9:53 pm)
The compiler overwrites the executable in the example folder. So there is no additional exe file, only if you make a debug build it should create a file called "torqueDemo_DEBUG.exe" in the example directory. Otherwise its just torqueDemo.exe.
#9
08/22/2007 (3:16 am)
Quote:Now out of all them books and all the demos not one shows me how to use a compiler to make an exe out of what I created.

- Er, I think people might be missing John's point - John, do you mean you just want to create a distributable version of the demo you produced?

If that's the case, it doesn't get wrapped in an .exe at all, unless you wrap it with an installer for instance.

Instead, the game exe (just rename torquedemo.exe to the filename of your choice) and your game and common directories must all be distributed. You can delete the .cs files from your distribution leaving the compiled .DSOs, thereby preventing people from seeing the source.

If it's me missing the point, please disregard.
#10
08/22/2007 (12:35 pm)
Thanks guys you were alot of help but lets say "for example" the demo if i did want to redistrubt it, after i compiled it what other files would i need to include along with the exe file to make it actually work on other peoples systems?