2010er Client Root Datei Problem...

01/02/2012 14:45 |)32 p@t€#1
Moin,

Ich hab bei einen 2010er Client von CranK die serverinfo.py im Root Verzeichnis
geändert.
Also die IP's ich habe es mit der Serverinfo.py von IgorGlock abgeglichen und es stimmt.
Jetzt wenn ich das Fenster starte kommt diese Meldung:

LOG

system.py(line:273) RunMainScript
system.py(line:192) execfile
system.py(line:163) Run
prototype.py(line:3) ?
system.py(line:130) _pack_import

Run - execptions.SyntaxError:invalid syntax (line 881)

Was muss ich machen das sie weggeht?
Würde mich über eine Antwort fragen.

PS.: benutze den 2010er Client von CranK
01/02/2012 14:54 Marcoly#2
Poste mal den Inhalt deiner aktuellen Serverinfo.py.

MfG Marco_A
01/02/2012 14:59 |)32 p@t€#3
`import locale
def BuildServerList(orderList):
retMarkAddrDict = {}
retAuthAddrDict = {}
retRegion0 = {}

ridx = 1
for region, auth, mark, channels in orderList:
cidx = 1
channelDict = {}
for channel in channels:
key = ridx * 10 + cidx
channel['key'] = key
channelDict[cidx] = channel
cidx += 1

region['channel'] = channelDict

retRegion0[ridx] = region
retAuthAddrDict[ridx] = auth
retMarkAddrDict[ridx*10] = mark
ridx += 1

return retRegion0, retAuthAddrDict, retMarkAddrDict
if locale.IsEUROPE():
STATE_NONE = '...'

STATE_DICT = {
0 : '....',
1 : 'NORM',
2 : 'BUSY',
3 : 'FULL',
}

CHANNELS1 = [
{'name':'CH1','ip':'5.88.29.100','tcp_port':13000, 'udp_port':13000,'state':STATE_NONE,},
]
MARK1 = { 'ip' : '5.88.29.100', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
AUTH1 = {'ip':'5.88.29.100','port':11002, }
NAME1 = { 'name' : 'Server 1'}
REGION0_ORDER_LIST = [
(NAME1, AUTH1, MARK1, CHANNELS1),
]
NEW_REGION0, NEW_REGION0_AUTH_SERVER_DICT, NEW_MARKADDR_DICT = BuildServerList(REGION0_ORDER_LIST)
# RESULT
NEW_REGION_NAME_DICT = {0 : 'POLAND',}
NEW_REGION_AUTH_SERVER_DICT = {0 : NEW_REGION0_AUTH_SERVER_DICT,}
NEW_REGION_DICT = {0 : NEW_REGION0,}

MARKADDR_DICT = NEW_MARKADDR_DICT
REGION_DICT = NEW_REGION_DICT
REGION_NAME_DICT = NEW_REGION_NAME_DICT
REGION_AUTH_SERVER_DICT = NEW_REGION_AUTH_SERVER_DICT

TESTADDR = { 'ip' : '210.123.10.153', 'tcp_port' : 50000, 'udp_port' : 50000, }
01/02/2012 15:02 Marcoly#4
Ersetze deine Serverinfo.py mal durch folgende und starte den Clienten:

Code:
import os
import app
import locale
import debugInfo

CHINA_PORT = 50000

if locale.IsEUROPE():
	STATE_NONE = "offline"
					
	STATE_DICT = {
		0 : "....",
		1 : "normal",
		2 : "belebt",
		3 : "voll"
	}

	IgorGlock_serverinfo_Generator = {
		1:{"key":11,"name":"Channel 1","ip":"5.88.29.100","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
	
		2:{"key":12,"name":"Channel 2","ip":"5.88.29.100","tcp_port":16000,"udp_port":16000,"state":STATE_NONE,},
	
		3:{"key":13,"name":"Channel 3","ip":"5.88.29.100","tcp_port":18000,"udp_port":18000,"state":STATE_NONE,},
	
		4:{"key":14,"name":"Channel 4","ip":"5.88.29.100","tcp_port":20000,"udp_port":20000,"state":STATE_NONE,},
	}
	
	REGION_NAME_DICT = {
		0 : "GERMANY",		
	}

	REGION_AUTH_SERVER_DICT = {
		0 : {
			1 : { "ip":"5.88.29.100", "port":11002, },
	
		}		
	}

	REGION_DICT = {
		0 : {
			1 : { "name" :"Server 1", "channel" : IgorGlock_serverinfo_Generator, },						
		},
	}

	MARKADDR_DICT = {
		10 : { "ip" : "5.88.29.100", "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", },
	}

	TESTADDR = { "ip" : "210.123.10.153", "tcp_port" : 50000, "udp_port" : 50000, }


MfG Marco_A
01/02/2012 15:14 |)32 p@t€#5
gemacht immer noch der selbe fehler