How to use .exe file in torque game engine
by Image College of Art & Tech (#00 · in Torque Game Engine · 05/22/2007 (3:51 am) · 2 replies
Hello,
I am new to Torque engine. I need a help to use .exe file in torque game engine.
Thanks.
I am new to Torque engine. I need a help to use .exe file in torque game engine.
Thanks.
#2
The syntax might be simpler than you'd think:
The easiest place to do that is in 'game.cs' which is located by defualt in the "example\tutorial.base\server" directory.
go to the 'server folder' and open 'game.cs
TGE requires that you put all your code into a function so where you find the bit of code that loads a buch of scripts you'll just write something like:
exec("PATH/FILENAME.exe");
As far as I know TGE only references files within its root folder so you might have to put that .exe file in the TGE 'server' folder.
try it...hope this helps
05/27/2007 (7:56 am)
I never actually tried to execute another program from within TGE but you can try it.The syntax might be simpler than you'd think:
The easiest place to do that is in 'game.cs' which is located by defualt in the "example\tutorial.base\server" directory.
go to the 'server folder' and open 'game.cs
TGE requires that you put all your code into a function so where you find the bit of code that loads a buch of scripts you'll just write something like:
exec("PATH/FILENAME.exe");
As far as I know TGE only references files within its root folder so you might have to put that .exe file in the TGE 'server' folder.
try it...hope this helps
Employee Michael Perry
ZombieShortbus