summaryrefslogtreecommitdiff
path: root/hercules/convert_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/convert_server.py')
-rwxr-xr-xhercules/convert_server.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/hercules/convert_server.py b/hercules/convert_server.py
new file mode 100755
index 0000000..83e9149
--- /dev/null
+++ b/hercules/convert_server.py
@@ -0,0 +1,30 @@
+#! /usr/bin/env python
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2014 Evol Online
+# Author: Andrei Karas (4144)
+
+import sys
+
+from code.server.evol.main import serverEvolMain
+from code.server.tmw.main import serverTmwMain
+
+def showHelp():
+ print "Usage: ./convert_server.py evol"
+ print " ./convert_server.py tmwold"
+ print " ./convert_server.py tmwnew"
+ exit(1)
+
+if len(sys.argv) != 2:
+ showHelp()
+ exit(1)
+
+serverType = sys.argv[1]
+if serverType == "evol":
+ serverEvolMain();
+elif serverType == "tmwold":
+ serverTmwMain(False);
+elif serverType == "tmwnew":
+ serverTmwMain(True);
+else:
+ print "Wrong parameter" \ No newline at end of file