Fix: 修复服务器启动报错;
读功能配置表错误增加详细错误日志输出;
3个文件已修改
10 ■■■■■ 已修改文件
PySysDB/生成IpyGameDataPY/IpyGameDataPYTemp.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
PySysDB/Éú³ÉIpyGameDataPY/IpyGameDataPYTemp.py
@@ -153,6 +153,7 @@
        for i, strValue in enumerate(rowList):
            if i == 0:
                continue
            try:
            fieldName = fieldList[i][1]
            strValue = strValue.lstrip().rstrip()
            if strValue.isdigit():
@@ -169,6 +170,9 @@
                configValue = ""
            else:
                configValue = self.__ToFloat(strValue)
            except BaseException:
                ErrLog("SetIpyDataError: tableName=%s,key=%s,i=%s,value=%s" % ("FuncConfig", key, i, strValue))
                raise
            setattr(funcConfigObj, fieldName, configValue)
        self.ipyFuncConfigDict[key] = funcConfigObj
        return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -3212,6 +3212,7 @@
        for i, strValue in enumerate(rowList):
            if i == 0:
                continue
            try:
            fieldName = fieldList[i][1]
            strValue = strValue.lstrip().rstrip()
            if strValue.isdigit():
@@ -3228,6 +3229,9 @@
                configValue = ""
            else:
                configValue = self.__ToFloat(strValue)
            except BaseException:
                ErrLog("SetIpyDataError: tableName=%s,key=%s,i=%s,value=%s" % ("FuncConfig", key, i, strValue))
                raise
            setattr(funcConfigObj, fieldName, configValue)
        self.ipyFuncConfigDict[key] = funcConfigObj
        return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py
@@ -140,11 +140,11 @@
    gameWorldIndex = GameWorld.GetGameWorld().GetCurGameWorldIndex()
    GameWorld.Log("NPC Initing...FB %d" % gameWorldIndex)
    mapID = GameWorld.GetMap().GetMapID()
    hideNPCIDList = [] # éœ€è¦éšè—çš„NPCID列表
    # ç”±äºŽæŸäº›å¸¸è§„线boss区域要重复利用,所以活动线独立,不开放给玩家,仅特定活动时系统传入
    activityMapLineDict = IpyGameDataPY.GetFuncEvalCfg("MapLine", 2, {})
    if mapID in activityMapLineDict:
        activityLineID = max(0, activityMapLineDict[mapID] - 1)
    hideNPCIDList = [] # éœ€è¦éšè—çš„NPCID列表
    if gameWorldIndex == activityLineID:
        hideNPCIDList = IpyGameDataPY.GetFuncEvalCfg("MapLine", 3)
        GameWorld.Log("    hideNPCIDList=%s" % hideNPCIDList)