hxp
2024-11-18 a994f21c858d3087e7ee4f6fbc4180dcc8fb7e00
1111 跨服榜Name2长度改为65
2个文件已修改
16 ■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossBillboard.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossBillboard.py
@@ -809,8 +809,8 @@
    billboardData.BillboardType = billboardType
    billboardData.ID = dataID
    billboardData.ID2 = id2
    billboardData.Name1 = "" if len(name1) > 33 else name1
    billboardData.Name2 = "" if len(name2) > 33 else name2
    billboardData.SetName1(name1)
    billboardData.SetName2(name2)
    billboardData.Type2 = type2
    billboardData.Value1 = value1
    billboardData.Value2 = value2
ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py
@@ -171,7 +171,7 @@
        ('ID', ctypes.c_ulong),
        ('ID2', ctypes.c_ulong),
        ('Name1', ctypes.c_char * 33),
        ('Name2', ctypes.c_char * 33),
        ('Name2', ctypes.c_char * 65),
        ('Type2', ctypes.c_ubyte),
        ('Value1', ctypes.c_ulong),
        ('Value2', ctypes.c_ulong),
@@ -228,7 +228,7 @@
        self.ID, pos = CommFunc.ReadDWORD(buf, pos)
        self.ID2, pos = CommFunc.ReadDWORD(buf, pos)
        self.Name1, pos = CommFunc.ReadString(buf, pos, 33)
        self.Name2, pos = CommFunc.ReadString(buf, pos, 33)
        self.Name2, pos = CommFunc.ReadString(buf, pos, 65)
        self.Type2, pos = CommFunc.ReadBYTE(buf, pos)
        self.Value1, pos = CommFunc.ReadDWORD(buf, pos)
        self.Value2, pos = CommFunc.ReadDWORD(buf, pos)
@@ -254,7 +254,7 @@
        buf = CommFunc.WriteDWORD(buf, self.ID)
        buf = CommFunc.WriteDWORD(buf, self.ID2)
        buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 33, self.Name1)
        buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 33, self.Name2)
        buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 65, self.Name2)
        buf = CommFunc.WriteBYTE(buf, self.Type2)
        buf = CommFunc.WriteDWORD(buf, self.Value1)
        buf = CommFunc.WriteDWORD(buf, self.Value2)
@@ -279,7 +279,7 @@
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_char) * 33
        length += sizeof(ctypes.c_char) * 33
        length += sizeof(ctypes.c_char) * 65
        length += sizeof(ctypes.c_ubyte)
        length += sizeof(ctypes.c_ulong)
        length += sizeof(ctypes.c_ulong)
@@ -354,10 +354,10 @@
            self.Name1 = Str[:33]
            
    def SetName2(self,Str):
        if len(Str)<=33:
        if len(Str)<=65:
            self.Name2 = Str
        else:
            self.Name2 = Str[:33]
            self.Name2 = Str[:65]