Author Topic: Printing everything to stdout in Windows  (Read 3471 times)

durand

  • Posts: 201
  • Turrets: +0/-0
Printing everything to stdout in Windows
« on: February 06, 2009, 06:46:34 pm »
Hi,
I need to get the text that the tremulous client prints into a file using whatever method possible. On linux, I can simply use tremulous &> logfile however this doesn't seem to work on windows. I think this is because the windows version has a GUI instead for errors so it doesn't bother printing to stderr and stdout. Is there any other way to get this to work. Printing would ideally be live and the logfile should be constantly updated as the game progresses.

If this is not possible, would someone be willing to write a simple patch for the windows client so that it does print to a file? I need this for a project I'm working on (see my sig).

Thanks in advance!
« Last Edit: February 06, 2009, 06:58:23 pm by durand »

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Printing everything to stdout in Windows
« Reply #1 on: February 06, 2009, 08:39:08 pm »
use one of the clients built from svn (i recommend mg's client), they will print to stdout.txt/stderr.txt in the working dir.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

durand

  • Posts: 201
  • Turrets: +0/-0
Re: Printing everything to stdout in Windows
« Reply #2 on: February 06, 2009, 08:42:04 pm »
I'll try that. Is it stable enough to be distributed for normal use?
Thanks.

EDIT: It certainly does the trick! I'm not really sure why tremulous logs everything to stderr but it doesn't really matter to me.
« Last Edit: February 06, 2009, 09:19:53 pm by durand »