Problema al instalar el 2 ch al cliente

Topic created · 8 Mensajes · 652 Visitas
  • Bueno el cliente que uso es el:Modifizierter-2010-Client, y pues ya lo he modificado todo bien, pero cuando implemento el 2 ch me tira error:http://imageshack.us/f/696/sinttuloisp.png/....y aca dejo la modificacion de como llevo el serverinfo.py:

    import os
    import app
    import locale
    import debugInfo

    CHINA_PORT = 50000

    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

    app.ServerName = None

    if locale.IsEUROPE():
    info = {
    'MARKADDR': {
    10: {
    'tcp_port': 13000, 'ip': 'EureIp', 'symbol_path': '10', 'mark': '10.tga'
    }
    },
    'GAMEADDR': {
    0: {
    1: {
    'name': 'Zafirum',
    'channel':
    {
    1: {
    'state': 'Zafirum', 'name': 'CH1 ', 'key': 11, 'ip': 'EureIp', 'tcp_port': 13000, 'udp_port': 13000
    }
    2: {
    'state': 'Zafirum', 'name': 'CH2 ', 'key': 12, 'ip': 'acalaip', 'tcp_port': 16000, 'udp_port': 16000
    }
    }
    },
    } }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
    1: {
    'ip': 'acalaip', 'port': 11002
    }
    } }
    }

    STATE_NONE = "Zafirum"

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

    REGION_NAME_DICT = info["NAME"]
    REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
    REGION_DICT = info["GAMEADDR"]
    MARKADDR_DICT = info["MARKADDR"]

    ..Y bueno porfavor ayudenme con ese Problema :T.T: :T.T: :T.T: se los pido de rodillas xDD =P.. y posdata ya tengo implementado el 2 ch en el server =F

  • men, pasa el serverinfo que trae tu cliente por defecto, y te le agrego el otro ch.

  • @Aquiles94 said:

    men, pasa el serverinfo que trae tu cliente por defecto, y te le agrego el otro ch.

    men pero como ago para instalar el 2 ch echame una mano no soy novato pero igual noce tanto y ando atariado, si bro =P

  • @Aquiles94 said:

    men, pasa el serverinfo que trae tu cliente por defecto, y te le agrego el otro ch.

    toma parce aca esta el que trae por defecto =P

    import os
    import app
    import locale
    import debugInfo

    CHINA_PORT = 50000

    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

    app.ServerName = None

    if locale.IsEUROPE():
    info = {
    'MARKADDR': {
    10: {
    'tcp_port': 13000, 'ip': 'EureIp', 'symbol_path': '10', 'mark': '10.tga'
    }
    },
    'GAMEADDR': {
    0: {
    1: {
    'name': 'Zafirum',
    'channel':
    {
    1: {
    'state': 'Zafirum', 'name': 'CH1 ', 'key': 11, 'ip': 'EureIp', 'tcp_port': 13000, 'udp_port': 13000
    }
    }
    },
    } }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
    1: {
    'ip': 'EureIp', 'port': 11002
    }
    } }
    }

    STATE_NONE = "Zafirum"

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

    REGION_NAME_DICT = info["NAME"]
    REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
    REGION_DICT = info["GAMEADDR"]
    MARKADDR_DICT = info["MARKADDR"]

  • import os
    import app
    import locale
    import debugInfo

    CHINA_PORT = 50000
    
    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
    
    app.ServerName = None
    
    
    if locale.IsEUROPE():
    info = {
    'MARKADDR': {
    10: {
    'tcp_port': 13000, 'ip': 'EureIp', 'symbol_path': '10', 'mark': '10.tga'
    }
    },
    'GAMEADDR': {
    0: {
    1: {
    'name': 'Zafirum',
    'channel':
    {
    1: {
    'state': 'Zafirum', 'name': 'CH1	', 'key': 11, 'ip': 'EureIp', 'tcp_port': 13000, 'udp_port': 13000
    }
    2: {
    'state': 'Zafirum', 'name': 'CH2	', 'key': 21, 'ip': 'EureIp', 'tcp_port': 16000, 'udp_port': 16000
    }
    }
    },
    } }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
    1: {
    'ip': 'EureIp', 'port': 11002
    }
    } }
    }
    
    STATE_NONE = "Zafirum"
    
    STATE_DICT = {
    0 : "....",
    1 : "NORM",
    2 : "BUSY",
    3 : "FULL"
    }
    
    REGION_NAME_DICT = info["NAME"]
    REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
    REGION_DICT = info["GAMEADDR"]
    MARKADDR_DICT = info["MARKADDR"]
    

    espero te funcione.

  • @Aquiles94 said:

    import os
    import app
    import locale
    import debugInfo
    
    CHINA_PORT = 50000
    
    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
    
    app.ServerName = None
    
    
    if locale.IsEUROPE():
    info = {
    'MARKADDR': {
    10: {
    'tcp_port': 13000, 'ip': 'EureIp', 'symbol_path': '10', 'mark': '10.tga'
    }
    },
    'GAMEADDR': {
    0: {
    1: {
    'name': 'Zafirum',
    'channel':
    {
    1: {
    'state': 'Zafirum', 'name': 'CH1	', 'key': 11, 'ip': 'EureIp', 'tcp_port': 13000, 'udp_port': 13000
    }
    2: {
    'state': 'Zafirum', 'name': 'CH2	', 'key': 21, 'ip': 'EureIp', 'tcp_port': 16000, 'udp_port': 16000
    }
    }
    },
    } }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
    1: {
    'ip': 'EureIp', 'port': 11002
    }
    } }
    }
    
    STATE_NONE = "Zafirum"
    
    STATE_DICT = {
    0 : "....",
    1 : "NORM",
    2 : "BUSY",
    3 : "FULL"
    }
    
    REGION_NAME_DICT = info["NAME"]
    REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
    REGION_DICT = info["GAMEADDR"]
    MARKADDR_DICT = info["MARKADDR"]
    

    espero te funcione.

    no men no me funciono :T.T: :T.T: :T.T: .. me sale el mismo error y no entiendo xddd

  • import app
    import locale
    import debugInfo

    CHINA_PORT = 50000
    app.ServerName = None
    if (locale.IsEUROPE() and app.GetLocalePath()):
    	STATE_NONE = "ON"
    					
    	STATE_DICT = {
    		0 : "...",
    		1 : "Normal",
    		2 : "Ocupado",
    		3 : "Lleno"
    	}
    
    	SERVER01_CHANNEL_DICT = { 
    		1:{"key":11,"name":"CH1   ","ip":"192.168.1.1","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
    		2:{"key":11,"name":"CH2   ","ip":"192.168.1.1","tcp_port":16000,"udp_port":16000,"state":STATE_NONE,},
    	}
    	
    	REGION_NAME_DICT = {
    		0 : "POLAND",		
    	}
    
    	REGION_AUTH_SERVER_DICT = {
    		0 : {
    			1 : { "ip":"192.168.1.1", "port":11002, }, 
    			
    		}		
    	}
    
    	REGION_DICT = {
    		0 : {
    			1 : { "name" : "Mt2Deluxe ", "channel" : SERVER01_CHANNEL_DICT, },						
    			
    		},
    	}
    
    	MARKADDR_DICT = {
    		10 : { "ip" : "192.168.1.1", "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", }, 
    		
    		}
    
    	TESTADDR = { "ip" : "192.168.1.1", "tcp_port" : 50000, "udp_port" : 50000, }
    

    usa ese que es el que uso yo u.u

  • Gracias men!!! =P