From ab2df9dfcc62104237f0495efbd8480c8e3c0209 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. --- char-server.bat | 2 -- db2sql.bat | 45 ---------------------------------- dbghelp.dll | Bin 1213200 -> 0 bytes libmysql.dll | Bin 1449984 -> 0 bytes login-server.bat | 2 -- mac.start.scpt | Bin 10742 -> 0 bytes map-server.bat | 2 -- pcre3.dll | Bin 159744 -> 0 bytes run-server.bat | 8 ------ 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 script-checker.bat | 45 ---------------------------------- serv.bat | 59 --------------------------------------------- zlib1.dll | Bin 81920 -> 0 bytes 24 files changed, 163 insertions(+), 163 deletions(-) delete mode 100644 char-server.bat delete mode 100644 db2sql.bat delete mode 100644 dbghelp.dll delete mode 100644 libmysql.dll delete mode 100644 login-server.bat delete mode 100644 mac.start.scpt delete mode 100644 map-server.bat delete mode 100644 pcre3.dll delete mode 100644 run-server.bat 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 delete mode 100644 script-checker.bat delete mode 100644 serv.bat delete mode 100644 zlib1.dll diff --git a/char-server.bat b/char-server.bat deleted file mode 100644 index b21efac35..000000000 --- a/char-server.bat +++ /dev/null @@ -1,2 +0,0 @@ -@ECHO OFF -CALL serv.bat char-server.exe Char-Server diff --git a/db2sql.bat b/db2sql.bat deleted file mode 100644 index 9bad06ef2..000000000 --- a/db2sql.bat +++ /dev/null @@ -1,45 +0,0 @@ -@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/dbghelp.dll b/dbghelp.dll deleted file mode 100644 index 9f52a5d41..000000000 Binary files a/dbghelp.dll and /dev/null differ diff --git a/libmysql.dll b/libmysql.dll deleted file mode 100644 index f86e8ef5b..000000000 Binary files a/libmysql.dll and /dev/null differ diff --git a/login-server.bat b/login-server.bat deleted file mode 100644 index a36e07f17..000000000 --- a/login-server.bat +++ /dev/null @@ -1,2 +0,0 @@ -@ECHO OFF -CALL serv.bat login-server.exe Login-Server diff --git a/mac.start.scpt b/mac.start.scpt deleted file mode 100644 index 3275246ca..000000000 Binary files a/mac.start.scpt and /dev/null differ diff --git a/map-server.bat b/map-server.bat deleted file mode 100644 index fc6235092..000000000 --- a/map-server.bat +++ /dev/null @@ -1,2 +0,0 @@ -@ECHO OFF -CALL serv.bat map-server.exe Map-Server diff --git a/pcre3.dll b/pcre3.dll deleted file mode 100644 index f4fa1ea2e..000000000 Binary files a/pcre3.dll and /dev/null differ diff --git a/run-server.bat b/run-server.bat deleted file mode 100644 index 3d09ba318..000000000 --- a/run-server.bat +++ /dev/null @@ -1,8 +0,0 @@ -@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/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 diff --git a/script-checker.bat b/script-checker.bat deleted file mode 100644 index 657687f66..000000000 --- a/script-checker.bat +++ /dev/null @@ -1,45 +0,0 @@ -@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/serv.bat b/serv.bat deleted file mode 100644 index cc7d37e20..000000000 --- a/serv.bat +++ /dev/null @@ -1,59 +0,0 @@ -@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/zlib1.dll b/zlib1.dll deleted file mode 100644 index a05e41e1c..000000000 Binary files a/zlib1.dll and /dev/null differ -- cgit v1.2.3-70-g09d2