summaryrefslogtreecommitdiff
path: root/servergreps
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-05 19:52:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-05 19:52:21 +0300
commit32a89b1e6ee1b8d7bc195709edfe15df8725bc77 (patch)
treea0818ef050d2ff2202a0dbdfdf36c9fa484c3320 /servergreps
parentd4136a89129d2043f6dab714465f63bf2350dbb1 (diff)
downloadevol-tools-32a89b1e6ee1b8d7bc195709edfe15df8725bc77.tar.gz
evol-tools-32a89b1e6ee1b8d7bc195709edfe15df8725bc77.tar.bz2
evol-tools-32a89b1e6ee1b8d7bc195709edfe15df8725bc77.tar.xz
evol-tools-32a89b1e6ee1b8d7bc195709edfe15df8725bc77.zip
servergreps: add basic rAthena parsing for out packets.
Diffstat (limited to 'servergreps')
-rw-r--r--servergreps/hercules/00000000/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/00000007/hercules_rathena_outpackets.txt13
-rw-r--r--servergreps/hercules/20100105/hercules_rathena_outpackets.txt8
-rw-r--r--servergreps/hercules/20100303/hercules_rathena_outpackets.txt8
-rw-r--r--servergreps/hercules/20100420/hercules_rathena_outpackets.txt8
-rw-r--r--servergreps/hercules/20100608/hercules_rathena_outpackets.txt8
-rw-r--r--servergreps/hercules/20100803/hercules_rathena_outpackets.txt8
-rw-r--r--servergreps/hercules/20101124/hercules_rathena_outpackets.txt8
-rw-r--r--servergreps/hercules/20110718/hercules_rathena_outpackets.txt9
-rw-r--r--servergreps/hercules/20111005/hercules_rathena_outpackets.txt9
-rw-r--r--servergreps/hercules/20111102/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120307/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120410/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120418/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120604/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120702/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120710/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20120716/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130320/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130515/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130522/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130529/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130605/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130612/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130618/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130626/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130703/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130724/hercules_rathena_outpackets.txt10
-rw-r--r--servergreps/hercules/20130807/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20130814/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20131218/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20131223/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20131230/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20140000/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20140402/hercules_rathena_outpackets.txt11
-rw-r--r--servergreps/hercules/20141016/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20141022/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20150000/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20150226/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20150513/hercules_rathena_outpackets.txt16
-rw-r--r--servergreps/hercules/20150805/hercules_rathena_outpackets.txt16
-rw-r--r--servergreps/hercules/20150916/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20151001/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20151029/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20151104/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20151216/hercules_rathena_outpackets.txt15
-rw-r--r--servergreps/hercules/20160316/hercules_rathena_outpackets.txt15
-rwxr-xr-xservergreps/hercules/packets.py9
-rwxr-xr-xservergreps/hercules/src/rathena.py191
-rwxr-xr-xservergreps/hercules/src/reporter.py7
50 files changed, 736 insertions, 0 deletions
diff --git a/servergreps/hercules/00000000/hercules_rathena_outpackets.txt b/servergreps/hercules/00000000/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..8c5158a
--- /dev/null
+++ b/servergreps/hercules/00000000/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 01f5
+Exists only in rAthena: 02b9
+Exists only in rAthena: 07e2
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/00000007/hercules_rathena_outpackets.txt b/servergreps/hercules/00000007/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..a9ad580
--- /dev/null
+++ b/servergreps/hercules/00000007/hercules_rathena_outpackets.txt
@@ -0,0 +1,13 @@
+Exists only in rAthena: 01ee
+Exists only in rAthena: 01ef
+Exists only in rAthena: 01f0
+Exists only in rAthena: 02b9
+Exists only in rAthena: 07e2
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20100105/hercules_rathena_outpackets.txt b/servergreps/hercules/20100105/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..e825446
--- /dev/null
+++ b/servergreps/hercules/20100105/hercules_rathena_outpackets.txt
@@ -0,0 +1,8 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20100303/hercules_rathena_outpackets.txt b/servergreps/hercules/20100303/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..e825446
--- /dev/null
+++ b/servergreps/hercules/20100303/hercules_rathena_outpackets.txt
@@ -0,0 +1,8 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20100420/hercules_rathena_outpackets.txt b/servergreps/hercules/20100420/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..e825446
--- /dev/null
+++ b/servergreps/hercules/20100420/hercules_rathena_outpackets.txt
@@ -0,0 +1,8 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20100608/hercules_rathena_outpackets.txt b/servergreps/hercules/20100608/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..e825446
--- /dev/null
+++ b/servergreps/hercules/20100608/hercules_rathena_outpackets.txt
@@ -0,0 +1,8 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20100803/hercules_rathena_outpackets.txt b/servergreps/hercules/20100803/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..e825446
--- /dev/null
+++ b/servergreps/hercules/20100803/hercules_rathena_outpackets.txt
@@ -0,0 +1,8 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20101124/hercules_rathena_outpackets.txt b/servergreps/hercules/20101124/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..e825446
--- /dev/null
+++ b/servergreps/hercules/20101124/hercules_rathena_outpackets.txt
@@ -0,0 +1,8 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20110718/hercules_rathena_outpackets.txt b/servergreps/hercules/20110718/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..02b0c8e
--- /dev/null
+++ b/servergreps/hercules/20110718/hercules_rathena_outpackets.txt
@@ -0,0 +1,9 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20111005/hercules_rathena_outpackets.txt b/servergreps/hercules/20111005/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..02b0c8e
--- /dev/null
+++ b/servergreps/hercules/20111005/hercules_rathena_outpackets.txt
@@ -0,0 +1,9 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20111102/hercules_rathena_outpackets.txt b/servergreps/hercules/20111102/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..7d96cdb
--- /dev/null
+++ b/servergreps/hercules/20111102/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 083e
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120307/hercules_rathena_outpackets.txt b/servergreps/hercules/20120307/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..07ac07b
--- /dev/null
+++ b/servergreps/hercules/20120307/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 08ff
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120410/hercules_rathena_outpackets.txt b/servergreps/hercules/20120410/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..07ac07b
--- /dev/null
+++ b/servergreps/hercules/20120410/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 08ff
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120418/hercules_rathena_outpackets.txt b/servergreps/hercules/20120418/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..07ac07b
--- /dev/null
+++ b/servergreps/hercules/20120418/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 08ff
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120604/hercules_rathena_outpackets.txt b/servergreps/hercules/20120604/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..07ac07b
--- /dev/null
+++ b/servergreps/hercules/20120604/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 08ff
+Exists only in rAthena: 0979
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120702/hercules_rathena_outpackets.txt b/servergreps/hercules/20120702/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20120702/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120710/hercules_rathena_outpackets.txt b/servergreps/hercules/20120710/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20120710/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20120716/hercules_rathena_outpackets.txt b/servergreps/hercules/20120716/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20120716/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130320/hercules_rathena_outpackets.txt b/servergreps/hercules/20130320/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130320/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130515/hercules_rathena_outpackets.txt b/servergreps/hercules/20130515/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130515/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130522/hercules_rathena_outpackets.txt b/servergreps/hercules/20130522/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130522/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130529/hercules_rathena_outpackets.txt b/servergreps/hercules/20130529/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130529/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130605/hercules_rathena_outpackets.txt b/servergreps/hercules/20130605/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130605/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130612/hercules_rathena_outpackets.txt b/servergreps/hercules/20130612/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130612/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130618/hercules_rathena_outpackets.txt b/servergreps/hercules/20130618/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130618/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130626/hercules_rathena_outpackets.txt b/servergreps/hercules/20130626/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130626/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130703/hercules_rathena_outpackets.txt b/servergreps/hercules/20130703/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130703/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130724/hercules_rathena_outpackets.txt b/servergreps/hercules/20130724/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..26c9d44
--- /dev/null
+++ b/servergreps/hercules/20130724/hercules_rathena_outpackets.txt
@@ -0,0 +1,10 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130807/hercules_rathena_outpackets.txt b/servergreps/hercules/20130807/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20130807/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20130814/hercules_rathena_outpackets.txt b/servergreps/hercules/20130814/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20130814/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20131218/hercules_rathena_outpackets.txt b/servergreps/hercules/20131218/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20131218/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20131223/hercules_rathena_outpackets.txt b/servergreps/hercules/20131223/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20131223/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20131230/hercules_rathena_outpackets.txt b/servergreps/hercules/20131230/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20131230/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20140000/hercules_rathena_outpackets.txt b/servergreps/hercules/20140000/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20140000/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20140402/hercules_rathena_outpackets.txt b/servergreps/hercules/20140402/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..031d5bf
--- /dev/null
+++ b/servergreps/hercules/20140402/hercules_rathena_outpackets.txt
@@ -0,0 +1,11 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20141016/hercules_rathena_outpackets.txt b/servergreps/hercules/20141016/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..fcd3e88
--- /dev/null
+++ b/servergreps/hercules/20141016/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a28
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20141022/hercules_rathena_outpackets.txt b/servergreps/hercules/20141022/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..7235d76
--- /dev/null
+++ b/servergreps/hercules/20141022/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20150000/hercules_rathena_outpackets.txt b/servergreps/hercules/20150000/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..7235d76
--- /dev/null
+++ b/servergreps/hercules/20150000/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20150226/hercules_rathena_outpackets.txt b/servergreps/hercules/20150226/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..7235d76
--- /dev/null
+++ b/servergreps/hercules/20150226/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20150513/hercules_rathena_outpackets.txt b/servergreps/hercules/20150513/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..6bfcd9c
--- /dev/null
+++ b/servergreps/hercules/20150513/hercules_rathena_outpackets.txt
@@ -0,0 +1,16 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20150805/hercules_rathena_outpackets.txt b/servergreps/hercules/20150805/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..6bfcd9c
--- /dev/null
+++ b/servergreps/hercules/20150805/hercules_rathena_outpackets.txt
@@ -0,0 +1,16 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 08e2
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20150916/hercules_rathena_outpackets.txt b/servergreps/hercules/20150916/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..0d87334
--- /dev/null
+++ b/servergreps/hercules/20150916/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20151001/hercules_rathena_outpackets.txt b/servergreps/hercules/20151001/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..0d87334
--- /dev/null
+++ b/servergreps/hercules/20151001/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20151029/hercules_rathena_outpackets.txt b/servergreps/hercules/20151029/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..0d87334
--- /dev/null
+++ b/servergreps/hercules/20151029/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20151104/hercules_rathena_outpackets.txt b/servergreps/hercules/20151104/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..0d87334
--- /dev/null
+++ b/servergreps/hercules/20151104/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20151216/hercules_rathena_outpackets.txt b/servergreps/hercules/20151216/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..0d87334
--- /dev/null
+++ b/servergreps/hercules/20151216/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/20160316/hercules_rathena_outpackets.txt b/servergreps/hercules/20160316/hercules_rathena_outpackets.txt
new file mode 100644
index 0000000..0d87334
--- /dev/null
+++ b/servergreps/hercules/20160316/hercules_rathena_outpackets.txt
@@ -0,0 +1,15 @@
+Exists only in rAthena: 08b9
+Exists only in rAthena: 0979
+Exists only in rAthena: 0984
+Exists only in rAthena: 09a0
+Exists only in rAthena: 09b7
+Exists only in rAthena: 09b9
+Exists only in rAthena: 09cb
+Exists only in rAthena: 09e5
+Exists only in rAthena: 09e6
+Exists only in rAthena: 09f7
+Exists only in rAthena: 0a0e
+Exists only in rAthena: 0a27
+Exists only in rAthena: 0a3b
+Exists only in rAthena: 2712
+Exists only in rAthena: cmde
diff --git a/servergreps/hercules/packets.py b/servergreps/hercules/packets.py
index 49368ba..c5b73ed 100755
--- a/servergreps/hercules/packets.py
+++ b/servergreps/hercules/packets.py
@@ -8,6 +8,7 @@ import sys
from src.hercules import Hercules
from src.manaplus import ManaPlus
+from src.rathena import Rathena
from src.reporter import Reporter
@@ -26,12 +27,20 @@ packetVersion = sys.argv[3]
hercules = Hercules()
hercules.dirName = "hercules"
hercules.reportName = "hercules"
+rathena = Rathena()
+rathena.dirName = "rathena"
+rathena.reportName = "rathena"
+
manaplus = ManaPlus()
reporter = Reporter()
reporter.packetDir = packetDir;
hercules.prepareTempFiles(codeDir, packetDir, packetVersion)
hercules.processPackets(packetDir, packetVersion)
+rathena.prepareTempFiles("rathena", packetDir, packetVersion)
+rathena.processPackets(packetDir, packetVersion)
+
manaplus.processPackets(packetVersion);
reporter.reportManaplus(hercules, manaplus)
reporter.reportHercules(hercules)
+reporter.reportRathena(hercules, rathena)
diff --git a/servergreps/hercules/src/rathena.py b/servergreps/hercules/src/rathena.py
new file mode 100755
index 0000000..b9f8925
--- /dev/null
+++ b/servergreps/hercules/src/rathena.py
@@ -0,0 +1,191 @@
+#! /usr/bin/env python2
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2015-2016 Evol Online
+# Author: Andrei Karas (4144)
+
+import os
+import re
+
+from src.preproc import PreProc
+
+filt = re.compile(".+[.](c|h)", re.IGNORECASE)
+
+class Rathena:
+ namedPackets = dict()
+ packetsSet = set()
+ outPacketsSorted = []
+ inPacketsSorted = []
+ inPackets = dict()
+ functionToId = dict()
+ loginPacketNameToId = dict()
+
+ namedPacketre = re.compile(
+ "((\t|[ ])*)(?P<name>[\w0-9_]+)([ ]*)=" +
+ "([ ]*)0x(?P<value>[0-9a-fA-F]+)")
+ ourPacketre = re.compile(
+ "(WFIFOW|WBUFW)([ ]*)[(]([ ]*)([\w>_-]+),([ ]*)" +
+ "(?P<offset>0)([ ]*)[)]([ ]*)=([ ]*)0x(?P<packet>[0-9a-fA-F]+)([ ]*)[;]")
+ ourPacketre2 = re.compile("PacketType([ ]*)=([ ]*)(?P<name>[\w_]+);")
+ ourPacketre3 = re.compile(
+ "(WFIFOW|WBUFW)([ ]*)[(]([ ]*)([\w>_-]+),([ ]*)" +
+ "(?P<offset>0)([ ]*)[)]([ ]*)=([ ]*)(?P<packet>[0-9\w]+)([ ]*)[;]")
+ ourPacketre4 = re.compile("int cmd([ ]*)=([ ]*)0x(?P<packet>[0-9a-fA-F]+);")
+ ourPacketre5 = re.compile("int cmde([ ]*)=([ ]*)0x(?P<packet>[0-9a-fA-F]+);")
+ outPacketLoginre = re.compile(
+ "([ ]*)PACKET_ID_(?P<name>[A-Z0-9_]+)([ ]*)=" +
+ "([ ]*)0x(?P<packet>[0-9a-fA-F]+),")
+ serverpacketLoginOutre = re.compile("packet_id([ ]*)=([ ]*)(?P<name>[\w_]+);")
+ clientpacketre = re.compile(
+ "(\t*)packet[(]0x(?P<packet>[0-9a-fA-F]+),(?P<len>[\w-]+)" +
+ ",(?P<function>[0-9a-zA-Z_>-]+)(,|[)])")
+ lclifPacketre = re.compile(
+ "([ ]*)[{][ ]PACKET_ID_CA_(?P<name>[A-Z0-9_]+),([^,]+)," +
+ "([ ]*)[&](?P<function>[0-9a-zA-Z_>-]+)([ ]*)[}],")
+
+ def collectNamedPackets(self, fileName):
+ with open(fileName, "r") as f:
+ for line in f:
+ m = self.namedPacketre.search(line)
+ if m is not None:
+ if m.group("name") not in self.namedPackets:
+ self.namedPackets[m.group("name")] = []
+ data = m.group("value").lower()
+ while len(data) < 4:
+ data = "0" + data
+ self.namedPackets[m.group("name")].append(data)
+
+
+ def addServerPacket(self, data):
+ if data in self.namedPackets:
+ for val in self.namedPackets[data]:
+ self.packetsSet.add(val)
+ else:
+ self.packetsSet.add(data.lower())
+
+
+ def collectOutPackets(self, parentDir):
+ files = os.listdir(parentDir)
+ for file1 in files:
+ if file1[0] == ".":
+ continue
+ file2 = os.path.abspath(parentDir + os.path.sep + file1)
+ if not os.path.isfile(file2):
+ if file2.find("/src/evol") <= 0:
+ self.collectOutPackets(file2)
+ elif filt.search(file1):
+ with open(file2, "r") as f:
+ for line in f:
+ m = self.ourPacketre4.findall(line)
+ if len(m) > 0:
+ for str in m:
+ data = str[2]
+ while len(data) < 4:
+ data = "0" + data
+ self.addServerPacket(data)
+ m = self.ourPacketre5.findall(line)
+ if len(m) > 0:
+ for str in m:
+ data = str[2]
+ while len(data) < 4:
+ data = "0" + data
+ self.addServerPacket(data)
+ m = self.outPacketLoginre.findall(line)
+ if len(m) > 0:
+ for str in m:
+ data = str[4]
+ while len(data) < 4:
+ data = "0" + data
+ self.loginPacketNameToId["PACKET_ID_" + str[1]] = data
+ m = self.ourPacketre.findall(line)
+ if len(m) == 0:
+ m = self.ourPacketre3.findall(line)
+ if len(m) > 0:
+ for str in m:
+ if str[9] == "0":
+ continue
+ data = str[9]
+ if data == "cmd":
+ continue
+ while len(data) < 4:
+ data = "0" + data
+ self.addServerPacket(data)
+
+ m = self.ourPacketre2.findall(line)
+ if len(m) > 0:
+ for str in m:
+ if str[2] == "0":
+ continue
+ data = str[2]
+ if len(data) > 2 and data[0:2] == "0x":
+ data = data[2:]
+ while len(data) < 4:
+ data = "0" + data
+ self.addServerPacket(data)
+ m = self.serverpacketLoginOutre.findall(line)
+ if len(m) > 0:
+ for str in m:
+ if str[2] in self.loginPacketNameToId:
+ data = str[2]
+ data = self.loginPacketNameToId[data]
+ self.addServerPacket(data)
+
+
+ def sortOutPackets(self):
+ for packet in self.packetsSet:
+ self.outPacketsSorted.append(packet)
+ self.outPacketsSorted.sort()
+
+
+ def collectInPackets(self, packetsH, lclifPackets):
+ with open(packetsH, "r") as f:
+ for line in f:
+ m = self.clientpacketre.search(line)
+ if m is not None:
+ data = m.group("packet").lower()
+ while len(data) < 4:
+ data = "0" + data
+ self.inPackets[data] = \
+ (int(m.group("len")), m.group("function"))
+ self.functionToId[m.group("function")] = data
+ with open(lclifPackets, "r") as f:
+ for line in f:
+ m = self.lclifPacketre.search(line)
+ if m is not None:
+ name = "PACKET_ID_CA_" + m.group("name")
+ if name not in self.loginPacketNameToId:
+ print "Wrong login packet name: " + name
+ continue
+ data = self.loginPacketNameToId[name]
+ self.inPackets[data] = (0, m.group("function"))
+ self.functionToId[m.group("function")] = data
+
+
+ def sortInPackets(self):
+ for packet in self.inPackets:
+ self.inPacketsSorted.append(packet)
+ self.inPacketsSorted.sort()
+
+
+ def processPackets(self, packetDir, packetVersion):
+# namedPacketsPath = packetDir + "/src/" + self.dirName + "/packets_struct.h"
+ srcPath = packetDir + "/src/" + self.dirName
+# serverInPacketsHPath = packetDir + "/src/" + self.dirName + "/packets.h"
+# serverLoginInPackets = packetDir + "/src/" + self.dirName + "/lclif.c"
+# self.collectNamedPackets(namedPacketsPath)
+ self.collectOutPackets(srcPath)
+# self.collectInPackets(serverInPacketsHPath, serverLoginInPackets)
+# self.sortInPackets()
+ self.sortOutPackets()
+
+
+ def prepareTempFiles(self, codeDir, packetDir, packetVersion):
+ proc = PreProc()
+ proc.init(packetDir + "/src/" + self.dirName)
+ proc.defines = "-DPACKETVER=" + packetVersion + " -D_SOCKET_H_ -DWFIFOW\\(fd,pos\\)=WFIFOW\\(fd,pos\\) -DWBUFW\\(p,pos\\)=WBUFW\\(p,pos\\)"
+ proc.includes = "-I../links/" + codeDir + "/src -I../links/" + codeDir + "/3rdparty"
+ proc.inDir = "../links/" + codeDir + "/src/"
+ proc.outDir = packetDir + "/src/" + self.dirName + "/"
+ proc.run("char", "char_clif.c");
+ proc.run("login", "loginclif.c");
+ proc.run("map", "clif.c");
diff --git a/servergreps/hercules/src/reporter.py b/servergreps/hercules/src/reporter.py
index fedb23a..128c668 100755
--- a/servergreps/hercules/src/reporter.py
+++ b/servergreps/hercules/src/reporter.py
@@ -202,3 +202,10 @@ class Reporter:
w.write("Server code warning: function {0} hidden in server code but can be used older packets definition {1}\n".format(
name,
oldId))
+
+
+ def reportRathena(self, hercules, rathena):
+ with open(self.packetDir + "/" + hercules.reportName + "_" + rathena.reportName + "_outpackets.txt", "w") as w:
+ for packet in rathena.outPacketsSorted:
+ if packet not in hercules.packetsSet:
+ w.write("Exists only in rAthena: " + packet + "\n")