https://postimg.cc/gallery/K3ksnH8
Daca deschid 2 client uri , primu mi se face asa si al doilea imi ramane normal sti cum rezolv asta?
https://postimg.cc/gallery/K3ksnH8


am schimbat toate porturile din server info, am facut si ce a zis baiatul asta, am compilat sursa am pus-o, si tot imi apar ch urile off, ma poate ajuta cineva?zaneesmecher23 scrie: ↑30 Mai 2022, 16:24 ip inafara de serverinfo se mai modifica undeva ? ca nu se conecteaza
Pentru cei care au probleme cu pornirea ch-urilor face-ti urmatorul lucru :
intrati in sursa in : /usr/valikee/Server/game/src -->Config.cpp cautati linia :'' if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192'' si modificati in if (!strncmp(netip, "999.999", 7)) // ignore if address is starting with 192
import localeInfo
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 localeInfo.IsEUROPE():
STATE_NONE = '...'
STATE_DICT = {
0 : '....',
1 : 'NORM',
2 : 'BUSY',
3 : 'FULL',
}
CHANNELS1 = [
{'name':'CH1','ip':'192.168xxxx,'tcp_port':21150,'udp_port':21150,'state':STATE_NONE,},
{'name':'CH2','ip':'192.168.xxxx','tcp_port':22150,'udp_port':22150,'state':STATE_NONE,},
]
MARK1 = { 'ip' : '192.168.xxxx', 'tcp_port' : 21150, 'mark' : '10.tga', 'symbol_path' : '10', }
AUTH1 = {'ip':'192.168xxxxx','port':31119, }
NAME1 = { 'name' : 'Metin2'}
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 : 'ROMANIA',}
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' : '192.168xxxx', 'tcp_port' : 50000, 'udp_port' : 50000, }
elimina limit_time din sursa , uite aici un tutorial https://metin2.dev/topic/2826-remove-ymir-license/Cyrus scrie: ↑31 Dec 2022, 22:18 nu imi porneste nici cum server ul cand ii dau drumul
am gresit eu ceva?import localeInfo 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 localeInfo.IsEUROPE(): STATE_NONE = '...' STATE_DICT = { 0 : '....', 1 : 'NORM', 2 : 'BUSY', 3 : 'FULL', } CHANNELS1 = [ {'name':'CH1','ip':'192.168xxxx,'tcp_port':21150,'udp_port':21150,'state':STATE_NONE,}, {'name':'CH2','ip':'192.168.xxxx','tcp_port':22150,'udp_port':22150,'state':STATE_NONE,}, ] MARK1 = { 'ip' : '192.168.xxxx', 'tcp_port' : 21150, 'mark' : '10.tga', 'symbol_path' : '10', } AUTH1 = {'ip':'192.168xxxxx','port':31119, } NAME1 = { 'name' : 'Metin2'} 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 : 'ROMANIA',} 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' : '192.168xxxx', 'tcp_port' : 50000, 'udp_port' : 50000, }
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 12 vizitatori