diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-05 00:55:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-05 00:55:14 +0300 |
commit | f983fe42aa7ddb24488bc020c4a1d9e6c19f6feb (patch) | |
tree | 9236d882cfe1e94797e649ffb2c249e4b13dbe83 /servergreps/hercules/src | |
parent | 7cde76794cd54e05674cc3c250bb289701febce8 (diff) | |
download | tools-f983fe42aa7ddb24488bc020c4a1d9e6c19f6feb.tar.gz tools-f983fe42aa7ddb24488bc020c4a1d9e6c19f6feb.tar.bz2 tools-f983fe42aa7ddb24488bc020c4a1d9e6c19f6feb.tar.xz tools-f983fe42aa7ddb24488bc020c4a1d9e6c19f6feb.zip |
servergreps: rename most output files.
Diffstat (limited to 'servergreps/hercules/src')
-rwxr-xr-x | servergreps/hercules/src/reporter.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/servergreps/hercules/src/reporter.py b/servergreps/hercules/src/reporter.py index d34fd58..535887e 100755 --- a/servergreps/hercules/src/reporter.py +++ b/servergreps/hercules/src/reporter.py @@ -6,7 +6,7 @@ class Reporter: def reportManaplus(self, hercules, manaplus): - with open(self.packetDir + "/serverpackets.txt", "w") as w: + with open(self.packetDir + "/hercules_outpackets.txt", "w") as w: for packet in hercules.outPacketsSorted: data = packet while data[0] == "0": @@ -28,7 +28,7 @@ class Reporter: if packet in hercules.inPackets: funcDict[hercules.inPackets[packet][1]] = packet - with open(self.packetDir + "/uselesspackets.txt", "w") as w: + with open(self.packetDir + "/client_uselesspackets.txt", "w") as w: for packet in manaplus.outPackets: if packet not in hercules.inPackets: w.write("Useless packet {0}.\n".format(packet)) @@ -36,7 +36,7 @@ class Reporter: # manaplusFunc = set() rev = [] - with open(self.packetDir + "/clientpackets.txt", "w") as w: + with open(self.packetDir + "/client_packets.txt", "w") as w: for packet in manaplus.outPackets: clientName = manaplus.outPackets[packet][0] if clientName not in manaplus.manaplusUsedPacketsSet and clientName.find("_OUTDATED") <= 0: @@ -89,7 +89,7 @@ class Reporter: w.write("\n") rev = [] - with open(self.packetDir + "/clientwrongpacketsizes.txt", "w") as w: + with open(self.packetDir + "/client_wrongpacketsizes.txt", "w") as w: for name in manaplus.outMsgNameToId: packet = manaplus.outMsgNameToId[name] # for packet in manaplus.outPackets: @@ -110,7 +110,7 @@ class Reporter: w.write("\n") rev = [] - with open(self.packetDir + "/clientbadpackets.txt", "w") as w: + with open(self.packetDir + "/client_badpackets.txt", "w") as w: for name in manaplus.outMsgNameToId: packet = manaplus.outMsgNameToId[name] # for packet in manaplus.outPackets: @@ -146,8 +146,8 @@ class Reporter: w.write("\n") rev = [] - with open(self.packetDir + "/clientpreferredpackets.txt", "w") as w: - with open(self.packetDir + "/clientbadpackets.txt", "a+") as w2: + with open(self.packetDir + "/client_preferredpackets.txt", "w") as w: + with open(self.packetDir + "/client_badpackets.txt", "a+") as w2: for name in manaplus.outMsgNameToId: packet = manaplus.outMsgNameToId[name] if packet in hercules.inPackets: @@ -181,7 +181,7 @@ class Reporter: def reportHercules(self, hercules): - with open(self.packetDir + "/herculesissues.txt", "w") as w: + with open(self.packetDir + "/hercules_issues.txt", "w") as w: for name in hercules.functionToId: packet = hercules.functionToId[name] if name != hercules.inPackets[packet][1]: |