There's a method in the file GAME_FOLDER/profiles/autoexec_a2.cfg to modify the line containing the words "write_log"; the console output will then be written to the file GAME_FOLDER/bin/console.txt. I did this a long time ago, and I clearly remember it working (possibly on version 3.0). Several years later, after reinstalling the game, I wanted to do it again, but I couldn't find the "write_log" words in that file, and I didn't look into it further. Unfortunately, I didn't write down exactly what the line looked like.
game_writelog x
where x is 1 to enable and 0 to disable
You can (and even should) enter this command through the console or the consoleCmd function. This is necessary because if you try to print a non-7-bit character, the output will stop and won't resume until the console.txt file is deleted. Therefore, I recommend using the command in some form like this:
Code:
consoleCmd('game_writelog 1')
print('...')
consoleCmd('game_writelog 0')
It might also be helpful to separate the enabling and printing with pauses.
thank you for your help)