Jump to content

JampDed console output redirecting


Recommended Posts

Hi!

 

My idea is quite simple, I want to create an output redirection to my exe.. I have been trying for weeks without success. It seems, jampded does not write to stdout, so it can not be piped with batch file. 

 

I tried these things to do:

  • CreateProcess and CreatePipe
  • AttachConsole
  • Simple Batch output redirection (jampded.exe 1> stdout.txt 2> stderror.txt) not working..

Has anyone any idea?

Link to comment

Using OpenJK, you can do this very easily by locating where it prints stuff (Trace Com_Printf and you'll find it, one way or another) and then actually printing this output using vsnprintf and fprintf or C++ stdout

 

I use older version (1.00), so I can not build jampded.exe, so I can't use OpenJK as well :(  I need to redirect the output of the existing jampded. I have to parse the output somehow.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...