Problema serverinfo.py

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
ZenWarII
Utilizator interzis !

Utilizator interzis !
Mesaje: 43
Membru din: 07 Noi 2017, 18:55
Server: zenwar2.ro
Regat: Jinno
Aprecieri: 25  
Mulţumiri: 0
Medalii

Salut
Am intampinat si eu o problema si nu stiu cum sa o rezolv daca ma puteti ajuta.
Am sa explic pe cat de bine posibil.
Este prima data cadn intalnesc un serverinfo.py mai ciudat.
In acest serverinfo.py unde trebue mai exact sa pun ip sa ruleze sv pe client :
import os
import app
import localeInfo
import debugInfo

CHINA_PORT = 50000
STATE_NONE = localeInfo.SERVER_OFF
SERVER_NAME = "metin2sv"
SERVER_IP = "188.165.81.11"
CH1_PORT = 28100
CH2_PORT = 28110
CH3_PORT = 28120
CH4_PORT = 28130
AUTH_PORT = 28000

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 (localeInfo.IsEUROPE() and app.GetLocalePath() == "locale/ro"):

STATE_DICT = {
0 : localeInfo.SERVER_OFF,
1 : localeInfo.SERVER_NORM,
2 : localeInfo.SERVER_BUSY,
3 : localeInfo.SERVER_FULL,
}

SERVER01_CHANNEL_DICT = {
1:{"key":11,"name":"CH1 ","ip": SERVER_IP,"tcp_port": CH1_PORT,"udp_port": CH1_PORT,"state":STATE_NONE,},
2:{"key":12,"name":"CH2 ","ip": SERVER_IP,"tcp_port": CH2_PORT,"udp_port": CH2_PORT,"state":STATE_NONE,},
3:{"key":13,"name":"CH3 ","ip": SERVER_IP,"tcp_port": CH3_PORT,"udp_port": CH3_PORT,"state":STATE_NONE,},
4:{"key":14,"name":"CH4 ","ip": SERVER_IP,"tcp_port": CH4_PORT,"udp_port": CH4_PORT,"state":STATE_NONE,},
}

REGION_NAME_DICT = {
0 : "Romania",
}

REGION_AUTH_SERVER_DICT = {
0 : {
1 : { "ip": SERVER_IP,"port":AUTH_PORT, },
}
}

REGION_DICT = {
0 : {
1 : { "name" : SERVER_NAME,"channel" : SERVER01_CHANNEL_DICT, },
},
}

MARKADDR_DICT = {
10 : { "ip" : SERVER_IP,"tcp_port" : CH1_PORT, "mark" : "mark_0.tga", "symbol_path" : "10", },
}

TESTADDR = { "ip" : SERVER_IP,"tcp_port" : CHINA_PORT, "udp_port" : CHINA_PORT, }
Avatar utilizator
Blondu`
Nivel 3

Nivel 3
Mesaje: 429
Membru din: 13 Oct 2015, 15:17
Server: Woria2
Regat: Shinsoo
Aprecieri: 227  
Mulţumiri: 180  
Medalii

SERVER_NAME = "metin2sv" - Numele serverului
SERVER_IP = "188.165.81.11" - IP-ul serverului
Imagine
Afișează semnătura
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

SERVER_IP = "188.165.81.11"

Serios?

[ Postat de pe Android ] Imagine
Avatar utilizator
ZenWarII
Utilizator interzis !

Utilizator interzis !
Mesaje: 43
Membru din: 07 Noi 2017, 18:55
Server: zenwar2.ro
Regat: Jinno
Aprecieri: 25  
Mulţumiri: 0
Medalii

mda nu este ip meu era deja acol.
Avatar utilizator
LikePc
Nivel 10

Nivel 10
Mesaje: 2240
Membru din: 11 Aug 2015, 00:01
Server: M3
Regat: Chunjo
Aprecieri: 9  
Mulţumiri: 270  
 Contact:
Medalii

SERVER_NAME = "Just4Metin" - Modifici nu mele serverul
SERVER_IP = "metin.just4metin.ro" - pui ip-ul care il ai la sever
CH1_PORT = 28100 - Ch1 port , gasesti in /usr/home/game/channels/channel1 config
CH2_PORT = 28110 - Ch2 port , gaseti in /usr/home/game/channels/channel2 config
CH3_PORT = 28120 -Ch 3 port , gasesti in /usr/home/game/channels/channel3 config
CH4_PORT = 28130 - Ch4 port , gasesti in usr/home/game/channels/channel4 config
AUTH_PORT = 28000 = Portul de logare , /usr/home/game/auth sau cum ai trecut tu la serverul respectiv.
https:/horus-maps.com
Afișează semnătura
Avatar utilizator
LikePc
Nivel 10

Nivel 10
Mesaje: 2240
Membru din: 11 Aug 2015, 00:01
Server: M3
Regat: Chunjo
Aprecieri: 9  
Mulţumiri: 270  
 Contact:
Medalii

Subiect arhivat,autorul nu a dat nici un semn timp de 3zile.
https:/horus-maps.com
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
191
Răspunsuri
3
Vizualizări
325
Răspunsuri
5
Vizualizări
228
Răspunsuri
1
Vizualizări
103

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 68 vizitatori