![]() |
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."); |
I haven't tried it but you might want to try AttachConsole(-1).
|
Quote:
|
Quote:
|
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. |
Quote:
GamePlay.gpLogServer(GamePlay.gpPlayer(), "... Connected to MP launcher console OK.", null); |
does this help?
Code:
private void sendChatMessageTo(int army, string msg, object[] parms) |
Sorry to say it doesn't Wolf. I'm trying to write script-log information to the Launcher console from a sub-mission script, not write to the game screen chat window.
|
Quote:
Ask about this naryv on Sukhoi.ru, he know how do this. |
I've tried using the 'Sending server console commands from script' example below, but the code below throws a "missing reference required error" at the line in the sub-mission script where SendServerCommand function is called :(
|
All times are GMT. The time now is 10:37 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.