Example #1
0
 public static void Init_Tier0()
 {
     RunDefaults();
     GameSetup.RunOnce = true;
     bootstrapInitRun  = true;
     ConsoleSystem.Index.Initialize(ConsoleGen.All);
     UnityButtons.Register();
     Output.Install();
     Facepunch.Pool.ResizeBuffer <Networkable>(65536);
     Facepunch.Pool.ResizeBuffer <EntityLink>(65536);
     Facepunch.Pool.FillBuffer <Networkable>();
     Facepunch.Pool.FillBuffer <EntityLink>();
     SteamNetworking.SetDebugFunction();
     if (Facepunch.CommandLine.HasSwitch("-swnet"))
     {
         NetworkInitSteamworks(false);
     }
     else if (Facepunch.CommandLine.HasSwitch("-sdrnet"))
     {
         NetworkInitSteamworks(true);
     }
     else
     {
         NetworkInitRaknet();
     }
     if (!UnityEngine.Application.isEditor)
     {
         string text = Facepunch.CommandLine.Full.Replace(Facepunch.CommandLine.GetSwitch("-rcon.password", Facepunch.CommandLine.GetSwitch("+rcon.password", "RCONPASSWORD")), "******");
         WriteToLog("Command Line: " + text);
     }
     Interface.Initialize();
 }
Example #2
0
 public static void Init_Tier0()
 {
     Bootstrap.RunDefaults();
     GameSetup.RunOnce          = true;
     Bootstrap.bootstrapInitRun = true;
     ConsoleSystem.Index.Initialize(ConsoleGen.All);
     UnityButtons.Register();
     Output.Install();
     Pool.ResizeBuffer <Networkable>(65536);
     Pool.ResizeBuffer <EntityLink>(65536);
     Pool.FillBuffer <Networkable>(int.MaxValue);
     Pool.FillBuffer <EntityLink>(int.MaxValue);
     Bootstrap.NetworkInit();
     Bootstrap.WriteToLog("Command Line: " + CommandLine.get_Full().Replace(CommandLine.GetSwitch("-rcon.password", CommandLine.GetSwitch("+rcon.password", "RCONPASSWORD")), "******"));
     Interface.Initialize();
 }
Example #3
0
    public static void Init_Tier0()
    {
        Bootstrap.RunDefaults();
        GameSetup.RunOnce          = true;
        Bootstrap.bootstrapInitRun = true;
        ConsoleSystem.Index.Initialize(ConsoleGen.All);
        UnityButtons.Register();
        Output.Install();
        Facepunch.Pool.ResizeBuffer <Networkable>(65536);
        Facepunch.Pool.ResizeBuffer <EntityLink>(65536);
        Facepunch.Pool.FillBuffer <Networkable>(2147483647);
        Facepunch.Pool.FillBuffer <EntityLink>(2147483647);
        Bootstrap.NetworkInit();
        string str = Facepunch.CommandLine.Full.Replace(Facepunch.CommandLine.GetSwitch("-rcon.password", Facepunch.CommandLine.GetSwitch("+rcon.password", "RCONPASSWORD")), "******");

        Bootstrap.WriteToLog(string.Concat("Command Line: ", str));
        Interface.Initialize();
    }