Jump to content
×
×
  • Create New...

[ Dead Download Link ] [RLS]Unbugged CH Switcher [ We Need You ]


Koray

Recommended Posts

Hello, Have a bug in much published channel switcher due from DirectConnect function here is unbugged switcher

https://www.youtube.com/watch?v=cJ45_H32lCY

 

 

*Move: uichangechannel and ui_wrapper in root pack

*networkmodule.py
Search:

self.isAutoLogin=0


Add it under:

self.channel = 0


*locale/xx/ui/systemdialog.py

Search:
 

                {
                    "name" : "game_option_button",
                    "type" : "button",


                    "x" : 10,
                    "y" : 117,


                    "text" : uiScriptLocale.GAMEOPTION_TITLE,


                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },


Add it under:

                {
                    "name" : "change_ch_button",
                    "type" : "button",


                    "x" : 10,
                    "y" : 147,


                    "text" : "CH Switcher",


                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                    "disable_image" : ROOT + "XLarge_Button_03.sub",
                },

 

*game.py


Search:

self.interface.ShowDefaultWindows()


Add it under:
 

self.stream.isAutoSelect = 0


Search:

self.interface = interfaceModule.Interface()


Add it under:

self.interface.SetStream(self.stream)

 

*intrologin.py
Search:

        if constInfo.SEQUENCE_PACKET_ENABLE:
            net.SetPacketSequenceMode()


Add it upper:
 

        net.ACC_ID = id
        net.ACC_PWD = pwd


*interfacemodule.py

Search:

    def __del__(self):
        systemSetting.DestroyInterfaceHandler()
        event.SetInterfaceWindow(None)


Add it under:
 

    def SetStream(self, stream):
        self.stream = stream


Search:

self.dlgSystem = uiSystem.SystemDialog()


Change:

self.dlgSystem = uiSystem.SystemDialog(self.stream)


*uisystem.py

Add in imports
 

import uiChangeChannel


Search:

def __init__(self):


Change:

def __init__(self, stream):


Search:

def __init__(self, stream):


Find:

self.__Initialize()


Add it under:

self.stream = stream


Search:

self.GetChild("system_option_button").SAFE_SetEvent(self.__ClickSystemOptionButton)


Add it upper:
 

self.GetChild("change_ch_button").SAFE_SetEvent(self.__ClickChangeChannelButton)

 

Search:

def __OnClosePopupDialog(self):


Add it upper:
 

    def __ClickChangeChannelButton(self):
        self.Close()


        if not self.changeChDlg:
            self.changeChDlg = uiChangeChannel.uiChangeChannel(self.stream)


        self.changeChDlg.Show()


Search:

self.gameOptionDlg = None


Add it under:
 

self.changeChDlg = None


Search:

        if self.systemOptionDlg:
            self.systemOptionDlg.Destroy()


Add it under:

        if self.changeChDlg:
            self.changeChDlg.Destroy()

 

 

Hidden Content

    Give reaction to this post to see the hidden content.

  • Metin2 Dev 1
  • Love 14
Link to comment
Share on other sites

1014 10:50:09073 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:22) <module> - import uiWhisper
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiWhisper.py(line:10) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiGroup.py(line:6) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfacemodule.py(line:26) <module> - import uiSystem
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiSystem.py(line:17) <module>
uiSystem.py(line:99) SystemDialog

networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'self' is not defined

1014 10:50:09073 :: ============================================================================================================
1014 10:50:09073 :: Abort!!!!

Link to comment
Share on other sites

1014 19:00:19251 ::   File "networkModule.py", line 241, in SetGamePhase

1014 19:00:19251 ::   File "game.py", line 120, in __init__

1014 19:00:19251 ::   File "interfaceModule.py", line 338, in MakeInterface

1014 19:00:19251 ::   File "interfaceModule.py", line 271, in __MakeDialogs

1014 19:00:19251 ::   File "uiSystem.py", line 26, in __init__

1014 19:00:19251 ::   File "uiSystem.py", line 30, in __Initialize

1014 19:00:19251 :: NameError
1014 19:00:19251 :: : 
1014 19:00:19251 :: global name 'stream' is not defined
1014 19:00:19251 :: 

 

Link to comment
Share on other sites

1020 19:35:37464 ::   File "ui.py", line 1016, in CallEvent

1020 19:35:37464 ::   File "ui.py", line 87, in __call__

1020 19:35:37464 ::   File "ui.py", line 69, in __call__

1020 19:35:37464 ::   File "uiSystem.py", line 99, in __ClickChangeChannelButton

1020 19:35:37464 ::   File "uiChangeChannel.py", line 16, in __init__

1020 19:35:37464 ::   File "uiChangeChannel.py", line 23, in __LoadWindow

1020 19:35:37464 ::   File "system.py", line 87, in open

1020 19:35:37464 ::   File "system.py", line 61, in __init__

1020 19:35:37465 :: AttributeError
1020 19:35:37465 :: : 
1020 19:35:37465 :: 'NoneType' object has no attribute 'split'
1020 19:35:37465 :: 

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...

 

Quote

 

0102 14:56:05736 ::
networkModule.py(line:209) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) ?
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:24) ?
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - exceptions.SyntaxError:invalid syntax (line 101)

0102 14:56:05736 :: ============================================================================================================
0102 14:56:05736 :: Abort!!!!

how can i fix it?

 

Link to comment
Share on other sites

  • 1 month later...

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (interfaceModule.py, line 98)

 

---

this is ok?

    def Connect(self, id, pwd):
            net.ACC_ID = id
            net.ACC_PWD = pwd            
            if constInfo.SEQUENCE_PACKET_ENABLE:
                net.SetPacketSequenceMode()

            if IsLoginDelay():
                loginDelay = GetLoginDelay()
                self.connectingDialog = ConnectingDialog()
                self.connectingDialog.Open(loginDelay)
                self.connectingDialog.SAFE_SetTimeOverEvent(self.OnEndCountDown)
                self.connectingDialog.SAFE_SetExitEvent(self.OnPressExitKey)
                self.isNowCountDown = TRUE

            else:
                self.stream.popupWindow.Close()
                self.stream.popupWindow.Open(localeInfo.LOGIN_CONNETING, self.SetPasswordEditLineFocus, localeInfo.UI_CANCEL)

            self.stream.SetLoginInfo(id, pwd)
            self.stream.Connect()

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Bug Fix (y)

Spoiler

 

serverInfo.py

(:state_none    rename  :0

    SERVER01_CHANNEL_DICT = {
        1:{"key":11,"name":"CH1","ip":"xxx.xx.xx.xxx","tcp_port":xxxxx,"udp_port":xxxxx,"state":0,},
        2:{"key":12,"name":"CH2","ip":"xxx.xx.xx.xxx","tcp_port":xxxxx,"udp_port":xxxxx,"state":0,},
        3:{"key":13,"name":"CH3","ip":"xxx.xx.xx.xxx","tcp_port":xxxxx,"udp_port":xxxxx,"state":0,},
        4:{"key":14,"name":"CH4","ip":"xxx.xx.xx.xxx","tcp_port":xxxxx,"udp_port":xxxxx,"state":0,},    
    }

and

uichangechannel.py

("false/true rename FALSE/TRUE")
        if str(background.GetCurrentMapName()) in bad_maps:
            return TRUE
        return FALSE

 

 

 

 

Good Job Koray (y)

 

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 8 months later...
On 2015. 10. 14. at 9:51 AM, PeaceMaker said:

1014 10:50:09073 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:22) <module> - import uiWhisper
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiWhisper.py(line:10) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiGroup.py(line:6) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfacemodule.py(line:26) <module> - import uiSystem
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiSystem.py(line:17) <module>
uiSystem.py(line:99) SystemDialog

networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'self' is not defined

1014 10:50:09073 :: ============================================================================================================
1014 10:50:09073 :: Abort!!!!

Simple import locale in ui_wrapper.py or uichangechannel.py

Link to comment
Share on other sites

Hello,
In -> uichangechannel.py search this

Spoiler

        if str(background.GetCurrentMapName()) in bad_maps:
            return True
        return False

Edit to
 

Spoiler

        if str(background.GetCurrentMapName()) in bad_maps:
            return True
        #return False

and enjoy

Link to comment
Share on other sites

43 minutes ago, [007]DawisHU said:

Hello,
In -> uichangechannel.py search this

  Hide contents

        if str(background.GetCurrentMapName()) in bad_maps:
            return True
        return False

Edit to
 

  Hide contents

        if str(background.GetCurrentMapName()) in bad_maps:
            return True
        #return False

and enjoy

?????????????????????????????????????????????????????????????????????

Link to comment
Share on other sites

7 minutes ago, Syreldar said:

?????????????????????????????????????????????????????????????????????

Original file syserr
 

Spoiler

0410 22:04:30510 :: Traceback (most recent call last):

0410 22:04:30510 ::   File "ui.py", line 1011, in CallEvent

0410 22:04:30510 ::   File "uiChangeChannel.py", line 42, in <lambda>

0410 22:04:30510 ::   File "uiChangeChannel.py", line 73, in __ChangeChannel

0410 22:04:30510 ::   File "uiChangeChannel.py", line 107, in IsInSpecialMap

0410 22:04:30510 :: NameError
0410 22:04:30510 :: :
0410 22:04:30510 :: global name 'False' is not defined
0410 22:04:30510 ::

 

 

Link to comment
Share on other sites

Just now, [007]DawisHU said:

Original file syserr
 

  Hide contents

0410 22:04:30510 :: Traceback (most recent call last):

0410 22:04:30510 ::   File "ui.py", line 1011, in CallEvent

0410 22:04:30510 ::   File "uiChangeChannel.py", line 42, in <lambda>

0410 22:04:30510 ::   File "uiChangeChannel.py", line 73, in __ChangeChannel

0410 22:04:30510 ::   File "uiChangeChannel.py", line 107, in IsInSpecialMap

0410 22:04:30510 :: NameError
0410 22:04:30510 :: :
0410 22:04:30510 :: global name 'False' is not defined
0410 22:04:30510 ::

 

 

False -> FALSE

 

??????????????????????????????????

  • Love 1
Link to comment
Share on other sites

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


  • Activity

    1. 1

      core crash (GetName, SaveSingleItem?)

    2. 879

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    3. 879

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 0

      Autopatcher not working in my friends pc but working in everyone else's

    5. 9

      Top Metin2 - Changelogs

    6. 0

      Dungeon Info System - compile Error

    7. 1

      core crash (GetName, SaveSingleItem?)

    8. 4

      [TUT] Increase MAX yang FULL

  • Recently Browsing

    • No registered users viewing this page.

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.