From 10bec382ebc98f6fcd20fd6ab2806b05a2560299 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 25 十一月 2024 14:42:59 +0800 Subject: [PATCH] 1111 【越南】【砍树】【英文】【tqxbqy】【btgotq】背包相关初始格子数改为读配置 --- ServerPython/CoreServerGroup/GameServer/Script/ChConfig.py | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 41 insertions(+), 4 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChConfig.py b/ServerPython/CoreServerGroup/GameServer/Script/ChConfig.py index 7f1f97b..7d15d0e 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChConfig.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChConfig.py @@ -58,6 +58,12 @@ ##获取服务器根路径 return GameServerPath.split("CoreServerGroup")[0] +def GetSizeof(o, isAsize=True): + return 0 + #if isAsize: + # return asizeof.asizeof(o) + #return sys.getsizeof(0) + #------主角相关设定 #主角发型列表 [职业:发型列表] Def_RoleHair = { @@ -206,8 +212,9 @@ Def_FamilySetting_LvUpCost, #家族升级需要消耗升级所需资金 Def_FamilySetting_WeekMissionMoneyMax,#每周任务最大可获得仙盟资金 Def_FamilySetting_BossFBCnt, #BOSS副本次数 +Def_FamilySetting_ZhenbaogeWeights, #珍宝阁总权重 Def_FamilySetting_Max, #表长度异常(必须放最后) -) = range(0, 6 + 1) +) = range(0, 7 + 1) FamilySettingDict = { Def_FamilySetting_MaxMemberCnt:'MemberCnt', Def_FamilySetting_MaxHuFaCnt:'DeputyLeaderCnt', @@ -215,6 +222,7 @@ Def_FamilySetting_LvUpCost:'NeedMoney', Def_FamilySetting_WeekMissionMoneyMax:'WeekMissionMoneyMax', Def_FamilySetting_BossFBCnt:'BossFBCnt', + Def_FamilySetting_ZhenbaogeWeights:'ZhenbaogeWeights', } #家族成员接口对应家族配置表索引 @@ -263,7 +271,7 @@ #创建家族,最大字符数 Def_CreatFamily_MaxStr = 33 #创建角色,最大字符数, UTF8是3个字节 最少3个字母 最大5中文加1个字母 -Def_CreatRole_MaxStr = 16 +Def_CreatRole_MaxStr = 20 Def_CreatRole_MinStr = 3 @@ -370,6 +378,7 @@ Def_WorldKey_IsGameWorldInit = 'IsGameWorldInit' #GameWold是否初始化完成 Def_WorldKey_BossIsGeTui = "BossGeTui%s" #当前复活通知 Def_WorldKey_OperationActionState = "State_%s" #运营活动状态,参数为(运营活动名) +Def_WorldKey_OperationActionStateJoin = "StateJoin_%s" #运营活动可参与状态,参数为(运营活动名) Def_WorldKey_BossRebornNeedPoint = "BossRebornNeedPoint" #boss复活需要总点数 Def_WorldKey_CrossBossIsAlive = 'CrossBossIsAlive_%s_%s' #跨服boss是否活着,参数(zoneID, bossID) Def_WorldKey_GameWorldInitOK = 'GameWorldInitOK' #GameWold是否初始化完成OK @@ -436,6 +445,12 @@ Def_PlayerKey_PrivateTalk = 'PrivateTalk' #追踪密频(1:开启 0:关闭) #--------------------------------------------------------------------- +# GameWorld.GetGameWorld().SendDBLogic(BYTE queryType, DWORD id, char* sData, int nDataLen) +# GameServer请求db逻辑类型,db接受 OnGameServerToDBLogic,回调 RecvDGDBLogicResult +( +gstDBLogic_PlayerPackData, # 请求打包玩家数据 0 +) = range(1) + #GM工具回复值 Def_GMTool_Succeed = 1 Def_GMTool_Fail = 250 @@ -519,6 +534,17 @@ #查询无限制家族的行为类型列表 Def_QueryNoLimit_ActionTypeList = [ShareDefine.Def_ActionType_OfficerModelEquip] #------------------------------------------------------------------------------ +#DBPlayerRecData、DBGameRecData表中UserData数据通用自定义key +Def_RecDataKey_ServerIDList = "ServerIDList" +Def_RecDataKey_PlayerInfo = "PlayerInfo" + +#玩家记录上线需要直接同步给前端的类型 +Def_PlayerRecLoginNotifyList = [ShareDefine.Def_PlayerRecType_PayCoin] + +#玩家记录类型每人限制条数,没有配置的类型不限制,由功能自行控制 +Def_PlayerRecCountDict = { + ShareDefine.Def_PlayerRecType_PayCoin:100, + } #玩家通用信息记录类型保存的条数 UniversalGameRecTypeSaveCnt = { @@ -595,7 +621,13 @@ ShareDefine.Def_BT_CharmTotal : 100, #魅力总榜 ShareDefine.Def_BT_CharmWeek : 100, #魅力周榜 ShareDefine.Def_BT_CharmDay : 100, #魅力日榜 - ShareDefine.Def_BT_BossTrialSubmit : 1000, #boss凭证 (boss历练活动) + ShareDefine.Def_BT_BossTrialSubmit : 200, #boss凭证 (boss历练活动) + ShareDefine.Def_BT_BossTrialSubmitBak : 200, #boss凭证 (boss历练活动 - 上一期) + ShareDefine.Def_BT_BossTrialSubmitFamily : 100, #boss凭证仙盟 (boss历练活动) + ShareDefine.Def_BT_BossTrialSubmitFamilyBak : 100, #boss凭证仙盟 (boss历练活动 - 上一期) + ShareDefine.Def_BT_XianXiaMJScore : 200, #仙匣秘境积分榜 (仙匣秘境活动) + ShareDefine.Def_BT_HorsePetTrainScore : 200, #骑宠养成积分榜 (骑宠养成活动) + ShareDefine.Def_BT_GubaoScore : 200, #古宝养成积分榜 (古宝养成活动) } #排行榜保存类型(和BillboardType匹配), 默认保存, 如果不保存,可配置进去 @@ -712,6 +744,11 @@ #情缘副本 Def_FBMapID_Love = 31300 +#回合战斗自定义地图ID +TurnFightMapIDList = ( +Def_TFMapID_MineArea, # 福地 1 +) = range(1, 1 + 1) + #需要刷世界BOSS的副本 WorldBossFBMapIDList = [Def_FBMapID_SealDemon, Def_FBMapID_ZhuXianBoss, Def_FBMapID_DemonKing] #跨服地图 @@ -724,7 +761,7 @@ Def_FBMapID_CrossDemonKing:"CrossZonePK", Def_FBMapID_CrossGrasslandLing:"CrossZonePK", Def_FBMapID_CrossGrasslandXian:"CrossZonePK", - Def_FBMapID_CrossBattlefield:"CrossZonePK", + Def_FBMapID_CrossBattlefield:"CrossZoneBattlefield", Def_FBMapID_CrossChampionship:"CrossZonePK", } #跨服分区对应地图配置表名 - 仅适用于固定地图及虚拟分线的跨服玩法 -- Gitblit v1.8.0