Game Development Community

Dump()

by Ben Lambert · in Torque Game Engine · 05/25/2005 (7:07 pm) · 2 replies

Hi,

When I use the dump() command from the console, for example 1365.dump(), I get a list of methods but no parameters for those methods.

After browsing through the forums here it seems that a "debug" version of the source used to be available by CVS which showed the parameters. I am using TGE 1.3.0 from the installer, however. I also read that it is possible to change a few "defines" that are blocking the parameters from being shown, but I have no idea where to find these defines. I would also like to be able to get more info from the dumpConsoleClasses() and dumpConsoleFunctions() commands.

If someone could shed some light on this I'd very much appreciate it :)

->1365.dump()
Member Fields:
bumpOffset = "0.01"
bumpScale = "1"
detailTexture = "starter.fps/data/terrains/details/detail1"
rotation = "1 0 0 0"
scale = "1 1 1"
squareSize = "8"
terrainFile = "starter.fps/data/missions/stronghold.ter"
zeroBumpScale = "8"
Tagged Fields:
locked = "true"
position = "-1024 -1024 0"
Methods:
clearScopeToClient() -
delete() -
dump() -
getClassName() -
getForwardVector() -
getGhostID() -
getGroup() -
getHeightfieldScript() -
getId() -
getName() -
getObjectBox() -
getPosition() -
getScale() -
getTextureScript() -
getTransform() -
getType() -
getWorldBox() -
getWorldBoxCenter() -
save() -
schedule() -
scopeToClient() -
setHeightfieldScript() -
setName() -
setScale() -
setScopeAlways() -
setTextureScript() -
setTransform() -

#1
05/25/2005 (8:05 pm)
There is no special "debug" version. If you perform a debug build on your code you will get a debug executable, which when you run dump will give the usage parameters you are looking for.

I had noticed this the other day as well but just haven't had the time lately to track down how to get them to show up in a release build.
#2
05/25/2005 (11:24 pm)
I've got a debug build up and running now, thanks :)