Jump to content

gergogonczi

Member
  • Posts

    11
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by gergogonczi

  1. 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! 🙂 

    • Good 1
  2. 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? 😄 

  3. 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?

  4. 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!

  5. 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 files

    Thank you very much!

×
×
  • 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.