Пример #1
0
 private static void RecordMissionResult(Spring spring, Mod modInfo)
 {
     if (spring.Context.GameEndedOk && !spring.Context.IsCheating)
     {
         Trace.TraceInformation("Submitting score for mission " + modInfo.Name);
         try
         {
             var service = GlobalConst.GetContentService();
             Task.Factory.StartNew(() =>
             {
                 try
                 {
                     service.SubmitMissionScore(Program.Conf.LobbyPlayerName,
                                                ZkData.Utils.HashLobbyPassword(Program.Conf.LobbyPlayerPassword),
                                                modInfo.Name,
                                                spring.Context.MissionScore ?? 0,
                                                spring.Context.MissionFrame / 30,
                                                spring.Context.MissionVars);
                 }
                 catch (Exception ex)
                 {
                     Trace.TraceError("Error sending score: {0}", ex);
                 }
             });
         }
         catch (Exception ex)
         {
             Trace.TraceError($"Error sending mission score: {ex}");
         }
     }
 }
Пример #2
0
        public override string Arm(ServerBattle battle, Say e, string arguments = null)
        {
            var serv = GlobalConst.GetContentService(); // TODO this can be done directly, we are in server

            engines = serv.GetEngineList(null);
            if (!string.IsNullOrEmpty(arguments))
            {
                engines = engines.Where(x => x.Contains(arguments)).ToList();
            }
            return(String.Empty);
        }
Пример #3
0
        private void DedicatedServerStarted(object sender, EventArgs e)
        {
            StopVote();

            if (HostedMod?.Mission != null)
            {
                var service = GlobalConst.GetContentService();
                foreach (var u in spring.LobbyStartContext.Players.Where(x => !x.IsSpectator))
                {
                    service.NotifyMissionRun(u.Name, HostedMod.Mission.Name);
                }
            }
        }
Пример #4
0
 private string QueryDefaultEngine()
 {
     Status = "Querying default engine";
     try
     {
         return(GlobalConst.GetContentService().GetDefaultEngine());
     }
     catch (Exception ex)
     {
         Trace.TraceError("Querying default engine failed: {0}", ex);
         Status = "Querying default engine has failed";
     }
     return(null);
 }
Пример #5
0
        void spring_SpringStarted(object sender, EventArgs e)
        {
            //lockedUntil = DateTime.MinValue;
            //tas.ChangeLock(false);
            if (hostedMod.IsMission)
            {
                var service = GlobalConst.GetContentService();
                foreach (UserBattleStatus u in tas.MyBattle.Users.Values.Where(x => !x.IsSpectator))
                {
                    service.NotifyMissionRun(u.Name, hostedMod.ShortName);
                }
            }

            StopVote();
        }
Пример #6
0
 public static void StartScriptMission(string name)
 {
     try
     {
         var serv = GlobalConst.GetContentService();
         SinglePlayerBar.DownloadAndStartMission(serv.GetScriptMissionData(name));
     }
     catch (WebException ex)
     {
         Trace.TraceWarning("Problem starting script mission {0}: {1}", name, ex);
     }
     catch (Exception ex)
     {
         Trace.TraceError("Error starting mission {0}: {1}", name, ex);
     }
 }
Пример #7
0
        public SpringieServer()
        {
            var wc = GlobalConst.GetContentService();

            Task.Factory.StartNew(() => {
                try {
                    var res = wc.GetEloTop10();
                    for (var i = 0; i < res.Count; i++)
                    {
                        top10[res[i]] = i + 1;
                    }
                } catch (Exception ex) {
                    Trace.TraceError(ex.ToString());
                }
            });
        }
Пример #8
0
        public void StartScriptMission(string missionName)
        {
            var serv      = GlobalConst.GetContentService();
            var profile   = serv.GetScriptMissionData(missionName);
            var downloads = new List <Download>();

            downloads.Add(Program.Downloader.GetResource(DownloadType.RAPID, profile.ModName));
            downloads.Add(Program.Downloader.GetResource(DownloadType.MAP, profile.MapName));
            downloads.Add(Program.Downloader.GetResource(DownloadType.ENGINE, Program.TasClient.ServerWelcome.Engine ?? GlobalConst.DefaultEngineOverride));
            if (profile.ManualDependencies != null)
            {
                foreach (var entry in profile.ManualDependencies)
                {
                    if (!string.IsNullOrEmpty(entry))
                    {
                        downloads.Add(Program.Downloader.GetResource(DownloadType.NOTKNOWN, entry));
                    }
                }
            }

            downloads = downloads.Where(x => x != null).ToList();

            if (downloads.Count > 0)
            {
                var dd = new WaitDownloadDialog(downloads);
                if (dd.ShowDialog(Program.MainWindow) == DialogResult.Cancel)
                {
                    return;
                }
            }

            var spring = new Spring(Program.SpringPaths);
            var name   = Program.Conf.LobbyPlayerName;

            if (string.IsNullOrEmpty(name))
            {
                name = "Player";
            }

            spring.RunLocalScriptGame(
                profile.StartScript.Replace("%MOD%", profile.ModName).Replace("%MAP%", profile.MapName).Replace("%NAME%", name),
                Program.TasClient.ServerWelcome.Engine ?? GlobalConst.DefaultEngineOverride);
            serv.NotifyMissionRun(name, profile.Name);
        }
Пример #9
0
        public static void StartDownloadedMission(ScriptMissionData profile, string modInternalName)
        {
            var spring = new Spring(Program.SpringPaths);
            var name   = Program.Conf.LobbyPlayerName;

            if (string.IsNullOrEmpty(name))
            {
                name = "Player";
            }

            if (Utils.VerifySpringInstalled())
            {
                spring.StartGame(Program.TasClient,
                                 null,
                                 null,
                                 profile.StartScript.Replace("%MOD%", modInternalName).Replace("%MAP%", profile.MapName).Replace("%NAME%", name), Program.Conf.UseSafeMode, Program.Conf.UseMtEngine);
                var serv = GlobalConst.GetContentService();
                serv.NotifyMissionRun(Program.Conf.LobbyPlayerName, profile.Name);
            }
        }
Пример #10
0
        private void DedicatedServerStarted(object sender, EventArgs e)
        {
            try
            {
                StopVote();

                if (HostedMod?.Mission != null)
                {
                    var service = GlobalConst.GetContentService();
                    foreach (var u in spring.LobbyStartContext.Players.Where(x => !x.IsSpectator))
                    {
                        service.NotifyMissionRun(u.Name, HostedMod.Mission.Name);
                    }
                }
            }
            catch (Exception ex)
            {
                Trace.TraceError("Error processing dedi server started: {0}", ex);
            }
        }
Пример #11
0
 private async Task Process(GetSpringBattleInfo args)
 {
     Task.Factory.StartNew(() =>
     {
         try
         {
             var serv = GlobalConst.GetContentService();
             var sbi  = serv.GetSpringBattleInfo(args.GameID);
             SendCommand(new GetSpringBattleInfoDone()
             {
                 GameID           = args.GameID,
                 SpringBattleInfo = sbi
             });
         }
         catch (Exception ex)
         {
             Trace.TraceWarning("Error getting spring battle info {0} : {1}", args.GameID, ex);
         }
     });
 }
Пример #12
0
 public static bool UpdatePublicCommunityInfo(this PlasmaDownloader downloader, IChobbylaProgress progress)
 {
     try
     {
         progress.Status = "Loading community news";
         var folder = Path.Combine(downloader.SpringPaths.WritableDirectory, "news");
         if (!Directory.Exists(folder))
         {
             Directory.CreateDirectory(folder);
         }
         var info = GlobalConst.GetContentService().GetPublicCommunityInfo();
         File.WriteAllText(Path.Combine(folder, "community.json"), JsonConvert.SerializeObject(info));
         return(true);
     }
     catch (Exception ex)
     {
         Trace.TraceError("Loading public community info failed: {0}", ex);
         progress.Status = "Loading community news failed";
         return(false);
     }
 }
Пример #13
0
        public override string Arm(ServerBattle battle, Say e, string arguments = null)
        {
            engine = string.IsNullOrEmpty(arguments) ? battle.server.Engine : arguments;

            if ((battle.Mode != AutohostMode.None || !battle.IsPassworded) && engine != battle.server.Engine)
            {
                battle.Respond(e, $"You cannot change engine to version other than {battle.server.Engine} here, use custom passworded room");
                return(null);
            }

            if (!battle.server.SpringPaths.HasEngineVersion(engine))
            {
                var serv = GlobalConst.GetContentService(); // TODO this can be done directly, we are in server
                if (!serv.GetEngineList(null).Any(x => x == engine))
                {
                    battle.Respond(e, "Engine not found");
                    return(null);
                }
                battle.server.Downloader.GetResource(DownloadType.ENGINE, engine);
            }

            return($"Change engine to {engine}?");
        }
Пример #14
0
 public static bool UpdateFeaturedCustomGameModes(this PlasmaDownloader downloader, IChobbylaProgress progress)
 {
     try
     {
         progress.Status = "Loading custom game modes";
         var folder = Path.Combine(downloader.SpringPaths.WritableDirectory, "CustomModes");
         if (!Directory.Exists(folder))
         {
             Directory.CreateDirectory(folder);
         }
         var modes = GlobalConst.GetContentService().GetFeaturedCustomGameModes();
         foreach (var mode in modes)
         {
             File.WriteAllText(Path.Combine(folder, $"{mode.FileName}.json"), mode.FileContent);
         }
         return(true);
     }
     catch (Exception ex)
     {
         Trace.TraceError("Loading custom game modes failed: {0}", ex);
         progress.Status = "Loading custom game modes failed";
         return(false);
     }
 }
Пример #15
0
        private void MissionBar_Load(object sender, EventArgs e)
        {
            label1.Text = string.Format("Starting mission {0} - please wait", missionName);

            var down = Program.Downloader.GetResource(DownloadType.MOD, missionName);

            if (down == null)
            {   //okay Mission exist, but lets check for dependency!
                down = Program.Downloader.GetDependenciesOnly(missionName);
            }

            var engine = Program.Downloader.GetAndSwitchEngine(Program.SpringPaths.SpringVersion);

            ZkData.Utils.StartAsync(() =>
            {
                var metaWait = new EventWaitHandle(false, EventResetMode.ManualReset);
                Mod modInfo  = null;
                Program.SpringScanner.MetaData.GetModAsync(missionName,
                                                           mod =>
                {
                    if (!mod.IsMission)
                    {
                        Program.MainWindow.InvokeFunc(() =>
                        {
                            label1.Text = string.Format("{0} is not a valid mission", missionName);
                            container.btnStop.Enabled = true;
                        });
                    }

                    else
                    {
                        modInfo = mod;
                    }

                    metaWait.Set();
                },
                                                           error =>
                {
                    Program.MainWindow.InvokeFunc(() =>
                    {
                        label1.Text = string.Format("Download of metadata failed: {0}", error.Message);
                        container.btnStop.Enabled = true;
                    });
                    metaWait.Set();
                });
                //if (down != null) WaitHandle.WaitAll(new WaitHandle[] { down.WaitHandle, metaWait });
                //else metaWait.WaitOne();

                var waitHandles = new List <EventWaitHandle>();

                waitHandles.Add(metaWait);
                if (down != null)
                {
                    waitHandles.Add(down.WaitHandle);
                }
                if (engine != null)
                {
                    waitHandles.Add(engine.WaitHandle);
                }

                if (waitHandles.Any())
                {
                    WaitHandle.WaitAll(waitHandles.ToArray());
                }

                if ((down != null && down.IsComplete == false) || (engine != null && engine.IsComplete == false) || modInfo == null)
                {
                    Program.MainWindow.InvokeFunc(() =>
                    {
                        label1.Text = string.Format("Download of {0} failed", missionName);

                        container.btnStop.Enabled = true;
                    });
                }

                if (modInfo != null && (down == null || down.IsComplete == true) && (engine == null || engine.IsComplete == true))
                {
                    if (Utils.VerifySpringInstalled())
                    {
                        var spring = new Spring(Program.SpringPaths);
                        spring.StartGame(Program.TasClient,
                                         null,
                                         null,
                                         modInfo.MissionScript, Program.Conf.UseSafeMode, Program.Conf.UseMtEngine);

                        var cs = GlobalConst.GetContentService();
                        cs.NotifyMissionRun(Program.Conf.LobbyPlayerName, missionName);
                    }
                    Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this));
                }
            });
        }
Пример #16
0
 public ResourceLinkSpringieClient(AutoHost ah)
 {
     this.ah       = ah;
     plasmaService = GlobalConst.GetContentService();
 }
Пример #17
0
        public void StartMission(string missionName)
        {
            var down = Program.Downloader.GetResource(DownloadType.MISSION, missionName);

            if (down == null)
            {
                //okay Mission exist, but lets check for dependency!
                down = Program.Downloader.GetDependenciesOnly(missionName);
            }

            var engine = Program.Downloader.GetResource(DownloadType.ENGINE, Program.TasClient.ServerWelcome.Engine ?? GlobalConst.DefaultEngineOverride);

            var metaWait = new EventWaitHandle(false, EventResetMode.ManualReset);
            Mod modInfo  = null;

            Program.MetaData.GetModAsync(missionName,
                                         mod =>
            {
                if (!mod.IsMission)
                {
                    Program.MainWindow.InvokeFunc(() => { WarningBar.DisplayWarning(string.Format("{0} is not a valid mission", missionName)); });
                }

                else
                {
                    modInfo = mod;
                }

                metaWait.Set();
            },
                                         error =>
            {
                Program.MainWindow.InvokeFunc(() =>
                {
                    WarningBar.DisplayWarning(string.Format("Download of metadata failed: {0}", error.Message));
                    //container.btnStop.Enabled = true;
                });
                metaWait.Set();
            });

            var downloads = new List <Download>()
            {
                down, engine
            }.Where(x => x != null).ToList();

            if (downloads.Count > 0)
            {
                var dd = new WaitDownloadDialog(downloads);
                if (dd.ShowDialog(Program.MainWindow) == DialogResult.Cancel)
                {
                    Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this));
                    return;
                }
            }
            metaWait.WaitOne();

            var spring = new Spring(Program.SpringPaths);

            spring.RunLocalScriptGame(modInfo.MissionScript, Program.TasClient.ServerWelcome.Engine ?? GlobalConst.DefaultEngineOverride);
            var cs = GlobalConst.GetContentService();

            cs.NotifyMissionRun(Program.Conf.LobbyPlayerName, missionName);
            spring.SpringExited += (o, args) => RecordMissionResult(spring, modInfo);
            Program.MainWindow.InvokeFunc(() => Program.NotifySection.RemoveBar(this));
        }
Пример #18
0
        public static async Task <bool> UpdateMissions(this PlasmaDownloader downloader, IChobbylaProgress progress)
        {
            try
            {
                progress.Status = "Downloading missions";
                var missions = GlobalConst.GetContentService().GetDefaultMissions();

                var missionsFolder = Path.Combine(downloader.SpringPaths.WritableDirectory, "missions");
                if (!Directory.Exists(missionsFolder))
                {
                    Directory.CreateDirectory(missionsFolder);
                }
                var missionFile = Path.Combine(missionsFolder, "missions.json");

                List <ClientMissionInfo> existing = null;
                if (File.Exists(missionFile))
                {
                    try
                    {
                        existing = JsonConvert.DeserializeObject <List <ClientMissionInfo> >(File.ReadAllText(missionFile));
                    }
                    catch (Exception ex)
                    {
                        Trace.TraceWarning("Error reading mission file {0} : {1}", missionFile, ex);
                    }
                }
                existing = existing ?? new List <ClientMissionInfo>();

                var toDownload =
                    missions.Where(
                        m => !existing.Any(x => (x.MissionID == m.MissionID) && (x.Revision == m.Revision) && (x.DownloadHandle == m.DownloadHandle)))
                    .ToList();

                // download mission files
                foreach (var m in toDownload)
                {
                    if (m.IsScriptMission && (m.Script != null))
                    {
                        m.Script = m.Script.Replace("%MAP%", m.Map);
                    }
                    if (!m.IsScriptMission)
                    {
                        if (!await downloader.DownloadFile("Downloading mission " + m.DisplayName, DownloadType.MISSION, m.DownloadHandle, progress).ConfigureAwait(false))
                        {
                            return(false);
                        }
                    }
                    if (!downloader.DownloadUrl("Downloading image", m.ImageUrl, Path.Combine(missionsFolder, $"{m.MissionID}.png"), progress))
                    {
                        return(false);
                    }
                }

                File.WriteAllText(missionFile, JsonConvert.SerializeObject(missions));

                return(true);
            }
            catch (Exception ex)
            {
                Trace.TraceError("Error updating missions: {0}", ex);
                return(false);
            }
        }
Пример #19
0
        private static ResourceInfo Register(UnitSync unitsync, ResourceInfo resource)
        {
            Trace.TraceInformation("UnitSyncer: registering {0}", resource.Name);
            ResourceInfo info = null;

            try
            {
                info = unitsync.GetResourceFromFileName(resource.ArchivePath);

                if (info != null)
                {
                    var serializedData = MetaDataCache.SerializeAndCompressMetaData(info);

                    var map     = info as Map;
                    var creator = new TorrentCreator();
                    creator.Path = resource.ArchivePath;
                    var ms = new MemoryStream();
                    creator.Create(ms);

                    byte[] minimap   = null;
                    byte[] metalMap  = null;
                    byte[] heightMap = null;
                    if (map != null)
                    {
                        minimap   = map.Minimap.ToBytes(ImageSize);
                        metalMap  = map.Metalmap.ToBytes(ImageSize);
                        heightMap = map.Heightmap.ToBytes(ImageSize);
                    }

                    var hash   = Hash.HashBytes(File.ReadAllBytes(resource.ArchivePath));
                    var length = new FileInfo(resource.ArchivePath).Length;

                    Trace.TraceInformation("UnitSyncer: uploading {0} to server", info.Name);

                    ReturnValue e;
                    try
                    {
                        var service = GlobalConst.GetContentService();
                        e = service.RegisterResource(PlasmaServiceVersion,
                                                     null,
                                                     hash.ToString(),
                                                     (int)length,
                                                     info.ResourceType,
                                                     resource.ArchiveName,
                                                     info.Name,
                                                     serializedData,
                                                     info.Dependencies,
                                                     minimap,
                                                     metalMap,
                                                     heightMap,
                                                     ms.ToArray());
                    }
                    catch (Exception ex)
                    {
                        Trace.TraceError("UnitSyncer: Error uploading data to server: {0}", ex);
                        return(null);
                    }

                    if (e != ReturnValue.Ok)
                    {
                        Trace.TraceWarning("UnitSyncer: Resource registering failed: {0}", e);
                    }
                }
            }
            catch (Exception ex)
            {
                Trace.TraceError("Error registering resource {0} : {1}", resource.ArchivePath, ex);
                return(null);
            }

            return(info);
        }
Пример #20
0
        private void ParseInfolog(string text, bool isCrash)
        {
            if (string.IsNullOrEmpty(text))
            {
                Trace.TraceWarning("Infolog is empty");
                return;
            }
            try {
                var    hasError     = false;
                var    modName      = battleResult.Mod;
                var    mapName      = battleResult.Map;
                var    isCheating   = false;
                int?   score        = null;
                int    scoreFrame   = 0;
                string gameId       = null;
                string demoFileName = null;
                string missionVars  = "";

                foreach (var cycleline in text.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries))
                {
                    var line      = cycleline;
                    var gameframe = 0;
                    if (line.StartsWith("[DedicatedServer]"))
                    {
                        line = line.Replace("[DedicatedServer] ", "");
                    }

                    if (line.StartsWith("["))
                    {
                        var idx = line.IndexOf("] ");
                        if (idx > 0)
                        {
                            int.TryParse(line.Substring(1, idx - 1), out gameframe);
                            if (idx >= 0)
                            {
                                line = line.Substring(idx + 2);
                            }
                        }
                    }

                    // FIXME: why are these even null in the first place?
                    if (mapName == null && line.StartsWith("Using map"))
                    {
                        mapName = line.Substring(10).Trim();
                    }

                    if (modName == null && line.StartsWith("Using game"))
                    {
                        modName = line.Substring(11).Trim();
                    }

                    if (line.StartsWith("recording demo"))
                    {
                        demoFileName = Path.GetFileName(line.Substring(15).Trim());                                     // 91.0
                    }
                    else if (line.StartsWith("[DedicatedServer] recording demo"))
                    {
                        demoFileName = Path.GetFileName(line.Substring(33).Trim());                                                              // 95.0 and later
                    }
                    if (line.StartsWith("Using demofile"))
                    {
                        return;                                    // do nothing if its demo
                    }
                    if (line.StartsWith("GameID: ") && gameId == null)
                    {
                        gameId = line.Substring(8).Trim();
                    }

                    if (line.StartsWith("STATS:"))
                    {
                        statsData.Add(line.Substring(6));
                    }

                    if (line.Contains("SCORE: ") && !isCheating && battleResult.IsMission)
                    {
                        var match = Regex.Match(line, "SCORE: ([^ ]+)");
                        if (match.Success)
                        {
                            // game score
                            var data = match.Groups[1].Value;
                            //Trace.TraceInformation("Score data (raw) : " + data);
                            data = Encoding.ASCII.GetString(Convert.FromBase64String(match.Groups[1].Value));
                            //Trace.TraceInformation("Score data (decoded) : " + data);
                            var parts = data.Split('/');
                            score = 0;
                            if (parts.Length > 1)
                            {
                                score     = Convert.ToInt32(parts[1]);
                                gameframe = Convert.ToInt32(parts[0]);
                            }
                            else
                            {
                                score = Convert.ToInt32(data);
                            }

                            scoreFrame = gameframe;
                        }
                    }
                    if (line.Contains("MISSIONVARS:") && battleResult.IsMission)
                    {
                        var match = Regex.Match(line, "MISSIONVARS: ([^ ]+)");
                        missionVars = match.Groups[1].Value.Trim();
                        Trace.TraceInformation(string.Format("Mission variables: {0} (original line: {1})", missionVars, line));
                    }

                    // obsolete, hanlded by pm messages
                    //if (line.StartsWith("STATS:")) statsData.Add(line.Substring(6));

                    if (line.StartsWith("Cheating!") || line.StartsWith("Cheating is enabled!"))
                    {
                        isCheating = true;
                    }

                    if (line.StartsWith("Error") || line.StartsWith("LuaRules") || line.StartsWith("Internal error") || line.StartsWith("LuaCOB") ||
                        (line.StartsWith("Failed to load") && !line.Contains("duplicate name")))
                    {
                        hasError = true;
                    }
                }
                if (score != null || !String.IsNullOrEmpty(missionVars))
                {
                    Trace.TraceInformation("Submitting score for mission " + modName);
                    try {
                        var service = GlobalConst.GetContentService();
                        Task.Factory.StartNew(() => {
                            try {
                                service.SubmitMissionScore(lobbyUserName, Utils.HashLobbyPassword(lobbyPassword), modName, score ?? 0, scoreFrame / 30,
                                                           missionVars);
                            } catch (Exception ex) {
                                Trace.TraceError("Error sending score: {0}", ex);
                            }
                        });
                    } catch (Exception ex) {
                        Trace.TraceError(string.Format("Error sending mission score: {0}", ex));
                    }
                }

                var modOk = GlobalConst.IsZkMod(modName);

                // submit main stats
                if (!isCheating && !isCrash && modOk && gameEndedOk)
                {
                    if (isHosting)
                    {
                        var service = GlobalConst.GetSpringieService();
                        try {
                            battleResult.EngineBattleID = gameId;
                            battleResult.ReplayName     = demoFileName;

                            // set victory team for all allied with currently alive
                            foreach (var p in statsPlayers.Values.Where(x => !x.IsSpectator && x.LoseTime == null))
                            {
                                foreach (var q in statsPlayers.Values.Where(x => !x.IsSpectator && x.AllyNumber == p.AllyNumber))
                                {
                                    q.IsVictoryTeam = true;
                                }
                            }

                            if (StartContext != null)
                            {
                                var result = service.SubmitSpringBattleResult(StartContext, lobbyPassword, battleResult, statsPlayers.Values.ToList(), statsData);
                                if (result != null)
                                {
                                    foreach (var line in result.Split('\n'))
                                    {
                                        client.Say(SayPlace.Battle, "", line, true);
                                    }
                                }
                            }
                        } catch (Exception ex) {
                            Trace.TraceError("Error sending game result: {0}", ex);
                        }
                    }

                    if (statsData.Count > 1)
                    {
                        // must be more than 1 line - 1 is player list
                        var statsService = new StatsCollector {
                            Proxy = null
                        };
                        try {
                            statsService.SubmitGameEx(gameId, modName, mapName, statsData.ToArray());
                        } catch (Exception ex) {
                            Trace.TraceError("Error sending game stats: {0}", ex);
                        }
                    }
                }
            } catch (Exception ex) {
                Trace.TraceError("Error processing spring log: {0}", ex);
            }
        }
Пример #21
0
        public static List <string> GetEngineList()
        {
            var srv = GlobalConst.GetContentService();

            return(srv.GetEngineList(null));
        }