| | |
| | | if self._isNeedReport:
|
| | | packBuff = clientPack.GetBuffer()
|
| | | buffLen = len(packBuff)
|
| | | GameWorld.DebugLog("回合战斗过程封包: %s, len:%s, %s" % (headStr, buffLen, CommFunc.B2Hex(packBuff)))
|
| | | #GameWorld.DebugLog("回合战斗过程封包: %s, len:%s, %s" % (headStr, buffLen, CommFunc.B2Hex(packBuff)))
|
| | | GameWorld.DebugLog("回合战斗过程封包: %s, len:%s" % (headStr, buffLen))
|
| | | self.batBuffer += CommFunc.WriteWORD("", buffLen)
|
| | | self.batBuffer += packBuff
|
| | | ObjPool.GetPoolMgr().release(clientPack)
|
| | |
| | | ReportRoot = "C:\TurnFightReport"
|
| | |
|
| | | dateStr = GameWorld.ChangeTimeNumToStr(int(time.time()), "%Y%m%d")
|
| | | ReportDir = os.path.join(ReportRoot, "S%s" % reqServerID, dateStr, "%s" % reqPlayerID)
|
| | | ReportDir = os.path.join(ReportRoot, "S%s" % reqServerID, dateStr, "%s" % reqPlayerID, "%s" % turnFight.mapID)
|
| | | if not os.path.exists(ReportDir):
|
| | | os.makedirs(ReportDir)
|
| | | else:
|
| | |
| | | clientPack.GUID = guid
|
| | | clientPack.Report = turnFight.batBuffer
|
| | | clientPack.Len = len(clientPack.Report)
|
| | | fp = open(saveFilePath, "w")
|
| | | fp = open(saveFilePath, "wb")
|
| | | fp.write(clientPack.GetBuffer())
|
| | | fp.close()
|
| | | except:
|