Clear the lua console?

"clear output", top right
 
Yes, very useful bit of functionality. My only complaint is that there should be some way to set up an auto-clear; if I've got a mod that has a lot of debug print statements, then I'll generally want to wipe the console at the end of each turn so that I don't confuse multiple turns. There's also a strange scrolling error in FireTuner that clearing helps resolve.

I do like, though, that in this last version they changed FireTuner so that debug print statements will no longer include the full path to the file giving the output; that was making it almost unreadable before, since it'd take a hundred characters of filename before even getting to the output.
 
I still have the full path for some mods, I need to find why/how it's removed on the others. And I think that the error reports still give the wrong side of the file path...
 
if I've got a mod that has a lot of debug print statements, then I'll generally want to wipe the console at the end of each turn so that I don't confuse multiple turns.

Different but similiar

Code:
GameEvents.PlayerDoTurn.Add(function(iPlayer) 
  print(string.format("----- Player %d (%s) - Turn %d -----",
    iPlayer, Players[iPlayer]:GetName(), Game.GetGameTurn()))
end)
 
Back
Top Bottom