Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Write to Launcher console process? (http://forum.fulqrumpublishing.com/showthread.php?t=32546)

podvoxx 09-25-2012 06:30 AM

Quote:

Originally Posted by salmo (Post 454324)
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 :(

Code:

    public void SendServerCommand(string command)
    #region send a command to the game server console
    {
        GameServerDef gameServerDef = base.GamePlay as GameServerDef;
        if (gameServerDef != null)
        {
            gameServerDef.consoleInput(command);
        }
       
    }
    #endregion


http://www.sukhoi.ru/forum/showthrea...=1#post1880966

I'm very sorry, I lost this topic. If necessary, use this:

Code:

using maddox.game;

salmo 09-25-2012 07:25 AM

Quote:

Originally Posted by podvoxx (Post 463551)
http://www.sukhoi.ru/forum/showthrea...=1#post1880966

I'm very sorry, I lost this topic. If necessary, use this:

Code:

using maddox.game;

Thankyou podvoxx. This does not provide a solution however. It's been dificult to get the mesage to the game developers that there are certain C# processes that just don't work when launched from a sub-mission script.

It looks like any server console output or in-game text output fails when you try to perform these from a sub-missions script. These are the C# actions that fail: gpHUDLogCenter, gpLogServer, Console.Write, Console.WriteLine, sayToGroup

Please see details HERE


All times are GMT. The time now is 03:38 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.