|
#1
|
|||
|
|||
Write to Launcher console process?
I'm trying to write to the MP Launcher console from a sub-mission script. The code below works in the main mission script ie. It will write the connection status in the console window, but it fails where I put the same script in the sub-mission script.cs. I thought I might have to construct a process-writer to write from the sub-mission to the Launcher console, but I can't get this to work. Help appeciated.
code removed by author I've tried this but often come up with a "System.Array does not contain a definition for StandardInput" inputWriter = process.StandardInput; // Create the console writer (fails) inputWriter.WriteLine("... Connected to MP game console failed."); //process.WriteLine("... Connected to MP game console failed.");
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 10-18-2012 at 09:15 AM. |
#2
|
|||
|
|||
I haven't tried it but you might want to try AttachConsole(-1).
|
#3
|
|||
|
|||
Looks like you need a reference to the System.Runtime.InteropServices & the kernel32.dll file which contains the AttachConsole routine. This code-set has no compiler errors but doesn't write to the parent console either ...
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 10-18-2012 at 09:16 AM. |
#4
|
|||
|
|||
Quote:
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate |
#5
|
|||
|
|||
On Dedicated Server you can use GamePlay.gpPlayer() to write to the Console, on Dedi gpPlayer() is the server itself.
null sends the message to all, with the gpPlayer only the server (Console) gets the message. |
#6
|
|||
|
|||
Quote:
GamePlay.gpLogServer(GamePlay.gpPlayer(), "... Connected to MP launcher console OK.", null);
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE |
|
|