mpatton Posted April 23, 2012 Report Share Posted April 23, 2012 Hi all,More of a general question about debuging code in 0 a.d. I've got some simple printf statements that I would like to appear in the console to see if my calculations are correct, however nothing appears to be printing. I'm assuming your re-routing STD out or something somewhere. In any case how can I get my stuff to print out? Position of the print statements in the code is within TerrainRenderer.cpp just before the shaders are used.thanks in advanceMichael Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted April 23, 2012 Report Share Posted April 23, 2012 I think you can use debug_printf Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted April 23, 2012 Report Share Posted April 23, 2012 I'm fairly sure printf should work when on Linux. debug_printf(L"message", ...) should work too (and also works on Windows, via Visual Studio's debug output window). There's also LOGWARNING(L"message", ...) which displays the messages in the game window. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.