-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathLauncher.bat
1132 lines (1029 loc) · 41.5 KB
/
Launcher.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@echo off
SET NAME=SingleCore server launcher
TITLE %NAME%
COLOR 0A
set mod=%1
set mainfolder=%CD%
set gameversion=26972
REM --- Settings ---
set dbc_maps=dbc_gt_maps_cameras.zip
set mmaps=mmaps.rar
set vmaps=vmaps.rar
set host=127.0.0.1
set port=3310
set user=root
set pass=123456
set characters=characters
set world=world
set hotfixes=hotfixes
set login=realmd
set website=blizzcms
set worldfile=SPP_735.11_world.sql
set hotfixesfile=SPP_735.11_hotfix.sql
set world_clean=world_clean
set hotfixes_clean=hotfixes_clean
REM --- Settings ---
:start_database
mkdir "%mainfolder%\Server\Data"
if not exist "%mainfolder%\Server\Data\maps" goto update_dbc_maps
mkdir "%mainfolder%\Server\Data\dbc"
if not exist "%mainfolder%\Server\Data\dbc\deDE.7z" goto install_deDE
if not exist "%mainfolder%\Server\Data\dbc\enUS.7z" goto install_enUS
if not exist "%mainfolder%\Server\Data\dbc\esES.7z" goto install_esES
if not exist "%mainfolder%\Server\Data\dbc\esMX.7z" goto install_esMX
if not exist "%mainfolder%\Server\Data\dbc\frFR.7z" goto install_frFR
if not exist "%mainfolder%\Server\Data\dbc\itIT.7z" goto install_itIT
if not exist "%mainfolder%\Server\Data\dbc\koKR.7z" goto install_koKR
if not exist "%mainfolder%\Server\Data\dbc\ptBR.7z" goto install_ptBR
if not exist "%mainfolder%\Server\Data\dbc\ruRU.7z" goto install_ruRU
if not exist "%mainfolder%\Server\Data\dbc\zhCN.7z" goto install_zhCN
if not exist "%mainfolder%\Server\Data\dbc\zhTW.7z" goto install_zhTW
if not exist "%mainfolder%\Saves\autosave" mkdir "%mainfolder%\Saves\autosave"
IF NOT EXIST "%mainfolder%\autosave.on" (
IF NOT EXIST "%mainfolder%\autosave.off" (
echo autosave > "%mainfolder%\autosave.on"
)
)
IF NOT EXIST "%mainfolder%\Realms\1\serverlanguage.txt" echo English> "%mainfolder%\Realms\1\serverlanguage.txt"
del "%mainfolder%\Server\Tools\server_database.bat"
del "%mainfolder%\Server\Tools\server_web.bat"
del "%mainfolder%\Server\Tools\start.bat"
cls
echo Starting the launcher...
del /s "%mainfolder%\sql\custom\world\2017_01_01_01_artifact_weapon_vendor.sql" >nul 2>&1
del /s "%mainfolder%\sql\custom\world\2017_03_10_item_enchatment_random_tiers.sql" >nul 2>&1
if exist %mainfolder%\Settings\world.conf rmdir /S /Q %mainfolder%\Settings
del /s "%mainfolder%\testbranch.on" >nul 2>&1
del /s "%mainfolder%\testbranch.off" >nul 2>&1
cls
echo Checking database files...
echo.
ping -n 5 127.0.0.1>nul
if not exist "%mainfolder%\Server\Database\start.bat" goto database_download
echo.
echo Checking mmap files...
echo.
ping -n 5 127.0.0.1>nul
if not exist "%mainfolder%\Server\Data\mmaps" goto update_mmaps
echo.
echo Checking vmap files...
echo.
ping -n 5 127.0.0.1>nul
if not exist "%mainfolder%\Server\Data\vmaps" goto update_vmaps
echo.
copy "%mainfolder%\Server\Tools\Update.bat" .. /Y
start "" /min "%mainfolder%\Server\Database\start.bat"
goto webserver
:database_download
cls
echo Downloading database server...
echo.
cd "%mainfolder%\Server"
"%mainfolder%\Server\Tools\wget.exe" -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/Database.7z
"%mainfolder%\Server\Tools\7za.exe" e -y -spf Database.7z
del /s "%mainfolder%\Server\Database.7z" >nul 2>&1
cd "%mainfolder%"
goto start_database
:webserver
mkdir "%mainfolder%\Server\Apache24\logs"
cd "%mainfolder%\Server\Apache24"
start "" /min apache_start.bat
cd "%mainfolder%\Server\SPP_Hub"
start "" /min spp_hub.bat
cd "%mainfolder%"
if exist "%mainfolder%\%worldfile%" goto check_node_modules
goto reset_world
:check_node_modules
if exist "%mainfolder%\Server\SPP_Hub\node_modules\yallist\package.json" goto menu
cls
echo.
echo Extracting NodeJS modules for WorldToDiscord server...
echo.
cd "%mainfolder%\Server\SPP_Hub"
"%mainfolder%\Server\Tools\7za.exe" x -y "%mainfolder%\Server\SPP_Hub\node_modules.7z"
cd "%mainfolder%"
goto start_database
:menu
echo.
cls
echo #######################################################
echo # Single Player Project - AshamaneCore #
echo # https://www.patreon.com/conan513 #
echo #######################################################
echo.
echo 0 - Service Menu (you can fix problems here)
echo.
echo 1 - Start servers (Win32)
echo 2 - Start servers (Win64)
echo 3 - Start and setup custom servers
echo.
echo 4 - Create/Manage Accounts (Website)
echo 5 - Character save manager
echo 6 - Mod manager [EXPERIMENTAL]
echo 7 - Patched exe files for the game (7.3.5.%gameversion%)
echo.
echo 8 - Report issues
echo.
echo X - Shutdown all servers
echo.
set /P menu=Enter a number:
if "%menu%"=="0" (goto service_menu)
if "%menu%"=="1" (goto quick_start_servers_x86)
if "%menu%"=="2" (goto quick_start_servers_x64)
if "%menu%"=="3" (goto realm_menu)
if "%menu%"=="4" (goto account_tool)
if "%menu%"=="5" (goto save_menu)
if "%menu%"=="6" (goto modmanager_menu)
if "%menu%"=="7" (explorer.exe %mainfolder%\Addons\Patched_Exe_%gameversion%)
if "%menu%"=="8" (goto report_issue)
if "%menu%"=="x" (goto shutdown_servers)
if "%menu%"=="" (goto menu)
goto menu
:report_issue
cls
echo Please check the issue on official AshamaneCore server, before report it.
echo.
echo http://www.ashamane.com/
echo.
pause
start https://github.com/wormogo/wow_fixes_for_SPP/issues
goto menu
:quick_start_servers_x86
cls
set realmslot=1
set serverstartoption=1
set /p realmname1=<"%mainfolder%\Realms\%realmslot%\name.txt
set /p realmlanguage1=<"%mainfolder%\Realms\%realmslot%\serverlanguage.txt"
echo Starting the first realm...
echo.
echo Name: %realmname1%
echo Language: %realmlanguage1%
echo.
ping -n 5 127.0.0.1>nul
goto check_autosave_start
:quick_start_servers_x64
cls
set realmslot=1
set serverstartoption=2
set /p realmname1=<"%mainfolder%\Realms\%realmslot%\name.txt
set /p realmlanguage1=<"%mainfolder%\Realms\%realmslot%\serverlanguage.txt"
echo Starting the first realm...
echo.
echo Name: %realmname1%
echo Language: %realmlanguage1%
echo.
ping -n 5 127.0.0.1>nul
goto check_autosave_start
:realm_menu
cls
echo.
if exist "%mainfolder%\Realms\1\name.txt" set /p realmname1=<"%mainfolder%\Realms\1\name.txt"
if exist "%mainfolder%\Realms\2\name.txt" set /p realmname2=<"%mainfolder%\Realms\2\name.txt"
if exist "%mainfolder%\Realms\3\name.txt" set /p realmname3=<"%mainfolder%\Realms\3\name.txt"
if exist "%mainfolder%\Realms\4\name.txt" set /p realmname4=<"%mainfolder%\Realms\4\name.txt"
if exist "%mainfolder%\Realms\5\name.txt" set /p realmname5=<"%mainfolder%\Realms\5\name.txt"
if exist "%mainfolder%\Realms\6\name.txt" set /p realmname6=<"%mainfolder%\Realms\6\name.txt"
if exist "%mainfolder%\Realms\7\name.txt" set /p realmname7=<"%mainfolder%\Realms\7\name.txt"
if exist "%mainfolder%\Realms\8\name.txt" set /p realmname8=<"%mainfolder%\Realms\8\name.txt"
if exist "%mainfolder%\Realms\9\name.txt" set /p realmname9=<"%mainfolder%\Realms\9\name.txt"
if exist "%mainfolder%\Realms\1\serverlanguage.txt" set /p realmlanguage1=<"%mainfolder%\Realms\1\serverlanguage.txt"
if exist "%mainfolder%\Realms\2\serverlanguage.txt" set /p realmlanguage2=<"%mainfolder%\Realms\2\serverlanguage.txt"
if exist "%mainfolder%\Realms\3\serverlanguage.txt" set /p realmlanguage3=<"%mainfolder%\Realms\3\serverlanguage.txt"
if exist "%mainfolder%\Realms\4\serverlanguage.txt" set /p realmlanguage4=<"%mainfolder%\Realms\4\serverlanguage.txt"
if exist "%mainfolder%\Realms\5\serverlanguage.txt" set /p realmlanguage5=<"%mainfolder%\Realms\5\serverlanguage.txt"
if exist "%mainfolder%\Realms\6\serverlanguage.txt" set /p realmlanguage6=<"%mainfolder%\Realms\6\serverlanguage.txt"
if exist "%mainfolder%\Realms\7\serverlanguage.txt" set /p realmlanguage7=<"%mainfolder%\Realms\7\serverlanguage.txt"
if exist "%mainfolder%\Realms\8\serverlanguage.txt" set /p realmlanguage8=<"%mainfolder%\Realms\8\serverlanguage.txt"
if exist "%mainfolder%\Realms\9\serverlanguage.txt" set /p realmlanguage9=<"%mainfolder%\Realms\9\serverlanguage.txt"
echo Single Player Project realm starter menu.
echo Select a slot where you want to save your characters.
echo.
echo -----------------------
echo Realm 1 - [%realmname1%] [%realmlanguage1%]
echo Realm 2 - [%realmname2%] [%realmlanguage2%]
echo Realm 3 - [%realmname3%] [%realmlanguage3%]
echo Realm 4 - [%realmname4%] [%realmlanguage4%]
echo Realm 5 - [%realmname5%] [%realmlanguage5%]
echo Realm 6 - [%realmname6%] [%realmlanguage6%]
echo Realm 7 - [%realmname7%] [%realmlanguage7%]
echo Realm 8 - [%realmname8%] [%realmlanguage8%]
echo Realm 9 - [%realmname9%] [%realmlanguage9%]
echo -----------------------
echo.
echo 1 - Start Server
echo.
echo 2 - Add/modify realm
echo 3 - Delete realm
echo.
echo 4 - Open realm settings
echo.
echo 0 - Back to main menu
echo.
set /P realmmenu=Select your option:
if "%realmmenu%"=="1" (goto realm_choose)
if "%realmmenu%"=="2" (goto realm_choose)
if "%realmmenu%"=="3" (goto realm_choose)
if "%realmmenu%"=="4" (goto realm_choose)
if "%realmmenu%"=="5" (explorer.exe Saves)
if "%realmmenu%"=="0" (goto menu)
if "%realmmenu%"=="" (goto realm_menu)
goto realm_menu
:realm_choose
echo.
set /P realmslot=Select a realm slot:
if "%realmslot%"=="1" (set realmslot=1)
if "%realmslot%"=="2" (set realmslot=2)
if "%realmslot%"=="3" (set realmslot=3)
if "%realmslot%"=="4" (set realmslot=4)
if "%realmslot%"=="5" (set realmslot=5)
if "%realmslot%"=="6" (set realmslot=6)
if "%realmslot%"=="7" (set realmslot=7)
if "%realmslot%"=="8" (set realmslot=8)
if "%realmslot%"=="9" (set realmslot=9)
if "%realmslot%"=="1" (set realmport=8085)
if "%realmslot%"=="2" (set realmport=8185)
if "%realmslot%"=="3" (set realmport=8285)
if "%realmslot%"=="4" (set realmport=8385)
if "%realmslot%"=="5" (set realmport=8485)
if "%realmslot%"=="6" (set realmport=8585)
if "%realmslot%"=="7" (set realmport=8685)
if "%realmslot%"=="8" (set realmport=8785)
if "%realmslot%"=="9" (set realmport=8885)
if "%realmslot%"=="" (goto realm_menu)
if "%realmmenu%"=="1" (goto servers_start)
if "%realmmenu%"=="2" (goto realm_add)
if "%realmmenu%"=="3" (goto realm_remove)
if "%realmmenu%"=="4" (start notepad.exe "%mainfolder%\Realms\%realmslot%\Settings\world.conf")
goto realm_menu
:realm_add
echo.
set /P realmname=Enter the realm name:
set /P realmaddress=Enter the realm address (127.0.0.1 for offline play):
if "%realmaddress%"=="" (set realmaddress=127.0.0.1)
echo.
echo 0 - (English)
echo 1 - (Korean)
echo 2 - (French)
echo 3 - (German)
echo 4 - (Chinese)
echo 5 - (Taiwanese)
echo 6 - (Spanish)
echo 7 - (Spanish Mexico)
echo 8 - (Russian)
echo 9 - (none)
echo 10 - (ptBR)
echo 11 - (itIT)
echo.
set /P serverlanguageselect=Select the realm language:
if "%serverlanguageselect%"=="" (set serverlanguageselect=0)
echo.
echo You can change the website port.
echo In default I use 8099 to avoid the isssue if the port 80 is already in use.
echo Leave this line empty if you want to use the standard port 80.
echo.
set /P websiteport=Enter the website port number (8099 is the default):
set websiteportwithdot=:%websiteport%
set httpport=%websiteport%
if "%websiteport%"=="" (set websiteportwithdot=)
if "%websiteport%"=="" (set httpport=80)
echo.
echo Changing Realm %realmslot% name to %realmname%.
echo.
echo %realmname%>"%mainfolder%\Realms\%realmslot%\name.txt"
echo.
echo Changing the realm server IP address to %realmaddress% in login.conf.
echo.
del /s "%mainfolder%\Realms\%realmslot%\Settings\login.conf"
copy "%mainfolder%\Realms\login.conf" "%mainfolder%\Realms\%realmslot%\Settings\login.conf"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\login.conf" LoginREST.ExternalAddress=127.0.0.1 LoginREST.ExternalAddress=%realmaddress%
echo.
echo Changing the website address to %realmaddress%
echo.
del /s "%mainfolder%\Website\application\config\config.php"
copy "%mainfolder%\Server\Tools\config.php" "%mainfolder%\Website\application\config\config.php"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Website\application\config\config.php" http://127.0.0.1:8099/ http://%realmaddress%%websiteportwithdot%/
echo.
echo Configure the webserver...
taskkill /f /im spp-httpd.exe
ping -n 5 127.0.0.1>nul
echo.
echo Changing the webserver address to %realmaddress%
echo.
del /s "%mainfolder%\Server\Apache24\conf\httpd.conf"
copy "%mainfolder%\Server\Tools\httpd.conf" "%mainfolder%\Server\Apache24\conf\httpd.conf"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Server\Apache24\conf\httpd.conf" "Listen 8099" "Listen %httpport%"
del /s "%mainfolder%\Server\Apache24\apache_start.bat"
copy "%mainfolder%\Server\Tools\apache_start.bat" "%mainfolder%\Server\Apache24\apache_start.bat"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Server\Apache24\apache_start.bat" http://127.0.0.1:8099 http://%realmaddress%:%httpport%
cd "%mainfolder%\Server\Apache24"
start "" /min apache_start.bat
cd "%mainfolder%"
echo.
echo Changing the realm server IP address to %realmaddress% in database.
echo.
echo REPLACE INTO `realmlist` VALUES (%realmslot%,'%realmname%','%realmaddress%','127.0.0.1','255.255.255.0',%realmport%,0,0,1,0,0,%gameversion%,2,1); > "%mainfolder%\Realms\%realmslot%\realmlist.sql"
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%login% < "%mainfolder%\Realms\%realmslot%\realmlist.sql"
set realmname%realmslot%=%realmname%
echo.
echo.
echo Changing server language to %serverlanguageselect% in world.conf.
echo.
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 0" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 1" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 2" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 3" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 4" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 5" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 6" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 7" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 8" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 9" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 10" "DBC.Locale = %serverlanguageselect%"
"%mainfolder%\Server\tools\fart.exe" -r -c -- "%mainfolder%\Realms\%realmslot%\Settings\world.conf" "DBC.Locale = 11" "DBC.Locale = %serverlanguageselect%"
if "%serverlanguageselect%"=="0" (echo English> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="1" (echo Korean> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="2" (echo French> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="3" (echo German> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="4" (echo Chinese> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="5" (echo Taiwanese> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="6" (echo Spanish> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="7" (echo Spanish Mexico> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="8" (echo Russian> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="9" (echo none> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="10" (echo ptBR> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
if "%serverlanguageselect%"=="11" (echo itIT> "%mainfolder%\Realms\%realmslot%\serverlanguage.txt")
echo.
echo %realmname% (%realmaddress%) added to the realm list.
pause
goto realm_menu
:realm_remove
echo.
del /s "%mainfolder%\Realms\%realmslot%\name.txt"
del /s "%mainfolder%\Realms\%realmslot%\serverlanguage.txt"
del /s "%mainfolder%\Realms\%realmslot%\Settings\login.conf"
del /s "%mainfolder%\Realms\%realmslot%\Settings\realmlist.sql"
copy "%mainfolder%\Realms\login.conf" "%mainfolder%\Realms\%realmslot%\Settings\login.conf"
echo DELETE FROM `realmlist` WHERE `ID` IN (%realmslot%); > "%mainfolder%\Realms\%realmslot%\realmlist.sql"
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%login% < "%mainfolder%\Realms\%realmslot%\realmlist.sql"
set realmname%realmslot%=
echo.
goto realm_menu
:check_autosave_start
if exist "%mainfolder%\autosave.on" goto autosave_start
if "%serverstartoption%"=="1" (goto server_x86)
if "%serverstartoption%"=="2" (goto server_x64)
goto menu
:autosave_start
cls
set saveslot=autosave
echo.
echo ###################
echo # Autosave is on! #
echo ###################
echo.
echo Clearing ahbot's auctions from database...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\sql\clear_auction.sql"
echo Done.
echo.
echo Exporting accounts...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %login% > "%mainfolder%\Saves\%saveslot%\%login%.sql"
echo Done!
echo.
echo Exporting characters...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %characters% > "%mainfolder%\Saves\%saveslot%\%characters%.sql"
echo Done!
echo.
echo Exporting website data...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %website% > "%mainfolder%\Saves\%saveslot%\%website%.sql"
echo Done!
if "%serverstartoption%"=="1" (goto server_x86)
if "%serverstartoption%"=="2" (goto server_x64)
:servers_start
cls
cd "%mainfolder%\Realms\%realmslot%
echo.
echo Select your architecture.
echo Win32 better for low-end pc or laptops.
echo.
echo 1 - Win32
echo 2 - Win64
echo.
set /P serverstartoption=Select your option:
goto check_autosave_start
:server_x86
echo.
echo Clearing ahbot's auctions from database...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\sql\clear_auction.sql"
echo Done.
echo.
ping -n 5 127.0.0.1>nul
cd "%mainfolder%\Realms\%realmslot%"
start ..\..\Server\Bin\bnetserver.exe
Start ..\..\Server\Bin\worldserver.exe
REM start Server\Tools\server_check.bat"
goto checking_worldserver_startup
:server_x64
echo.
cd "%mainfolder%\Realms\%realmslot%"
echo Clearing ahbot's auctions from database...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\sql\clear_auction.sql"
echo Done.
echo.
ping -n 5 127.0.0.1>nul
start ..\..\Server\Bin64\bnetserver.exe
Start ..\..\Server\Bin64\worldserver.exe
REM start Server\Tools\server_check.bat"
goto checking_worldserver_startup
:checking_worldserver_startup
echo.
echo Checking the worldserver status..
ping -n 10 127.0.0.1>nul
tasklist /FI "IMAGENAME eq worldserver.exe" 2>NUL | find /I /N "worldserver.exe">NUL
if "%ERRORLEVEL%"=="0" echo Check pass && goto menu
if "%ERRORLEVEL%"=="1" goto checking_worldserver_fail
:checking_worldserver_fail
echo.
echo Looks like the worldserver can't start up.
echo We recommend to reset your world database to fix this issue.
echo Want to do this now?
echo.
echo 1 - Reset world database
echo 2 - Back to menu
echo.
set /P savemenu=Select a number:
if "%savemenu%"=="1" (goto reset_world)
if "%savemenu%"=="2" (goto menu)
:save_menu
cls
if exist "%mainfolder%\autosave.on" set autosave=ON
if exist "%mainfolder%\autosave.off" set autosave=OFF
if not exist "%mainfolder%\Saves" mkdir "%mainfolder%\Saves"
if not exist "%mainfolder%\Saves\1" mkdir "%mainfolder%\Saves\1"
if not exist "%mainfolder%\Saves\2" mkdir "%mainfolder%\Saves\2"
if not exist "%mainfolder%\Saves\3" mkdir "%mainfolder%\Saves\3"
if not exist "%mainfolder%\Saves\4" mkdir "%mainfolder%\Saves\4"
if not exist "%mainfolder%\Saves\5" mkdir "%mainfolder%\Saves\5"
if not exist "%mainfolder%\Saves\6" mkdir "%mainfolder%\Saves\6"
if not exist "%mainfolder%\Saves\7" mkdir "%mainfolder%\Saves\7"
if not exist "%mainfolder%\Saves\8" mkdir "%mainfolder%\Saves\8"
if not exist "%mainfolder%\Saves\9" mkdir "%mainfolder%\Saves\9"
cls
echo.
set customname1=Empty slot
set customname2=Empty slot
set customname3=Empty slot
set customname4=Empty slot
set customname5=Empty slot
set customname6=Empty slot
set customname7=Empty slot
set customname8=Empty slot
set customname9=Empty slot
if exist "%mainfolder%\Saves\1\name.txt" set /p customname1=<"%mainfolder%\Saves\1\name.txt"
if exist "%mainfolder%\Saves\2\name.txt" set /p customname2=<"%mainfolder%\Saves\2\name.txt"
if exist "%mainfolder%\Saves\3\name.txt" set /p customname3=<"%mainfolder%\Saves\3\name.txt"
if exist "%mainfolder%\Saves\4\name.txt" set /p customname4=<"%mainfolder%\Saves\4\name.txt"
if exist "%mainfolder%\Saves\5\name.txt" set /p customname5=<"%mainfolder%\Saves\5\name.txt"
if exist "%mainfolder%\Saves\6\name.txt" set /p customname6=<"%mainfolder%\Saves\6\name.txt"
if exist "%mainfolder%\Saves\7\name.txt" set /p customname7=<"%mainfolder%\Saves\7\name.txt"
if exist "%mainfolder%\Saves\8\name.txt" set /p customname8=<"%mainfolder%\Saves\8\name.txt"
if exist "%mainfolder%\Saves\9\name.txt" set /p customname9=<"%mainfolder%\Saves\9\name.txt"
echo Single Player Project save manager.
echo Select a slot where you want to save your characters.
echo.
echo -----------------------
echo Save 1 - [%customname1%]
echo Save 2 - [%customname2%]
echo Save 3 - [%customname3%]
echo Save 4 - [%customname4%]
echo Save 5 - [%customname5%]
echo Save 6 - [%customname6%]
echo Save 7 - [%customname7%]
echo Save 8 - [%customname8%]
echo Save 9 - [%customname9%]
echo Save 10 - [Autosave]
echo -----------------------
echo.
echo 1 - Save
echo 2 - Load
echo 3 - Delete
echo.
echo 4 - Turn autosave on/off [%autosave%]
echo.
echo 5 - Open the Saves folder
echo.
echo 0 - Back to main menu
echo.
set /P savemenu=Select your option:
if "%savemenu%"=="1" (goto saveslot_choose)
if "%savemenu%"=="2" (goto saveslot_choose)
if "%savemenu%"=="3" (goto saveslot_choose)
if "%savemenu%"=="4" (goto autosave_switch)
if "%savemenu%"=="5" (explorer.exe Saves)
if "%savemenu%"=="0" (goto menu)
if "%savemenu%"=="" (goto save_menu)
goto save_menu
echo.
:saveslot_choose
set /P saveslot=Select a save slot:
if "%saveslot%"=="1" (set saveslot=1)
if "%saveslot%"=="2" (set saveslot=2)
if "%saveslot%"=="3" (set saveslot=3)
if "%saveslot%"=="4" (set saveslot=4)
if "%saveslot%"=="5" (set saveslot=5)
if "%saveslot%"=="6" (set saveslot=6)
if "%saveslot%"=="7" (set saveslot=7)
if "%saveslot%"=="8" (set saveslot=8)
if "%saveslot%"=="9" (set saveslot=9)
if "%saveslot%"=="10" (set saveslot=autosave)
if "%saveslot%"=="" (goto save_menu)
if "%savemenu%"=="1" (goto export_char_check)
if "%savemenu%"=="2" (goto import_char_check)
if "%savemenu%"=="3" (goto delete_saveslot_check)
:delete_saveslot_check
cls
if exist "%mainfolder%\Saves\%saveslot%\characters.sql" goto delete_saveslot
echo.
echo This slot is empty. You can't delete the nothing...
echo.
pause
goto save_menu
:delete_saveslot
cls
echo.
set /P menu=Are you sure want to clear Save %saveslot% files? (Y/n)
if "%menu%"=="n" (goto menu)
if "%menu%"=="y" (goto delete_saveslot_1)
:delete_saveslot_1
cls
echo.
echo Removing the selected Save %saveslot% files...
echo.
del "%mainfolder%\Saves\%saveslot%\realmd.sql"
del "%mainfolder%\Saves\%saveslot%\characters.sql"
del "%mainfolder%\Saves\%saveslot%\blizzcms.sql"
del "%mainfolder%\Saves\%saveslot%\name.txt"
echo.
echo Save %saveslot% is empty now.
echo.
goto save_menu
:export_char_check
cls
if exist "%mainfolder%\Saves\%saveslot%\characters.sql" goto export_char
goto export_char_1
:export_char
cls
echo.
echo This process overwrite your previous save files!
echo.
set /P menu=Are you sure want to export your characters into this save slot? (Y/n)
if "%menu%"=="n" (goto menu)
if "%menu%"=="y" (goto export_char_1)
:export_char_1
cls
echo.
set /P slotname=Add a name for the selected save slot:
echo %slotname%>"%mainfolder%\Saves\%saveslot%\name.txt"
echo.
echo Clearing ahbot's auctions from database...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\sql\clear_auction.sql"
echo Done.
echo.
echo Exporting accounts...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %login% > "%mainfolder%\Saves\%saveslot%\%login%.sql"
echo Done!
echo.
echo Exporting characters...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %characters% > "%mainfolder%\Saves\%saveslot%\%characters%.sql"
echo Done!
echo.
echo Exporting website data...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %website% > "%mainfolder%\Saves\%saveslot%\%website%.sql"
echo Done!
echo.
echo Every user data exported.
echo The save files available in the Saves folder.
echo.
pause
goto menu
:import_char_check
cls
if exist "%mainfolder%\Saves\%saveslot%\characters.sql" goto import_char
echo.
echo This slot is empty.
echo Please select another slot.
echo.
pause
goto save_menu
:import_char
cls
echo.
echo Please stop all of your servers (except the database server) before continue from here!
echo This process overwrite your current database!
echo.
set /P menu=Are you sure want to import your characters? (Y/n)
if "%menu%"=="n" (goto menu)
if "%menu%"=="y" (goto import_char_1)
:import_char_1
cls
echo.
echo Importing accounts from the selected save file...please wait...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%login% < "%mainfolder%\Saves\%saveslot%\%login%.sql"
echo Done!
echo.
echo Importing characters from the selected save file...please wait...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\Saves\%saveslot%\%characters%.sql"
echo Done!
echo.
echo Importing Website data from the selected save file...please wait...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%website% < "%mainfolder%\Saves\%saveslot%\%website%.sql"
echo Done!
echo.
echo Clearing ahbot's auctions from database...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\sql\clear_auction.sql"
echo Done.
echo.
echo Every user data import completed.
echo.
pause
goto menu
:account_tool
start http://127.0.0.1:8099
ping -n 5 127.0.0.1>nul
goto menu
:ip_changer
start notepad "%mainfolder%\Settings\login.conf"
start notepad "%mainfolder%\Website\application\config\config.php"
start "%mainfolder%\Server\Tools\SingleCoreLanSwitcher.exe"
goto ip_changer_check
:shutdown_servers
cls
taskkill /f /im bnetserver.exe
taskkill /f /im worldserver.exe
taskkill /f /im spp-httpd.exe
taskkill /f /im node.exe
if exist %mainfolder%\autosave.on goto autosave_shutdown
"%mainfolder%\Server\Database\bin\mysqladmin.exe" -u root -p123456 --port=3310 shutdown
goto exit
:autosave_shutdown
set saveslot=autosave
echo.
echo ###################
echo # Autosave is on! #
echo ###################
echo.
echo Clearing ahbot's auctions from database...
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%characters% < "%mainfolder%\sql\clear_auction.sql"
echo Done.
echo.
echo Exporting accounts...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %login% > "%mainfolder%\Saves\%saveslot%\%login%.sql"
echo Done!
echo.
echo Exporting characters...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %characters% > "%mainfolder%\Saves\%saveslot%\%characters%.sql"
echo Done!
echo.
echo Exporting website data...please wait...
"%mainfolder%\Server\Database\bin\mysqldump.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 %website% > "%mainfolder%\Saves\%saveslot%\%website%.sql"
echo Done!
echo.
"%mainfolder%\Server\Database\bin\mysqladmin.exe" -u root -p123456 --port=3310 shutdown
goto exit
:reset_world
cls
cd "%mainfolder%"
echo.
echo World database reset required.
echo Please wait...
echo.
ping -n 30 127.0.0.1>nul
"%mainfolder%\Server\Tools\7za.exe" e -y "%mainfolder%\sql\SPP_Full_DB.7z"
echo.
echo Clear %world% and %hotfixes% database.
echo.
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 < "%mainfolder%\sql\drop_mysql.sql"
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 < "%mainfolder%\sql\create_mysql.sql"
echo.
echo Importing %worldfile% into %world% database.
echo.
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%world% < "%mainfolder%\%worldfile%"
echo.
echo Importing %hotfixesfile% into %hotfixes% database.
echo.
"%mainfolder%\Server\Database\bin\mysql.exe" --defaults-extra-file="%mainfolder%\Server\Database\connection.cnf" --default-character-set=utf8 --database=%hotfixes% < "%mainfolder%\%hotfixesfile%"
echo.
goto menu
:service_menu
cls
echo ################
echo # SERVICE MENU #
echo ################
echo.
echo MySQL settings
echo --------------
echo Host: %host%
echo Port: %port%
echo User: %user%
echo Pass: %pass%
echo --------------
echo.
echo UPDATE DATA FILES FROM ASHAMANECORE REPO
echo http://dl.ashamane.com/7.3.5
echo ----------------------------------------
echo 1 - DBC and Maps (719M)
echo 2 - VMaps (1.9G)
echo 3 - MMaps (1.5G)
echo.
echo 4 - Reset world and hotfix database
echo 5 - Opern worldserver log file
echo 6 - Install vcredists x86 (2005-2017)
echo 7 - Install vcredists x64 (2005-2017)
echo 8 - Clear updates cache and reduce the server size (10-30 minutes)
echo.
echo 0 - Go back to main menu
echo.
set /P menu=Enter a number:
if "%menu%"=="1" (goto update_dbc_maps)
if "%menu%"=="2" (goto update_vmaps)
if "%menu%"=="3" (goto update_mmaps)
if "%menu%"=="4" (goto reset_world)
if "%menu%"=="5" (goto log_file)
if "%menu%"=="6" (goto vcredist_install_x86)
if "%menu%"=="7" (goto vcredist_install_x64)
if "%menu%"=="8" (goto clear_cache)
if "%menu%"=="0" (goto menu)
if "%menu%"=="" (goto menu)
:clear_cache
cls
echo.
echo Clear git caches...
echo.
..\git\cmd\git.exe gc
echo.
goto service_menu
:vcredist_install_x86
cls
echo.
"%mainfolder%\Addons\vcredist\2005 Updated\vcredist_x86.exe" /Q
"%mainfolder%\Addons\vcredist\2008 SP1\vcredist_x86.exe" /qb
"%mainfolder%\Addons\vcredist\2010\vcredist_x86.exe" /passive /norestart
"%mainfolder%\Addons\vcredist\2012 Update 4\vcredist_x86.exe" /passive /norestart
"%mainfolder%\Addons\vcredist\2013\vcredist_x86.exe" /install /passive /norestart
"%mainfolder%\Addons\vcredist\2015 Update 3\vc_redist.x86.exe" /install /passive /norestart
"%mainfolder%\Addons\vcredist\2017\vc_redist.x86.exe" /install /passive /norestart
goto service_menu
:vcredist_install_x64
cls
echo.
"%mainfolder%\Addons\vcredist\2005 Updated\vcredist_x64.exe" /Q
"%mainfolder%\Addons\vcredist\2008 SP1\vcredist_x64.exe" /qb
"%mainfolder%\Addons\vcredist\2010\vcredist_x64.exe" /passive /norestart
"%mainfolder%\Addons\vcredist\2012 Update 4\vcredist_x64.exe" /passive /norestart
"%mainfolder%\Addons\vcredist\2013\vcredist_x64.exe" /install /passive /norestart
"%mainfolder%\Addons\vcredist\2015 Update 3\vc_redist.x64.exe" /install /passive /norestart
"%mainfolder%\Addons\vcredist\2017\vc_redist.x64.exe" /install /passive /norestart
goto service_menu
:update_dbc_maps
cls
cd "%mainfolder%\Server\Data"
..\Tools\wget.exe -N http://dl.ashamane.com/7.3.5/%dbc_maps%
rmdir /S /Q cameras
rmdir /S /Q dbc
rmdir /S /Q gt
rmdir /S /Q maps
..\Tools\7za.exe e -y -spf %dbc_maps%
del %dbc_maps%
rmdir /S /Q dbc
echo.
cd "%mainfolder%"
goto start_database
:install_deDE
cls
set dbclang=deDE.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q deDE
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_enUS
cls
set dbclang=enUS.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q enUS
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_esES
cls
set dbclang=esES.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q esES
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_esMX
cls
set dbclang=esMX.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q esMX
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_frFR
cls
set dbclang=frFR.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q frFR
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_itIT
cls
set dbclang=itIT.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q itIT
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_koKR
cls
set dbclang=koKR.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q koKR
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_ptBR
cls
set dbclang=ptBR.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q ptBR
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_ruRU
cls
set dbclang=ruRU.7z
echo Installing language for the servers...
echo.
cd "%mainfolder%\Server\Data\dbc"
..\..\Tools\wget.exe -N --no-check-certificate https://github.com/conan513/SingleCore_TC/raw/AshamaneCore-dmca/data/%dbclang%
rmdir /S /Q ruRU
..\..\Tools\7za.exe e -y -spf %dbclang%
echo.
cd "%mainfolder%"
goto start_database
:install_zhCN
cls