Game Development Community

Echoing to console

by James Thompson · in Torque Game Engine · 04/12/2006 (2:36 am) · 6 replies

How do you echo to the console from the engine?

Im doing

void InitNx();


and want it to return a line to the console saying its done

how?

About the author

Been a programmer for a few years, started when I was quite young and got into it so carried on through my life. Currently studying at Kent Uni in Canterbury.


#1
04/12/2006 (2:47 am)
I think you should be able to use CommandToClient ie:

commandToClient('echo', 'My Test');

Or you chould just create your own echo message and the call that. I don't know if there is a recomended way of doing this though.
#2
04/12/2006 (2:48 am)
Thanks, will try that

EDIT: Did not work :(
#3
04/12/2006 (2:55 am)
Are you trying to do the echo from from within script or C++ ?
#4
04/12/2006 (2:59 am)
C++ (from engine)
#5
04/12/2006 (3:01 am)
Con::printf("Some float value: %f", myFloat);
there's also
Con::warnf(), Con::errorf()
#6
04/12/2006 (3:07 am)
Yeah that works, thanks