Ejemplo n.º 1
0
     public static void Start()
     {
         T = new Thread(() =>
         {
             Console.Title = "Ultrapowa Royale Server v" + Assembly.GetExecutingAssembly().GetName().Version;
             Console.WriteLine(
                 @"
 888     888 888    88888888888 8888888b.         d8888 8888888b.   .d88888b.  888       888        d8888
 888     888 888        888     888   Y88b       d88888 888   Y88b d88P' 'Y88b 888   o   888       d88888
 888     888 888        888     888    888      d88P888 888    888 888     888 888  d8b  888      d88P888
 888     888 888        888     888   d88P     d88P 888 888   d88P 888     888 888 d888b 888     d88P 888
 888     888 888        888     8888888P'     d88P  888 8888888P'  888     888 888d88888b888    d88P  888
 888     888 888        888     888 T88b     d88P   888 888        888     888 88888P Y88888   d88P   888
 Y88b. .d88P 888        888     888  T88b   d8888888888 888        Y88b. .d88P 8888P   Y8888  d8888888888
  'Y88888P'  88888888   888     888   T88b d88P     888 888         'Y88888P'  888P     Y888 d88P     888
               ");
             Console.WriteLine("[UCR]    -> This Program is made by the Ultrapowa Network Developer Team!");
             Console.WriteLine("[UCR]    -> You can find the source at www.ultrapowa.com and www.github.com/ultrapowa/ucr");
             Console.WriteLine("[UCR]    -> Don't forget to visit www.ultrapowa.com daily for news update !");
             Console.WriteLine("[UCR]    -> UCR is now starting...");
             Console.WriteLine("");
             Debugger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
             Logger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
             MemoryThread.Start();
             NetworkThread.Start();
             while ((Command = Console.ReadLine()) != null)
             {
                 CommandParser.Parse(Command);
             }
         });
         T.Start();
     }
Ejemplo n.º 2
0
        internal static void Start()
        {
            T = new Thread(() =>
            {
                Title = "Ultrapowa Clash Server v0.7.2.0 - © 2016";
                foreach (char t in Title)
                {
                    Ta           += t;
                    Console.Title = Ta;
                    Thread.Sleep(20);
                }
                ForegroundColor = ConsoleColor.Red;
                WriteLine(
                    @"
      ____ ___.__   __                                              
     |    |   \  |_/  |_____________  ______   ______  _  _______   
     |    |   /  |\   __\_  __ \__  \ \____ \ /  _ \ \/ \/ /\__  \  
     |    |  /|  |_|  |  |  | \// __ \|  |_> >  <_> )     /  / __ \_
     |______/ |____/__|  |__|  (____  /   __/ \____/ \/\_/  (____  /
                                    \/|__|                       \/
                  ");

                ResetColor();
                WriteLine("[UCS]    -> This program is made by the Ultrapowa Network development team.");
                WriteLine("[UCS]    -> You can find the source at www.ultrapowa.com");
                WriteLine("[UCS]    -> UCS is proudly licensed under GPLv3.0");
                WriteLine("[UCS]    -> Don't forget to visit www.ultrapowa.com daily for updates!");
                VersionChecker.VersionMain();
                WriteLine("");
                WriteLine("[UCS]    -> UCS is now starting...");
                WriteLine("");

                if (!File.Exists("restarter.bat"))
                {
                    using (StreamWriter sw = new StreamWriter("restarter.bat"))
                    {
                        sw.WriteLine("echo off");
                        sw.WriteLine("echo.");
                        sw.WriteLine("taskkill /f /im ucs.exe");
                        sw.WriteLine("timeout /t 2");
                        sw.WriteLine("start ucs.exe");
                        sw.WriteLine("exit");
                    }
                }
                MemoryThread.Start();
                NetworkThread.Start();
                while ((Command = ReadLine()) != null)
                {
                    Parse(Command);
                }
            });
            T.Start();
        }
Ejemplo n.º 3
0
        public void Start()
        {
            T = new Thread(() =>
            {
                if (ConfUCS.IsConsoleMode)
                {
                    Console.Title = ConfUCS.UnivTitle;
                }
                this.CancelEvent(); // N00b proof

                /* ASCII Art centered */
                Console.WriteLine(@" 
_________  .__                   .__     
\_   ___ \ |  |  _____     ______|  |__  
/    \  \/ |  |  \__  \   /  ___/|  |  \ 
\     \____|  |__ / __ \_ \___ \ |   Y  \
 \______  /|____/(____  //____  >|___|  /
        \/            \/      \/      \/ 
__________                        .__           
\______   \  ____  ___.__._____   |  |    ____  
 |       _/ /  _ \<   |  |\__  \  |  |  _/ __ \ 
 |    |   \(  <_> )\___  | / __ \_|  |__\  ___/ 
 |____|_  / \____/ / ____|(____  /|____/ \___  >
        \/         \/          \/            \/ 
  _________               .__         
 /   _____/______ _____   |__|  ____  
 \_____  \ \____ \\__  \  |  | /    \ 
 /        \|  |_> >/ __ \_|  ||   |  \
/_______  /|   __/(____  /|__||___|  /
        \/ |__|        \/          \/ 
");

                Console.WriteLine("Starting the server...");
                Preload PT = new Preload();
                PT.PreloadThings();
                ControlTimer.StartPerformanceCounter();
                Console.WriteLine(string.Empty);
                Debugger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
                Logger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
                NetworkThread.Start();
                MemoryThread.Start();
                ConfUCS.UnivTitle = "Ultrapowa Clash Server " + ConfUCS.VersionUCS + " | " + "ONLINE";
                if (ConfUCS.IsConsoleMode)
                {
                    CommandParser.ManageConsole();
                }
            });
            T.SetApartmentState(ApartmentState.STA);
            T.Start();
        }
Ejemplo n.º 4
0
        public void Start()
        {
            T = new Thread(() =>
            {
                if (ConfUCS.IsConsoleMode)
                {
                    Console.Title = ConfUCS.UnivTitle;
                }
                CancelEvent(); //N00b proof

                /* ASCII Art centered */
                Console.WriteLine(
                    @"
                    888     888  .d8888b.   .d8888b.  
                    888     888 d88P  Y88b d88P  Y88b 
                    888     888 888    888 Y88b.      
                    888     888 888         ""Y888b.   
                    888     888 888            ""Y88b. 
                    888     888 888    888       ""888 
                    Y88b. .d88P Y88b  d88P Y88b  d88P 
                     ""Y88888P""   ""Y8888P""   ""Y8888P""  
                  ");

                Console.WriteLine("Ultrapowa Clash Server");
                Console.WriteLine("Visit www.ultrapowa.com | www.shard.site");
                Console.WriteLine("Starting the server...");
                Preload PT = new Preload();
                PT.PreloadThings();
                ControlTimer.StartPerformanceCounter();
                Console.WriteLine("");
                Debugger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
                Logger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
                NetworkThread.Start();
                MemoryThread.Start();
                ConfUCS.UnivTitle = "Ultrapowa Clash Server " + ConfUCS.VersionUCS + " | " + "ONLINE";
                if (ConfUCS.IsConsoleMode)
                {
                    CommandParser.ManageConsole();
                }
            });
            T.SetApartmentState(ApartmentState.STA);
            T.Start();
        }
Ejemplo n.º 5
0
     public static void Start()
     {
         T = new Thread(() =>
         {
             Console.Title = "Ultrapowa Clash Server " + Utils.AssemblyVersion + " - © 2016";
             Console.WriteLine(
                 @"
 888     888 888    88888888888 8888888b.         d8888 8888888b.   .d88888b.  888       888        d8888
 888     888 888        888     888   Y88b       d88888 888   Y88b d88P' 'Y88b 888   o   888       d88888
 888     888 888        888     888    888      d88P888 888    888 888     888 888  d8b  888      d88P888
 888     888 888        888     888   d88P     d88P 888 888   d88P 888     888 888 d888b 888     d88P 888
 888     888 888        888     8888888P'     d88P  888 8888888P'  888     888 888d88888b888    d88P  888
 888     888 888        888     888 T88b     d88P   888 888        888     888 88888P Y88888   d88P   888
 Y88b. .d88P 888        888     888  T88b   d8888888888 888        Y88b. .d88P 8888P   Y8888  d8888888888
  'Y88888P'  88888888   888     888   T88b d88P     888 888         'Y88888P'  888P     Y888 d88P     888
               ");
             if (Utils.OpenedInstances > 1)
             {
                 Console.ForegroundColor = ConsoleColor.Red;
                 Console.WriteLine("[UCS]    You seem to run UCS more than once.");
                 Console.WriteLine("[UCS]    Aborting..");
                 Console.ResetColor();
                 Console.ReadKey();
                 Environment.Exit(0);
             }
             Console.WriteLine("[UCS]    -> This program is by the Ultrapowa Network development team.");
             Console.WriteLine(
                 "[UCS]    -> You can find the source at www.ultrapowa.com and https://github.com/UltraPowaDev/UCS/");
             Console.WriteLine(
                 "[UCS]    -> Don't forget to visit www.ultrapowa.com daily for the latest news and updates!");
             Console.WriteLine("[UCS]    -> UCS is now starting...");
             Console.WriteLine("");
             Debugger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
             MemoryThread.Start();
             NetworkThread.Start();
             while ((Command = Console.ReadLine()) != null)
             {
                 CommandParser.Parse(Command);
             }
         });
         T.Start();
     }
Ejemplo n.º 6
0
     internal static void Start()
     {
         T = new Thread(() =>
         {
             Title = VersionTitle;
             WriteLine(
                 @"
 888     888 888    88888888888 8888888b.         d8888 8888888b.   .d88888b.  888       888        d8888
 888     888 888        888     888   Y88b       d88888 888   Y88b d88P' 'Y88b 888   o   888       d88888
 888     888 888        888     888    888      d88P888 888    888 888     888 888  d8b  888      d88P888
 888     888 888        888     888   d88P     d88P 888 888   d88P 888     888 888 d888b 888     d88P 888
 888     888 888        888     8888888P'     d88P  888 8888888P'  888     888 888d88888b888    d88P  888
 888     888 888        888     888 T88b     d88P   888 888        888     888 88888P Y88888   d88P   888
 Y88b. .d88P 888        888     888  T88b   d8888888888 888        Y88b. .d88P 8888P   Y8888  d8888888888
  'Y88888P'  88888888   888     888   T88b d88P     888 888         'Y88888P'  888P     Y888 d88P     888
               ");
             if (OpenedInstances > 1)
             {
                 ForegroundColor = ConsoleColor.Red;
                 WriteLine("[UCS]    You seem to run UCS more than once.");
                 WriteLine("[UCS]    Aborting..");
                 ResetColor();
                 ReadKey();
                 Exit(0);
             }
             WriteLine("[UCS]    -> This program is by the Ultrapowa Network development team.");
             WriteLine("[UCS]    -> You can find the source at www.ultrapowa.com and https://github.com/Clashoflights/UCS/");
             WriteLine("[UCS]    -> Don't forget to visit www.ultrapowa.com daily for updates!");
             WriteLine("[UCS]    -> UCS is now starting...");
             WriteLine("");
             // VersionChecker.VersionMain();
             //Debugger.SetLogLevel(int.Parse(AppSettings["loggingLevel"]));
             MemoryThread.Start();
             NetworkThread.Start();
             while ((Command = ReadLine()) != null)
             {
                 Parse(Command);
             }
         });
         T.Start();
     }
Ejemplo n.º 7
0
        public static void Start()
        {
            T = new Thread(() =>
            {
                Title = "Ultrapowa Clash Server v" + Assembly.GetExecutingAssembly().GetName().Version;

                Console.WriteLine(
                    @"
    888     888 888    88888888888 8888888b.         d8888 8888888b.   .d88888b.  888       888        d8888
    888     888 888        888     888   Y88b       d88888 888   Y88b d88P' 'Y88b 888   o   888       d88888
    888     888 888        888     888    888      d88P888 888    888 888     888 888  d8b  888      d88P888
    888     888 888        888     888   d88P     d88P 888 888   d88P 888     888 888 d888b 888     d88P 888
    888     888 888        888     8888888P'     d88P  888 8888888P'  888     888 888d88888b888    d88P  888
    888     888 888        888     888 T88b     d88P   888 888        888     888 88888P Y88888   d88P   888
    Y88b. .d88P 888        888     888  T88b   d8888888888 888        Y88b. .d88P 8888P   Y8888  d8888888888
     'Y88888P'  88888888   888     888   T88b d88P     888 888         'Y88888P'  888P     Y888 d88P     888
                  ");
                Console.WriteLine("[UCS]    -> This program is by the Ultrapowa Network development team.");
                Console.WriteLine("[UCS]    -> You can find the source at www.ultrapowa.com and https://github.com/UltraPowaDev/UCS/");
                Console.WriteLine("[UCS]    -> Don't forget to visit www.ultrapowa.com daily for the latest news and updates!");
                Console.WriteLine("[UCS]    -> UCS is now starting...");
                Console.WriteLine("");
                if (!Directory.Exists("logs"))
                {
                    Directory.CreateDirectory("logs");
                }
                Debugger.SetLogLevel(int.Parse(ConfigurationManager.AppSettings["loggingLevel"]));
                MemoryThread.Start();
                NetworkThread.Start();
                while ((Command = Console.ReadLine()) != null)
                {
                    CommandParser.Parse(Command);
                }
            });
            T.Start();
        }