Page 1 of 1

Getting Errors out of console

Posted: Sat May 26, 2007 1:47 pm
by sebi707
i know how to hide the console but so ich don't know which textures aren't loaded etc.
i want to show an ingame-console but how to get these errors?

Posted: Sat May 26, 2007 2:35 pm
by Ico
Think you could redirect stdout to your own stream and read that to get the text but don't ask me for code, I've never done that myself. :)

Posted: Sat May 26, 2007 4:08 pm
by sebi707
so now i redirected the cout stream to a file but the file is empty after executing my programm. i also directed the output of printf to the file but the file is stil empty!

Posted: Sat May 26, 2007 4:41 pm
by vitek
All of the log messages are sent to the user event receiver. It just needs to respond to log text events.

There are issues with the way that the Irrlicht library is built that can cause problems redirecting stdout/stderr. I can explain in greater detail if necessary.

Travis