protected void Application_Start(object sender, EventArgs e) { try { var setting = new EnvironmentSetting(); setting.ClientDesDeKey = "j6=9=1ac"; setting.EntityAssembly = Assembly.Load("ZyGames.Tianjiexing.Model"); ScriptEngines.AddReferencedAssembly(new string[] { "ZyGames.Tianjiexing.Lang.dll", "ZyGames.Tianjiexing.Model.dll", "ZyGames.Tianjiexing.Component.dll", "ZyGames.Tianjiexing.BLL.Combat.dll", "ZyGames.Tianjiexing.BLL.GM.dll", "ZyGames.Tianjiexing.BLL.dll" }); GameEnvironment.Start(setting); SystemGlobal.Run(); #if (DEBUG) TraceLog.WriteError("系统正使用Debug版本"); #else TraceLog.ReleaseWrite("系统正使用Release版本"); #endif } catch (Exception ex) { TraceLog.WriteError("global start error:{0}", ex); } }
protected override void OnStartAffer() { //时间间隔更新库 int cacheInterval = 600; BaseLog log = null; try { log = new BaseLog(); GameEnvironment.ProductDesEnKey = "BF3856AD"; GameEnvironment.ClientDesDeKey = "SC3U9T8G"; GameEnvironment.Start(cacheInterval, () => { SystemGlobal.Run(); PythonContext pythonContext; PythonScriptManager.Current.TryLoadPython(@"Lib/action.py", out pythonContext); RouteItem routeItem; PythonScriptManager.Current.TryGetAction(1008, out routeItem); return(true); }); if (log != null) { #if (DEBUG) log.SaveLog(new Exception("系统正使用Debug版本")); #else log.SaveLog("系统正使用Release版本"); #endif } } catch (Exception ex) { if (log != null) { log.SaveLog(ex); } } }
protected override void OnStartAffer() { SystemGlobal.Run(); }
protected override void OnStartAffer() { //ActionFactory.SetActionIgnoreAuthorize(100, 1004); SystemGlobal.Run(); }