Premium SRL 0 Posted May 13, 2023 Premium Share Posted May 13, 2023 (edited) Hello fellows! I just started making my first p. server and I have a little problem with normal/green enchants. So, i made them dropable/sellabe (my private shop) and tradable. The only problem is when im trying to stack them from my inventory i cant. So they stack when picked from the ground but if you divide them and then try to stack them again from inventory you cant. Any solutions for this? Thank you @ Ulthar for those magnificent resources! The strings below are from item_proto.txt Quote Normal Enchants: 71084 Àç°æºñ¼ ITEM_USE USE_CHANGE_ATTRIBUTE 1 NONE | NONE | NONE | NONE ITEM_STACKABLE | LOG NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 71085 Àç°¡ºñ¼ ITEM_USE USE_ADD_ATTRIBUTE 1 NONE | NONE | NONE | NONE ITEM_STACKABLE | LOG NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 GREEN ENCHANTS: 76023 ¿¬Àç°æºñ¼(¼±¹°¿ë) ITEM_USE USE_CHANGE_ATTRIBUTE 1 NONE | NONE | NONE | NONE | NONE ITEM_STACKABLE | LOG NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 76024 ¿¬Àç°¡ºñ¼(¼±¹°¿ë) ITEM_USE USE_ADD_ATTRIBUTE 1 NONE | NONE | NONE | NONE | NONE ITEM_STACKABLE | LOG NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 PS: Those green enchants are with B icon, the normal greens (without b icon), i couldnt make them stackable if picked from the ground. Quote Edited May 13, 2023 by SRL Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted May 14, 2023 Active Member Share Posted May 14, 2023 4 hours ago, SRL said: Hello fellows! I just started making my first p. server and I have a little problem with normal/green enchants. So, i made them dropable/sellabe (my private shop) and tradable. The only problem is when im trying to stack them from my inventory i cant. So they stack when picked from the ground but if you divide them and then try to stack them again from inventory you cant. Any solutions for this? Thank you @ Ulthar for those magnificent resources! The strings below are from item_proto.txt PS: Those green enchants are with B icon, the normal greens (without b icon), i couldnt make them stackable if picked from the ground. Did you change it in client proto too? 1 Link to comment Share on other sites More sharing options...
Premium SRL 0 Posted May 14, 2023 Premium Share Posted May 14, 2023 (edited) 9 hours ago, ATAG said: Did you change it in client proto too? Yes i changed it in client's proto (drump_proto((.txt to what ever that is))---->Locale_en--->Eternexus packing--->locale_en.eix and locale_en.epk to pack), sorry but I forgot to specify this above. That's why im calling this out here cause i have tried everything that i could. Thank you for your answer! Edited May 14, 2023 by SRL Link to comment Share on other sites More sharing options...
gergogonczi 1 Posted May 15, 2023 Share Posted May 15, 2023 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! Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted May 15, 2023 Active Member Share Posted May 15, 2023 (edited) 1 hour ago, gergogonczi said: 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! 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 Edited May 15, 2023 by ATAG Link to comment Share on other sites More sharing options...
gergogonczi 1 Posted May 15, 2023 Share Posted May 15, 2023 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? Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted May 15, 2023 Active Member Share Posted May 15, 2023 30 minutes ago, gergogonczi said: Thanks for the answer @ ATAG! I checked this too and there is no problem, maybe it has something to do with the source? To be honest I can’t remember what did I change, but it definitely was not in src Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted May 16, 2023 Active Member Share Posted May 16, 2023 Ok i got it, I changed the intrologin.py There's a missing 'self.__SetServerInfo("%s, %s " % (serverName, channelName))' or something like tat before 'self.Connect(id, pwd)'. You have to implement it... Link to comment Share on other sites More sharing options...
gergogonczi 1 Posted May 16, 2023 Share Posted May 16, 2023 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 = False self.loginInfo = True try: server_name = logininfo.getAttribute("name") channel_idx = int(logininfo.getAttribute("channel_idx")) except: return try: matched = False for 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 break if False == matched: return except: return self.__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_login if 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 = None SRV1 = { "name":"server", "host":"localhost", #"host":"0.0.0.0", "auth1":11000, "ch1":13000, "ch2":13010, "ch3":13020, "ch4":13030, } PORT_MARK = 13000 STATE_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? Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted May 16, 2023 Active Member Share Posted May 16, 2023 In intrologin.py look for: self.stream.SetConnectInfo(serverInfo.SRV1["host"], self.ChannelButtons[channel][1], serverInfo.SRV1["host"], serverInfo.SRV1["auth1"]) Andd add below: try: print("serverinfo: %s/%s\n" % (serverInfo.SRV1["name"], serverInfo.SERVER1_CHANNEL_DICT[channel]["name"])) self.__SetServerInfo("%s, %s " % (serverInfo.SRV1["name"], serverInfo.SERVER1_CHANNEL_DICT[channel]["name"])) except: print("serverinfo: NONE\n") I'm not 100% sure, since my serverinfo.py and logininfo.py are modified. I hope it works. I also had to modify the fuction like this: def __SetServerInfo(self, name): net.SetServerInfo(name.strip()) #self.serverInfo.SetText(name) print("__SetServerInfo: %s/%s" % name, name.strip() or name) 1 Link to comment Share on other sites More sharing options...
gergogonczi 1 Posted May 16, 2023 Share Posted May 16, 2023 12 minutes ago, ATAG said: Az intrologin.py-ben keresd: És add hozzá alább: Nem vagyok benne 100%-ig biztos, mivel a serverinfo.py és a logininfo.py fájlokat módosították. Remélem működik. A függvényt is így kellett módosítanom: It works! Thank you very much for your help! 1 Link to comment Share on other sites More sharing options...
gleskpem1 4 Posted May 16, 2023 Share Posted May 16, 2023 can u share Mount - unmount delay fix ? Link to comment Share on other sites More sharing options...
Premium SRL 0 Posted May 16, 2023 Premium Share Posted May 16, 2023 (edited) On 5/13/2023 at 11:16 PM, SRL said: Hello fellows! I just started making my first p. server and I have a little problem with normal/green enchants. So, i made them dropable/sellabe (my private shop) and tradable. The only problem is when im trying to stack them from my inventory i cant. So they stack when picked from the ground but if you divide them and then try to stack them again from inventory you cant. Any solutions for this? Thank you @ Ulthar for those magnificent resources! The strings below are from item_proto.txt PS: Those green enchants are with B icon, the normal greens (without b icon), i couldnt make them stackable if picked from the ground. So basically this cant be worked out? Edited May 16, 2023 by SRL Link to comment Share on other sites More sharing options...
xEri0nx 2 Posted May 17, 2023 Share Posted May 17, 2023 I can't log into the game 0517 15:20:08721 :: Unknown packet header: 171, last: 126 4 1 Link to comment Share on other sites More sharing options...
Tuckii 10 Posted June 22, 2023 Share Posted June 22, 2023 Can someone explain to me why and how does locale_string and translate lua affect our connection to the server? I've changed from HU to EN and wasn't able to connect, I'd like to understand it and know how to fix it also, thank you Link to comment Share on other sites More sharing options...
Tuckii 10 Posted June 22, 2023 Share Posted June 22, 2023 (edited) 1 hour ago, Tuckii said: Can someone explain to me why and how does locale_string and translate lua affect our connection to the server? I've changed from HU to EN and wasn't able to connect, I'd like to understand it and know how to fix it also, thank you I wanted to mention locale change in mysql - how does it work when I change from hungary to english it doesnt work anymore? Locale_string and translate lua works normally as it should. Why can't I edit my post above tho : ( Edited June 22, 2023 by Tuckii Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted June 22, 2023 Active Member Share Posted June 22, 2023 4 hours ago, Tuckii said: I wanted to mention locale change in mysql - how does it work when I change from hungary to english it doesnt work anymore? Locale_string and translate lua works normally as it should. Why can't I edit my post above tho : ( Did you changed the path to locale/en/quest ? Link to comment Share on other sites More sharing options...
Tuckii 10 Posted June 22, 2023 Share Posted June 22, 2023 4 hours ago, ATAG said: Did you changed the path to locale/en/quest ? I figured it out how to change language of quests etc. for the mysql part I need to change in var/mysql/player the files with english ones but currently dont have these. Im also curious about the switch bot, from the post I asumme it doesn't work since it shows the packet header error after compile? Also after closing server and starting it db seems to stop working, even after reboot sometimes sysser of db Link to comment Share on other sites More sharing options...
7teendev 1 Posted July 27, 2023 Share Posted July 27, 2023 Im having issues with Visual Studio, every single SF I try to compile gives me this error, including this SF: CWebBrowser.lib is not a valid Win32 application. I have tried compile with 2022(which should be valid, based on Platform Toolkit - v143) and also tried VS19(which has v142) and still the same problem I'm not really smart from other thread I found, which is only for debug(Not my problem rn). Could anyonem point me to the right way? Link to comment Share on other sites More sharing options...
7teendev 1 Posted July 27, 2023 Share Posted July 27, 2023 GameWindow.Open - <type 'exceptions.RuntimeError'>:skill.GetSkillType - Failed to find skill by 36 With every single char(but ofc different skill ID) Link to comment Share on other sites More sharing options...
SamuraiHUN 1548 Posted July 27, 2023 Share Posted July 27, 2023 On 4/1/2023 at 6:09 PM, Metin2GH said: hi , i have a problem when i add the switchboot in binary i know you say the sistem is sell in dis moment but in romania is posted for free when i want to compile si get dis erorr auto& it2 = it->second.find(table.apply_num); change to const auto& it2 = it->second.find(table.apply_num); Link to comment Share on other sites More sharing options...
xLerii 0 Posted August 8, 2023 Share Posted August 8, 2023 Hello I'm having kind of problem, that when I choose a character - the game instantly turn off and I have syserr: 0808 23:45:12721 :: Unknown packet header: 171, last: 126 4 Any idea on how to fix it ? Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted August 8, 2023 Active Member Share Posted August 8, 2023 1 hour ago, xLerii said: Hello I'm having kind of problem, that when I choose a character - the game instantly turn off and I have syserr: 0808 23:45:12721 :: Unknown packet header: 171, last: 126 4 Any idea on how to fix it ? https://metin2.dev/topic/30430-upgraded-reference-tmp4-base-by-ulthar/?do=findComment&comment=155818&_rid=211 1 Link to comment Share on other sites More sharing options...
porexemplo 13 Posted September 2, 2023 Share Posted September 2, 2023 (edited) Here are some cool stuff: I installed this files on a Freebsd 64 VPS Server. Its working now after: some problem with libIL.so.1 fixed by applying on /usr/lib32 from metin2.download Where I change login image from client-side? (I'm a little rusted) maybe create a href just to use one login and select.jpg on all languages from clientside? Edited September 2, 2023 by porexemplo Link to comment Share on other sites More sharing options...
Karl 3 Posted September 4, 2023 Share Posted September 4, 2023 Hi @ Ulthar, any chance we can get lycan? Link to comment Share on other sites More sharing options...
Recommended Posts