-
Notifications
You must be signed in to change notification settings - Fork 4
/
start_linux.sh
88 lines (86 loc) · 3.94 KB
/
start_linux.sh
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
#!/bin/sh
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What do you want to do!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo 1 - Run Project Altis
echo
while true; do
read -p "Selection: " sel
case $sel in
[1]* )
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What do you want to launch!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo 1 - Locally Host a Server
echo 2 - Connect to an Existing Server
echo
while true; do
read -p "Selection: " sel2
case $sel2 in
[1]* )
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Starting Localhost!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
cd scripts
echo Launching the AI Server...
xterm -e sh ai-linux.sh &
echo Launching Astron...
xterm -e sh astron_yaml-linux.sh &
echo Launching the Uberdog Server...
xterm -e sh uberdog-linux.sh &
cd ..
export TT_GAMESERVER=127.0.0.1
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Username [!] This does get stored in your source code so beware!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
read -p "Username: " ttUsername
read -p "Password: " ttPassowrd
export TT_PLAYCOOKIE=$ttUsername$ttPassowrd
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Welcome to Project Altis, $ttUsername!
echo The Tooniverse Awaits You!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
while [ true ]
do
/usr/bin/python2 -m toontown.toonbase.ClientStart
read -r -p "Press any key to continue..." key
done
;;
[2]* )
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo What Server are you connecting to!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
read -p "Server IP: " TT_GAMESERVER
TT_GAMESERVER=${TT_GAMESERVER:-"127.0.0.1"}
export TT_GAMESERVER=$TT_GAMESERVER
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Username [!] This does get stored in your source code so beware!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
read -p "Username: " ttUsername
read -p "Password: " ttPassowrd
export TT_PLAYCOOKIE=$ttUsername$ttPassowrd
clear
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Welcome to Project Altis, $ttUsername!
echo The Tooniverse Awaits You!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
while [ true ]
do
/usr/bin/python2 -m toontown.toonbase.ClientStart
read -r -p "Press any key to continue..." key
done
;;
* ) echo "";;
esac
done
;;
* );;
esac
done