From 5bfcd3104f7c2fa25995bc0184e6c33c818e3cf8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 19 五月 2025 17:29:58 +0800
Subject: [PATCH] 16 卡牌服务端(ServersConfig先提到配置json文件)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 09d29ce..58aa633 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -54,7 +54,12 @@
 # @param 无参数
 # @return 返回值当前的DB路径
 def GetDBPath():
-    return MapServerPath.split("ZoneServerGroup")[0] + "ZoneServerGroup\\map1_8G\\MapServer\\MapServerData\\Script\\PyMongoDB"
+    return MapServerPath + "Script\\PyMongoDB"
+
+def GetServerConfigPath():
+    ## 获取以Map为单服的服务器配置路径
+    mapID = IPY_GameWorld.IPY_GameWorld().GetMapID()
+    return MapServerPath + "ServerConfig\\m_%s" % mapID
 
 def GetServerRootPath():
     ##获取服务器根路径

--
Gitblit v1.8.0