How can I tell what version of TGE a game is running?
by Ray Depew · in Torque Game Engine · 09/27/2004 (5:59 pm) · 3 replies
I want to be able to find out from inside the game (GUI or console) what version of TGE the game is running.
I'd also like to know what source code file contains that information.
Ideas?
Ray
I'd also like to know what source code file contains that information.
Ideas?
Ray
#2
The thing is, I don't think any game that is made with TGE can say "version 1.2.0" or whatever, because there's so many modifications made to it in the course of development that it's not a clean version. So if you need to know for your own project purposes, like for patching or whatever, you should insert a build number you can check against, IMHO. Hope that helps.
11/01/2004 (5:34 pm)
I think you might have to implement that yourself. I'm assuming that the version will be controlled by your project anyway, so you can set a static variable in the engine that holds the tag, with a console method to get that tag(but not set it, if you're relying on it for anything even mildly important).The thing is, I don't think any game that is made with TGE can say "version 1.2.0" or whatever, because there's so many modifications made to it in the course of development that it's not a clean version. So if you need to know for your own project purposes, like for patching or whatever, you should insert a build number you can check against, IMHO. Hope that helps.
#3
Thanks, Ted. I'll build it in myself.
11/01/2004 (5:41 pm)
Heh - reminds me of when I was beta testing a calc for HP. The beta test team kept saying "We want a function that does this'n'that," and the project manager eventually just mumbled "Well, you know, you can program the calculator to do that ..."Thanks, Ted. I'll build it in myself.
Torque 3D Owner Ray Depew
Is there some kind of "printVersion()" command I can use? I want to put this in the "About" popup.