[GALLERY]https://www.youtube.com/watch?v=Xn4S-UJvn-8&feature=youtu.be[/GALLERY]
serverinfo
start.sh
HTML Code:
import app
app.ServerName = None
STATE_NONE = '...'
STATE_DICT = {
0 : '....',
1 : 'NORM',
2 : 'BUSY',
3 : 'FULL' }
SERVER1_CHANNEL_DICT = {
1:{'key':11,'name':'CH1 ','ip':'192.168.13.100','tcp_port':31000,'udp_port':31000,'state':STATE_NONE,},
2:{'key':12,'name':'CH2 ','ip':'192.168.13.100','tcp_port':62210,'udp_port':62210,'state':STATE_NONE,},
}
REGION_NAME_DICT = {
0 : 'TAIWAN',
}
REGION_AUTH_SERVER_DICT = {
0 : {
1 : { 'ip':'192.168.13.100', 'port':41001, },
}
}
REGION_DICT = {
0 : {
1 : { 'name' : 'Zoria', 'channel' : SERVER1_CHANNEL_DICT, },
},
}
MARKADDR_DICT = {
10 : { 'ip' : '192.168.13.100', 'tcp_port' : 31000, 'mark' : '10.tga', 'symbol_path' : '10', },
}
TESTADDR = { 'ip' : '192.168.13.100', 'tcp_port' : 50000, 'udp_port' : 50000, }
#DONE
Code:
echo -e "\033[31m Database aciliyor...\033[0m" cd /usr/home/game/channels/g1/db/ rm -rf syserr syslog ./db & sleep 2 clear echo -e "\033[31m \n Girisler aciliyor...\033[0m" cd /usr/home/game/channels/g1/auth/ rm -rf syserr syslog ./auth & sleep 2 clear echo -e "\033[31m \n 1.Kanal aciliyor...\033[0m" cd /usr/home/game/channels/channel1/ch1_1/ ./game & sleep 2 cd /usr/home/game/channels/channel1/ch1_2/ ./game & sleep 2 cd /usr/home/game/channels/channel1/ch1_3/ ./game & sleep 2 cd /usr/home/game/channels/game99/game99_1/ ./game & sleep 2 echo -e "\033[31m \n 1. Kanal loglar temizleniyor...\033[0m" cd /usr/home/game/channels/channel1/ch1_1/ rm -rf game.core syserr syslog udp_packet_info.txt stdout sh.core pid packet_info.txt p2p_packet_info.txt sleep 2 cd /usr/home/game/channels/channel1/ch1_2/ rm -rf game.core syserr syslog udp_packet_info.txt stdout sh.core pid packet_info.txt p2p_packet_info.txt sleep 2 cd /usr/home/game/channels/channel1/ch1_3/ rm -rf game.core syserr syslog udp_packet_info.txt stdout sh.core pid packet_info.txt p2p_packet_info.txt sleep 2 echo -e "\033[31m \n 99. Kanal loglar temizleniyor...\033[0m" cd /usr/home/game/channels/game99/game99_1/ rm -rf game.core syserr syslog udp_packet_info.txt stdout sh.core pid packet_info.txt p2p_packet_info.txt sleep 2 #cd /usr/home/game/channels/g1/auth && sh auth.sh & clear