Page 1 of 1

Something to print debug information in-game,

PostPosted: 18 Aug 2015, 18:21
by paul424
Hello, I have this idea for a longer time , to have something where the debugging information could be presented INGAME. Do you have any propositions ?

Re: Something to print debug information in-game,

PostPosted: 19 Aug 2015, 09:50
by Akien
I personally wouldn't really have a use for it as I'm always running OD from a terminal, so I get all the available debug output there.

To get it ingame, I guess there could be a console command that would toggle redirecting the debug output to a CEGUI widget (either the current chatbox, or maybe a separate overlay element, or a separate CEGUI window that could be toggled via a function key).

Re: Something to print debug information in-game,

PostPosted: 20 Aug 2015, 20:06
by Bertram
Hello, I have this idea for a longer time , to have something where the debugging information could be presented INGAME. Do you have any propositions ?


Hey, :)

What would you use it for? I must say I never had a use for it, even for debugging or testing pathfinding.

Regards,

Re: Something to print debug information in-game,

PostPosted: 24 Aug 2015, 08:07
by hwoarangmy
IMHO, log files are much more usefull as they allow to keep track of what happens. Could you please add an example of why you would use that for ?

Re: Something to print debug information in-game,

PostPosted: 24 Aug 2015, 17:39
by paul424
Well the simplest answer is, I want some variable say X to reach some concrete value . Without the preview one cannot be certain that the work is done , when one has teh ability to monitor what happens with X, one can more easily make it reach that value. Also it's easier to map log messages with ones in-game action.

Re: Something to print debug information in-game,

PostPosted: 24 Aug 2015, 22:01
by hwoarangmy
When I have this kind of need, I usually hack ODFrameListener::printDebugInfo to display what I want and just revert changes when I'm done. In any case, this kind of tweakings should not be pushed to main repository unless they have a use for general debug purpose (like tile coords or turn number, for example, like it is done ATM)

Re: Something to print debug information in-game,

PostPosted: 24 Aug 2015, 22:31
by paul424
That's something similar , tough I would like to have scrollable history to look through ( either I could watch history at random or look the top of the logger growing and putting new messages ) ...

Re: Something to print debug information in-game,

PostPosted: 25 Aug 2015, 16:04
by paul424
Having some global object serving for debugging would be nice to have , as creating a custom file for debug info in one class is easy. On the other hand having such a log file which could be shared by many classes is a problem, so I opt for something more sophisticated than that . It could for example also help debugging my culling mechanism ....