From fd85134c0d4ac18f7286d1d92eb84fa64c8defc5 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 30 五月 2025 10:23:20 +0800 Subject: [PATCH] 16 卡牌服务端(首登修改) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 191 ----------------------------------------------- 1 files changed, 0 insertions(+), 191 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index b3da437..5d07bd5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -5584,126 +5584,6 @@ #------------------------------------------------------ -# A1 01 玩家电脑信息 #tagCMPCInfo - -class tagCMPCInfo(Structure): - Head = tagHead() - PCOSLen = 0 #(BYTE PCOSLen) - PCOS = "" #(String PCOS)// 操作系统 - ResolutionLen = 0 #(BYTE ResolutionLen) - Resolution = "" #(String Resolution)// 分辨率 - BrowserLen = 0 #(BYTE BrowserLen) - Browser = "" #(String Browser)// 浏览器 - ScribeTypeLen = 0 #(BYTE ScribeTypeLen) - ScribeType = "" #(String ScribeType)// 记录类型 - ScribeDataLen = 0 #(BYTE ScribeDataLen) - ScribeData = "" #(String ScribeData)// 记录扩展信息 - data = None - - def __init__(self): - self.Clear() - self.Head.Cmd = 0xA1 - self.Head.SubCmd = 0x01 - return - - def ReadData(self, _lpData, _pos=0, _Len=0): - self.Clear() - _pos = self.Head.ReadData(_lpData, _pos) - self.PCOSLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) - self.PCOS,_pos = CommFunc.ReadString(_lpData, _pos,self.PCOSLen) - self.ResolutionLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) - self.Resolution,_pos = CommFunc.ReadString(_lpData, _pos,self.ResolutionLen) - self.BrowserLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) - self.Browser,_pos = CommFunc.ReadString(_lpData, _pos,self.BrowserLen) - self.ScribeTypeLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) - self.ScribeType,_pos = CommFunc.ReadString(_lpData, _pos,self.ScribeTypeLen) - self.ScribeDataLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) - self.ScribeData,_pos = CommFunc.ReadString(_lpData, _pos,self.ScribeDataLen) - return _pos - - def Clear(self): - self.Head = tagHead() - self.Head.Clear() - self.Head.Cmd = 0xA1 - self.Head.SubCmd = 0x01 - self.PCOSLen = 0 - self.PCOS = "" - self.ResolutionLen = 0 - self.Resolution = "" - self.BrowserLen = 0 - self.Browser = "" - self.ScribeTypeLen = 0 - self.ScribeType = "" - self.ScribeDataLen = 0 - self.ScribeData = "" - return - - def GetLength(self): - length = 0 - length += self.Head.GetLength() - length += 1 - length += len(self.PCOS) - length += 1 - length += len(self.Resolution) - length += 1 - length += len(self.Browser) - length += 1 - length += len(self.ScribeType) - length += 1 - length += len(self.ScribeData) - - return length - - def GetBuffer(self): - data = '' - data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) - data = CommFunc.WriteBYTE(data, self.PCOSLen) - data = CommFunc.WriteString(data, self.PCOSLen, self.PCOS) - data = CommFunc.WriteBYTE(data, self.ResolutionLen) - data = CommFunc.WriteString(data, self.ResolutionLen, self.Resolution) - data = CommFunc.WriteBYTE(data, self.BrowserLen) - data = CommFunc.WriteString(data, self.BrowserLen, self.Browser) - data = CommFunc.WriteBYTE(data, self.ScribeTypeLen) - data = CommFunc.WriteString(data, self.ScribeTypeLen, self.ScribeType) - data = CommFunc.WriteBYTE(data, self.ScribeDataLen) - data = CommFunc.WriteString(data, self.ScribeDataLen, self.ScribeData) - return data - - def OutputString(self): - DumpString = ''' - Head:%s, - PCOSLen:%d, - PCOS:%s, - ResolutionLen:%d, - Resolution:%s, - BrowserLen:%d, - Browser:%s, - ScribeTypeLen:%d, - ScribeType:%s, - ScribeDataLen:%d, - ScribeData:%s - '''\ - %( - self.Head.OutputString(), - self.PCOSLen, - self.PCOS, - self.ResolutionLen, - self.Resolution, - self.BrowserLen, - self.Browser, - self.ScribeTypeLen, - self.ScribeType, - self.ScribeDataLen, - self.ScribeData - ) - return DumpString - - -m_NAtagCMPCInfo=tagCMPCInfo() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMPCInfo.Head.Cmd,m_NAtagCMPCInfo.Head.SubCmd))] = m_NAtagCMPCInfo - - -#------------------------------------------------------ # A1 23 查询充值次数 #tagCMQueryCoinToGoldCount class tagCMQueryCoinToGoldCount(Structure): @@ -6155,77 +6035,6 @@ m_NAtagCMViewBillboard=tagCMViewBillboard() ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMViewBillboard.Cmd,m_NAtagCMViewBillboard.SubCmd))] = m_NAtagCMViewBillboard - - -#------------------------------------------------------ -# A2 19 游戏建议收集 #tagCMAdviceSubmit - -class tagCMAdviceSubmit(Structure): - Head = tagHead() - Type = 0 #(BYTE Type)//提交类型 - Len = 0 #(WORD Len) - Content = "" #(String Content)//size = Len - data = None - - def __init__(self): - self.Clear() - self.Head.Cmd = 0xA2 - self.Head.SubCmd = 0x19 - return - - def ReadData(self, _lpData, _pos=0, _Len=0): - self.Clear() - _pos = self.Head.ReadData(_lpData, _pos) - self.Type,_pos = CommFunc.ReadBYTE(_lpData, _pos) - self.Len,_pos = CommFunc.ReadWORD(_lpData, _pos) - self.Content,_pos = CommFunc.ReadString(_lpData, _pos,self.Len) - return _pos - - def Clear(self): - self.Head = tagHead() - self.Head.Clear() - self.Head.Cmd = 0xA2 - self.Head.SubCmd = 0x19 - self.Type = 0 - self.Len = 0 - self.Content = "" - return - - def GetLength(self): - length = 0 - length += self.Head.GetLength() - length += 1 - length += 2 - length += len(self.Content) - - return length - - def GetBuffer(self): - data = '' - data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) - data = CommFunc.WriteBYTE(data, self.Type) - data = CommFunc.WriteWORD(data, self.Len) - data = CommFunc.WriteString(data, self.Len, self.Content) - return data - - def OutputString(self): - DumpString = ''' - Head:%s, - Type:%d, - Len:%d, - Content:%s - '''\ - %( - self.Head.OutputString(), - self.Type, - self.Len, - self.Content - ) - return DumpString - - -m_NAtagCMAdviceSubmit=tagCMAdviceSubmit() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMAdviceSubmit.Head.Cmd,m_NAtagCMAdviceSubmit.Head.SubCmd))] = m_NAtagCMAdviceSubmit #------------------------------------------------------ -- Gitblit v1.8.0