2 servers in one client

03/14/2014 17:28 Kunterica#1
The problem is the server 2, when I select it and press enter it close...
serverinfo.py
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':'ip1','tcp_port':23070,'udp_port':23070,'state':STATE_NONE,},
}
SERVER2_CHANNEL_DICT = {
	1:{'key':11,'name':'CH1   ','ip':'ip2','tcp_port':23070,'udp_port':23070,'state':STATE_NONE,},
}
REGION_NAME_DICT = {
	0 : 'TAIWAN',
}

REGION_AUTH_SERVER_DICT = {
	0 : {
		1 : { 'ip':'ip1', 'port':21002, }, 
		2 : { 'ip':'ip2', 'port':21002, }, 
		},
}

REGION_DICT = {
	0 : {
		1 : { 'name' : 'Arthemius', 'channel' : SERVER1_CHANNEL_DICT, },
		2 : { 'name' : 'Tribulus', 'channel' : SERVER2_CHANNEL_DICT, },
		},
}

MARKADDR_DICT = {
	10 : { 'ip' : 'ip1', 'tcp_port' : 23070, 'mark' : '10.tga', 'symbol_path' : '10', },
	11 : { 'ip' : 'ip2', 'tcp_port' : 23070, 'mark' : '10.tga', 'symbol_path' : '10', },
	}

TESTADDR = { 'ip' : 'ip1', 'tcp_port' : 50000, 'udp_port' : 50000, }

#DONE
syserr.txt
Code:
0314 18:08:06551 :: 
introLogin.py(line:1321) __OnClickSelectServerButton

LoginWindow.__OnClickSelectServerButton - ¸¶Å© Á¤º¸ ¾øÀ½ - <type 'exceptions.KeyError'>:20

0314 18:08:06551 :: ============================================================================================================
0314 18:08:06551 :: Abort!!!!


0314 18:08:06552 :: filename=exception.py, name=Abort
0314 18:08:06552 :: filename=introLogin.py, name=__OnClickSelectServerButton
0314 18:08:06552 :: filename=introLogin.py, name=__ServerBoard_OnKeyUp
0314 18:08:06552 :: filename=ui.py, name=__call__
0314 18:08:06552 :: filename=ui.py, name=__call__
0314 18:08:06552 :: filename=prototype.py, name=RunApp
0314 18:08:06552 :: filename=prototype.py, name=<module>
0314 18:08:06552 :: filename=system.py, name=Run
0314 18:08:06552 :: filename=system.py, name=execfile
0314 18:08:06552 :: filename=system.py, name=RunMainScript
0314 18:08:06552 :: filename=system.py, name=<module>
0314 18:08:06552 :: filename=<string>, name=<module>

* I've replaced real IP with Ip1 and Ip2
03/14/2014 18:20 #Secresy#2
why dont use two .exe and two : locale, root ?
03/14/2014 21:25 Akzyra#3
Quote:
Originally Posted by [LxR]Secresy View Post
why dont use two .exe and two : locale, root ?
Maybe because serverinfo is a "cleaner" method??

There ya go: