Game Development Community

Possible to launch TGB games from another TGB game?[SOLVED]

by Andy Hawkins · in Technical Issues · 11/29/2013 (6:38 pm) · 1 replies

My students have finished their racing games in TGB. The games are being putting into a sit down racing machine. Rather than use a wireless mouse to launch the game I wanted to player to be able to use the joystick to cycle through a menu in an external TGB game which then launches the standalone TGB racers. On quit each game will then come back to the menu application. Is this possible?

#1
11/30/2013 (2:45 am)
Found out how to do it.

www.garagegames.com/community/forums/viewthread/126898

used shellCommand in torqueScript.

I made a .bat file and called it like this

shellExecute("runGame1.bat");

then in the .bat file I did this...
cd "StudentGames/Releases/Trap Kart Racing"
"Trap Kart Racing.exe"

NOTE!!!! It's really important to cd (change dir) into another folder otherwise the files in the existing torque game are still used and the calling programming loads instead - got stuck on this for a while.