Jump to content
  • 0

locale_XX.addr Problem


xXCapConXx

Question

Good Morning! :)

 

I have a problem with the Locale_DE.addr From Official (metin2.de) Server.

 

I have unpack it and now i want to sort the text in the file, but when i want to compile it, the program says "Invalid syntax".

 

The Locale_De.addr:

{'AUTHADDR': 
{0: 
{1: {'ip': '79.110.92.50', 'port': 11150},
2: {'ip': '79.110.92.52', 'port': 11150}, 
3: {'ip': '79.110.92.69', 'port': 11150}, 
4: {'ip': '79.110.84.22', 'port': 11150}, 
5: {'ip': '79.110.92.70', 'port': 11150}, 
6: {'ip': '79.110.85.124', 'port': 11150}, 
7: {'ip': '79.110.84.163', 'port': 11150}, 
8: {'ip': '79.110.92.80', 'port': 11150}}}, 
 
'MARKADDR': 
{70: {'tcp_port': 12205, 'ip': '79.110.84.166', 'symbol_path': '70', 'mark': '70.tga'},
40: {'tcp_port': 12205, 'ip': '79.110.85.127', 'symbol_path': '40', 'mark': '40.tga'},
10: {'tcp_port': 12205, 'ip': '79.110.92.51', 'symbol_path': '10', 'mark': '10.tga'},
80: {'tcp_port': 12205, 'ip': '79.110.92.81', 'symbol_path': '80', 'mark': '80.tga'},
50: {'tcp_port': 12205, 'ip': '79.110.92.71', 'symbol_path': '50', 'mark': '50.tga'},
20: {'tcp_port': 12205, 'ip': '79.110.92.53', 'symbol_path': '20', 'mark': '20.tga'},
60: {'tcp_port': 12205, 'ip': '79.110.85.125', 'symbol_path': '60', 'mark': '60.tga'},
30: {'tcp_port': 12205, 'ip': '79.110.92.79', 'symbol_path': '30', 'mark': '30.tga'}}
 
'GAMEADDR': {0:
{1: {'name': 'Tarvos', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 11, 'ip': '79.110.92.50'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 12, 'ip': '79.110.92.51'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 13, 'ip': '79.110.92.50'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 14, 'ip': '79.110.92.51'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 15, 'ip': '79.110.92.50'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 16, 'ip': '79.110.92.51'}}},
 
2: {'name': 'Deimos', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 21, 'ip': '79.110.92.52'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 22, 'ip': '79.110.92.53'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 23, 'ip': '79.110.92.52'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 24, 'ip': '79.110.92.53'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 25, 'ip': '79.110.92.52'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 26, 'ip': '79.110.92.53'}}},
 
3: {'name': 'Phobos', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 31, 'ip': '79.110.92.69'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 32, 'ip': '79.110.92.79'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 33, 'ip': '79.110.92.69'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 34, 'ip': '79.110.92.79'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 35, 'ip': '79.110.92.69'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 36, 'ip': '79.110.92.79'}}},
 
4: {'name': 'Saphira', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 41, 'ip': '79.110.84.22'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 42, 'ip': '79.110.85.127'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 43, 'ip': '79.110.84.22'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 44, 'ip': '79.110.85.127'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 45, 'ip': '79.110.84.22'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 46, 'ip': '79.110.85.127'}}},
 
5: {'name': 'Gantar', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 51, 'ip': '79.110.92.70'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 52, 'ip': '79.110.92.71'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 53, 'ip': '79.110.92.70'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 54, 'ip': '79.110.92.71'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 55, 'ip': '79.110.92.70'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 56, 'ip': '79.110.92.71'}}},
 
6: {'name': 'Praios', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 61, 'ip': '79.110.85.124'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 62, 'ip': '79.110.85.125'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 63, 'ip': '79.110.85.124'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 64, 'ip': '79.110.85.125'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 65, 'ip': '79.110.85.124'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 66, 'ip': '79.110.85.125'}}},
 
7: {'name': 'Sycorax', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 71, 'ip': '79.110.84.163'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 72, 'ip': '79.110.84.166'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 73, 'ip': '79.110.84.163'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 74, 'ip': '79.110.84.166'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 75, 'ip': '79.110.84.163'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 76, 'ip': '79.110.84.166'}}},
 
8: {'name': 'TBD', 'channel': 
{1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 81, 'ip': '79.110.92.80'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 82, 'ip': '79.110.92.81'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 83, 'ip': '79.110.92.80'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 84, 'ip': '79.110.92.81'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 85, 'ip': '79.110.92.80'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 86, 'ip': '79.110.92.81'}}}}},
 
'SERVERID': {1: u'50', 2: u'51', 3: u'52', 4: u'53', 5: u'54', 6: u'55', 7: u'56', 8: u'57'}, 'NAME': {0: 'Deutschland'}}

 
I hope someone can say me where the problem is..
 
Regards
xXCapConXx
Link to comment

6 answers to this question

Recommended Posts

  • 0

Did you try locale from other clients?

My own locale works, with only one server... but when i sort the locale_de.addr, the tool wont compile it.

 

But i have solved the problem.!

 

 

Here is the working Sort locale_de.addr, for people they want this file to. :)

{'AUTHADDR': {0: {
1: {'ip': '79.110.92.50', 'port': 11150},
2: {'ip': '79.110.92.52', 'port': 11150}, 
3: {'ip': '79.110.92.69', 'port': 11150}, 
4: {'ip': '79.110.84.22', 'port': 11150}, 
5: {'ip': '79.110.92.70', 'port': 11150}, 
6: {'ip': '79.110.85.124', 'port': 11150}, 
7: {'ip': '79.110.84.163', 'port': 11150}, 
8: {'ip': '79.110.92.80', 'port': 11150}}},
 
'MARKADDR': {
70: {'tcp_port': 12205, 'ip': '79.110.84.166', 'symbol_path': '70', 'mark': '70.tga'},
40: {'tcp_port': 12205, 'ip': '79.110.85.127', 'symbol_path': '40', 'mark': '40.tga'},
10: {'tcp_port': 12205, 'ip': '79.110.92.51', 'symbol_path': '10', 'mark': '10.tga'},
80: {'tcp_port': 12205, 'ip': '79.110.92.81', 'symbol_path': '80', 'mark': '80.tga'},
50: {'tcp_port': 12205, 'ip': '79.110.92.71', 'symbol_path': '50', 'mark': '50.tga'},
20: {'tcp_port': 12205, 'ip': '79.110.92.53', 'symbol_path': '20', 'mark': '20.tga'},
60: {'tcp_port': 12205, 'ip': '79.110.85.125', 'symbol_path': '60', 'mark': '60.tga'},
30: {'tcp_port': 12205, 'ip': '79.110.92.79', 'symbol_path': '30', 'mark': '30.tga'}},
 
'GAMEADDR': {0: {
1: {'name': 'Tarvos', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 11, 'ip': '79.110.92.50'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 12, 'ip': '79.110.92.51'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 13, 'ip': '79.110.92.50'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 14, 'ip': '79.110.92.51'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 15, 'ip': '79.110.92.50'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 16, 'ip': '79.110.92.51'}}},
 
2: {'name': 'Deimos', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 21, 'ip': '79.110.92.52'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 22, 'ip': '79.110.92.53'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 23, 'ip': '79.110.92.52'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 24, 'ip': '79.110.92.53'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 25, 'ip': '79.110.92.52'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 26, 'ip': '79.110.92.53'}}},
 
3: {'name': 'Phobos', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 31, 'ip': '79.110.92.69'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 32, 'ip': '79.110.92.79'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 33, 'ip': '79.110.92.69'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 34, 'ip': '79.110.92.79'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 35, 'ip': '79.110.92.69'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 36, 'ip': '79.110.92.79'}}},
 
4: {'name': 'Saphira', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 41, 'ip': '79.110.84.22'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 42, 'ip': '79.110.85.127'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 43, 'ip': '79.110.84.22'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 44, 'ip': '79.110.85.127'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 45, 'ip': '79.110.84.22'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 46, 'ip': '79.110.85.127'}}},
 
5: {'name': 'Gantar', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 51, 'ip': '79.110.92.70'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 52, 'ip': '79.110.92.71'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 53, 'ip': '79.110.92.70'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 54, 'ip': '79.110.92.71'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 55, 'ip': '79.110.92.70'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 56, 'ip': '79.110.92.71'}}},
 
6: {'name': 'Praios', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 61, 'ip': '79.110.85.124'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 62, 'ip': '79.110.85.125'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 63, 'ip': '79.110.85.124'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 64, 'ip': '79.110.85.125'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 65, 'ip': '79.110.85.124'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 66, 'ip': '79.110.85.125'}}},
 
7: {'name': 'Sycorax', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 71, 'ip': '79.110.84.163'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 72, 'ip': '79.110.84.166'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 73, 'ip': '79.110.84.163'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 74, 'ip': '79.110.84.166'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 75, 'ip': '79.110.84.163'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 76, 'ip': '79.110.84.166'}}},
 
8: {'name': 'TBD', 'channel': {
1: {'name': 'CH1   ', 'tcp_port': 12105, 'udp_port': 12105, 'state': '...', 'key': 81, 'ip': '79.110.92.80'},
2: {'name': 'CH2   ', 'tcp_port': 12205, 'udp_port': 12205, 'state': '...', 'key': 82, 'ip': '79.110.92.81'},
3: {'name': 'CH3   ', 'tcp_port': 12305, 'udp_port': 12305, 'state': '...', 'key': 83, 'ip': '79.110.92.80'},
4: {'name': 'CH4   ', 'tcp_port': 12405, 'udp_port': 12405, 'state': '...', 'key': 84, 'ip': '79.110.92.81'},
5: {'name': 'CH5   ', 'tcp_port': 12505, 'udp_port': 12505, 'state': '...', 'key': 85, 'ip': '79.110.92.80'},
6: {'name': 'CH6   ', 'tcp_port': 12605, 'udp_port': 12605, 'state': '...', 'key': 86, 'ip': '79.110.92.81'}}}}},
 
'SERVERID': {1: u'50', 2: u'51', 3: u'52', 4: u'53', 5: u'54', 6: u'55', 7: u'56', 8: u'57'}, 'NAME': {0: 'Deutschland'}}

 
Don't forget the [TAB] !!! ;)
  • Love 1
Link to comment
  • 0

can anybody help me an say how i can start the client with the locale_de.addr? :D

 

Use this 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() and app.GetLocalePath() == "locale/de"):
name = app.GetLocalePath().replace("/", "_") + ".addr"
path = os.sep.join(("pack", name))
if os.access(path, os.R_OK):
print "load_locale_addr:", path
 
data = app.LoadLocaleAddr(path)
 
import cPickle
import cStringIO
info = cPickle.load(cStringIO.StringIO(data))
 
STATE_NONE = "..."
 
STATE_DICT = {
0 : "....",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
 
SERVER_ID_DICT = info["SERVERID"]
REGION_NAME_DICT = info["NAME"]
REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
REGION_DICT = info["GAMEADDR"]
MARKADDR_DICT = info["MARKADDR"]
 

 
Then just change the locale (locale/de) to your locale. Then put the locale_XX.addr in your pack folder. :)
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.