diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-05 20:51:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-05 20:51:40 +0300 |
commit | 88dd7266cc3bae657afe00b1126704f9f9ce2484 (patch) | |
tree | ccc9abe685ae5027d181e7b1e5b002af9e7f87bf /servergreps/hercules/src/reporter.py | |
parent | 5a677243f94d4fd29418faf715295ef283164d6f (diff) | |
download | evol-tools-88dd7266cc3bae657afe00b1126704f9f9ce2484.tar.gz evol-tools-88dd7266cc3bae657afe00b1126704f9f9ce2484.tar.bz2 evol-tools-88dd7266cc3bae657afe00b1126704f9f9ce2484.tar.xz evol-tools-88dd7266cc3bae657afe00b1126704f9f9ce2484.zip |
servergreps: add parsing and basic report for brAthena.
Diffstat (limited to 'servergreps/hercules/src/reporter.py')
-rwxr-xr-x | servergreps/hercules/src/reporter.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/servergreps/hercules/src/reporter.py b/servergreps/hercules/src/reporter.py index 128c668..a3ecb17 100755 --- a/servergreps/hercules/src/reporter.py +++ b/servergreps/hercules/src/reporter.py @@ -209,3 +209,14 @@ class Reporter: for packet in rathena.outPacketsSorted: if packet not in hercules.packetsSet: w.write("Exists only in rAthena: " + packet + "\n") + + def reportHerculesFork(self, hercules, fork, name): + with open(self.packetDir + "/" + hercules.reportName + "_" + fork.reportName + "_outpackets.txt", "w") as w: + for packet in fork.outPacketsSorted: + if packet not in hercules.packetsSet: + w.write("Exists only in " + name + ": " + packet + "\n") + + with open(self.packetDir + "/" + hercules.reportName + "_" + fork.reportName + "_inpackets.txt", "w") as w: + for packet in fork.inPacketsSorted: + if packet not in hercules.inPackets: + w.write("Exists only in " + name + ": " + packet + "\n") |