Game Development Community

Displaying output from engine

by Colossai Studios · in Torque Game Engine · 05/29/2005 (12:27 pm) · 3 replies

How can this easily be achieved?
Writing to the console somehow, or some other way?

#1
05/29/2005 (12:51 pm)
No clue what you are trying to output exactly.

One easy way to test if your functions do what they're supposed to is to write

echo("This function works. Variable 1 equals " SPC %Var1);

this will output the text included between " " and any variable that you want to check up on, in this case %Var1.

Might not be the best way if you want to check constantly changing values, though, such as player position, speed, etc.

Hope this helps! If it doesn't, just clarify what data you want to output and the fine folks of this community will surely help you out :)
#2
05/29/2005 (1:01 pm)
Ok, what I was looking for was a way to write console output from the C++ engine code.

After checking how echo() was implemented I found the right code, so you pointed me in the right direction.

Con::printf("%s", "text to be shown");
#3
05/29/2005 (1:06 pm)
Glad to help!