| 
									
										
										
										
											2024-09-16 17:05:26 +08:00
										 |  |  | getroottable().DebugModelFlag <- false; | 
					
						
							|  |  |  | //初始化插件 | 
					
						
							|  |  |  | function InitPluginInfo() { | 
					
						
							| 
									
										
										
										
											2024-09-20 19:24:32 +08:00
										 |  |  |     //初始化定时器 | 
					
						
							|  |  |  |     _Timer_Object <- Timer(); | 
					
						
							| 
									
										
										
										
											2024-10-05 11:47:12 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     //初始化自动重载  只在15线开启 | 
					
						
							|  |  |  |     local ConfigPath = Sq_Game_GetConfig(); | 
					
						
							|  |  |  |     local Channel = ConfigPath.slice(ConfigPath.find("cfg/") + 4, ConfigPath.len()); | 
					
						
							|  |  |  |     if (Channel.find("15")) GameManager.OpenHotFix("/dp_s/Dps_A"); | 
					
						
							| 
									
										
										
										
											2024-09-20 19:24:32 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     local PoolObj = MysqlPool.GetInstance(); | 
					
						
							|  |  |  |     PoolObj.SetBaseConfiguration("127.0.0.1", 3306, "game", "uu5!^%jg"); | 
					
						
							|  |  |  |     //连接池大小 | 
					
						
							|  |  |  |     PoolObj.PoolSize = 10; | 
					
						
							|  |  |  |     //初始化 | 
					
						
							|  |  |  |     PoolObj.Init(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-02 21:00:21 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-20 19:24:32 +08:00
										 |  |  |     // Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg"); | 
					
						
							| 
									
										
										
										
											2024-09-16 17:05:26 +08:00
										 |  |  |     Sq_CreatSocketConnect("192.168.200.24", "65109"); | 
					
						
							| 
									
										
										
										
											2024-10-05 11:47:12 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     //初始化结婚 | 
					
						
							|  |  |  |     ProjectInitFuncMap.P_Marry <- Marry(); | 
					
						
							| 
									
										
										
										
											2024-09-16 17:05:26 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function PrintTag() { | 
					
						
							|  |  |  |     print(InitSuccessTag); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function main() { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     InitPluginInfo(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     PrintTag(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-20 19:24:32 +08:00
										 |  |  |     GameManager.SetGameMaxLevel(95); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-16 17:05:26 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // getroottable().CombatRankServerProject <- CombatRank(); | 
					
						
							|  |  |  | // getroottable().ServerControlProject <- ServerControl(); | 
					
						
							|  |  |  | // getroottable().AntonServerProject <- Anton(); | 
					
						
							|  |  |  | // getroottable().FiendwarServerProject <- Fiendwar(); |