summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 11:50:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 19:15:08 +0300
commit4b58439a79ad19d120170c2dbc9f2720f09312c1 (patch)
treec9dc336089c6f8b27fb6a6f3da6573266fb6a0be /runtime
parent4bf8e5d2db2b4e56c3cf5a12b7490046b5596c04 (diff)
downloadhercules-4b58439a79ad19d120170c2dbc9f2720f09312c1.tar.gz
hercules-4b58439a79ad19d120170c2dbc9f2720f09312c1.tar.bz2
hercules-4b58439a79ad19d120170c2dbc9f2720f09312c1.tar.xz
hercules-4b58439a79ad19d120170c2dbc9f2720f09312c1.zip
Move windows and mac run time files into runtime dir.
For usage, need copy it back.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/char-server.bat2
-rw-r--r--runtime/db2sql.bat29
-rw-r--r--runtime/dbghelp.dllbin0 -> 1213200 bytes
-rw-r--r--runtime/libmysql.dllbin0 -> 1449984 bytes
-rw-r--r--runtime/login-server.bat2
-rw-r--r--runtime/mac.start.scptbin0 -> 7638 bytes
-rw-r--r--runtime/map-server.bat2
-rw-r--r--runtime/pcre3.dllbin0 -> 159744 bytes
-rw-r--r--runtime/run-server.bat8
-rw-r--r--runtime/script-checker.bat29
-rw-r--r--runtime/serv.bat59
-rw-r--r--runtime/zlib1.dllbin0 -> 81920 bytes
12 files changed, 131 insertions, 0 deletions
diff --git a/runtime/char-server.bat b/runtime/char-server.bat
new file mode 100644
index 000000000..b21efac35
--- /dev/null
+++ b/runtime/char-server.bat
@@ -0,0 +1,2 @@
+@ECHO OFF
+CALL serv.bat char-server.exe Char-Server
diff --git a/runtime/db2sql.bat b/runtime/db2sql.bat
new file mode 100644
index 000000000..b23f76bce
--- /dev/null
+++ b/runtime/db2sql.bat
@@ -0,0 +1,29 @@
+@ECHO OFF
+
+REM Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+REM See the LICENSE file
+REM Base Author: Mumbles @ http://hercules.ws
+
+COLOR 0F
+
+ECHO.
+ECHO Hercules Development Team presents
+ECHO _ _ _
+ECHO ^| ^| ^| ^| ^| ^|
+ECHO ^| ^|_^| ^| ___ _ __ ___ _ _^| ^| ___ ___
+ECHO ^| _ ^|/ _ \ '__/ __^| ^| ^| ^| ^|/ _ \/ __^|
+ECHO ^| ^| ^| ^| __/ ^| ^| (__^| ^|_^| ^| ^| __/\__ \
+ECHO \_^| ^|_/\___^|_^| \___^|\__,_^|_^|\___^|^|___/
+ECHO.
+ECHO Database to SQL Converter
+ECHO http://hercules.ws/board/
+ECHO.
+ECHO.
+
+ECHO Exporting item databases to 'sql-files' folder...
+PING -n 3 -w 1 127.0.0.1 > nul
+
+map-server.exe --db2sql
+ECHO.
+
+PING -n 10 -w 1 127.0.0.1 > nul
diff --git a/runtime/dbghelp.dll b/runtime/dbghelp.dll
new file mode 100644
index 000000000..9f52a5d41
--- /dev/null
+++ b/runtime/dbghelp.dll
Binary files differ
diff --git a/runtime/libmysql.dll b/runtime/libmysql.dll
new file mode 100644
index 000000000..f86e8ef5b
--- /dev/null
+++ b/runtime/libmysql.dll
Binary files differ
diff --git a/runtime/login-server.bat b/runtime/login-server.bat
new file mode 100644
index 000000000..a36e07f17
--- /dev/null
+++ b/runtime/login-server.bat
@@ -0,0 +1,2 @@
+@ECHO OFF
+CALL serv.bat login-server.exe Login-Server
diff --git a/runtime/mac.start.scpt b/runtime/mac.start.scpt
new file mode 100644
index 000000000..43f93a445
--- /dev/null
+++ b/runtime/mac.start.scpt
Binary files differ
diff --git a/runtime/map-server.bat b/runtime/map-server.bat
new file mode 100644
index 000000000..fc6235092
--- /dev/null
+++ b/runtime/map-server.bat
@@ -0,0 +1,2 @@
+@ECHO OFF
+CALL serv.bat map-server.exe Map-Server
diff --git a/runtime/pcre3.dll b/runtime/pcre3.dll
new file mode 100644
index 000000000..f4fa1ea2e
--- /dev/null
+++ b/runtime/pcre3.dll
Binary files differ
diff --git a/runtime/run-server.bat b/runtime/run-server.bat
new file mode 100644
index 000000000..3d09ba318
--- /dev/null
+++ b/runtime/run-server.bat
@@ -0,0 +1,8 @@
+@echo off
+rem This is and auto-restart script for the Server Emulator.
+rem It will also keep the map server OPEN after it crashes to that errors may be
+rem more easily identified
+rem Writen by Jbain
+start cmd /k login-server.bat
+start cmd /k char-server.bat
+start cmd /k map-server.bat
diff --git a/runtime/script-checker.bat b/runtime/script-checker.bat
new file mode 100644
index 000000000..d81277971
--- /dev/null
+++ b/runtime/script-checker.bat
@@ -0,0 +1,29 @@
+@ECHO OFF
+
+REM Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+REM See the LICENSE file
+REM Base Author: Mumbles @ http://hercules.ws
+
+COLOR 0F
+
+ECHO.
+ECHO Hercules Development Team presents
+ECHO _ _ _
+ECHO ^| ^| ^| ^| ^| ^|
+ECHO ^| ^|_^| ^| ___ _ __ ___ _ _^| ^| ___ ___
+ECHO ^| _ ^|/ _ \ '__/ __^| ^| ^| ^| ^|/ _ \/ __^|
+ECHO ^| ^| ^| ^| __/ ^| ^| (__^| ^|_^| ^| ^| __/\__ \
+ECHO \_^| ^|_/\___^|_^| \___^|\__,_^|_^|\___^|^|___/
+ECHO.
+ECHO Script Syntax Checker
+ECHO http://hercules.ws/board/
+ECHO.
+ECHO Drag and drop or input manually
+ECHO.
+ECHO.
+
+:LOOP
+ SET /P SCRIPT="Enter path/to/your/script.txt: " %=%
+ map-server.exe --script-check --load-script %SCRIPT%
+ ECHO.
+GOTO LOOP
diff --git a/runtime/serv.bat b/runtime/serv.bat
new file mode 100644
index 000000000..cc7d37e20
--- /dev/null
+++ b/runtime/serv.bat
@@ -0,0 +1,59 @@
+@ECHO OFF
+IF "%1"=="" GOTO DIRECT
+IF "%2"=="" GOTO DIRECT
+IF NOT EXIST "%1" GOTO NOTFOUND
+GOTO START
+
+REM == How RESTART_9X and RESTART_NT works =========================
+REM On Windows 9x only the first 8 characters are significant for
+REM labels, and the first matching one is called (RESTART_(9X)).
+REM Windows NT calls the exact named label (RESTART_NT).
+REM Separation between 9X and NT is required, because CHOICE has
+REM different syntax on these platforms or does not exist as all.
+REM ================================================================
+
+REM Windows 95, 98, ME
+:RESTART_9X
+REM Old Ctrl+C in PING does not work, because that only stops ping,
+REM not the batch file.
+CHOICE /C:rc /N /T:R,15 Restarting in 15 seconds, press 'C' to cancel.
+IF NOT ERRORLEVEL 2 GOTO START
+GOTO END
+
+REM Windows 2000, XP, Vista, 7
+:RESTART_NT
+REM There is no CHOICE in 2000 and XP, but you get asked whether to
+REM abort the batch file, when pressing Ctrl+C in PING.
+ECHO Restarting in 15 seconds, press Ctrl+C to cancel.
+PING -n 15 127.0.0.1 > NUL
+
+:START
+%1
+ECHO.
+REM Return value > 1 is exception&~0xC0000000
+IF ERRORLEVEL 2 GOTO CRASHED
+REM Return value 1 is EXIT_FAILURE
+IF ERRORLEVEL 1 GOTO EXIT1
+REM Return value 0 is EXIT_SUCCESS
+ECHO %2 has shutdown successfully.
+GOTO RESTART_NT
+
+:EXIT1
+ECHO %2 has terminated abnormally.
+GOTO RESTART_NT
+
+:CRASHED
+ECHO %2 has crashed!
+GOTO RESTART_NT
+
+:DIRECT
+ECHO Do not run this file directly. It is used by login-server.bat, char-server.bat,
+ECHO and map-server.bat
+GOTO END
+
+:NOTFOUND
+ECHO %1 was not found. Make sure, that you have compiled the %2.
+GOTO END
+
+:END
+PAUSE
diff --git a/runtime/zlib1.dll b/runtime/zlib1.dll
new file mode 100644
index 000000000..a05e41e1c
--- /dev/null
+++ b/runtime/zlib1.dll
Binary files differ