gergogonczi
-
Posts
11 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by gergogonczi
-
-
5 hours ago, ATAG said:
Rendben, értem, megváltoztattam az intrologin.py fájlt. Hiányzik egy "self.__SetServerInfo("%s, %s " % (serverName, channelName))" vagy valami, mint a tat a "self.Connect(id, pwd)" előtt. Meg kell valósítani...
intrologin.py
self.id = None
self.pwd = None
self.loginnedServer = None
self.loginnedChannel = None
app.loggined = Falseself.loginInfo = True
try:
server_name = logininfo.getAttribute("name")
channel_idx = int(logininfo.getAttribute("channel_idx"))
except:
returntry:
matched = Falsefor k, v in serverInfo.REGION_DICT[0].iteritems():
if v["name"] == server_name:
account_addr = serverInfo.REGION_AUTH_SERVER_DICT[0][k]["ip"]
account_port = serverInfo.REGION_AUTH_SERVER_DICT[0][k]["port"]channel_info = v["channel"][channel_idx]
channel_name = channel_info["name"]
addr = channel_info["ip"]
port = channel_info["tcp_port"]net.SetMarkServer(addr, port)
self.stream.SetConnectInfo(addr, port, account_addr, account_port)matched = True
breakif False == matched:
return
except:
returnself.__SetServerInfo("%s, %s " % (server_name, channel_name))
id = getValue(logininfo, "id", "")
pwd = getValue(logininfo, "pwd", "")
self.idEditLine.SetText(id)
self.pwdEditLine.SetText(pwd)
slot = getValue(logininfo, "slot", "0")
locale = getValue(logininfo, "locale", "")
locale_dir = getValue(logininfo, "locale_dir", "")
is_auto_login = int(getValue(logininfo, "auto_login", "0"))self.stream.SetCharacterSlot(int(slot))
self.stream.isAutoLogin=is_auto_login
self.stream.isAutoSelect=is_auto_loginif locale and locale_dir:
app.ForceSetLocale(locale, locale_dir)if 0 != is_auto_login:
self.Connect(id, pwd)return
uiminimap.py
try:
self.OpenWindow = self.GetChild("OpenWindow")
self.MiniMapWindow = self.GetChild("MiniMapWindow")
self.ScaleUpButton = self.GetChild("ScaleUpButton")
self.ScaleDownButton = self.GetChild("ScaleDownButton")
self.MiniMapHideButton = self.GetChild("MiniMapHideButton")
self.AtlasShowButton = self.GetChild("AtlasShowButton")
self.CloseWindow = self.GetChild("CloseWindow")
self.MiniMapShowButton = self.GetChild("MiniMapShowButton")
self.positionInfo = self.GetChild("PositionInfo")
self.observerCount = self.GetChild("ObserverCount")
self.serverInfo = self.GetChild("ServerInfo")
except:
import exception
exception.Abort("MiniMap.LoadWindow.Bind")if constInfo.MINIMAP_POSITIONINFO_ENABLE==0:
self.positionInfo.Hide()self.serverInfo.SetText(net.GetServerInfo())
serverinfo.py
import app
import localeInfo
app.ServerName = NoneSRV1 = {
"name":"server",
"host":"localhost",
#"host":"0.0.0.0",
"auth1":11000,
"ch1":13000,
"ch2":13010,
"ch3":13020,
"ch4":13030,
}
PORT_MARK = 13000STATE_NONE = "|cFFdadada" + localeInfo.CHANNEL_STATUS_OFFLINE
STATE_DICT = {
0 : "|cFFffffff" + localeInfo.CHANNEL_STATUS_OFFLINE,
1 : "|cFF00ff00" + localeInfo.CHANNEL_STATUS_RECOMMENDED,
2 : "|cFFffc000" + localeInfo.CHANNEL_STATUS_BUSY,
3 : "|cFFff0000" + localeInfo.CHANNEL_STATUS_FULL,
}SERVER1_CHANNEL_DICT = {
1:{"key":11,"name":"CH1","ip":SRV1["host"],"tcp_port":SRV1["ch1"],"udp_port":SRV1["ch1"],"state":STATE_NONE,},
2:{"key":12,"name":"CH2","ip":SRV1["host"],"tcp_port":SRV1["ch2"],"udp_port":SRV1["ch2"],"state":STATE_NONE,},
3:{"key":13,"name":"CH3","ip":SRV1["host"],"tcp_port":SRV1["ch3"],"udp_port":SRV1["ch3"],"state":STATE_NONE,},
4:{"key":14,"name":"CH4","ip":SRV1["host"],"tcp_port":SRV1["ch4"],"udp_port":SRV1["ch4"],"state":STATE_NONE,},
}
REGION_AUTH_SERVER_DICT = {
0 : {
1 : { "ip":SRV1["host"], "port":SRV1["auth1"], },
}
}REGION_DICT = {
0 : {
1 : { "name" :SRV1["name"], "channel" : SERVER1_CHANNEL_DICT, },
},
}MARKADDR_DICT = {
10 : { "ip" : SRV1["host"], "tcp_port" : SRV1["ch1"], "mark" : "10.tga", "symbol_path" : "10", },
}MARKADDR_DICT = {
10 : { "ip" : SRV1["host"], "tcp_port" : PORT_MARK, "mark" : "10.tga", "symbol_path" : "10", },
}
Do you see a mistake somewhere?
-
2 hours ago, ATAG said:
Csak találgatok (just guessing):
root/uiminimap.py
if constInfo.MINIMAP_POSITIONINFO_ENABLE==0: self.positionInfo.Hide() self.serverInfo.SetText(net.GetServerInfo()) #---> #self.serverInfo.Show() self.ScaleUpButton.SetEvent(ui.__mem_func__(self.ScaleUp))
This line is commented i guess, i dont have the untouched root anymore
Thanks for the answer @ ATAG!
I checked this too and there is no problem, maybe it has something to do with the source? -
Hello!
Maybe someone managed to eliminate the error so that the channel information appears under the minimap? No matter how I look at it, I can't find where the error is.(Sorry for the English!)
Thank you in advance for your answer! -
22 hours ago, ATAG said:
After hours of searching for what was causing the first (quest scroll) problem, I couldn't figure it out, but I found a dirty workaround. Use it at your own risk
In root/interfacemodule.py search:
def __del__(self): systemSetting.DestroyInterfaceHandler() event.SetInterfaceWindow(None)
And change it to:
def __del__(self): systemSetting.DestroyInterfaceHandler() #event.SetInterfaceWindow(None)
It doesn't solve the problem, just bypasses it!
Thank you @ATAG!
-
3 hours ago, Slappy said:
putty -> gameclean
or -> game src folder -> OBDIR folder -> delete all in the folder
thats it!
everything goes without changes. i also thought at first that it was because of it, but it works the same way without your change.
7 hours ago, davecosmo said:Hi @gergogonczi, try this (it worked for me)
In file /usr/metin2/src/game/src/stdafx.h
Search for:#include <tr1/unordered_map> #include <tr1/unordered_set>
replace with:#include <unordered_map> #include <unordered_set>
Should be ok to compile after that.
If I've understood correctly, this happened because of new version of c++ does not use tr1 any more.
@ Ulthar :
Great Work so far!!!!
I'm testing now, all went OK, just the tr1 thingy that i've managed to correct it.
Best regards to you all!!
EDIT: I had a "problem" which was my bad ahahahah!
Its OK now -> continuing playing around with these filesThank you very much!
-
Does anyone know a solution to this?
-
Nice work!
Does anyone have a solution for this?
1. Quest scrolls disappear when changing characters.
2. Server compile (llvm-devel) it runs into an error.Sorry for the english!
Thank you in advance for your help!
-
-
Upgraded Reference (TMP4 Base) By Ulthar
in Binaries
Posted
It works! Thank you very much for your help!