-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstart_win32.bat
114 lines (105 loc) · 3.34 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
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
@echo off
title Project Altis CLI Launcher
:menu
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What do you want to do!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo.
echo #1 - Run Project Altis
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 What do you want to launch!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo.
echo #1 - Locally Host a Server
echo #2 - Connect to an Existing Server
echo #3 - Connect to the Official Server
echo #4 - Go Back
echo.
choice /C:1234 /n /m "Selection: "
if errorlevel ==4 goto menu
if errorlevel ==3 goto awsserver
if errorlevel ==2 goto connect
if errorlevel ==1 goto db
:db
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What database do you want to use!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo.
echo #1 - YAML (Recommended)
echo #2 - MongoDB
echo #3 - Go Back
echo.
choice /C:123 /n /m "Selection: "
if errorlevel ==3 goto run
if errorlevel ==2 goto mongo
if errorlevel ==1 goto yaml
:yaml
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Starting Localhost!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
cd scripts
echo Launching Astron...
START astron_yaml-win32.bat
echo Launching the Uberdog Server...
START uberdog-win32.bat
echo Launching the AI Server...
START ai-win32.bat
cd ..
SET TT_GAMESERVER=127.0.0.1
goto game
:mongo
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Starting Localhost!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
cd scripts
echo Launching Mongo...
START mongo-win32.bat
echo Launching Astron...
START astron_mongo-win32.bat
echo Launching the Uberdog Server...
START uberdog-win32.bat
echo Launching the AI Server...
START ai-win32.bat
cd ..
SET TT_GAMESERVER=127.0.0.1
goto game
:connect
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What Server are you connecting to!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
set /P TT_GAMESERVER="Server IP: "
goto game
:awsserver
set TT_GAMESERVER=gs1.projectaltis.com
:game
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Username [!] This does get stored in your source code so beware!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
set /P ttUsername="Username: "
set TT_PLAYCOOKIE=%ttUsername%
set TT_USERNAME=%ttUsername%
set TT_PASSWORD=%ttUsername%
echo.
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Welcome to Project Altis, %ttUsername%!
echo The Tooniverse Awaits You!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
:startgame
title Project Altis Client
"dependencies/panda/python/python.exe" -m toontown.toonbase.ClientStart
PAUSE
goto startgame