1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/xfwg-StygianCore

Клонировать/Скачать
StygianCoreTools.bat 23 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
StygianTheBest Отправлено 12.03.2019 09:53 c3c8b37
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
@echo off
REM ########################################################################################
REM ____ __ ____
REM /\ _`\ /\ \__ __ /\ _`\
REM \ \,\L\_\ \ ,_\ __ __ __ /\_\ __ ___\ \ \/\_\ ___ _ __ __
REM \/_\__ \\ \ \/ /\ \/\ \ /'_ `\/\ \ /'__`\ /' _ `\ \ \/_/_ / __`\/\`'__\/'__`\
REM /\ \L\ \ \ \_\ \ \_\ \/\ \L\ \ \ \/\ \L\.\_/\ \/\ \ \ \L\ \/\ \L\ \ \ \//\ __/
REM \ `\____\ \__\\/`____ \ \____ \ \_\ \__/.\_\ \_\ \_\ \____/\ \____/\ \_\\ \____\
REM \/_____/\/__/ `/___/ \/___L\ \/_/\/__/\/_/\/_/\/_/\/___/ \/___/ \/_/ \/____/
REM /\___/ /\____/
REM \/__/ \_/__/ http://stygianthebest.github.io
REM
REM ########################################################################################
REM ########################################################################################
REM CHECK FOR RESTORATION ARCHIVES
REM ########################################################################################
IF EXIST %CD%\Tools\Work\restore_stygiancore.zip. (
goto initialize
)
(
CLS
echo.
echo [-------------------]
echo [- !!! WARNING !!! -]
echo [-------------------]
echo.
echo THE REQUIRED RESTORATION ARCHIVE, restore_stygiancore.zip, WAS NOT
echo FOUND IN THE TOOLS FOLDER. PLEASE LOCATE THIS FILE AND TRY AGAIN.
echo -------------------------------------------------------------------
echo ... Server
echo ... Support
echo ... Tools
echo .. Work
echo ..[X] restore_stygiancore.zip - Required for server restore.
echo.
pause
exit
)
REM ########################################################################################
: initialize
REM // Version
set toolsrev=2019.03.11
set stygianrev=2019.03.11
set wowbuild=12340
REM // This is for launching the deploy batch file that automates debug and release testing
REM // This batch file should be placed in the AzerothCore Solution root folder
set solutiondir=..\Dev\StygianCore\StygianBuild
REM // Command
REM 1(Blue), 2(Green), 3(Cyan), 4(Red), 5(Purple), 6(Yellow), 7(LGray), 8(Gray)
COLOR 2F
MODE con:cols=89 lines=45
SET NAME=StygianCore Tools
TITLE %NAME%
REM // MySQL 5.6.42 x64
set host=127.0.0.1
set port=3306
set user=azerothcore
set pass=azerothcore
REM // Database
set login=stygian_auth
set characters=stygian_characters
set world=stygian_world
REM // Model Mall
set modelmax=640
set modelstart=18600
REM // Try to turn on the lights
cls
goto init
:init
REM // Create needed folders
IF EXIST %CD%\Tools\Temp\NUL (
goto mysql
) ELSE (
mkdir %CD%\Tools\Temp
goto mysql
)
IF EXIST %CD%\Server\Core\logs\NUL (
goto mysql
) ELSE (
mkdir %CD%\Server\Core\logs
goto mysql
)
REM
REM [- 0 -]
REM
:setup
cls
echo.
set /P host=Host [%host%]:
set /P port=Port [%port%]:
set /P user=User [%user%]:
set /P login=DB Auth [%login%]:
set /P pass=DB Char[%characters%]:
set /P pass=DB World [%world%]:
echo.
pause
:mysql
rem echo Checking MySQL...
tasklist /FI "IMAGENAME eq mysqld.exe" 2>NUL | find /I /N "mysqld">NUL
if "%ERRORLEVEL%"=="0" goto menu
if "%ERRORLEVEL%"=="1" goto start_mysql
:start_mysql
echo Starting MySQL...
start start_database.bat
ping -n 10 127.0.0.1>nul
goto mysql
:menu
cls
echo ########################################################################################
echo ____ __ ____
echo /\ _`\ /\ \__ __ /\ _`\
echo \ \,\L\_\ \ ,_\ __ __ __ /\_\ __ ___\ \ \/\_\ ___ _ __ __
echo \/_\__ \\ \ \/ /\ \/\ \ /'_ `\/\ \ /'__`\ /' _ `\ \ \/_/_ / __`\/\`'__\/'__`\
echo /\ \L\ \ \ \_\ \ \_\ \/\ \L\ \ \ \/\ \L\.\_/\ \/\ \ \ \L\ \/\ \L\ \ \ \//\ __/
echo \ `\____\ \__\\/`____ \ \____ \ \_\ \__/.\_\ \_\ \_\ \____/\ \____/\ \_\\ \____\
echo \/_____/\/__/ `/___/ \/___L\ \/_/\/__/\/_/\/_/\/_/\/___/ \/___/ \/_/ \/____/
echo /\___/ /\____/
echo \/__/ \_/__/ http://stygianthebest.github.io
echo.
echo.
echo ### IMPORT/EXPORT ######################################################################
IF EXIST Tools\Temp\PatchCore\patch_core_ready.txt. (
echo [ 0 ] - Patch Core: StygianCore %stygianrev% Release
)
echo [ 1 ] - Export World
echo [ 2 ] - Export Accounts/Characters
IF EXIST Tools\Temp\%world%.sql. (
echo [ 3 ] - Import World
)
IF EXIST Tools\Temp\%login%.sql. (
echo [ 4 ] - Import Accounts/Characters
)
)
echo.
echo ### RESTORE SERVER #####################################################################
echo.
IF EXIST %CD%\Tools\Work\restore_stygiancore.zip. (
echo [ 5 ] - Restore Server: StygianCore [%stygianrev% Release]
)
)
echo.
echo ### TOOLS ##############################################################################
echo [ 6 ] - Start Server
echo [ 7 ] - NPC Model Tools
IF EXIST %solutiondir%\UpdateDeploy.bat. (
echo [ 8 ] - Deploy Visual Studio Builds
)
echo [ 9 ] - Update MySQL Configuration
echo.
echo ########################################################################################
echo # Tools v%toolsrev% #
echo.
set /P menu=%host% @ %port%:
if "%menu%"=="0" (goto patch_core)
if "%menu%"=="1" (goto export_world)
if "%menu%"=="2" (goto export_accounts)
if "%menu%"=="3" (goto import_world)
if "%menu%"=="4" (goto import_accounts)
if "%menu%"=="5" (goto restore_default_sc)
if "%menu%"=="6" (goto start_server)
if "%menu%"=="7" (goto model_tools)
if "%menu%"=="8" (goto deploy)
if "%menu%"=="9" (goto start)
if "%menu%"=="" (goto menu)
REM ########################################################################################
REM [- 0 -]
REM ########################################################################################
:patch_core
cls
echo.
IF EXIST Tools\Temp\PatchCore\patch_core_ready.txt. (
CLS
echo.
echo [-------------------]
echo [- # CORE PATCH # -]
echo [-------------------]
echo.
echo This process will patch StygianCore to the latest revision. If you
echo are seeing this, the required patch files are in the correct folder
echo and are ready to deploy. Your current binaries and world database
echo will be backed up automatically to the Tools\PatchBackup folder
echo before the patch process begins.
echo -------------------------------------------------------------------
echo.
set /P menu=Are you sure want to install the CORE PATCH? [Y/N]:
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto patch_backup)
) else (
echo.
echo [- *** Invalid Core Patch Installation.. Exiting *** -]
echo.
pause
goto menu
)
:patch_backup
echo.
REM Create Patch Folder
IF EXIST %CD%\Tools\PatchBackup\NUL (
REM Folder Exists
) ELSE (
mkdir Tools\PatchBackup
mkdir Tools\PatchBackup\DB
mkdir Tools\PatchBackuP\Core
)
REM Shutdown Server Processes
taskkill /F /FI "IMAGENAME eq worldserver.exe"
taskkill /F /FI "IMAGENAME eq authserver.exe"
CLS
echo.
echo [- Backing Up Current Core To Tools\PatchBackup\Core -]
xcopy /y /q Server\Core\* Tools\PatchBackup\Core\
echo.
echo [- Backing Up Current World To Tools\PatchBackup\DB -]
Tools\mysqldump.exe --defaults-extra-file=Server/MySQL/my.cnf %world% > Tools\PatchBackup\DB\%world%.sql
echo.
echo [- Backup Restoration Archive With Existing Restoration Files -]
IF EXIST Tools\Work\restore_stygiancore\01_default\db_world\creature.sql. (
rem echo [- Building Backup Restoration Archive To Tools\PatchBackup -]
CD Tools\Work
CALL build_restore_stygiancore.bat
CD ..
CD ..
xcopy /y /q Tools\Work\restore_stygiancore.zip Tools\PatchBackup\
) ELSE (
IF EXIST Tools\Work\restore_stygiancore.zip. (
echo.
echo [- WARNING!!! RESTORATION DATA CORRUPT! CAN'T REBUILD! COPYING EXISTING ARCHIVE! -]
xcopy /y /q Tools\Work\restore_stygiancore.zip Tools\PatchBackup\
) ELSE (
echo [- WARNING!!! RESTORATION ARCHIVE AND DATA MISSING! CAN'T BACKUP! -]
)
)
echo.
echo [- Patching Core -]
xcopy /y /q Tools\Temp\PatchCore\Server\Core\*.dll Server\Core\
xcopy /y /q Tools\Temp\PatchCore\Server\Core\*.exe Server\Core\
xcopy /y /q Tools\Temp\PatchCore\Server\Core\*.dist Server\Core\
REM IF a world update exists...
IF EXIST Tools\Temp\PatchCore\DB\stygiancore_worldupdate.sql. (
echo.
echo [- Patching World -]
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "DROP DATABASE %world%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "CREATE DATABASE %world%"
for %%i in (Tools\Temp\PatchCore\*sql) do if %%i neq Tools\Temp\PatchCore\*sql Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%world% < %%i
) ELSE (
echo.
echo [- No World Updates Found -]
)
echo.
echo [- Pulling Restoration Archive Data -]
xcopy /y /s /q Tools\Work\restore_stygiancore\*.* Tools\Temp\PatchCore\restore_stygiancore\
echo [- Updating db_auth -]
rem xcopy /y /q Tools\Temp\PatchCore\Tools\Work\restore_stygiancore\db_auth\*.sql Tools\Temp\PatchCore\restore_stygiancore\03_custom\db_auth\
echo [- Updating db_character -]
rem xcopy /y /q Tools\Temp\PatchCore\Tools\Work\restore_stygiancore\db_characters\*.sql Tools\Temp\PatchCore\restore_stygiancore\03_custom\db_characters\
echo [- Updating db_world -]
xcopy /y /q Tools\Temp\PatchCore\Tools\Work\restore_stygiancore\03_custom\db_world\*.sql Tools\Temp\PatchCore\restore_stygiancore\03_custom\db_world\
echo [- Updating 04_conf -]
xcopy /y /q Tools\Temp\PatchCore\Tools\Work\restore_stygiancore\04_conf\*.dist Tools\Temp\PatchCore\restore_stygiancore\04_conf\
echo [- Pushing Restoration Archive Data -]
xcopy /y /s /q Tools\Temp\PatchCore\restore_stygiancore\*.* Tools\Work\restore_stygiancore\
echo.
echo [- Cleaning Up -]
RD /S /Q "Tools\Temp\PatchCore"
echo.
echo [- Patch Complete -]
echo.
pause
goto menu
REM ########################################################################################
REM [- 1 -]
REM ########################################################################################
:export_world
cls
echo.
echo ###] .\TOOLS\TEMP DIRECTORY CONTENTS [##################################################
dir Tools\Temp /N /ON
echo.
echo ########################################################################################
echo.
set /P menu=Are you sure want to EXPORT the current WORLD database? [Y/N]:
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto export_world_go)
:export_world_go
cls
echo.
if exist Tools\Temp\%world%.sql (
echo [- Archiving Existing World -]
ren "Tools\Temp\%world%.sql" "%world%-%date:~10,4%%date:~4,2%%date:~7,2%-%time:~0,2%%time:~3,2%.sql"
) else (
REM echo [- *** No World Backup Found *** -]
)
echo [- Exporting World -]
Tools\mysqldump.exe --defaults-extra-file=Server/MySQL/my.cnf %world% > Tools\Temp\%world%.sql
echo.
pause
goto menu
REM ########################################################################################
REM [- 2 -]
REM ########################################################################################
:export_accounts
cls
echo.
echo ###] .\TOOLS\TEMP DIRECTORY CONTENTS [##################################################
dir Tools\Temp /N /ON
echo.
echo ########################################################################################
echo.
set /P menu=Are you sure want to EXPORT ACCOUNTS/CHARACTERS? [Y/N]:
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto export_accounts_go)
:export_accounts_go
cls
echo.
if exist Tools\Temp\%login%.sql (
echo [- Archiving Existing Accounts -]
ren "Tools\Temp\%login%.sql" "%login%-%date:~10,4%%date:~4,2%%date:~7,2%-%time:~0,2%%time:~3,2%.sql"
) else (
REM echo [- *** No Account Backup Found *** -]
)
echo [- Exporting Accounts -]
Tools\mysqldump.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 %login% > Tools\Temp\%login%.sql
if exist Tools\Temp\%characters%.sql (
echo.
echo [- Archiving Existing Characters -]
ren "Tools\Temp\%characters%.sql" "%characters%-%date:~10,4%%date:~4,2%%date:~7,2%-%time:~0,2%%time:~3,2%.sql"
) else (
REM echo [- *** No Character Backup Found *** -]
)
echo [- Exporting Characters -]
Tools\mysqldump.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 %characters% > Tools\Temp\%characters%.sql
echo.
pause
goto menu
REM ########################################################################################
REM [- 3 -]
REM ########################################################################################
:import_world
cls
echo.
set /P menu=Are you sure want to IMPORT THE WORLD DATABASE? [Y/N]
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto do_import_saved_world)
:do_import_saved_world
REM Shutdown Server Processes
taskkill /F /FI "IMAGENAME eq worldserver.exe"
taskkill /F /FI "IMAGENAME eq authserver.exe"
CLS
echo.
if exist Tools\Temp\%world%.sql. (
echo [- Importing World from Tools\Temp\%world%.sql -]
Tools\mysql --defaults-extra-file=Server\MySQL\my.cnf -e "DROP DATABASE %world%"
Tools\mysql --defaults-extra-file=Server\MySQL\my.cnf -e "CREATE DATABASE %world%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 --database=%world% < Tools\Temp\%world%.sql
echo.
echo [- *** WORLD IMPORT COMPLETE - RESTART SERVER *** -]
echo.
pause
goto menu
) else (
echo [- *** ERROR - No World Backup Found *** -]
echo.
pause
goto menu
)
REM ########################################################################################
REM [- 4 -]
REM ########################################################################################
:import_accounts
cls
echo.
set /P menu=Are you sure want to RESTORE THE ACCOUNT/CHARACTERS DATABASE? [Y/N]
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto do_import_saved_accounts)
:do_import_saved_accounts
REM Shutdown Server Processes
taskkill /F /FI "IMAGENAME eq worldserver.exe"
taskkill /F /FI "IMAGENAME eq authserver.exe"
CLS
echo.
if exist Tools\Temp\%characters%.sql. (
echo [- Restoring Default Accounts -]
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "DROP DATABASE %login%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "CREATE DATABASE %login%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 --database=%login% < Tools\Temp\%login%.sql
echo [- Restoring Default Characters -]
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "DROP DATABASE %characters%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "CREATE DATABASE %characters%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 --database=%characters% < Tools\Temp\%characters%.sql
echo.
echo [- *** ACCOUNT/CHARACTER IMPORT COMPLETE - RESTART SERVER *** -]
echo.
pause
goto menu
) else (
echo [- *** ERROR - No Account/Character Backup Found *** -]
echo.
pause
goto menu
)
REM ########################################################################################
REM [- 5 -]
REM ########################################################################################
:restore_default_sc
cls
REM Check for restoration archive
IF NOT EXIST %CD%\Tools\Work\restore_stygiancore.zip. (
echo [- *** No Default Restoration Archive Found *** -]
echo.
pause
goto menu
)
echo.
echo [-------------------]
echo [- !!! WARNING !!! -]
echo [-------------------]
echo.
echo This process will RESTORE the StygianCore databases which will
echo overwrite existing Accounts, Characters, and World database files
echo and the contents of any temporary restoration data in the Tools folder.
echo It will first build a new restoration archive from the Tools\Work
echo folder and then use it to restore the server.
echo.
echo.
set /P menu=Are you sure want to RESTORE STYGIANCORE DEFAULT DATABASES? [Y/N]:
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto restore_sc_prep)
:restore_sc_prep
CLS
REM Shutdown Server Processes
taskkill /F /FI "IMAGENAME eq worldserver.exe"
taskkill /F /FI "IMAGENAME eq authserver.exe"
RD /S /Q "Tools\Temp\restore_stygiancore"
CLS
CD Tools\Work
CALL build_restore_stygiancore.bat
CD ..
CD ..
Tools\7Z x -y Tools\Work\restore_stygiancore.zip -o.\Tools\Temp\
echo.
goto restore_default_sc
:restore_default_sc
echo.
echo [- Restoring Default Accounts -]
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "DROP DATABASE %login%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "CREATE DATABASE %login%"
for %%i in (Tools\Temp\restore_stygiancore\01_default\db_auth\*sql) do if %%i neq Tools\Temp\restore_stygiancore\01_default\db_auth\*sql Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%login% < %%i
echo [- Restoring Default Characters -]
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "DROP DATABASE %characters%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "CREATE DATABASE %characters%"
for %%i in (Tools\Temp\restore_stygiancore\01_default\db_characters\*sql) do if %%i neq Tools\Temp\restore_stygiancore\01_default\db_characters\*sql Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%characters% < %%i
echo [- Restoring Default World -]
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "DROP DATABASE %world%"
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf -e "CREATE DATABASE %world%"
for %%i in (Tools\Temp\restore_stygiancore\01_default\db_world\*sql) do if %%i neq Tools\Temp\restore_stygiancore\01_default\db_world\*sql Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%world% < %%i
REM -- UPDATES --
echo [- Restoring Updates Accounts -]
for %%i in (Tools\Temp\restore_stygiancore\02_update\db_auth\*sql) do if %%i neq .\Tools\Temp\restore_stygiancore\02_update\db_auth\*sql .\Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%login% < %%i
echo [- Restoring Updates Characters -]
for %%i in (Tools\Temp\restore_stygiancore\02_update\db_characters\*sql) do if %%i neq .\Tools\Temp\restore_stygiancore\02_update\db_characters\*sql .\Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%characters% < %%i
echo [- Restoring Updates World -]
for %%i in (Tools\Temp\restore_stygiancore\02_update\db_world\*sql) do if %%i neq .\Tools\Temp\restore_stygiancore\02_update\db_world\*sql .\Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%world% < %%i
REM -- CUSTOM --
echo [- Restoring Custom Accounts -]
for %%i in (Tools\Temp\restore_stygiancore\03_custom\db_auth\*sql) do if %%i neq .\Tools\Temp\restore_stygiancore\03_custom\db_auth\*sql .\Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%login% < %%i
echo [- Restoring Custom Characters -]
for %%i in (Tools\Temp\restore_stygiancore\03_custom\db_characters\*sql) do if %%i neq .\Tools\Temp\restore_stygiancore\03_custom\db_characters\*sql .\Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%characters% < %%i
echo [- Restoring Custom World -]
for %%i in (Tools\Temp\restore_stygiancore\03_custom\db_world\*sql) do if %%i neq .\Tools\Temp\restore_stygiancore\03_custom\db_world\*sql .\Tools\mysql --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 -f --database=%world% < %%i
echo.
echo [- *** SERVER RESTORE COMPLETE - RESTART SERVER *** -]
echo.
pause
goto start_server
pause
goto menu
REM ########################################################################################
REM [- 6 -]
REM ########################################################################################
:start_server
REM Shutdown Server Processes
taskkill /F /FI "IMAGENAME eq worldserver.exe"
taskkill /F /FI "IMAGENAME eq authserver.exe"
CLS
START start_auth.bat
START start_world.bat
goto menu
REM ########################################################################################
REM [- 7-]
REM ########################################################################################
:model_tools
CLS
CLS
echo.
echo [-------------------]
echo [- # CORE PATCH # -]
echo [-------------------]
echo.
echo ########################################################################################
echo This process will randomize the NPC models on GM Island and set
echo the models and range for the models on Programmer Isle. This process
echo is useful for previewing many different NPC models at once in addition
echo to changing things up a bit on GM Island.
echo.
echo ** WARNING: This process will stop and restart the Auth and Worldserver **
echo ########################################################################################
echo.
set /P menu=Are you sure want to Randomize NPC Models? [Y/N]:
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto gorandom)
:gorandom
REM Shutdown Server Processes
taskkill /F /FI "IMAGENAME eq worldserver.exe"
taskkill /F /FI "IMAGENAME eq authserver.exe"
cls
echo.
echo [- Set Model Mall Parameters -]
echo.
set /P modelmax=Max Models (Default: 640) [%modelmax%]:
set /P modelstart=Start Model (Range: 13 .. 37,254) [%modelstart%]:
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 --database=%world% --execute="CALL UpdateModelRange(%modelmax%, %modelstart%)"
echo.
echo [- Generating Model Mall -]
echo.
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 --database=%world% --execute="CALL ModelMall()"
echo [- Randomizing GM Island NPC Models -]
echo.
Tools\mysql.exe --defaults-extra-file=Server/MySQL/my.cnf --default-character-set=utf8 --database=%world% < Tools\Work\restore_stygiancore\03_custom\db_world\npc_gm_island_mall_rand.sql
echo [- NPC Models Updated :: DELETE THE WOW CLIENT CACHE! -]
echo.
pause
rem start start_auth.bat
rem start start_world.bat
goto menu
REM ########################################################################################
REM [- 8 -]
REM ########################################################################################
:deploy
start start_deploy.bat
goto menu
REM ########################################################################################
REM [- 9 -]
REM ########################################################################################
REM :setup

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/xfwg-StygianCore.git
git@api.gitlife.ru:oschina-mirror/xfwg-StygianCore.git
oschina-mirror
xfwg-StygianCore
xfwg-StygianCore
master