From e2f630474b0e35a98fa2356ce435b4cb0cfc3b02 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 30 五月 2025 12:16:52 +0800 Subject: [PATCH] 15 卡牌服务端搭建 新增接口SendPyPackToServersRoute,从地图发送封包给ServersRoute,可用于GM命令,跨服封包等 GM命令参考例子GMT_CTG ServersRoute支持GM命令,参考GMT_OpenServer;tagGMCommand封包新增ServerID字段可通知到具体地图 www里暂时写死服务器ID9006 ServersRoute不需要事件流向记录删除相关代码 ServersRoute删除无用db配置 --- ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_GameWorld1.pyc | 0 ServersRoute/PegasusCollectorProxy.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServer.exe | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_ServerDefine.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.pyc | 0 ServersRoute/GMToolLogicProcess/Commands/GMT_OpenServer.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Protocol/RecvPackProtocol.pyc | 0 ServersRoute/GMToolLogicProcess/ProjSpecialProcess.pyc | 0 ServersRoute/DBCommon/EnvCheck.pyc | 0 ServersRoute/LogicProcessThread.pyc | 0 ServersRoute/main.pyc | 0 正常关服.bat | 4 +- ServersRoute/LogicProcess/UserCtrlDB.pyc | 0 ServersRoute/Protocol/RecvPackProtocol.pyc | 0 ServersRoute/Config/DBConfig.pyc | 0 ServersRoute/MergeServer_PackDispatch.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_PlayerDefine.pyc | 0 ServersRoute/GMToolLogicProcess/Commands/GMCommon.pyc | 0 ServersRoute/GMToolLogicProcess/GMToolPyInterface.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServerDM.exe | 0 ZoneServerGroup/RouteServer/ChinRouteServer.exe | 0 ServersRoute/PyMongoDataServer.ini | 51 ++----------------------- ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CTG.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.pyc | 0 ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NetPackCommon.pyc | 0 ServersRoute/Config/config.ini | 27 ------------- ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.pyc | 0 27 files changed, 7 insertions(+), 75 deletions(-) diff --git a/ServersRoute/Config/DBConfig.pyc b/ServersRoute/Config/DBConfig.pyc index a2b21ee..bbada86 100644 --- a/ServersRoute/Config/DBConfig.pyc +++ b/ServersRoute/Config/DBConfig.pyc Binary files differ diff --git a/ServersRoute/Config/config.ini b/ServersRoute/Config/config.ini index dd15c00..cd794e4 100644 --- a/ServersRoute/Config/config.ini +++ b/ServersRoute/Config/config.ini @@ -2,20 +2,6 @@ [auth] userdb_user=sa userdb_pwd=TlZCWlBWPT1= -sysdb_user=sa -sysdb_pwd=TlZCWlBWPT1= -logdb_user=sa -logdb_pwd=TlZCWlBWPT1= - - -[config] -EventShellEnable=1 -EventShellIP=127.0.0.1 -EventShellPort=60005 -EventShellGroupID=0 -EventShellServerID=0 -EventShellHeartInterval=60000 -EventShellDllPath=EventToInterfaceDll.dll [environment] @@ -24,21 +10,8 @@ MongoDB_Ver=2.4.3 MongoDB_Bits=64 -[InnerParam] [encoding] base64=0 encoding=utf8 -[IDDispatch] -#启用ID分配服务器开关 -UseIDDispatchServer=1 -#ID分配服务器 域名 -IDDispatchServerIP=vm-shouyoucd -#ID分配服务器 端口 -IDDispatchServerPort=51100 -#PlayerID预分配数量下限 -IDDispatchPlayeIDLimit=2 - -[CheckAccID] -CheckTokenUrl=http://zysdk.zytxgame.com/api.php/index/checktoken diff --git a/ServersRoute/DBCommon/EnvCheck.pyc b/ServersRoute/DBCommon/EnvCheck.pyc index 58c76b9..5f33a82 100644 --- a/ServersRoute/DBCommon/EnvCheck.pyc +++ b/ServersRoute/DBCommon/EnvCheck.pyc Binary files differ diff --git a/ServersRoute/GMToolLogicProcess/Commands/GMCommon.pyc b/ServersRoute/GMToolLogicProcess/Commands/GMCommon.pyc index b590941..c1df486 100644 --- a/ServersRoute/GMToolLogicProcess/Commands/GMCommon.pyc +++ b/ServersRoute/GMToolLogicProcess/Commands/GMCommon.pyc Binary files differ diff --git a/ServersRoute/GMToolLogicProcess/Commands/GMT_OpenServer.pyc b/ServersRoute/GMToolLogicProcess/Commands/GMT_OpenServer.pyc new file mode 100644 index 0000000..90366ce --- /dev/null +++ b/ServersRoute/GMToolLogicProcess/Commands/GMT_OpenServer.pyc Binary files differ diff --git a/ServersRoute/GMToolLogicProcess/GMToolPyInterface.pyc b/ServersRoute/GMToolLogicProcess/GMToolPyInterface.pyc index d4a049b..c3c818d 100644 --- a/ServersRoute/GMToolLogicProcess/GMToolPyInterface.pyc +++ b/ServersRoute/GMToolLogicProcess/GMToolPyInterface.pyc Binary files differ diff --git a/ServersRoute/GMToolLogicProcess/ProjSpecialProcess.pyc b/ServersRoute/GMToolLogicProcess/ProjSpecialProcess.pyc index ec6fbce..b3fdc58 100644 --- a/ServersRoute/GMToolLogicProcess/ProjSpecialProcess.pyc +++ b/ServersRoute/GMToolLogicProcess/ProjSpecialProcess.pyc Binary files differ diff --git a/ServersRoute/LogicProcess/UserCtrlDB.pyc b/ServersRoute/LogicProcess/UserCtrlDB.pyc index a050981..27629d4 100644 --- a/ServersRoute/LogicProcess/UserCtrlDB.pyc +++ b/ServersRoute/LogicProcess/UserCtrlDB.pyc Binary files differ diff --git a/ServersRoute/LogicProcessThread.pyc b/ServersRoute/LogicProcessThread.pyc index c441c7b..9a07e18 100644 --- a/ServersRoute/LogicProcessThread.pyc +++ b/ServersRoute/LogicProcessThread.pyc Binary files differ diff --git a/ServersRoute/MergeServer_PackDispatch.pyc b/ServersRoute/MergeServer_PackDispatch.pyc index 9f48aca..6dd21e6 100644 --- a/ServersRoute/MergeServer_PackDispatch.pyc +++ b/ServersRoute/MergeServer_PackDispatch.pyc Binary files differ diff --git a/ServersRoute/PegasusCollectorProxy.pyc b/ServersRoute/PegasusCollectorProxy.pyc index 5f1902a..4e907ec 100644 --- a/ServersRoute/PegasusCollectorProxy.pyc +++ b/ServersRoute/PegasusCollectorProxy.pyc Binary files differ diff --git a/ServersRoute/Protocol/RecvPackProtocol.pyc b/ServersRoute/Protocol/RecvPackProtocol.pyc index 68a1161..ada7121 100644 --- a/ServersRoute/Protocol/RecvPackProtocol.pyc +++ b/ServersRoute/Protocol/RecvPackProtocol.pyc Binary files differ diff --git a/ServersRoute/PyMongoDataServer.ini b/ServersRoute/PyMongoDataServer.ini index 4a53f95..65b8ae7 100644 --- a/ServersRoute/PyMongoDataServer.ini +++ b/ServersRoute/PyMongoDataServer.ini @@ -1,59 +1,18 @@ [connect] USER_DB_IP=127.0.0.1 USER_DB_NAME=GameUser -SYS_DB_IP=127.0.0.1 -SYS_DB_NAME=GameSys -LOG_DB_IP=127.0.0.1 -LOG_DB_NAME=GameLog -INTERFACE_DB_NAME=InterfaceData_s9999 [platform] +;GroupID 尽量不要存储,只是通信识别用 GroupID = 99999 -PlatformName=test -ServerID=s3 -;混服平台合服后主服ID, 配置不带字母s, 纯数字, 格式: 平台 + MainServerID, 如果没有配置则默认取 ServerID -173on_lanMainServerID=9999 - -;思璞登录需要key验证 -spxjgame_LoginKey=123 - -[Backup] -;玩家备档根路径,配空代表不开启此备档功能;一般路径为 C:\ServerRealTimeBackup\Player -PlayerBakRoot=C:\ServerRealTimeBackup\Player -;多少分钟备份一次 -BackupMinutes=5 -;备档保留几份备份;一般放在文件夹路径: 玩家备档根路径\对应玩家ID\Backup -BackupCopy=3 - -[EventReport] -AppId=AppId1 -Key=7ded96779343f198de9b95a05a0704c9 -SessionGUID=sid1 -ProductID=xbqy -ReportUrl=http://vm-2016-2:12000/eventreport/eventreport.php -;不需要汇报的事件ID列表,仅管理db中的,GameServer及MapServer的事件汇报在功能配置表EventReport配置,目前db有的事件ID: 9001-创角流失模型; 1103-创角成功 -NotReportIDListInDB=[9001, 1103] -GeTuiUrl=http://127.0.0.1:53000/getui/index.php -OpenStateUrl=http://127.0.0.1:53009/control/state.php - -[GeTui] -OSName=all -GeTuiUrl=http://127.0.0.1:53000/getui/index.php ;跨服相关配置 [Merge] -;本机是否跨服服务器 -IsMergeServer = 0 - -;---!!!子服有开启跨服功能的才能配IP,跨服服务器不可配IP;端口都需配置 +;连接任意一台当作中转,可以所有跨服一起,也可以几个物理服一个跨服(按功能的最大跨服区配置) MergeServerIP = MergeServerPort = 16908 -; 玩家链接跨服的端口 -MergeClientPort = 19006 - -; 策划注意!!!加上玩家名字不可超过33个字节,1个汉字3个字节,字符和英文1个字节 -; OpName_平台appid_区服ID 获取名字前缀 如 OpName_test_s1 = [测试1服]; 最终显示 [测试1服]玩家名 -OpName_test_s1 = [测试1服] -OpName_maoer_s1 = [猫耳1服] +[EventReport] +;上报报错信息 +OpenStateUrl=http://127.0.0.1:53009/control/state.php \ No newline at end of file diff --git a/ServersRoute/main.pyc b/ServersRoute/main.pyc index 0122858..45c280d 100644 --- a/ServersRoute/main.pyc +++ b/ServersRoute/main.pyc Binary files differ diff --git a/ZoneServerGroup/RouteServer/ChinRouteServer.exe b/ZoneServerGroup/RouteServer/ChinRouteServer.exe index 8a8fcee..d7f86a2 100644 --- a/ZoneServerGroup/RouteServer/ChinRouteServer.exe +++ b/ZoneServerGroup/RouteServer/ChinRouteServer.exe Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServer.exe b/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServer.exe index a590848..8e3c0cf 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServer.exe +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServer.exe Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServerDM.exe b/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServerDM.exe index 9720d8a..1fe3e86 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServerDM.exe +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/ChinMapServerDM.exe Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_GameWorld1.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_GameWorld1.pyc index 9e1e5d4..0b00771 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_GameWorld1.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_GameWorld1.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_PlayerDefine.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_PlayerDefine.pyc index eea9a7a..53cbea6 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_PlayerDefine.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_PlayerDefine.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_ServerDefine.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_ServerDefine.pyc index 7f9e82d..164a466 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_ServerDefine.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IPY_ServerDefine.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NetPackCommon.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NetPackCommon.pyc index dad18b8..af80944 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NetPackCommon.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NetPackCommon.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CTG.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CTG.pyc index 1b0fb62..d67b59e 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CTG.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_CTG.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.pyc index 2fe8d1f..c0b4974 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.pyc index 81cc6c8..6ba3ba6 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.pyc index c6ed580..462774a 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/LogicProcess/UserCtrlDB.pyc Binary files differ diff --git a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Protocol/RecvPackProtocol.pyc b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Protocol/RecvPackProtocol.pyc index c50d3f1..945d439 100644 --- a/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Protocol/RecvPackProtocol.pyc +++ b/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Protocol/RecvPackProtocol.pyc Binary files differ diff --git "a/\346\255\243\345\270\270\345\205\263\346\234\215.bat" "b/\346\255\243\345\270\270\345\205\263\346\234\215.bat" index f0b252b..1885516 100644 --- "a/\346\255\243\345\270\270\345\205\263\346\234\215.bat" +++ "b/\346\255\243\345\270\270\345\205\263\346\234\215.bat" @@ -9,6 +9,6 @@ cd /d %serverpath%\ZoneServerGroup\RouteServer start .\ChinRouteServer.exe -AutoClose +::正常关闭由RouteServer通知关闭 ::taskkill /f /t /FI "IMAGENAME eq python*" -timeout /t 2 /nobreak -taskkill /f /t /FI "IMAGENAME eq EventServer*" +::taskkill /f /t /FI "IMAGENAME eq EventServer*" -- Gitblit v1.8.0