From 10b9543ed9d503818a9c21bc4093761e60d0df74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Oct 2014 11:50:32 +0300 Subject: Move windows and mac run time files into runtime dir. For usage, need copy it back. --- runtime/char-server.bat | 2 ++ runtime/db2sql.bat | 45 ++++++++++++++++++++++++++++++++++ runtime/dbghelp.dll | Bin 0 -> 1213200 bytes runtime/libmysql.dll | Bin 0 -> 1449984 bytes runtime/login-server.bat | 2 ++ runtime/mac.start.scpt | Bin 0 -> 10742 bytes runtime/map-server.bat | 2 ++ runtime/pcre3.dll | Bin 0 -> 159744 bytes runtime/run-server.bat | 8 ++++++ runtime/script-checker.bat | 45 ++++++++++++++++++++++++++++++++++ runtime/serv.bat | 59 +++++++++++++++++++++++++++++++++++++++++++++ runtime/zlib1.dll | Bin 0 -> 81920 bytes 12 files changed, 163 insertions(+) create mode 100644 runtime/char-server.bat create mode 100644 runtime/db2sql.bat create mode 100644 runtime/dbghelp.dll create mode 100644 runtime/libmysql.dll create mode 100644 runtime/login-server.bat create mode 100644 runtime/mac.start.scpt create mode 100644 runtime/map-server.bat create mode 100644 runtime/pcre3.dll create mode 100644 runtime/run-server.bat create mode 100644 runtime/script-checker.bat create mode 100644 runtime/serv.bat create mode 100644 runtime/zlib1.dll (limited to 'runtime') 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..9bad06ef2 --- /dev/null +++ b/runtime/db2sql.bat @@ -0,0 +1,45 @@ +@ECHO OFF + +REM This file is part of Hercules. +REM http://herc.ws - http://github.com/HerculesWS/Hercules +REM +REM Copyright (C) 2013-2015 Hercules Dev Team +REM +REM Hercules is free software: you can redistribute it and/or modify +REM it under the terms of the GNU General Public License as published by +REM the Free Software Foundation, either version 3 of the License, or +REM (at your option) any later version. +REM +REM This program is distributed in the hope that it will be useful, +REM but WITHOUT ANY WARRANTY; without even the implied warranty of +REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +REM GNU General Public License for more details. +REM +REM You should have received a copy of the GNU General Public License +REM along with this program. If not, see . + +REM Base Author: Mumbles @ http://herc.ws + +COLOR 0F + +ECHO. +ECHO Hercules Development Team presents +ECHO _ _ _ +ECHO ^| ^| ^| ^| ^| ^| +ECHO ^| ^|_^| ^| ___ _ __ ___ _ _^| ^| ___ ___ +ECHO ^| _ ^|/ _ \ '__/ __^| ^| ^| ^| ^|/ _ \/ __^| +ECHO ^| ^| ^| ^| __/ ^| ^| (__^| ^|_^| ^| ^| __/\__ \ +ECHO \_^| ^|_/\___^|_^| \___^|\__,_^|_^|\___^|^|___/ +ECHO. +ECHO Database to SQL Converter +ECHO http://herc.ws/board/ +ECHO. +ECHO. + +ECHO Exporting databases to 'sql-files' folder... +PING -n 3 -w 1 127.0.0.1 > nul + +map-server.exe --load-plugin db2sql --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 Binary files /dev/null and b/runtime/dbghelp.dll differ diff --git a/runtime/libmysql.dll b/runtime/libmysql.dll new file mode 100644 index 000000000..f86e8ef5b Binary files /dev/null and b/runtime/libmysql.dll 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..3275246ca Binary files /dev/null and b/runtime/mac.start.scpt 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 Binary files /dev/null and b/runtime/pcre3.dll 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..657687f66 --- /dev/null +++ b/runtime/script-checker.bat @@ -0,0 +1,45 @@ +@ECHO OFF + +REM This file is part of Hercules. +REM http://herc.ws - http://github.com/HerculesWS/Hercules +REM +REM Copyright (C) 2013-2015 Hercules Dev Team +REM +REM Hercules is free software: you can redistribute it and/or modify +REM it under the terms of the GNU General Public License as published by +REM the Free Software Foundation, either version 3 of the License, or +REM (at your option) any later version. +REM +REM This program is distributed in the hope that it will be useful, +REM but WITHOUT ANY WARRANTY; without even the implied warranty of +REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +REM GNU General Public License for more details. +REM +REM You should have received a copy of the GNU General Public License +REM along with this program. If not, see . + +REM Base Author: Mumbles @ http://herc.ws + +COLOR 0F + +ECHO. +ECHO Hercules Development Team presents +ECHO _ _ _ +ECHO ^| ^| ^| ^| ^| ^| +ECHO ^| ^|_^| ^| ___ _ __ ___ _ _^| ^| ___ ___ +ECHO ^| _ ^|/ _ \ '__/ __^| ^| ^| ^| ^|/ _ \/ __^| +ECHO ^| ^| ^| ^| __/ ^| ^| (__^| ^|_^| ^| ^| __/\__ \ +ECHO \_^| ^|_/\___^|_^| \___^|\__,_^|_^|\___^|^|___/ +ECHO. +ECHO Script Syntax Checker +ECHO http://herc.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 Binary files /dev/null and b/runtime/zlib1.dll differ -- cgit v1.2.3-60-g2f50