hxp
6 天以前 acebf38b40565a700efeecddb2e3f6e2b2e183a6
389 流向记录(增加GM工具命令:重读配置 GMT_ReloadConfig)
1个文件已修改
1个文件已添加
33 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_ReloadConfig.py 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_ReloadConfig.py
New file
@@ -0,0 +1,26 @@
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_ReloadConfig
#
# @todo:GM工具命令 - 重读配置
# @author hxp
# @date 2025-12-13
# @version 1.0
#
# 详细描述: GM工具命令 - 重读配置
#
#-------------------------------------------------------------------------------
#"""Version = 2025-12-13 17:00"""
#-------------------------------------------------------------------------------
import GMCommon
import ReadChConfig
## 收到gm命令执行
# @param gmCmdDict:gm命令字典
# @return None
def OnExec(gmCmdDict):
    ReadChConfig.SetReloadConfig()
    return GMCommon.Def_Success
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
@@ -27,6 +27,7 @@
import os
import GameWorld
import md5
import IpyGameDataPY
import FormulaControl
import ConfigParser
import ShareDefine
@@ -97,6 +98,12 @@
    
    return
def SetReloadConfig():
    ## 标记重读配置
    GameWorld.Log("=== 设置重读配置 ===")
    GameWorld.GetGameWorld().SetGameWorldDict(ShareDefine.Def_Notify_WorldKey_ReloadConfig, 1)
    IpyGameDataPY.IPYData.IpyDataClear()
    return
## 重读,清除配置
#  @param key 表名