5562 【英文】【越南】【BT】【砍树】跨服子服玩家打包数据较大(上下线同步跨服等级限制改为读配置;打包数据入库改为只入库前200人;)
| | |
| | | #offlineValue = olMgr.GetOfflineValue(playerID, PlayerViewCache.FindViewCache(playerID))
|
| | | #SyncRelatedPlayerOnlineState(playerID, offlineValue, relatedPlayerIDList)
|
| | |
|
| | | if curPlayer.GetLV() < 50:
|
| | | #GameWorld.DebugLog("跨服相关功能未开启,不同步在线状态到跨服服务器! LV=%s" % curPlayer.GetLV(), curPlayer.GetPlayerID())
|
| | | syncLV = IpyGameDataPY.GetFuncCfg("CrossSyncSet", 1)
|
| | | if curPlayer.GetLV() < syncLV:
|
| | | #GameWorld.DebugLog("跨服相关功能未开启,不同步在线状态到跨服服务器! LV=%s < %s" % (curPlayer.GetLV(), syncLV), curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | cacheBase = PlayerViewCache.GetSyncCrossCacheBase(curPlayer)
|
| | |
| | | continue
|
| | | cnt += 1
|
| | | savaData += dataObj.dbPlayerPackData.getBuffer()
|
| | | if cnt >= 200:
|
| | | break
|
| | |
|
| | | GameWorld.Log("Save DBPlayerPackData count :%s len=%s" % (cnt, len(savaData)))
|
| | | return CommFunc.WriteDWORD(cntData, cnt) + savaData
|