How to compile A GAME
by ReR · in Torque Game Engine Advanced · 06/30/2007 (6:28 pm) · 10 replies
Dear all
how could I compile a game with TGEA? I don't need to compile THE ENGINE, but the game.
For example, with TorqueScript I've written a cs script that shows a 3D model. Ok, and now? How could I compile the file to obtain a EXE file indipendent from TGEA.EXE?
I've Visual Express 2005 and I have prepared all the things explainded in a thread in this forum (include files, lib files and so on)
thanks
how could I compile a game with TGEA? I don't need to compile THE ENGINE, but the game.
For example, with TorqueScript I've written a cs script that shows a 3D model. Ok, and now? How could I compile the file to obtain a EXE file indipendent from TGEA.EXE?
I've Visual Express 2005 and I have prepared all the things explainded in a thread in this forum (include files, lib files and so on)
thanks
About the author
#2
But is there a way to "hide" source file like main.cs?
thanks!
07/01/2007 (5:19 am)
Thank you very much! So, I could rename TGEA.exe in GAME.exe, for example, and use it like game executable.But is there a way to "hide" source file like main.cs?
thanks!
#3
07/01/2007 (7:25 am)
Yes you can put the compiled dso's in the public releases instead of the cs files.
#4
I've downloaded the starter.racing "conversion" for TGEA (I've found the link in this forum).
Ok, I've the main directory of the game, and it includes these directories:
CLIENT
SERVER
DATA
and there is main.cs too
to run the game, I should copy in the main game directory TGEA.EXE file, where there's the main.cs file.
But when I run TGEA.EXE, the game doesn't run! Where am I going wrong?
thanks!
07/01/2007 (7:43 am)
Thank you Miguel. I've another question for you, answer me if I don't disturb you too much.I've downloaded the starter.racing "conversion" for TGEA (I've found the link in this forum).
Ok, I've the main directory of the game, and it includes these directories:
CLIENT
SERVER
DATA
and there is main.cs too
to run the game, I should copy in the main game directory TGEA.EXE file, where there's the main.cs file.
But when I run TGEA.EXE, the game doesn't run! Where am I going wrong?
thanks!
#5
I've downloaded the starter.racing "conversion" for TGEA (I've found the link in this forum).
Ok, I've the main directory of the game, and it includes these directories:
CLIENT
SERVER
DATA
and there is main.cs too
to run the game, I should copy in the main game directory TGEA.EXE file, where there's the main.cs file.
But when I run TGEA.EXE, the game doesn't run! Where am I going wrong?
thanks!
07/01/2007 (8:26 am)
Thank you Miguel. I've another question for you, answer me if I don't disturb you too much.I've downloaded the starter.racing "conversion" for TGEA (I've found the link in this forum).
Ok, I've the main directory of the game, and it includes these directories:
CLIENT
SERVER
DATA
and there is main.cs too
to run the game, I should copy in the main game directory TGEA.EXE file, where there's the main.cs file.
But when I run TGEA.EXE, the game doesn't run! Where am I going wrong?
thanks!
#6
07/01/2007 (10:37 am)
No just make a new folder racing.demo or something else, then in the first main.cs in the top section you can define wich "mod" tgea should start.
#7
07/01/2007 (2:33 pm)
Great! all work now! thank you very much!
#8
07/01/2007 (3:56 pm)
.
#9
"hack to remove main.cs..." is great, but I'm not able to find "porting your script to C++" or similar, have you a link?
thank you!
07/02/2007 (1:45 am)
Thanks for your reply!"hack to remove main.cs..." is great, but I'm not able to find "porting your script to C++" or similar, have you a link?
thank you!
#10
07/02/2007 (7:22 am)
.
Torque Owner Miguel Varela
cs files are compiled, into DSO's, i think the default is set to delete this after closing the game.
m.varela