summaryrefslogtreecommitdiff
path: root/servergreps/hercules/src/reporter.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-05 20:51:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-05 20:51:40 +0300
commit88dd7266cc3bae657afe00b1126704f9f9ce2484 (patch)
treeccc9abe685ae5027d181e7b1e5b002af9e7f87bf /servergreps/hercules/src/reporter.py
parent5a677243f94d4fd29418faf715295ef283164d6f (diff)
downloadevol-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-xservergreps/hercules/src/reporter.py11
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")