-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_win32.bat
50 lines (47 loc) · 1.45 KB
/
start_win32.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
@echo off
title Toontown House: Classic CLI Launcher
:menu
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What do you want to do!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo.
echo #1 - Run Toontown House: Classic
echo #2 - Exit
echo.
choice /C:123 /n /m "Selection: "%1
if errorlevel ==2 EXIT /B
if errorlevel ==1 goto run
:run
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Starting Server!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
cd scripts
echo Launching the Blob Server...
START server_blob_win32.bat
echo Launching the Server...
START server_start_win32.bat
cd ..
goto game
:game
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Username [!] This does get stored in your source code so beware!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
set /P USER="Username: "
if not exist "dependencies/server/data/blobs/%USER%.blob" (
echo Creating user: %USER%...
echo. 2>"dependencies/server/data/blobs/%USER%.blob"
)
if not exist "dependencies/server/data/toons" (
echo Creating 'toons' directory...
mkdir "dependencies/server/data/toons"
)
if not exist "user/logs" (
mkdir "user/logs"
)
:start
"dependencies/panda/python/python" main.py -svaddr localhost -l en -u %USER% -d
pause
goto start