Torque DB (torquescript database with a full working journal)
by Matthew Langley · in Torque Game Builder · 04/09/2005 (2:16 pm) · 4 replies
Torque DB
Ok finally got a chance to release the resource (still waiting for approval)...
there it is... note the path to the guiMessageVectorCtrl.cc and .h are for TGE... simply find the same exact control in engine/gui/... for T2D... same file...
the source changes to guiMessageVectorCtrl simply add two callbacks... one for when you click and another when you move, so it passes the line number back
I haven't tested it yet due to compiler issues right now, though should be no problem... I highly suggest you back up your T2D files before doing that if you choose to implement those changes
Note the .cs files can be put anywhere in T2D... i'd suggest a subfolder under the client folder though
for the Torquescript database you don't have to do any changes since its in Torquescript :) The beauty of Tscript... simply drop in the folder i referenced and the execs I reference and you can access it... hopefully I can get some tutorial up on making T2D things with it... but I just wanted to organize it better (seperated the files vs one 62KB file)... I have a lot of not so organized documentation on the resource... also I put a lot of comments in the resource.. as well as a lot of debug messages...
note the debug messages are toggled off by default... to turn them on simple type
$debugMsg::journalDebug = true;
in the console
altogether this is over 40 pages of scripting, though I could've made even more functions... I am lacking a sort function presently... and there is only one duplicate function... look through the .cs files under "database" folder for examples on every function :)
Hope this helps someone, its a bit massive right now, plan to add more documentation though just wanted to start the approval process right now (have 4 resources waiting to be approved right now lol... all three parts of my mouse selection tutorial as well as this)
Ok finally got a chance to release the resource (still waiting for approval)...
there it is... note the path to the guiMessageVectorCtrl.cc and .h are for TGE... simply find the same exact control in engine/gui/... for T2D... same file...
the source changes to guiMessageVectorCtrl simply add two callbacks... one for when you click and another when you move, so it passes the line number back
I haven't tested it yet due to compiler issues right now, though should be no problem... I highly suggest you back up your T2D files before doing that if you choose to implement those changes
Note the .cs files can be put anywhere in T2D... i'd suggest a subfolder under the client folder though
for the Torquescript database you don't have to do any changes since its in Torquescript :) The beauty of Tscript... simply drop in the folder i referenced and the execs I reference and you can access it... hopefully I can get some tutorial up on making T2D things with it... but I just wanted to organize it better (seperated the files vs one 62KB file)... I have a lot of not so organized documentation on the resource... also I put a lot of comments in the resource.. as well as a lot of debug messages...
note the debug messages are toggled off by default... to turn them on simple type
$debugMsg::journalDebug = true;
in the console
altogether this is over 40 pages of scripting, though I could've made even more functions... I am lacking a sort function presently... and there is only one duplicate function... look through the .cs files under "database" folder for examples on every function :)
Hope this helps someone, its a bit massive right now, plan to add more documentation though just wanted to start the approval process right now (have 4 resources waiting to be approved right now lol... all three parts of my mouse selection tutorial as well as this)
About the author
Was a GG Associate and then joined GG in 2005. Lead tool dev for T2D and T3D. In 2011 joined mobile company ngmoco/DeNA and spent about 4 years working game and server tech. 2014 joined startup Merigo Games developing server technology.
#2
04/14/2005 (10:37 am)
Added a dump to html function
#3
04/14/2005 (11:20 am)
Excellent progress so far Matthew!:) Man, are you some kind of superhero, or what? Fantastic stuff to say the least!:)
#4
04/14/2005 (7:17 pm)
Lol thx for the compliments, wish I was a superhero... I wouldn't be as tired as I was now lol... I still need to implement a DB exporting layer to export to MySQL and SQLite with a simple command :)
Torque 3D Owner Matthew Langley
Torque
here is the layout